{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

1
vote
1answer
26 views

How can I use relative paths?

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex: \input{tab/vr_sets} This also fails: ...
1
vote
0answers
12 views

Multiple source document with htlatex and tex4ebook

How should I compile a document with chapters on different tex files using tex4ebook? The output of 'tex4ebook main.tex' has valid title page, index, empty chapters and valid bibliography. Structure ...
4
votes
2answers
46 views

Using ranges with pdfpages fails

The documentation says the following: E.g.: pages=- will insert all pages of the document [...] however, when I put \includepdf[pages=-]{foobar.pdf} in my LaTeX doc (compiled w/ xelatex), I get ...
2
votes
1answer
31 views

parameter passing to \addcontentsline

According to this thread Include a file passing a parameter it should be as simple as \def\thetitle{longtitle} \include{text} It actually works pretty well but not for the table of contents. in ...
2
votes
0answers
45 views

Error Extra \else \include after using bibtex for each \include using chapterbib [duplicate]

Thanks first of all for the previous times that I have already found answers to my problems without having to post anything! My problems is as follows: when I compile my main file only after I have ...
0
votes
0answers
19 views

Table of contents inside an included PDF [duplicate]

I've got some problem with LaTeX right now, well to be honest it's not really a problem and I'm not even sure that it is possible but I would like to be able to do it. Basically, here is my LaTeX : ...
1
vote
0answers
23 views

Defining path to file in separate directory in include statement

I have a main document that includes a list of 'include' statements. Could someone please help me with defining the path to the files that need to be included. My directory structure is: Book Title ...
2
votes
2answers
63 views

Include chapters using foreach

I have seperate .tex files in a directory named chapters in the main directory. I would like to include/input those. After some research a solution like the one below could be possible. Unfortunately ...
0
votes
0answers
24 views

`include` (and `input`) with part of a file name

Is it possible to use the \include and \input commands with only part of a file name like it is possible to skip extensions and use relative directories? I.e. \include{Part1} \include{Part2} ...
1
vote
1answer
27 views

troubleshooting about \include

I have probleme with \include as follow \documentclass[12pt]{amsart} \usepackage{amsfonts} \usepackage{amsmath} \usepackage{amssymb,amsmath,epsfig,graphics} \title{Title} \author{My name} ...
0
votes
0answers
27 views

Child Documents have different sectioning levels than Master Document. How can I incorporate?

I have three Lyx documents I would like to insert into a Master Document as Child Documents. However, the child documents begin with a Chapter. I need them to begin with a Subsection in the Master ...
2
votes
1answer
28 views

Includeonly for files in subdirectory

I have a book and I have all my chapters stored in a subdirectory chapters. How do I use \includeonly on those files? My current attempts have not been working. MWE: \documentclass{scrbook} ...
2
votes
1answer
41 views

(TeXShop) Magic comment in a subfile that runs the main file but including only this subfile

Disclaimer: This question is a bit specific to TeXShop because I have to help somebody who's using this editor I don't know as I don't own a Mac. Nevertheless, it could be helpful to others. The aim ...
5
votes
0answers
54 views

distribute contents of two input-files to left and right pages

Is it possible to import two tex files with \input and to have the content of the one file be always on the left page facing the content of the other file being always on the right? The page numbers ...
1
vote
1answer
51 views

rotate text in multirow table of figures

My question is similar to this one: How to rotate text in multirow table? but my table is composed of individual .eps files (which are all the same size, created in a different program) via ...
1
vote
0answers
30 views

Include file with prefixed labels

Say I \include A.tex and B.tex in main.tex. Say A.tex has something labeled in it, \label{a}. Then I can just reference this in B.tex as \ref{a} without any problem. I don't want to be able to do ...
1
vote
1answer
63 views

build folder usage issues

I'm writing my manuscript using TeXlive and Texmaker. I have different folders for chapters, images and frontmatter (including title, declaration, acknowledgements, ...) to organize a little bit the ...
0
votes
1answer
50 views

\includegraphics in a0poster

\documentclass[a0,final]{a0poster} %%%Load packages \usepackage{multicol} %3-column layout \usepackage[left=3cm,right=3cm,bottom=0cm,top=0cm]{geometry} %Reset margins ...
2
votes
1answer
76 views

Managing multiple tex files using \include and ../

I'm working on a larger thesis assignment, and I've been fiddling around with my various tex files in different folders, trying to make it look nice and orderly. Atm. my structure is similar to this: ...
2
votes
1answer
59 views

Combine .tex files from separate folders

How to combine tex files in different folder into single. I would like to combine all the chapters which I saved in separate folder. Each folder contains \documentclass[10pt,a4paper,final]{report}... ...
0
votes
0answers
53 views

How do I parse and include a custom text file

I have a text file containing my own structure and keywords. Does LaTeX have methods to parse(with rules given by me) a file like this before including the result? Here is an example of what I want: ...
1
vote
0answers
33 views

When including a graphic using text in LaTeX, “fi” and “ff” are not printed after compiling. How can I change this? [duplicate]

In my study, I include PDF graphics as images in order to receive high resolution graphics. These PDF graphics are initially created in Power Point, printed as PDF there, and then included in the ...
1
vote
2answers
94 views

\input with undefined environments

I am trying to assemble my thesis with the standalone package. I am attempting to input my old LaTeX document, lna_achemso.tex, into thesis.tex. The standalone package works well when both documents ...
1
vote
0answers
118 views

Texmaker bibtex works with \input not with \include

I use bibtex 0.99d with Texmaker 4.3. I have a multi .tex file document with the main document using \include{} for chapters. The bibtex configured as bibtex build/%.aux doesn't work. However when ...
0
votes
0answers
29 views

Integration of tex-file into another tex-file but with separate titlepage and bibliography

I am writing my cumulative PhD thesis and need to integrate the already written papers into my PhD main file. I need the following things: the page numbering to continue throughout the whole PhD ...
0
votes
1answer
34 views

Header graphic dissapear from first page when using \thispagestyle{plain} in the second one

I'm using the fancyhdr command to incorporate a header in the first page of a document. This is the code I wrote: \thispagestyle{fancy}\hspace{0.2cm} ...
3
votes
1answer
74 views

Create a template

Is it possible to create a template where you can import your preamble as well? How? So you have your main document which looks like: \include{preamble} \include{A} \include{B} \include{C} And are ...
2
votes
1answer
64 views

include a preamble in a standalone

I need to make many images wich uses the same preamble. To make those images, I use the document class standalone. My aim would be to create a file preamble.tex and to include it in the other files, ...
2
votes
1answer
46 views

How to use \include with \tableofcontents in memoir class

I have a document using the memoir class in which I have broken up the chapters using \include. Inside those chapters, I use the \chapter{...} command, which prints the chapter at the correct place. ...
0
votes
0answers
30 views

include A3 into A4 document troubles

I know there is lot of topic about including A3 into A4 documents. But I decided to make my own environment to try to understand how it can work. I create one new environment to include A3 landscape ...
2
votes
1answer
94 views

latexmk -outdir with \include

I'm trying to get latexmk to compile a .tex file with external \include{...} references to a specific build directory so I don't pollute my directory tree with .aux files, etc. However, it appears ...
0
votes
0answers
48 views

Include Sphinx-generated documentation in master file

I'm currently working on a project (for university) that will be documented with LaTeX. About one third of the documentation will be about a python module that I've written. I'm looking for a clean ...
0
votes
0answers
19 views

\include{} with picture environment takes whole page [duplicate]

Octave gives me the possibility to safe a figure as .tex document, which then basically just includes one big picture-environment that includes the blank figure and adds the labels. It looks like this ...
4
votes
3answers
307 views

How to merge several tex files so that they have one table of contents/List of tables & figures

I have three chapters which I combine into a thesis using pdfpages: as shown in this link Merging several papers This gets me 95% of what I need the only thing I still need is a table of contents ...
3
votes
1answer
62 views

How can I quote (small) parts of my document in itself? [duplicate]

In my research I have large pieces of text of which I like to quote some parts of it, without having to copy/paste and have duplicate pieces. I know I can do that with \include, but the need to have ...
3
votes
3answers
84 views

Saving the state of the typesetting engine

When editing a long document, it is tiring to recompile all of it. Usually you do not want a print-ready output, only a locally meaningful output, that you correctly entered formulae, your sentences ...
6
votes
2answers
190 views

How to automatically include several text documents into a LaTeX document?

I have several .txt or .dat files, whose names are of the form: dn-ddmmyyyy.txt. For instance: d0-01021989.txt d1-21021989.txt d2-15021994.txt d3-12121996.txt d4-14032014.txt d5-22022035.txt ...many ...
6
votes
1answer
194 views

modular chapters of a dissertation

I have several different chapters I would like to include into a dissertation. Each chapter is a standalone paper and has its own directory structure (figures, tables, etc.). I would like to retain ...
7
votes
2answers
227 views

Adding styling to LaTeX produced by MATLAB

MATLAB has a function called publish which has the option to export a script and its output as LaTeX. It looks quite nice, although there are a few additional things that I would like to do to the ...
1
vote
1answer
83 views

How to force section to not go to new page in article

I have a document like this: \documentclass{article} \begin{document} \include{sect1} \include{sect2} \end{document} Both files sect1.tex and sect2.tex begin with \section{...}. The output pdf ...
2
votes
1answer
97 views

MiKTeX Options submenu is greyed out in WinEdt 6.0

I have included the package mtpro2 in my latex document using \usepackage[lite,subscriptcorrection,slantedGreek,nofontinfo]{mtpro2} as recommended here. The main reason is that I need very wide ...
2
votes
1answer
37 views

Malfunction when loading preamble code using \include{}

I am trying to load a piece of code using \include{file}. This code uses tikz to create fancy chapters. The weird thing is that when I load my code, the \chaptername gets cut(after running the code ...
2
votes
1answer
114 views

How to use reftex in multiple files

I tried some solutions but fail so far. I divide large data into multiple files and then include all of them in main file. I used emacs24. Here is general of my main.tex file \include{chapter1} ...
0
votes
0answers
39 views

Exclude citations from other chapters, but make cross-references work

I'm writing up my PhD dissertation, and I tend to compile each chapter separately. Each chapter is in a separate document, and is included in the main LaTeX file. I use \includeonly to only include ...
1
vote
0answers
26 views

Rendering a pdf in a different location, from a standalone tex-file that combines several chapters [duplicate]

I've seen a lot of these questions, but in my search I haven't managed to find an answer to my problem. I am building a directory system for simple use, where I have divided the first folder into ...
2
votes
0answers
58 views

Can “insert reference” function searching external file in texshop?

I am using Texshop under Lion. I am writing a thesis which contains many chapters as separated files and I use "include" in the main file. In Texshop, one can directly insert reference by ...
0
votes
0answers
21 views

undefined control sequence for \subfigure [duplicate]

using TeXShop in OS X Maverick, a simple subfigure script is returning "undefined control sequence". Although I can bypass it and still generate the image-included pdf by typing "s" to "ignore all" ...
2
votes
2answers
131 views

answers sometimes in test, sometimes in answer file [duplicate]

So this is going to sound strange, but I'm wondering if there is a clean way to do this. By the time I have a project done, I will have written two .tex files: one with questions, and another one ...
3
votes
0answers
52 views

Including fully functional .tex documents [duplicate]

I'm trying to combine four separate .tex documents into one big "book" with each document as a chapter. I use the import package. This is essentially what my main document looks like: ...
0
votes
0answers
69 views

tikz picture inside main code or include tikz output

Suppose that someone wants to include a tikz picture inside a LaTeX document. Suppose that a simple tikz code is the following \documentclass{standalone} \usepackage{tikz} \begin{document} ...