{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

7
votes
2answers
86 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 ...
0
votes
0answers
10 views

Include a Markdown file in a master markdown file? [on hold]

I am using R studio with markdown. I would like to include markdown file (Sub.Rmd) in a master file (master.Rmd). Is there a way to do so? Thanks for your kind help.
3
votes
1answer
39 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
40 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
19 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
39 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
44 views

Including chapter as a separate TeX file

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
54 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
101 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
20 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
35 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
52 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
36 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
58 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 ...
1
vote
2answers
38 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
50 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
28 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
69 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
49 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
40 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
59 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
88 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
42 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
34 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
71 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
28 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
51 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
34 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
40 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
74 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
56 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
70 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
34 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
91 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
109 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
101 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
78 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 ...
1
vote
2answers
166 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
167 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
30 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
47 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
76 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
90 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
59 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. ...