Skip to content

export to PDF with images in notebooks having alternate text #2275

Description

@durandg12

Hello, I have an issue with the export to PDF with images in notebooks having alternate text.

I have seen found issues about the export to PDF of notebooks with images in the markdown like #552, #1079 and #1326 but I didn't find my error message anywhere in those discussions, and they seemed solved while using alternate text.

In one of the Markdown cells of my notebook, I have the line ![title](imgTP2.png), with the alternate text title.

Here is the error message of the compiler

! Package xkeyval Error: `alt' undefined in families `adjbox,Gin,adjcalc'.

See the xkeyval package documentation for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.477 ...keepaspectratio,alt={title}]{imgTP2.png}}
                                                  
? 
! Emergency stop.
 ...                                              
                                                  
l.477 ...keepaspectratio,alt={title}]{imgTP2.png}}

The LaTeX code generated appears to be false, and it appears to be because of the alternative text title.

\begin{figure}
\centering
\pandocbounded{\includegraphics[keepaspectratio,alt={title}]{imgTP2.png}}
\caption{title}
\end{figure}

When I remove that alternative text with just ![](imgTP2.png), it works, but it doesn't seem like an intended behavior.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions