Wandmalfarbe / pandoc-latex-template

A pandoc LaTeX template to convert markdown files to PDF or LaTeX.
BSD 3-Clause "New" or "Revised" License
6.01k stars 957 forks source link

[feature request] Expanded custom boxes examples #305

Open pastorn opened 1 year ago

pastorn commented 1 year ago

I don't even know if this is possible, but if it is, could the examples be expanded to include custom box commands?

This block was taken from the tcolorbox documentation. I can't figure out how to make the ::: syntax work with arguments (title={#1}). I've spent maybe 2-3 hours on this now. If it's possible to make such a thing then an example could be nice.

\newtcolorbox{mybox}[1]{colback=red!5!white,
    colframe=red!75!black,
    fonttitle=\bfseries,
    title={#1}}
  \begin{mybox}{Hello there}
  This is my own box with a mandatory title.
\end{mybox}

If it would be possible to create a command for a custom awesomebox, an example of that would be welcome as well (currently it only re-exports the predefined awesomebox styles). Here's an example from the awesomebox documentation (which I couldn't get to work neither).

\begin{awesomeblock}[magenta]{5pt}{\faCertificate}{magenta}
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam aliquet
  libero quis lectus elementum fermentum.
\end{awesomeblock}