Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [include]

{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.

0
votes
1answer
10 views

Add an indent to appendix line in ToC for included appendix

I asked how to add an indent to a toc line for an appendix here. In my real structure I am including the appendices: \documentclass{book} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \...
0
votes
0answers
29 views

How to structure my thesis

I am currently writing my BSc thesis and want to use LaTeX. I am using Texmaker on Windows and have several problems that occured. I want to use BibTeX for my literature and \bibliographystyle{...
0
votes
1answer
31 views

fancy header not working with \include

I am using fancy header to insert the chapter title in the header of each page, as shown below. It works properly for the table of contests and lists of figure/tables, but when it comes to the ...
4
votes
1answer
130 views

Why does the \includeonly command not \stepcounter the chaptercounter for omitted chapters?

I'm a big fan of the \includeonly command, to keep pagecounts intact while only printing specific chapters. But I'm wondering why chaptercounters are not stepped in a scenario such as this one: \...
0
votes
1answer
32 views

How do I tell XeLaTeX where to find the .bbl files?

I am trying to compile a multi-chapter dissertation. I am using chapterbib so I run bibtex on each chapter. xelatex dissertation bibtex chapters/chapter1 bibtex chapters/chapter2 xelatex dissertation ...
0
votes
0answers
16 views

Partial compilation of part of a document without breaking the page

I'd like to avoid recompilation of unchanged sections of my documents. However, I don't want new sections to be on new pages. Suppose this is my document: I only want the second section to be ...
4
votes
1answer
57 views

Build one single .tex file from a .tex file with multiple \input

Edit: I think this question is sufficiently distinct from this question because I am specifically asking for a method within TeX itself, i.e. not running some Perl script separately to do this, but ...
2
votes
1answer
92 views

Texmaker (& similar) - How to \usepackage{svg} especially on Mac OS

I'm using TexMaker on Mac and try to include some svg's to my document. I think my question is very similar to this one svg package failing to find svg files But I can't solve my problem. I already ...
0
votes
1answer
18 views

Custom page numbers fail on last page of included chapters

TL;DR when I include an appendix into my master report, the custom page numbering fails on the last page of each appendix. How can I fix it? I am creating a long report with appendices. I want ...
2
votes
1answer
139 views

Include a text file as a paragraph

I am trying to input a text file to latex. However, this text file contains special symbols like % and & which causes issues. I do not want to import the file as verbatim, it should be imported ...
0
votes
0answers
23 views

Is it possible to `\include`/`\input` a text depending on the language set on babel or polyglossia

I would like to know if it is possible to conditionally require, in a given document, the inclusion of a chapter or the input of a particular piece of text, depending on the language set on babel or ...
1
vote
0answers
35 views

Weird chemfig 1.33 behaviour with polymerdelim

I observed a very weird behaviour regarding chemfig and the polymer delimiters. I have created a minimal working example: main.tex: \documentclass[12pt,a4paper,ngerman]{article} \include{preamble} %\...
1
vote
1answer
57 views

question - answer system

Please excuse my poor English. I have a question regarding a "question - answer" system in latex. I want to create a quiz with 1000+ questions/answers like this: Question_1 Question_2 ... Question_n ...
0
votes
1answer
42 views

conflict between \include and the \hyperref package

In the MWE below, an error is thrown by the command sequence pdflatex mwe ; pdflatex mwe when mwe.tex is \documentclass{amsart} \usepackage{hyperref} \includeonly{} \begin{document} \include{refFile} ...
1
vote
0answers
45 views

Using \include with file names that contain symbols and spaces

I need to include a chapter of a book if the name of the folder and the file contacting in is chapter1 and chapter1 respectively. I just do \include{chapter1/chapter1} and everything is ok. The ...
1
vote
1answer
47 views

Table of contents of included pdf

How can I do a table of contents, list of figures and list of tables of included pdf \documentclass{memoir} \usepackage{pdfpages} \usepackage{hyperref} \usepackage{cleveref} \begin{document} \...
12
votes
2answers
553 views

How do I create a PDF document whose height exactly matches the contents?

I have a document that is about 1/3 to 1/2 page long. I want to compile it to a PDF document. That PDF document will be included in another document, so I want it to be short - it should contain only ...
1
vote
2answers
50 views

I'd like to put a full pdf page in my document, but it doesn't work!

i've got an issue. I'm writing a LaTeX document, i would like to make a page of my final document as a pdf file (that is a text). I searched on this site but no one of the existing topic helped me. I ...
0
votes
0answers
30 views

One latex document to another latex document referencing

I have a latex document named L1. The content of this document to another latex file(L2). Is it possible to referencing L1 to L2 such that all the content of L1 will come to L2. Example: Content of ...
5
votes
1answer
164 views

Same absolute path works for \input but does not work for \include, why?

If I use the command "\input{filepath}" then the file is perfectly printed in "main.tex". If I only change the command to "\include{filepath}" I get the following error: I can't write on file `...
0
votes
1answer
36 views

Override macro with \renewcommand{} multiple times from different files - toc addcontentsline

Intro While trying to get my head a round my current problem (To add a line to the toc, depending on the comparison of the values of two makros/commands: please see here: Add tocline depending on ...
0
votes
1answer
50 views

Entire chapter as subsection

I have a document with 3 chapters. I would like the chapter 2 - Dolor, to appear as a section 1.1 in the table of contents, instead of chapter 2. I have separate file for each of the chapter and it ...
2
votes
1answer
71 views

bug in frankenstein?

I cannot get includedocskip in the newclude package to work. As far as I can tell, it requires the allocate option, but this option loads allocate.sto, which uses an InitWheel command that has not ...
3
votes
1answer
70 views

Possible ways to split up and then recombine lecture notes

I'm teaching Math Methods of Physics this fall, and want to provide written notes after class for the students to use. I'd like for them to be individual lectures, but combinable into one document ...
2
votes
0answers
22 views

arranging the sections with \include [closed]

As we know, it is possible to use \include{chapter name} to have a more convenient manuscript. The question is, is it possible to order the sections by meant of \include too?
0
votes
1answer
77 views

Include fails with error “can't write on file aux”. Included file does not have the .tex extension

I'm trying to migrate my LaTeX documents to better work with Git. One step in this is separating them out, which given the length is a good idea even if I wasn't using Git. To this end I am trying ...
1
vote
1answer
24 views

Store chapter name from unincluded part (potentially in part's aux file)

I use \include to insert parts into a large document. Some of the parts contain chapter declarations, others only sections. I would like to make the current chapter name available in the daughter ...
1
vote
1answer
111 views

Use glossaries-extra + bib2gls with secondary files via \include instead of \input

Explanation I've been writing a larger document for a while and used makeidx to produce my index. However, this seemed to be not flexible enough, so I swapped to the more sophisticated glossaries-...
0
votes
1answer
37 views

LYX : import blank file.lyx with a preamble

I have some problems using LyX. So I have a blank custom cover page but I use the preamble to put some LaTeX code and do my stuff (write text, import picture, title, author, etc.). I have my main.lyx ...
0
votes
2answers
64 views

LaTeX starts new page after using 'includegraphics'

I placed a picture in a new chapter but LaTeX puts it on a new page. But I want to have the picture under the topic of the chapter. My code looks like this: \tableofcontents \listoffigures \chapter{...
0
votes
1answer
228 views

include sql files and use minted for highlighting

I write in latex a documentation about a database project. I would like to include some sql files in my latex document and highlight this files with minted. My initial approach is the following, ...
0
votes
1answer
43 views

Embed two {Standalone} in {article} with /minipage

I have to embed four documents{standalone} in another document{article}. \includestandalone is not working for me. (I have the data in the same folder, therefore the /./) I tried to include with this ...
1
vote
2answers
248 views

Section on one page with includepdf [landscape]

I want to include a PDF in landscape (its a table in PDF form) with include PDF. I want a section on the same side, but when I use this command, the section heading is not on top (of that landscape ...
3
votes
1answer
106 views

Remove file path from lstinputlisting

I would like to achieve the following ornament: For the university we have to convert code into a PDF. To make this easier I use the following macro: \newcommand{\includecode}[2][code]{\...
3
votes
1answer
215 views

How to make document background non-transparent?

I've created a tool to include PDF documents on a larger page to provide margins and a grid to facilitate commenting and markup. I'm happy with the results except that the grid background behind the ...
0
votes
2answers
135 views

\input \include

I'm writing a thesis but not modular style. I simply write everything in one big document and want to change it. But there is a problem. For sections mustn't I start with begin{document} again? (...
1
vote
0answers
90 views

blank page after includeonly

Following this previous post regarding a conflict between \includeonly and the hyperref package, here is another problem I found with \includeonly. With the following mwe,a first compilation ...
0
votes
0answers
75 views

includeonly and page numbering

I am writing a fairly large documents that contains different chapters included in the main .tex file using the \include command. I find this to be practical as I can then compile a single chapter ...
0
votes
1answer
142 views

Does splitting tex documents into multiple ones improve build performance

I've seen this mentioned often, for example, in several answers here. But I have my doubts. Do LaTeX engines (latex/pdflatex/xelatex/lualatex) do incremental compilation at all? Besides, even if they ...
0
votes
2answers
97 views

Trouble compiling locally due to \include{directory/file.text}, but works in browser

I am struggling to compile a file locally either in TexMaker or Atom that nevertheless compiles fine on ShareLatex.com (where I originally made it). My file is of the form... \documentclass{article} ...
0
votes
0answers
11 views

gaps in path when using \input \include mac (question/answer) [duplicate]

I had a problem at re-directing the path to a folder with some tex files inside to read. I use \input for that. I could not find an answer for this in the forum so far. the command for changing the ...
4
votes
1answer
177 views

Creating the same counter in multiple files

i am trying to create a counter (or better multiple independent counters) for a project with multiple people working on it over a long period of time. The tex files are structured as Main file ...
0
votes
0answers
41 views

latex \include but no pagebreak after chapter title

I'm writing up my PhD thesis as a report and need to use \include so that I can have separate bibliographies after each chapter using package chapterbib. Is there a way to not have a page break after ...
0
votes
0answers
70 views

Common graphics file folder for multiple articles

I prepare my presentations for various lectures and typically, they share the graphic files (.png). What is the best way to store them once and have access from several .tex files in different folders?...
1
vote
1answer
164 views

Undefined control sequence in pspicture

I tried to include an *.eps (saved as *.tex with another program) \documentclass[a4paper,11pt]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{ngerman} \...
0
votes
1answer
227 views

Problem with include command and bibtex in beamer [Metropolis theme]

I have a problem with references in beamer (metropolis theme) and the use of include commands. Indeed, my presentation consists of several files. Each file is included via the include command. The ...
2
votes
1answer
1k views

How to \input or \include files from different directories?

My folder structure looks like that: While putting the chapters into the base file Report.tex works completely fine I get trouble when I try to insert the graphics into the chapters. For example: ...
0
votes
0answers
186 views

setkeys option not working in achemso package for separate chapters using \include{}

I am writing my thesis using \documentclass{book}. I am using achemso package to include references for separate chapters using \include{chapter-name}. However, I want to make two changes in the ...
6
votes
1answer
386 views

Insert only half a pdf page

I'd like to include papers of mine which can easily be done with the pdfpages packages: \usepackage{pdfpages} \includepdf[pages=-]{mypaper.pdf} However, my thesis has an A5 format. Which means that ...
2
votes
1answer
458 views

include docx in document

Straight to it. Is it possible to include a docx file the same way that you would include a pdf file? So instead of \includepdf[pages=1-]{somepdffile.pdf} I could just write something like: \...