Skip to content

Exporting org with image showing the 2nd page. #13

@onlycparra

Description

@onlycparra

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.

#+attr_org: :width 80% :page 2
#+attr_latex: :width 0.95\textwidth
#+caption: My Caption
[[./images.pdf]]

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:

\begin{figure}[htbp]
\centering
\includegraphics[width=0.95\textwidth]{./images.pdf}
\caption{My Caption}
\end{figure}

Which leads to a pdf showing the first page of images.pdf. A natural thing to try was changing the #+attr_latex... line for

#+attr_latex: :width 0.95\textwidth :page 2

But it does nothing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions