{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

4
votes
0answers
50 views

Reference non-included chapters in large document

I have a large document that contains many different chapters which reference each other. The body of the main latex file looks something like: \maketitle \tableofcontents \include{chapter1} ...
9
votes
1answer
282 views

What are your best practices to compile only a part of the document or presentation (or how do you prepare the big ones)?

I see that there a number of questions (A, B, C, D, E) on best practices, none of them answer the issue I am going to talk about. We all need to prepare large documents (or slides) from time-to-time. ...
5
votes
2answers
168 views

Is there any way to shift two \includegraphics images? Having trouble with \begin{figure}

I am trying to put two images into my latex document. I want the format to be 2 (a) Text text Image Image Text text When I do the following %2a \item Here are the histograms of M and A values. ...
1
vote
0answers
38 views

How include a Feynman diagram in a beamer presentation? [duplicate]

I have a bunch of Feynman diagrams constructed with "feynmp" that I would like to include in a beamer (presentation mode). I know Tikz works but then I have to redraw each and every diagram from ...
12
votes
2answers
344 views

How can I easily use the same preamble on all my documents?

I use multiple computers (Mac and PC), so creating a path (e.g. \input{c:/folder/Preamble}) won't work. I really want to assign a URL (in Dropbox) to the file and input the file via the URL, but I ...
1
vote
2answers
52 views

How should I add a file in my LaTeX document?

I am creating my BE project report using LaTeX and in that I have to add my sponsorship letter. Is there any solution to do this?
10
votes
1answer
326 views

Refsection and \includeonly warning

I'm using biblatex with a biber backend to create a cumulative bibliography, subdivided by chapter. My (simplified) main file (main.tex) is: \documentclass{book} \usepackage[refsection=chapter, ...
3
votes
1answer
191 views

Create one presentation out of several presentations?

Is there a way to combine several Beamer presentations into one big presentation? E.G.: If I have two files a.tex and b.tex which are both presentations, can I compile them into one big presentation? ...
1
vote
1answer
101 views

Include vs Input in my case

Suppose you have two fully finished thesis, with their own bibliography and their own appendices. When I include one into the other, there is (obviously) some interference between the two different ...
4
votes
1answer
98 views

Resume option in enumitem with \includeonly

If I use \includeonly to include file foo2.tex, \begin{enumerate}[resume] does not resume the numbering of the last enumerate environment in file foo1.tex. What I've done is to run all parts, see ...
4
votes
1answer
153 views

Putting the \chapter in main .tex file or inside included files?

My question is this: What is the usual way of making chapters when working with large .tex files? Do you put \chapter{Chapter 1} inside the main .tex file, or in the included files? What is the ...
1
vote
1answer
395 views

A question on tikz/pgf externalization, standalone, and includeonly for compiling large document

I have a goal to build an efficient compiling environment to build large documents. The requirements are these: Use tikz/pgf to draw many figures; Use \includeonly to build only a portion of the ...
2
votes
1answer
229 views

How to integrate an subtitle into TABLE OF CONTENTS?

I have a problem with a book I am writing. Here the facts: I am basically working in one tex.file let's call it mainfile.tex, where I want to include my other tex.files! I have a Layout.file, where I ...
2
votes
1answer
373 views

Preventing images from floating out of position

I am using includegraphics to place images. These are basically answers to questions, therefore I would like to images to appear immediately below the question label. However, I the images just keep ...
6
votes
1answer
337 views

Include a file passing a parameter

Is it possible, while including a file, to pass some parameters to that file and get included file rendered differently depending on those parameters? My particular case is, I have two documents, ...
4
votes
2answers
3k views

Blank pages after \include in LaTeX report class

I'm writing my thesis as several separate chapters and incorporating them into one .tex file. Some of the chapters are pdfs of articles, and they are simply added to my master.tex using \input. ...
2
votes
1answer
388 views

Including graphics in modular documents [duplicate]

What is the right way to include graphics when you are creating a modular document? My directory structure is as follows: /root --report.tex --mystyle.sty --/tex ----/literature ------literature.tex ...
1
vote
1answer
170 views

Outsource some text fragments

I have to type many books in Latex, where some chapters are quite similar to each other. My idea was to do one chapter in a directory and outsource the differences in a subdirectory where the main ...
3
votes
1answer
405 views

No citations/bibliography processed/produced when using \include

I use TextMate 2 to write my LaTeX documents. I've noticed that when I use \include to add chapters, my citations don't process, whereas when I use \input, they do. I would like my document to have ...
1
vote
1answer
293 views

\paragraph & \label{}

I am working with about 4000 aphorisms and this is the way I structured my document. I created 4000 sections in one document and named it "aphorisms" i.e. \section{aphorism - 1} \label{1.1.1} ...
3
votes
4answers
1k views

TexMaker - working with multiple tex files, autocomplete is not working

Background: The document that I am currently writing is getting pretty big, so I decided to split it. I've tried \include and \input commands, but the problem still remains to be solved. I have ...
3
votes
2answers
498 views

\pgfplotstableread and subfiles

Is there a way to use a folder structure with subfiles and \pgfplotstableread? I have the following structure: main.tex \documentclass{article} \usepackage{pgfplots} \usepackage{subfiles} ...
0
votes
2answers
244 views

How to include tex files

Is there any way that I can add different .tex files (From different folders) into another folder's .tex file? I meant that all of the .tex files will be fine and separated and I just need to ...
4
votes
1answer
344 views

subimport and includeonly

Say I have a document structured as follows. main.tex + ch1 - ch.tex - s1.tex - s2.tex + ch2 - ch.tex - s1.tex - s2.tex Here, *.tex are LaTeX ...
3
votes
1answer
3k views

How to include files in subfolders

I have arranged 700 individual files in 18 different folders, as shown in the attached image. This was open source project to get it typed page by page. The number of pages varies for each folder. ...
0
votes
0answers
33 views

Include subsections depending on variables/ifthen [duplicate]

I am making a template for several books. I have a mainfile which includes the .tex files for my chapters. For each book, some chapters are always almost the same except for a few subsections. How ...
5
votes
1answer
148 views

\includeonly not including parts correctly because of _ in the file name and breqn

I am trying to use \include{...} and \includeonly{...} to structure my thesis and faster compile the document. As long as I only use \include{...} everything works fine. But once I try to ...
0
votes
1answer
356 views

Issues when including a tex file [closed]

I have this without any issues if I use it alone. However if I call it with input or include I get this Why?
2
votes
2answers
486 views

Journal asks me to combine Latex files into single file

I am writing an article consisting of multiple sections. For each section I more or less have a separate tex file, which are included in a main file. The journal I'm submitting to now asks me to ...
0
votes
0answers
81 views

Text in included PDF diagram is not shown, only lines [closed]

I want to include a PDF in LaTeX with: \begin{figure} \includegraphics[width=\textwidth]{image.pdf} \end{figure} The image.pdf contains graphical elements like boxes or lines and text in these ...
1
vote
1answer
165 views

toc not build correctly when using include

I have a project with lots of large files that is not working correctly. It is to large to bugfix here, but perhaps I would know were to look If I learn the cause of some odd behavior in a simpler ...
2
votes
1answer
242 views

Word count several files in LyX

I want to perform a word count on my LyX document. The problem is that I include several files within my main document main.lyx include file1.lyx include file2.lyx include file21.lyx include ...
5
votes
1answer
99 views

Mark on document where input starts and what is the filename

I have a master document, and use many input{...} commands to compile the total document from many parts. I would like to mark on the working document, the start of each new input, and, what the ...
3
votes
1answer
130 views

Including a document into another one without redefining setting

For a publication, I have to include another publication. The second one is in English and uses IEEEtr style. I could of course compile the second one into a pdf file and include the pdf into the ...
2
votes
1answer
441 views

Include a PDF and ignore page margins?

I am writing a document using pdfLaTeX for college, and I have been supplied with a title page I need to use. I have altered the \maketitle command: \usepackage{pdfpages} \renewcommand\maketitle{ ...
2
votes
1answer
267 views

Problem \include-ing multiple .tex files

I am \include-ing multiple .tex files and I am using a package I found on the web for a one-column abstract in a two-column document (long2.sty): %% %% This is file `long2.sty'. %% %% Author: Tomas ...
1
vote
0answers
145 views

includegraphics stopped working after including another graphic [closed]

Currently using Texmaker and using this line of code: \begin{figure}[h!] \includegraphics[scale=.5]{Figures/Blah} \caption{\label{Blah} BLAH BLAH} \end{figure} Everything worked with several other ...
4
votes
1answer
1k views

pgfplotstableread fails to read the input file

I am trying to typeset two different tables in a moderately large document. The data for the tables are written as comma-separated values in two different .csv files. I am including the different ...
0
votes
1answer
231 views

newclude does not include file content

I am trying to include chapters in a document without page breaks and found the newclude package can do this using \include*, however, when I try to implement it, instead of inputing the file, I just ...
23
votes
2answers
464 views

Redefining \include

A puzzling choice made by Leslie Lamport was to define \include in such a way as to issue a \clearpage before reading the file. This has been puzzling me for sometime as it is not a very good choice ...
9
votes
1answer
203 views

Can I use \input inside an \include?

I know it is not possible to nest one \include inside another, but what about \input? Is it possible to have something like: \documentclass{article} \begin{document} \include{file1} ...
8
votes
3answers
21k views

How to shift graphics/adjust placement of figure with \includegraphics

I composed a diagram that takes up the entire sheet of paper in landscape mode, called diagram.tex (compiled it to generate pdf). I'm trying to include that into an article, but only half of it is ...
0
votes
0answers
31 views

Include separate document as is, contents and all? [duplicate]

I have to include a whole separate document (some documentation) in with my main document, meaning title page, contents, page numbers and all. This seems to be similar to How to include a document ...
4
votes
1answer
948 views

Is there a LaTeX editor capable of synctexing a live preview from an included or inputted or subfiled chapter02.tex?

As a beginner... I thought I had settled for the distraction-free Gummi; but now I'm unsure, as I gather it's not so great for larger, modularized documents, such as writing a thesis: Gummi's live ...
1
vote
1answer
1k views

How can I use \input and \include with biblatex (biber backend)?

I have a document with external files. The only reason I am using external files is to make it easier to organize my large project. I have taken a small piece of the larger project and attempted to ...
0
votes
1answer
136 views

How can I change graphics with timeout in a beamer?

Is there a way to include several graphics on the same place on the frame, but at different times? Personally, I would like to roll 3-4 pictures repeatedly changing on every, say, 10 seconds. All of ...
0
votes
1answer
462 views

TeXworks: Compile only current document with \includeonly

I have a large document with multiple parts: main.tex: \documentclass{article} \begin{document} \include{part1} \end{document} part1.tex: % !TEX root = main.tex Hello World! This way, I can ...
3
votes
2answers
298 views

Include file with preamble to another tex file

I have two files: paper.tex with text, title, and full preamble with authors and so on. It compiles successfully. The second file (B) has also a full preamble with title, authors, little text. It ...
0
votes
1answer
744 views

A question mark instead of reference number appears when \cite is in a separate file inlcuded in the main file by \include

I am using the book style and each chapter is put in a separate file and included in the main file by \include. At the end of the main file, I put the following lines: \bibliographystyle{plain} ...
5
votes
1answer
142 views

re-define \ref and \label to include source filename?

I have a set of documents each with references that look like: \ref{figure1} and so on. This is no problem when building each document separately,but creates many duplicate references when using ...