Link to home
Start Free TrialLog in
Avatar of Jane Noesgaard Larsen
Jane Noesgaard LarsenFlag for Denmark

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,onecolumn,twoside,portrait,a4paper,english,danish]{report}
\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
Avatar of larsrohr
larsrohr
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jane Noesgaard Larsen

ASKER

You might have a point but it did not solve the problem.

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)
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.
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.