LyXclassicthesis | Export LyX code to LaTeX

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
Post Reply
n3llo
Posts: 1
Joined: Tue Mar 06, 2012 2:57 pm

classicthesis | Export LyX code to LaTeX

Post by n3llo »

HI guys,

I'm writing my thesis using classicthesis model and LyX. My tutor needs the LaTeX version of my work. When I export the LaTeX code by the function in LyX the code does not work. For example if i export the LaTeX version of my first chapter I obtain this error while compiling with TeXworks on the output console:

Code: Select all

Runaway argument?
{\PassOptionsToPackage {draft}{prelim2e} \RequirePackage {prelim2e} \renewcomma
nd \ETC.
! File ended while scanning use of \@firstoftwo.
<inserted text> 
                \par 
l.255 
      
? 
Processo interrotto dall'utente
If i stop the execution and look at the TeXworks error i obtain this:

Code: Select all

./classicthesis-config.tex
255
! File ended while scanning use of \@firstoftwo.
<inserted text> 
                \par 
l.255 
After this compiling into the folder appear this file Chapter01.synctex.gz(busy) that i do not know what is.

So after the error i go back to classicthesis-config.tex and I compile it and i obtain this:

Code: Select all

! LaTeX Error: \usepackage before \documentclass.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.33 \usepackage{
                 ifthen}
? 
But into the doc there is no \documentclass, so what i have to do?

There is a better way of exporting LaTeX code from a LyX file?

Thanks!!!

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

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

classicthesis | Export LyX code to LaTeX

Post by justdeath »

Hello to the forum.

You won't like reading this though.
Because you have absolutely no idea what you are doing.

I assume you are using this:
http://www.ctan.org/tex-archive/macros/ ... sicthesis/

And you are probably using classicthesis-config.tex.
You should have opened the file and seen that on the first possible line you can add options to the style. I simply added prelim2e to the options and it compiles.

You cannot compile this file, it is a STYLE, not a CLASS. You should check Examples directory in the link I gave you.

This synctex thing is pdf synchronization with the source code, just right click on the pdf file and you will be able to jump to the source code.

Finally, this style must be used with book or scrbook, article won't work.

Lastly, this is called a minimum working example:

Code: Select all

\documentclass{book}
\usepackage[english]{babel}
\usepackage{classicthesis}
\input{classicthesis-config}

\begin{document}
Some text.
\end{document}
Nikolay
Post Reply