Jane Noesgaard Larsen
asked on
LaTeX include file in TexMaker doesn't work?
I'm trying to write a larger LaTeX based document and therefore I want to split the source into different files. I have this construction as an initial document:
\documentclass[10pt,onecol umn,twosid e,portrait ,a4paper,e nglish,dan ish]{repor t}
\title{DocTitle}
\author{Author}
\begin{document}
% generates the title
\maketitle
Small is beautiful.
\include{Introduktion.tex}
\end{document}
Problem is that the text inside "Introduktion.tex" is not included at all. The file exists at the same level and in the same folder as the main document. Any idea as to why I can't include files?
\documentclass[10pt,onecol
\title{DocTitle}
\author{Author}
\begin{document}
% generates the title
\maketitle
Small is beautiful.
\include{Introduktion.tex}
\end{document}
Problem is that the text inside "Introduktion.tex" is not included at all. The file exists at the same level and in the same folder as the main document. Any idea as to why I can't include files?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Ah, perhaps input would work better in this case:
\input{Introduktion}
According to http://www.personal.ceu.hu /tex/input .htm
\input will work on its own, but \include works in the document in conjunction with \includeonly in the preamble.
\input{Introduktion}
According to http://www.personal.ceu.hu
\input will work on its own, but \include works in the document in conjunction with \includeonly in the preamble.
ASKER
hmmm... for some odd reason there were no .tex file for that file causing the problem even if I had saved the file and other file extensions of that name existed.
Now both include and input works like a charm.
Now both include and input works like a charm.
ASKER
I've changed the include statement but in the compile log it states:
No file Introduktion.tex.
How can I get TexMaker to see all the files? I've done this before (but with another front end and on a windows based PC (Working on a Mac at the moment)