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

boxes-with-pandoc-latex-environment-and-awesomebox question #346

Open
hrylandvest opened this issue Jul 12, 2023 · 1 comment
Open

boxes-with-pandoc-latex-environment-and-awesomebox question #346

hrylandvest opened this issue Jul 12, 2023 · 1 comment

Comments

@hrylandvest
Copy link

Apologies for asking such a basic question, I'm still in learning mode with pandoc/latex.

In the example section, to in order to utilize boxes-with-pandoc-latex-environment-and-awesomebox, I assume that the following are the steps to utilize this feature:

  1. Install pandoc-latex-environment $ pip install pandoc-latex-environment
  2. Add \usepackage{awesomebox} to the eisvogel.tex template file. Where should this go exactly in the file?
  3. Reconfigure the callout syntax in my obsidian.md file to the syntax shown:
::: note
Lorem ipsum dolor ...
:::
  1. Run the pandoc command to convert replacing "document" and path to template with my values
    pandoc "document.md" -o "document.pdf" --from markdown --template "../../eisvogel.tex" --filter pandoc-latex-environment --listings

The above steps produce only the text and no callout syntax in the pdf. I'm obviously doing something wrong here. Would someone be so kind as to point me in the right direction?

@ndmalc
Copy link

ndmalc commented Dec 3, 2023

I also had some difficulties to make it work as the documentation is very sparse on this one.

I think you did everything right except at the step 2. where based on the example here, you should add the following in the YAML metadata block of your markdown file.

header-includes:
- |
  ` ``{=latex}
  \usepackage{awesomebox}
  ` ``
pandoc-latex-environment:
  noteblock: [note]
  tipblock: [tip]
  warningblock: [warning]
  cautionblock: [caution]
  importantblock: [important]

Note: in the code block above, I did not found how to properly escape the ` characters so I added a space within the three ` that needs to be removed when copying

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

2 participants