On Fri, Apr 13, 2018 at 03:53:28PM +0000, Juergen Spitzmueller wrote:

>     Note that the implementation is still rather basic and might need
>     extension for other cases.

Can we add support for a verbatim inside a simple frame? See the
attached, simpleFrame_verbatim.lyx.

Also see the attached file, cprotected.tex, which shows that \cprotect
works.

This issue also affects putting a simple frame around a knitr chunk,
because knitr uses verbatim.

Scott
%% LyX 2.2.1 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{fancybox}
\usepackage{calc}
\usepackage{babel}
\usepackage{cprotect}
\begin{document}
\noindent\cprotect\fbox{\begin{minipage}[t]{1\columnwidth - 2\fboxsep - 2\fboxrule}%
\begin{verbatim}
hello
\end{verbatim}
%
\end{minipage}}
\end{document}

Attachment: simpleFrame_verbatim.lyx
Description: application/lyx

Attachment: signature.asc
Description: PGP signature

Reply via email to