Skip to content
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

Labels in figures missing in Latex output #48

Closed
GordianDziwis opened this issue Feb 8, 2017 · 13 comments
Closed

Labels in figures missing in Latex output #48

GordianDziwis opened this issue Feb 8, 2017 · 13 comments

Comments

@GordianDziwis
Copy link

GordianDziwis commented Feb 8, 2017

As said, the labels get stripped and it is not possible to reference a figure. See the output PDF.

@jeiros
Copy link

jeiros commented Feb 15, 2017

Also seeing this. Any idea on how to fix it?

@tompollard
Copy link
Owner

@BonarBeavis @jeiros I see it, but I haven't had a chance to look into it yet - sorry. I wondered whether it had anything to do with the most recently merged pull request #47

@tompollard
Copy link
Owner

If you have time, please could you post a snippet of the expected output vs current output?

@jeiros
Copy link

jeiros commented Feb 15, 2017

This is the problem:

screen shot 2017-02-15 at 16 14 14

Don't really know how to fix this, as I just discovered pandoc yesterday and I am exploring it to write my PhD thesis in the future. Thanks for putting this repo up, before finding it I couldn't really get much to work 😄

@tompollard
Copy link
Owner

Could you try git checkout 52483eddcffb63fee479c5b34e43ed80382e1254 to roll back to the previous commit and see if this fixes the problem? If so, I'll rollback the most recent change.

@tompollard
Copy link
Owner

Doesn't seem to fix it. I'll take a look into this later today!

@tompollard
Copy link
Owner

Yep, it seems to be a problem with the pandoc-shortcaption updates. I'll revert these shortly, until we work out what's going on.

@tompollard
Copy link
Owner

I have reverted @martisak's pandoc-shortcaption update (#47), which fixes this issue but unfortunately means that we'll need to manually generate the list of figures page again for now.

@GordianDziwis
Copy link
Author

With the following syntax the shortcaptions and references work:

![Long caption with LaTeX](img.png "alt image caption"){#fig:mylabel}

@Tamriel
Copy link

Tamriel commented Feb 22, 2017

Thanks for the pdf fix. However, it does not work for the html output yet: https://github.com/tompollard/phd_thesis_markdown/blob/master/output/thesis.html#L328

@jeiros
Copy link

jeiros commented Feb 22, 2017

@BonarBeavis with @tompollard reverting the pandoc-shortcaption update your suggested syntax is still printing out the full label in the Table of Figures for me if I use \listoftables.

Also, to reference the figure in the text with your syntax, should \ref{mylabel} be used? If so, I am back to getting Figure ?? in the pdf output.

@jeiros
Copy link

jeiros commented Feb 22, 2017

Nevermind, it's \ref{fig:mylabel}. Still seeing the long captions in the List of Figures though.

@GordianDziwis
Copy link
Author

@jeiros the mentioned syntax works with the update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants