gutenberg / latex-awesomebox

A package to draw attention boxes in your documents, illustrated with FontAwesome icons (Mirror)
https://git.umaneti.net/latex-awesomebox/about/
Do What The F*ck You Want To Public License
52 stars 6 forks source link

Using `\verb` in awesomeboxes now fails #12

Closed vigou3 closed 5 years ago

vigou3 commented 5 years ago

With awesomebox v0.2 shipping with TeX Live 2018, usage of \verb was allowed in admonition boxes. With v0.5 in TeX Live 2019, this is no longer the case. MWE compiling fine in TL 2018, but not in TL 2019:

\documentclass{article}
  \usepackage{awesomebox}

\begin{document}

\notebox{The symbol \verb|~| identifies the user home directory.}

\end{document}

The behavior change may have happened between the two above revisions, I didn't check. What I did notice, though, is that v0.5 now uses package array instead of tabularx.

milouse commented 5 years ago

Thanks for your issues. I think both are effectively due to the move to array. I'll try to find time to investigate on them.

milouse commented 5 years ago

For this one, as a workaround for now, you can safely use the new environment commands:

\documentclass{article}
\usepackage{awesomebox}

\begin{document}

\begin{noteblock}
  The symbol \verb|~| identifies the user home directory.
\end{noteblock}

\end{document}
milouse commented 5 years ago

I can confirm this is due to the underlying tabular. You'll find here other workaround to insert verbatim fragments in awesome box/block: https://tex.stackexchange.com/questions/472706/how-to-use-verb-in-the-environment-tabular

As the environment approach works, I won't try further to actually fixing it. I'll just add a note in the manual in the « breaking changes » section to let users know about that.

vigou3 commented 5 years ago

All right for me!