LaTeX forum ⇒ LyXSubdocument Compilation

Information and discussion about LyX, a WYSIWYM editor, available for Linux, Windows and Mac OS X systems.
fdiehl
Posts: 4
Joined: Fri Dec 17, 2010 11:44 am

Subdocument Compilation

Postby fdiehl » Fri Dec 17, 2010 11:52 am

Hi there.

I have a problem with LyX and subdocuments. I have my main document set to report(KOMA) and these Classoptions:

fontsize=10, round, toc=flat, parskip=full, headsepline=true, footsepline=true

all Settings in the main document and the subdocuments are the same. including the LaTeX-Preamble:

\lhead{\title}
\rhead{\thepage}
\lfoot{name}
\cfoot{}
\rfoot{\today}

Now, when I include the subdocument, it always messes up my font when I compile and print the maindoc to PDF. the font which belongs to the subdocument is different as in the maindoc and also the fontsize is around 15 or so, as oppose to the set 10pt.

I don't know why the hell this is happening. I've tried everything from erasing the latex-preamble in both documents, in the subdocument only, and so on and so forth.

The manual for LyX tells me that in order to include a subdocument I have to get rid of all the preable stuff including the \begin{document}... I know this from working with TeXShop and it makes sense, but why doesn't LyX allow me to actually erase all of the preamble in my subdocument?!?
In other words, how can I create a subdocument in LyX?
Last edited by fdiehl on Sun Dec 19, 2010 4:49 pm, edited 1 time in total.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Fri Dec 17, 2010 12:36 pm

Please, post an example that shows the problem: create a master and a child .lyx documents (or post those problematic documents, just replace the actual text with some dummy one if you like), put them into a ZIP archive and attach them to your next post.

Link:
BBcode:
HTML:
Hide post links
Show post links

fdiehl
Posts: 4
Joined: Fri Dec 17, 2010 11:44 am

Postby fdiehl » Fri Dec 17, 2010 2:02 pm

hi there,

OK - sorry about that.I attached a zip-archive.
thanks a lot.
Attachments
Archiv.zip
(11.72 KiB) Downloaded 33 times

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Fri Dec 17, 2010 10:32 pm

The reason is simple: the line (or the paragraph) on which you put included document is of type "Section*" instead of "Standard" (or, if you take a look at source code: \section*{\include{loremipsum_sub}}) which, naturally, messes things up badly.

Link:
BBcode:
HTML:
Hide post links
Show post links

fdiehl
Posts: 4
Joined: Fri Dec 17, 2010 11:44 am

Postby fdiehl » Fri Dec 17, 2010 10:55 pm

darn...

that was easy...and embarrassing ;-)

thank you very much for your time and help. really appreciated.

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
meho_r
Posts: 823
Joined: Tue Aug 07, 2007 5:28 pm

Postby meho_r » Sat Dec 18, 2010 1:12 am

fdiehl wrote:...

that was easy...and embarrassing ;-)


You shouldn't consider that embarrassing. LyX tends to hide things from the user, mostly to make things easier for him, which can be really troublesome sometimes. Now you see that with LyX you have to have your eyes everywhere, all the time ;-)

BTW, you should mark the thread as solved.

Link:
BBcode:
HTML:
Hide post links
Show post links

fdiehl
Posts: 4
Joined: Fri Dec 17, 2010 11:44 am

Postby fdiehl » Sat Dec 18, 2010 12:57 pm

dunno how to mark

So, SOLVED
;-)

Link:
BBcode:
HTML:
Hide post links
Show post links

User avatar
localghost
Site Moderator
Posts: 9206
Joined: Fri Feb 02, 2007 12:06 pm
Location: Braunschweig, Germany

Postby localghost » Sat Dec 18, 2010 1:57 pm

How to mark a topic accordingly is clearly written in Section 3 of the Board Rules (to be read before posting).


Best regards and welcome to the board
Thorsten
LaTeX Community Moderator
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes


¹ System: openSUSE 13.1 (Linux 3.11.10), TeX Live 2013 (vanilla), TeXworks 0.5 (r1351)
² Posting stopped indefinitely due to offenses

Link:
BBcode:
HTML:
Hide post links
Show post links


Return to “LyX”

Who is online

Users browsing this forum: No registered users and 3 guests