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

Missing Package.. #6

Closed
wxguy opened this issue Aug 30, 2019 · 7 comments
Closed

Missing Package.. #6

wxguy opened this issue Aug 30, 2019 · 7 comments

Comments

@wxguy
Copy link

wxguy commented Aug 30, 2019

I get following error when using the admonition package:

Error producing PDF.
! LaTeX Error: Environment env-e055d30b-d0e6-4970-9e60-c5668b2a173c undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.483 ...env-e055d30b-d0e6-4970-9e60-c5668b2a173c}

@chdemko
Copy link
Owner

chdemko commented Aug 30, 2019

Can you post here an example file that does not work

@wxguy
Copy link
Author

wxguy commented Aug 30, 2019

Now I got different error. Command executed from terminal is:

$ pandoc --filter pandoc-latex-admonition pandoc-admon.md -o pandoc-admon.pdf

Error message received is:

Error producing PDF.
! Extra }, or forgotten \endgroup.
<argument> ...@finalstrut \strutbox }\fn@endnote }
                                                  
l.299 ...sent\footnote{Praesent non fringilla leo}

The md file used is the same as the example file provided in the documentation. I have not modified any of the md file content.

@chdemko
Copy link
Owner

chdemko commented Sep 23, 2019

What is the content of pandoc-admon.md?

@knaaptime
Copy link

Hey, thanks for this great package! I can compile the tests fine, but I get a similar error as the above when trying to use this package as part of this cookiecutter

as you can see, i'm using xelatex with this template and getting the same missing environment error above

I'm no latex expert, so not exactly sure what's causing the error but I've also tried adding the following packages to the template

\usepackage{tcolorbox}
\usepackage{footnote}
\usepackage{xcolor}
\usepackage{ifthen}
\usepackage{amsmath}
\usepackage{fontenc}

but to no avail. If I try to add the example text


::: {.admonition .danger} :::
Praesent[^praesent] non fringilla leo. Praesent vestibulum eu purus vitae varius[^varius]. Nunc maximus libero urna, non pulvinar sapien volutpat sit amet. Donec sit amet leo malesuada, euismod augue ac, fermentum sapien. Donec vel nulla euismod, malesuada leo id, efficitur magna. Praesent sed faucibus ipsum. Fusce vestibulum, odio in porta interdum, nisi urna mollis nisl, id hendrerit velit metus eu libero. Duis bibendum quam metus, eget ultricies lacus vulputate eget. Donec interdum vulputate nisi quis dapibus. Donec molestie, metus a eleifend eleifend, urna ipsum rutrum metus, in vulputate nibh risus nec nibh. In blandit odio vel sem semper blandit. Vestibulum quis placerat nisi, nec elementum nunc.
:::::::::::::::::::::::::::::

::: {.admonition .danger} :::
Praesent[^praesent] non fringilla leo. Praesent vestibulum eu purus vitae varius[^varius]. Nunc maximus libero urna, non pulvinar sapien volutpat sit amet. Donec sit amet leo malesuada, euismod augue ac, fermentum sapien. Donec vel nulla euismod, malesuada leo id, efficitur magna. Praesent sed faucibus ipsum. Fusce vestibulum, odio in porta interdum, nisi urna mollis nisl, id hendrerit velit metus eu libero. Duis bibendum quam metus, eget ultricies lacus vulputate eget. Donec interdum vulputate nisi quis dapibus. Donec molestie, metus a eleifend eleifend, urna ipsum rutrum metus, in vulputate nibh risus nec nibh. In blandit odio vel sem semper blandit. Vestibulum quis placerat nisi, nec elementum nunc.
:::::::::::::::::::::::::::::

to draft.md and recompile, I get:

$ make paper
pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block+smart -s --pdf-engine=xelatex --template=paper/.pandoc/xelatex.template --filter pandoc-include --filter pandoc-crossref --filter pandoc-latex-admonition --filter pandoc-citeproc  -o paper/draft.pdf paper/draft.md
Error producing PDF.
! LaTeX Error: Environment env-77d4253f-9729-437d-bd96-2b1d2266ed3f undefined.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.97 ...{env-77d4253f-9729-437d-bd96-2b1d2266ed3f}

any thoughts about what might be happening? Thanks again for putting this package together!

@chdemko
Copy link
Owner

chdemko commented Mar 30, 2020

Perhaps your template?

@knaaptime
Copy link

i cant remember exactly, but i think it ended up being a change in newer versions of the way pandoc handles template variables. Either way, i got it sorted in the end. thanks!

@chdemko
Copy link
Owner

chdemko commented Apr 1, 2020

Closing this issue.

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

3 participants