You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am not sure if this is within the scope of org-inline-pdf, it seems it could be the export engine of org-mode. In any case, here it goes:
I am working in a file document.org, and I have an embedded image, the second page of a file images.pdf.
The org-file shows this correctly (with the code shown below). However, upon exporting it to tex (let's say document.tex), the tex does not indicate that \includegraphics{} should use the second page.
Org-inline-pdf currently does not do anything for latex export. It is handled by ox-latex included in the org distribution. the :page attribute is an extension of org-inline-pdf's own, so ox-latex silently ignores it.
It is actually possible to specify the page of a linked multi-page PDF for exporting. Add double colon and the page number to the link, like [[./images.pdf::2]], and ox-latex will add page=2 as an option of includegraphics in the exported latex file.
I understand that it is confusing that the way org-inline-pdf specifies the page is different from the ox-latex's. I will think of a solution to this problem. As a current workaround, you can specify the page for both inline preview and export by specifying both the :page attribute and the ::n.
I am not sure if this is within the scope of org-inline-pdf, it seems it could be the export engine of org-mode. In any case, here it goes:
I am working in a file
document.org
, and I have an embedded image, the second page of a fileimages.pdf
.The org-file shows this correctly (with the code shown below). However, upon exporting it to tex (let's say
document.tex
), the tex does not indicate that\includegraphics{}
should use the second page.This shows (in the buffer) the second page of
images.pdf
. But if I export the org file to tex or pdf, the resulting tex has:Which leads to a pdf showing the first page of
images.pdf
. A natural thing to try was changing the#+attr_latex...
line forBut it does nothing.
The text was updated successfully, but these errors were encountered: