I'm required to do a document that uses a custom document class.
Now, I need to insert another child document with a completely different and custom document class and some packages that are not included in the main document.
I'm not sure how to do this, since using \input {doc.tex} gives me a
Code: Select all
! LaTeX Error: Can be used only in preamble.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.3 \documentclass
[english]{scrreprt}
I'm really new to LaTeX, since I have been using LyX for ages, but to do this work I need LaTeX since the document classes can't be used in LyX.
Compiling the child document yields no error, and compiling the main document without the \input{} also yields no error, so I'm not sure where to include the different packages and document classes for it to successfully compile.
Any help?
Thanks in advance.