Generalincluding Chapters

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Noobix Cube
Posts: 24
Joined: Tue Dec 02, 2008 11:45 pm

including Chapters

Post by Noobix Cube »

Hey all,
First post and beginning the long haul of writing up my thesis :(
I was wondering if you could help me.
I am writing the chapters seperately in different files and then trying to use the '\include{chaptername}' in a main tex file to make my code clear. But I am running into errors.
here is the main code :

\documentclass[a4paper,12pt]{report}
%\usepackage[adobe-utopia]{mathdesign}
\usepackage{pxfonts}
\usepackage{graphicx}
\usepackage{fullpage}
\usepackage{setspace}
\usepackage{epstopdf}

\begin{document}

\include{TheoryNew}

\end{document}

The TheoryNew.tex is in the same folder as the main tex file. Do you need more info ? Any suggestions would be awesome

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

including Chapters

Post by localghost »

Noobix Cube wrote:[...] I am writing the chapters seperately in different files and then trying to use the '\include{chaptername}' in a main tex file to make my code clear. But I am running into errors. [...] The TheoryNew.tex is in the same folder as the main tex file. Do you need more info ? Any suggestions would be awesome
What is the exact error message? Attach the log file of your example to your next post.


Best regards and welcome to the board
Thorsten¹
Noobix Cube
Posts: 24
Joined: Tue Dec 02, 2008 11:45 pm

Re: including Chapters

Post by Noobix Cube »

here is the log file...
hope this helps, and thanks for the quick reply ;)
Attachments
Thesisfull.log
(20.54 KiB) Downloaded 314 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

including Chapters

Post by localghost »

The log states that there is something forbidden in the file TheoryNew.tex which causes error messages. So it's important to know the content of this file. Please attach it to your next post.

Another information from the log file is that you are using MiKTeX 2.4 which is outdated since the end of 2006. It is strongly recommended to upgrade to the current version 2.7 available on the homepage.
Noobix Cube
Posts: 24
Joined: Tue Dec 02, 2008 11:45 pm

Re: including Chapters

Post by Noobix Cube »

Will updating affect any of my work that I have done so far?
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: including Chapters

Post by localghost »

A proper source code should not be affected. But let us first see the included file.
Noobix Cube
Posts: 24
Joined: Tue Dec 02, 2008 11:45 pm

Re: including Chapters

Post by Noobix Cube »

Okay, here is the problem modified slightly.
I have compiled it with a total text chapter but now that I input a chapter with two pdf figs it does not compile. I am using pdf texify button when compiling.
Any advice?
Attachments
OrbitalFamilies.tex
In a subdirectory, with both pdf pic's in the same file with correct names
(6.62 KiB) Downloaded 330 times
ThesisMain.log
(6.39 KiB) Downloaded 332 times
ThesisMain.tex
(1.12 KiB) Downloaded 325 times
Barakaty
Posts: 12
Joined: Sun Nov 30, 2008 2:43 am

Re: including Chapters

Post by Barakaty »

Hi
Honsely, I hav not tried this before. Which I would like to sugesset is to put the pream comands, I mean document class, usepackege, ........ begine document and end document in the end as well in chapter 1. Then Try to run it on its own. If it works, compile it with the main text. Otherwise, it is easer to gignouse the problem

Have a go
mas
Posts: 226
Joined: Thu Dec 04, 2008 4:39 am

including Chapters

Post by mas »

Noobix Cube wrote:Okay, here is the problem modified slightly.
I have compiled it with a total text chapter but now that I input a chapter with two pdf figs it does not compile. I am using pdf texify button when compiling.
Any advice?
I downloaded your files and commented out the figures in the Orbitals file. pdflatex compiled without any errors. Then I copied over two of my figures and renamed them to what you had in your file. Compilation was again without errors and the figures came out correctly.

FWIW, I am using texlive2008 under debian gnu/linux.

Regards.

OS: Debian/GNU Linux; LaTeX System : TeXLive; Editor : Vim
Noobix Cube
Posts: 24
Joined: Tue Dec 02, 2008 11:45 pm

Re: including Chapters

Post by Noobix Cube »

Thanks all for the help,
it seems that I had not set the graphics path at the top of the main file to include the subdirectories from which the chapters were located.
All is running smoothly now.
Cheers Latex Community! :geek:
Post Reply