0

I want to have main project file main.tex and import other sections in it. I used to put everything in one file but I am trying now to use elegant way using either include or input commands. I chose include because it does not produce pdf of sections (Only I want main.tex is the one is compiled and then pdf is generated from it). I do the following:

main.tex

\documentclass[10pt, conference, compsocconf]{IEEE_format/IEEEtran}

% Paper Title goes here
\title{Later \vspace{-0.5cm} }

\begin{document}
\maketitle

\include{sections/Intro}
\include{sections/Background}
\include{sections/Problem_statement}


\end{document}

However, every section goes to a new page! how can I avoid that (i.e., every section follows the previous one)? The command input does that but it generates pdf of each section which I don't want that.

Thank you

Katherine
  • 75
  • 1
  • 5
  • \input{sections/file} – koleygr Dec 11 '17 at 20:34
  • Check if this post covers your needs: https://tex.stackexchange.com/questions/246/when-should-i-use-input-vs-include. If so, it is a duplicate – koleygr Dec 11 '17 at 20:36
  • \input does not generate a pdf of each section. It just tells LaTeX to treat the place where you use it as if the contents of the specified file were there. – Skillmon Dec 11 '17 at 20:36
  • welcome to tex.sx. it sounds like what you're looking for is \inputonly, but that, unfortunately. doesn't exist. the best suggestion i can offer is to use \input and comment out temporarily any sections you won't want to look at in the current processing cycle. – barbara beeton Dec 11 '17 at 20:47
  • this question sounds like a better "duplicate": Redefining \include – barbara beeton Dec 11 '17 at 21:49

0 Answers0