{include} is about the \include command which makes LaTeX process the content of a given file, add page breaks before and after and open a new auxiliary file for the given file.

learn more… | top users | synonyms

3
votes
1answer
104 views

How to include a tex file with own formatting options

I have two tex files, tex1 and tex2. I want to include tex1 into tex2. I know \include and \input but those won't allow to include tex files with own formatting. tex1 has a header for example but tex2 ...
4
votes
3answers
4k views

How to include multiple pages in latex

I have a pdf file consisting of four pages (see attached). I want to include it in Latex, but when I use the basic code given below, only the first page of the pdf appears. I want to do is to present ...
2
votes
1answer
136 views

Complex latex document: how to locate offending package dependency [solved: was using dirty build] [closed]

For final distribution, certain appendix includes the pdfpages package. However, appendices should be skipped for normal "draft" versions, or while working on individual chapters. I am having ...
4
votes
1answer
82 views

Inserting a document with its own internal section numbering in another document

I have a fairly large LaTeX document, with several chapters. In one chapter, I intend to insert another LaTeX document. "In the following pages, we include (DOCUMENT) ..." I could use \includepdf, ...
0
votes
1answer
106 views

Adding a line to the TOC before the appendix [duplicate]

Possible Duplicate: First chapter appearing before first line in table of contents I am having issues with inserting a line into the TOC when including external files. \input and \include ...
3
votes
1answer
123 views

How do I best combine several documents?

I have a collection of articles written in latex, and I would like to "merge" them into a larger thesis document, in which each article will be a chapter. I have been looking at include and input, ...
28
votes
6answers
880 views

Is it possible to write all mathematical formulas in a separate file and add them in main file on-demand?

Consider this scenario: I have a report to write and I want to write all mathematical formulas in a separate file and then add them in the main report file on demand (i.e. include/import/add/call a ...
12
votes
1answer
624 views

Correct way to use include and includeonly when writing a large document like a thesis

I am writing a large document with several chapters and I would like to work on each chapter separately. In my main.tex I include the chapters either like \include{chap1.tex} \include{chap2.tex} ...
3
votes
1answer
112 views

Inserting two file with different preambles

Is it possible to insert a LaTeX file into another file without the same preamble?
7
votes
1answer
84 views

Skipping sections when compiling (without \include)

I'm writing a semi-long report with ten-ish sections - in other words, just short enough so that it's practical to keep it all in one file without getting lost. However, for compiling it'd be ...
4
votes
1answer
147 views

includeonly command does not modify TOC

I have written 2 chapters an 1 appendix, and I would like to have 2 version of this book. So I use \includeonly in order to include only chapter 1 and 2, but the TOC also shows the appendix name. ...
2
votes
2answers
246 views

\include and header

I have a separate .tex file for a list of symbols. They aren't nomenclature because I included more information than simple definitions. (I have 3 columns.) When I use \include{symbols} the header on ...
2
votes
1answer
70 views

Separate chapters, each with individual preface, included in same document

I have a document I want to split up into individual sections. I'd like each individual section to be independently compilable, but of course I also need the whole document to compile. The trouble ...
1
vote
1answer
541 views

Set a subfolder for \include(only)

Let’s assume a project with a main file main.tex including the chapter with \include. % main.tex \documentclass{book} \includeonly{one} \begin{document} \include{one} \include{two} \end{document} ...
4
votes
3answers
253 views

Creating complex documents from separate files

I have multiple documents (file1.tex, file2.tex, etc.) and one main file (let's call it main.tex). I would like to build a complex document that contains all file_i.tex files. I tried this (according ...
3
votes
0answers
411 views

BibTeX not working with \input or \include [closed]

I need some help with BibTeX. I use a seperate *.bib file which is working perfectly, but when the commands \input or \include are used to input text from another *.tex file the application tells me ...
4
votes
1answer
442 views

TOC “Appendices” wrongly entry comes after 1st appendix entry when use \include

I use the appendix package with its toc option for a book document. If the first of several appendices is inserted by using \include, then the "Appendices" heading in the TOC incorrectly appears after ...
2
votes
1answer
519 views

Blank page inserted when using \include [duplicate]

Possible Duplicate: Page break with \include I am using the Report document class and to manage the document i have divided it into seperate .tex files that are compiled within a main ...
4
votes
2answers
937 views

Export only table of contents

What would be the preferred way to export the Table of contents I use in a .tex file to a separate .pdf? Currently I have a my-report.tex file and I wish to pair the result of pdflatex ...
2
votes
1answer
658 views

Using \include with in Tabular / Array

I'm doing graphics using PStricks, writing each figure in it's own sub-file. I would like to order two of these figure vertically with a symbol in between. To that end, I've tried using a tabular and ...
7
votes
1answer
267 views

Can you put git revision information in a multifile document?

I have my PhD thesis under revision control (git), with a master file (~/Thesis/thesis.tex) using the \include command to include the chapters (~/Thesis/tex/chapter1.tex, etc). Is there a way to ...
0
votes
2answers
833 views

relative paths don't work without absolute path

I'm trying to automate pdftex to generate docs. I'm in some kind of hell where TeX assumes people want to use absolute paths or the working directory. I have the file main.tex. It imports several ...
3
votes
1answer
179 views

Autoinclude files

In my previous question I asked about templates. I got quite a cool answer, thanks! There is code like \long\def\FourierIntroduction{Content} In say the file Fourier.tex. What I would like is that ...
4
votes
1answer
201 views

A variant of \includeonly

Is there a way to have pdfLaTeX emit separate PDF files for each \included file, and somehow massage the \include/\includeonly mechanism so that when using the \includeonly command those files are ...
5
votes
1answer
213 views

inputting a file not from a subdirectory

I apologise if this question has already been addressed. Say I have a set up like this: I have a main folder in which I have both preamble.tex and a folder sub_1. In sub_1, there is another folder ...
6
votes
1answer
145 views

Table including rows of a master table

I have a big master-table* containing reference items and that is a simple cross-project database of such items. Now I'd like to include in different documents parts of this master table and select ...
3
votes
1answer
181 views

Set width of text (included from external file) only - keep rest of page as is

What I want I have a document that includes text from several external .tex files. These files can contain \section{} commands or \begin{quote} environments. Furthermore, I use the lineno package to ...
10
votes
2answers
261 views

Large document edited by a dozen people

We, a team of 12 people, plan to write a 50 pages paper. The paper will be divided into chapters. Usually, no more than 2 or 3 people will work on a given chapter. Having one large file will create ...
5
votes
2answers
1k views

Beamer, gastex, and include images

My goal is to have an image created with gastex and include an image (a png,jpg,pdf,.. image) into the gastex one. For example, draw an automaton with a smiley picture in a state. I've read around ...
2
votes
2answers
371 views

Disable including of system files [duplicate]

Possible Duplicate: How can I safely compile other people's LaTeX documents? I've got a Linux server that is rendering LaTeX documents, I want to disable the access of LaTeX to system ...
6
votes
3answers
665 views

Does LaTeX have to reprocess included files that haven't changed?

I have included several .tex files (they do not contain the header code like documentclass, begin and end document, etc). When I include the file using \include everything works. But if I recompile ...
9
votes
3answers
624 views

Open included files in emacs+AUCTeX

When working with emacs+AUCTeX I would like to consider a project with one main.tex in which you have many include's. Is it possible somehow to open the included files from within the buffer where ...
8
votes
2answers
224 views

What is the recommended practice for making multi-article publications with LaTeX?

I would like to migrate the process of preparing a scientific journal at our department from MS Word to LaTeX. There is already a document class that could be used for individual articles. However ...
1
vote
1answer
3k views

How to insert one latex document into another.

This is probably online but I am not sure how to word the search. I have a long latex document, and it is getting messy editing it, is there a way to split the chapters into separate latex documents ...
0
votes
1answer
273 views

Compiling Master and Individual Child documents with correct pagination

I'm using a master document by including the child documents with \include{} command. I can compile the master document to get the big document with all child documents included. I wonder how to get ...
8
votes
2answers
1k views

“Reference does not exist” warning with \includeonly

I am in the process of writing my thesis and am using the \include command to separate the files. But when I use the \includeonly command to select on the current chapter which has references to ...
5
votes
4answers
1k views

How to make “\input” in a “\include”-d file use the correct current path?

I'm having a master file let's say test.tex and also some folders sub1/ and sub2/. There is also a TeX file in each of them: sub1/sub1.tex and sub2/sub2.tex. In the sub1/ and sub2/ are also some ...
7
votes
1answer
315 views

First chapter appearing before first line in table of contents

I have a table of contents in my memoir book. I want there to be one line for each chapter, in addition to headings for each set of similar chapters. For some reason, the line for the first chapter ...
11
votes
2answers
3k views

Changing the working directory when including files in a subdirectory

I'm working on a mathematics magazine that involves multiple articles from different authors. I would like to give each article a sub-directory in which I can store all the relevant files - .tex, ...
0
votes
1answer
201 views

Can't include child document in subfigure

I'd like to save the PSTicks code for my images in seperate files and then include them with \include{image.tex}. This works fine with normal figure floats. But when I use subfloats, I get the error: ...
6
votes
4answers
542 views

Latex not data driven enough, Embed XML+XSLT?

Ok, so I've been using Lyx for about a year now. I haven't really dug too deep in to the LaTex/Tex side of things. I've a little more experience with XML + XSLT. It has a nice seperation of Data from ...
2
votes
1answer
156 views

Automatically copying over files required to compile a tex file

I want a command which takes as input, a tex file, and a list of directories. It should (recursively) identify any files the tex file depends on (\include or \includegraphics) and copy them into the ...
1
vote
0answers
118 views

Splitting a big document into several output PDF files [duplicate]

Possible Duplicate: Keep chapter number of chapters inserted with \include Can one TeX file output to multiple PDF files? My document structure has: 1 file with preface; 12 individual ...
0
votes
0answers
94 views

TeXnicCenter does not compile a document [duplicate]

Possible Duplicate: How can I fix the error “GUI framework cannot be initialized” with TeXnicCenter and MiKTeX? I checked the net, but haven't found a solution so far. I'm using ...
1
vote
1answer
209 views

Getting \includeonly functionality with import package

I had problems compiling with the \includeonly \include system since I had images in the document form different subdirectories. For example the main file would be at /Main/MainFile.tex and the ...
1
vote
0answers
168 views

Managing Included Footnotes in oolatex/htlatex/tex4ht [closed]

I'm being diligent and doing all my work in LaTeX, unfortunately my supervisor prefers his work in Word for review. The easy way (or so I thought) was to use oolatex / tex4ht to convert my nice latex ...
6
votes
1answer
3k views

How does \include work in terms of preamble? And is \input better?

When you have different files; say different chapters of a book, that are written in separate Tex files, all having their own preamble packages and document class options, how does it work when you ...
6
votes
1answer
786 views

import input pgfplots with relative paths

The package import makes it posible to \input (and \include) a .tex document which itself \input (or \includegraphics etc.) stuff using relative paths. I was hoping that this also would work with the ...
3
votes
2answers
208 views

Including full-fledged files in a single document [duplicate]

Possible Duplicate: Make a .tex file that combines complete .tex documents in subdirectories I have a couple of files, which were initially intended as stand-alone documents. But now I wish ...
-1
votes
2answers
2k views

Page number is reset to 0 with \include command

I am writing a lengthy document that I have divided in chapters. Each chapter is in a separate file which is called from the master file by means of the command \include. The problem is that every ...