On 2020-04-06 23:32, Andrew Parsloe wrote:
When I put a verbatim environment inside a Box (Minipage, simple frame)
I get a Latex error:
Argument of \@xverbatim has an extra }
which then produces various later errors, and the document doesn't
compile. The other options, including double frame, work fine. This is
with both 2.3.4.4 versions (64 bit and 32 bit) on windows 10.
Andrew
I don't know much about this but it might be because it appears in the
argument of another command (\fbox).
"This is why the LaTeX book insists that verbatim commands must not
appear in the argument of any other command; they aren’t just fragile,
they’re quite unusable in any “normal” command parameter, regardless of
\protection." (https://texfaq.org/FAQ-verbwithin)
So, why does \doublebox work then? Maybe because the command is less
complex, e.g. it does not support line-wrapping.
(https://tex.stackexchange.com/questions/305879/framed-paragraph-with-double-line-frame)
Daniel
--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel