LaTeX include file in TexMaker doesn't work?

Posted on 2011-05-08
Last Modified: 2012-05-11
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:


% generates the title

Small is beautiful.

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?
Question by:Jane Noesgaard Larsen
    LVL 12

    Accepted Solution

    Try it as

    (the .tex should be automatic, so your code has it looking for Introduktion.tex.tex)
    LVL 1

    Author Comment

    by:Jane Noesgaard Larsen
    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)
    LVL 12

    Expert Comment

    Ah, perhaps input would work better in this case:

    According to
    \input will work on its own, but \include works in the document in conjunction with \includeonly in the preamble.
    LVL 1

    Author Comment

    by:Jane Noesgaard Larsen
    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.

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Phishing is at the top of most security top 10 efforts you should be pursuing in 2016 and beyond. If you don't have phishing incorporated into your Security Awareness Program yet, now is the time. Phishers, and the scams they use, are only going to …
    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    Viewers will learn how to use the Hootsuite Dashboard.
    Want to pick and choose which updates you receive? Feel free to check out this quick video on how to manage your email notifications.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now