-
Notifications
You must be signed in to change notification settings - Fork 77
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support alt text as short caption for Latex #38
Comments
With latex output, pandoc-crossref writes raw latex. So to fix this, one
|
I have the feeling there is something to do there :
If you think it involves too much work, I'll let you do it later this week. |
At first glance line 41 should probably have "fig:" ++ snd img instead of
|
\begin{figure}[htbp]
\centering
\includegraphics{figure.png}
\caption[fig:]{\label{fig:figure-label}My long caption}
\end{figure} and \begin{figure}[htbp]
\centering
\includegraphics{figure.png}
\caption[testfig:]{\label{fig:figure-label}My long caption}
\end{figure} Seems weird to me... is haskell an inverted language ? |
That's probably Pandoc, not Haskell. I don't have immediate access to
|
Ok. Thanks anyway. I will wait for a fix then ! |
Ok, so 9ef29f9 should fix this. Sorry about misleading you, I kinda forgot my own code 😅 Would be great if you could test with jgm/pandoc#2447 before I publish a release. |
It works like a charm ! Thank you. However there is a little issue and I can't tell wether it is related to pandoc-crossref or pandoc. String inside short caption does not seems to be parsed by pandoc. For example a short caption (inside Any idea ? |
After some tests, it seems related to pandoc. I will report on jgm/pandoc#2447 Thanks again @lierdakil ! |
Yep, that's expected. Pandoc doesn't parse image title as markdown (I think that's primarily due to "title" being an html attribute, which can't have rich formatting) |
Ok I guess I can live with that :-) I close |
FYI, 9ef29f9 published as 0.1.5.5 |
Using this patch (jgm/pandoc#2447) allow to use image alt text to convert in latex short caption. When it is used with pandoc-crossref, the short caption becomes empty...
See :
produces
Instead of :
Any idea to fix it ?
The text was updated successfully, but these errors were encountered: