I'm wondering if there's a way to tell (Xe)LaTeX to handle \chapter as \section, \section as \subsection and so on when inputting a document via \input into another document.
The setting is: I have a text with minimal LaTeX Markup. I need to use this text in two different environments / two different root files.
One produces my "standalone" Version of this text where I need big headings and the other one is a thesis referring to this text where I need to level-down the headings, because it's part of a \chapter.
Any ideas?
text file "text.tex"
\chapter*{Introduction}
Bla Bla
\section*{Point 1}
...
root file #1:
\begin{document}
\input{text}
\end{document}
root file #2:
\begin{document}
\chapter{First ideas to my text}
...
\chapter{My way to my text}
...
\chapter{The final text}
\input{text}
\end{document}
\documentclass{...}and ending with\end{document}. – Apr 24 '15 at 11:56