LyXAlter Option List for Document Class

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
Hinzig
Posts: 3
Joined: Sun Jul 08, 2012 7:13 pm

Alter Option List for Document Class

Post by Hinzig »

Hey there!

I don't like the openright preinstalled option in the document class scrbook. I'd like to change it to openany!

So I want to know how to get around this, either editing the LaTeX code or via LyX buttons :)

In the LaTeX preamble it is not possible because you cannot enter two document class at the same time (completely logic to me, but LyX enters the document class too, so there is the conflict)

Thanks in advance
hinzig


PS: No I won't change to a LaTeX editor, because of several reasons, next year for my bachelor thesis this might be an option.

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

Hinzig
Posts: 3
Joined: Sun Jul 08, 2012 7:13 pm

Re: Alter Option List for Document Class

Post by Hinzig »

Ok I solved this:

Ridiculous easy!

Document->preferences->document class-> underneath is a row for entering options

just enter the ones you prefer and it will be implemented :) withou [] and separated by ,
User avatar
Stefan Kottwitz
Site Admin
Posts: 10334
Joined: Mon Mar 10, 2008 9:44 pm

Alter Option List for Document Class

Post by Stefan Kottwitz »

Good that you found it! Indeed, LyX provides an easy way to enter class options.

Just an addition: KOMA-Script classes, such as scrbook which you are using, provide commands for setting class options: \KOMAoptions for a list of options, and \KOMAoption for a single option and a list of values. These can also be used also in the document preamble, besides the LyX class option settings.

Stefan
LaTeX.org admin
Post Reply