On Wed, Nov 28, 2018 at 05:54:54PM -0500, ll...@writersglen.com wrote:
> Hello,
>  
> My co-author and I are trying to typeset a computer programming book with 
> Lyx. We're able to create fancy colored boxes to display computer code with 
> the following:
> 
> New Color Box Type cBoxA1colback=gray!25!white,colbacktitle=black, 
> colframe=black!75!black, fonttitle=\bfseries, title=\listno\,#1, 
> width=\textwidth
> 
> The goal is to display programming code noted below in these boxes. Our book 
> has some 200 code boxes, so we need a very efficient method to accomplish 
> this. But our efforts fails.
> 
> If we select Insert/Custom Inset/Colored Box1 and enter plain text into the 
> custom colored box, it compiles with this error, LaTex Error: Missing 
> \begin{document}, but properly displays the box in PDF.
> 
> If we enter either of the first two lines of the sample code below, e.g.: 
> 
> .../site/src$ mkdir n_dbs
> .../site/src$ cd n_dbs
> 
> ...the system compiles with the missing begin document error, but displays 
> properly in PDF.
> 
> But if we enter both of those lines, much less the full sample code stanza 
> shown below, the system throws errors (see below sample code) and fails to 
> compile.
> 
> So now we're stuck. We're at a total loss as to how to solve this problem. 

Hi Lloyd,

If you make a minimal example .lyx file (please read [1]), and post it
to the list, it might be easier for people to jump in and try to figure
out the problem.

Best,

Scott


[1] https://wiki.lyx.org/FAQ/MinimalExample

Attachment: signature.asc
Description: PGP signature

Reply via email to