{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
1answer
63 views

Does LaTeX support including a specific part of an \input, like a specific environment and ignoring everything else? [duplicate]

Can LaTeX natively include only specific expressions from an input file (ignoring the rest)? I am not sure how to best word my question. Below is an example of what I'd like to do. Situation For ...
0
votes
1answer
25 views

Listings moredelim / morestring options doesn't work with included file

I don't know how to fix the double quote character (’"’) with the listings package when the code is in a separated file. Listing get this as the beginning of a string but it is not. Many thanks to ...
0
votes
1answer
37 views

Forcing a single column, full width table

I am writing multiple documents like paper.tex, report.tex, book.tex etc. They all have different formats like single/double column, landscape/portrait etc. All these (wrapper like) document tex ...
0
votes
0answers
28 views

Weird first page with cryptic content [duplicate]

TeXworks 0.4.5 r.1280 (MiKTeX 2.9) portable typesetting with pdfLaTeX Hi all, I have a weird problem with my latex document. Everything was fine so far until today a new page appears before my ...
2
votes
0answers
31 views

Trace errors when using \include

I'm writting my thesis and decided to divide my main .tex file into different files containing the chapters using \include. However, when I compile my main file the error logs don't take me to the ...
0
votes
1answer
21 views

Nested inputs with unwanted pagebreak

Let's say I have a document for which all sections and subsections are separate .tex-files. As I cannot nest \include, I'm using \input. \documentclass[a4paper,11pt,titlepage]{article} \title{...} ...
1
vote
1answer
36 views

How to adjust float options of Tikz picture

I am trying to include several Tikz figures drawn in R, below eachother in a Latex file. It keeps including the figures at the top of new pages. Is there an easy way to make this work? The simple ...
2
votes
1answer
57 views

Include section of existing drawing in a new Asymptote file

Experts, I have created a drawing using Asymptote. Now I would like to include a specific section of this drawing in a new .asy-File to make it larger and add some additional lines. Is there a smart ...
7
votes
2answers
106 views

Insert a tex file pdf inside another tex file dynamically

Suppose that both tex1.tex and tex2.tex are two independent tex files in the sense that both compile and generate a pdf file independently. I would like to include the output of tex2.tex in the ...
4
votes
1answer
48 views

Is there any way to read arbitrary part of external tex file?

I am not expert in tex programming, sorry if I am asking a simple question. I need to include an external tex file in a master one but after excluding its preamble and the commands of \begin{document} ...
1
vote
1answer
51 views

Include tikz pictures in main script

I include all my tikz figures with \includestandalone{filename}. I am using \tikzset after \begin{document} in all my tikz figure files but I use \usetikzlibrary in the header (outside of ...
1
vote
1answer
23 views

Use default message if file is missing

There is very simple and fool-proof solution for default actions if included file is missing. It is using \IfFileExists{IncludedFile}% {% routine if file exists }% {% routine if file does not exist ...
0
votes
0answers
40 views

File structure/organization for book

I need to write a short book divided in 3 big chapters and about 40 short sections (for a maximum of a couple of pages each). Dividing the book in 3 files seems very messy, but dividing it into 40 ...
3
votes
0answers
47 views

Including chapter as a separate TeX file [duplicate]

I am trying to include a separate TeX file that will contain the text of a chapter, however when I try to point the main TeX file to the chapter TeX file, there is an error which claims to not be able ...
0
votes
0answers
28 views

Inserting an image and forcing it between paragraphs [duplicate]

I am inserting a Figure named Figure1 inside a document in TexMaker using the code below: \begin{figure} \begin{center} \begin{tabular}{|c|}\hline \ \hspace{10cm}\ \\ \\ ...
0
votes
1answer
64 views

Entire PDF document as appendix

I'm writing a report, where I need to include some large PDF files as the appendix. I tried using this command: \includepdf[pages={1-},scale=0.75]{myfile.pdf}[H] In the pdfpages package, but it ...
1
vote
2answers
124 views

Split thesis chapters into separate files for compilation speed

I am writing a thesis using a template similar to this template. The main file (dissertation.tex) uses \include{} to include each chapter. I have a large chapter (over 60 pages with 70 images) that ...
2
votes
1answer
25 views

Include figure relative to path of package

For my thesis I'm using a given package from my university (titlepage.sty). Inside this package a figure is included VUB_logo. However, I wanted to put the packages I use in a folder named packages ...
1
vote
0answers
41 views

compilation error

for the following code: \documentclass[12pt]{report} \usepackage[utf8]{inputenc} \usepackage{setspace} \usepackage{graphicx} \include{\frontmatter/title} \include{\frontmatter/abstract} ...
2
votes
1answer
60 views

Include PDF without space on the left

I'm trying to include a PDF and then add text to it using overpic: \documentclass[a4paper]{article}% ensure identical page size \usepackage[abs]{overpic} \usepackage{tikz} \usepackage{geometry} ...
5
votes
1answer
43 views

What to \input and what to \include in a very large document?

I have a large notebook (~300 pages and growing at ~50 per month) with: Deep hierarchy (I use parts, chapters, sections, subsections, subsubsections and paragraphs) Document is broken into many ...
3
votes
1answer
59 views

Multiple versions include of a chapter

I would like to include a chapter two times, a short version in the main part and a long version in the appendix. Everything works fine except the labels and references. Is there a way to redefine ...
3
votes
3answers
71 views

Include/input every subfile from a subfolder

Our chemistry teacher gave us a collection of vocabulary cards which include every term we should be able to explain (looking forward for the final exams). Because just having those cards doesn't help ...
4
votes
2answers
53 views

How to provide short path for graphics in included file?

I am creating a research diary using LaTeX that has input files stored in folder A Diary | |+ Diary.tex | |+ January | | | |+ January.tex | | | |+ Figures ...
1
vote
0answers
29 views

Include pdfpages and unwanted scale

When I include a pdf file with the command \includepdf[pages=1]{file} from the package \usepackage[final]{pdfpages}, I obtain a scaled document (in a smaller height). How can I obtain rigorously the ...
3
votes
1answer
102 views

Using latexmk with multiple tex files in the directory

edit solution to compile : latexmk -pdf mainfile.tex I have left this example up as it might contain language used by others unfamiliar with this area :) At the very least it provides a Minimal ...
0
votes
0answers
20 views

How can I include files like biblatex.sty biblatex.def biblatex.cfg etc. in a .tex file? [duplicate]

Hi I'm using LaTeX for documentation in a programming project. On my computer I can create the PDF from my various .tex files, but the build server has some problem, because he doesn't have all files ...
0
votes
0answers
40 views

Including graphics error

I am trying to add an immage to my text with the command: \includegraphics[height=19.8truemm]{kuleuven} But each time I get the error that the file cannot be found. As I have practically no ...
0
votes
1answer
52 views

Chapter not being included

Hello I am trying to write my thesis to include different chapters my master tex document looks like this: \documentclass[11pt a4paper]{report} \usepackage[left=4.0cm, right=1.5cm, top=1.5cm, ...
1
vote
1answer
48 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
1answer
66 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
112 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
47 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
20 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
39 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
77 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 ...
1
vote
0answers
33 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
57 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
35 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
51 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
93 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
57 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
85 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
35 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
109 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
145 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
115 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
84 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}... ...
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 ...