Bug with verbatim in framed box

Jürgen Spitzmüller spitz at lyx.org
Tue Apr 7 07:38:49 UTC 2020


Am Dienstag, den 07.04.2020, 08:48 +0200 schrieb Daniel:
> 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)

Yes, exactly. Good news is that this will work in LyX 2.4, with the
help of the cprotect package.

Jürgen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20200407/0d286b4f/attachment.asc>


More information about the lyx-devel mailing list