LyXError with multicols

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Error with multicols

Post by insipidtoast »

Well my document WAS allowing me to preview it. Then I insterted another document towards the bottom, and now I can't preview.

Both documents previewed just fine independently.

Here's the error message:

Code: Select all

\begin{multicols}
                       {2}
Your command was ignored.
Type  I <command> <return>  to replace it with another command,
or  <return>  to continue without it.
-What gives?
Last edited by Stefan Kottwitz on Wed Sep 12, 2012 9:42 am, edited 1 time in total.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10335
Joined: Mon Mar 10, 2008 9:44 pm

Error with multicols

Post by Stefan Kottwitz »

You need to load the multicols package. Add to your document preamble:

Code: Select all

\usepackage{multicol} 
Stefan
LaTeX.org admin
insipidtoast
Posts: 128
Joined: Wed Jul 04, 2012 5:34 pm

Re: Error with multicols

Post by insipidtoast »

Thanks man! Apparently the inserted document's preamble settings are not automatically inserted.
FYI:
I'm using windows with LyX 2.0 and MiKTeX 2.9
I'm designing a book using the Koma-script class
Post Reply