Stack Exchange Network

Stack Exchange network consists of 174 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.

2
votes
1answer
66 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 ...
0
votes
0answers
28 views

Beamer presentation with many file problem [on hold]

I have a beamer presentation made up several files: myPackages.sty for packages myDefinitions.tex for custom definitions and rules myPresentation.tex main file myFrontPage.tex with title and author ...
0
votes
0answers
27 views

Latex include sections from one latex document into another [duplicate]

I know that \input and \include commands allow you to source latex documents into another latex document. Is there a way to only include specific sections from one latex file into another latex ...
0
votes
0answers
11 views

Bibliography common for the whole thesis

I want to create a common bibliography for all chapters. The bib file is located in the main directory which contains two folders, each containing a tex file only corresponding to the chapters. In ...
0
votes
0answers
34 views

How can I include a Latex document from Jupyter [duplicate]

I need help with the following issue: How can I include a LaTeX document from Jupyter inside a another document in TeXstudio? I was using \include{latex_document} and \input, but it doesn't work.
3
votes
1answer
65 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
21 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
0answers
24 views

How to achieve partial compilation of a modular latex structure without blank pages between elements? [on hold]

\include and \input are two alternatives to create a modular LaTeX structure. \include automatically inserts a blank page, which might be undesired in some cases. There are tricks using groups and ...
0
votes
1answer
46 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
22 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
51 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
24 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
55 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
64 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
31 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
98 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
72 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
109 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
62 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
72 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
62 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
133 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
81 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
10 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
164 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
33 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
24 views

overfull \hbox at lines not in the .tex document because of \include

I get a overfull \hbox at lines not in the .tex document because I use \include to include more chapters in document. This appears for example in the \printbibliography[heading=bibintoc]. Is there a ...
0
votes
0answers
57 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
95 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
122 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
331 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
119 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 ...
0
votes
0answers
34 views

Bibliography after each chapter using `\import` (instead of `\include`)

I am writing my PhD thesis using the University of Bristol template, which can be found here. This template has one unique bibliography for the whole thesis, which is composed of several chapters. I'...
4
votes
1answer
262 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
241 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: \...
3
votes
2answers
109 views

Tikz drawing behind a picture

I'm currently learning Latex and I want to create my own title page. The purpose is to put a rectangle in the top backgound and place an image above it. But for now, the picture is under and not ...
0
votes
0answers
32 views

calling files to main document; not working

I am writting a long document so I wish to split it on different files; I am calling the file using \include{subfile} but an error message appear saying the file was not found. The file to be included ...
1
vote
0answers
42 views

Pdflatex behavior when a picture is missing [duplicate]

Say I have a simple LaTeX file to compile (missingPic.tex) but a picture is missing. The following would be a MWE \documentclass{article} \usepackage{graphicx} \begin{document} We now include a non ...
0
votes
0answers
22 views

include, input, minitoc and float [duplicate]

It does not seem to be the first time that a conflict between float and minitoc packages is suspected (see this post) but I think it is the first time that this conflict is described with a mwe and in ...
0
votes
0answers
31 views

Document from standalone chapters with figures in subfolders [duplicate]

Having written and compiled chapters in separate folders, one for each chapter, I now want to put everything together (in order to have a single table of content etc.). I know there are a number of ...
0
votes
0answers
119 views

Problem with Input and many tex files to include

I am trying to compile my PhD thesis. I have several chapters, which I add to the main tex file using \include{}. Each chapter has tables in .tex format and I import them using \input{}. I have all ...
0
votes
0answers
13 views

Documents containing multiple files, and how to cross-referencing between them [duplicate]

I am working on a very large file, and would like to split it into several smaller files (each containing its own chapter). However, I can't find an easy to understand way to do this, especially since ...
1
vote
1answer
39 views

Is it possible to use \includeonly, but display the full document?

Say I have \documentclass{article} \includeonly{part2} \begin{document} \include{part1} \include{part2} \include{part3} \end{document} Is it possible to compile only part2 by using the \includeonly ...
0
votes
0answers
45 views

Include pdf file produced no output?

This is my Latex source \documentclass[10pt, a4paper,fleqn]{article} \usepackage{pdfpages} \begin{document} \includepdf {test} \end{document}
1
vote
0answers
75 views

Duplicated Labels in included files on LyX [closed]

I'm working on a document structure template composed of several stand alone documents that can also be included in another document generating a "top level" document. The problem is that all the ...
1
vote
1answer
257 views

How to fit an inserted pdf page to the paper size disconsidering the margins?

I'm writing a document in A4 paper size with specified margins. I want to insert a pdf page from an external document. This external document page size is 13.97 x 21.59 cm. I'd like to insert this ...
0
votes
0answers
39 views

Using äöü in Document with \include [duplicate]

I would like to use the Umlaute äöü in my Document. This worked with the following lines of code without problems up until now: \usepackage[ansinew]{inputenc} \usepackage[UKenglish,ngerman]{babel} \...
3
votes
3answers
792 views

Is it possible to usepackage inside an input or include file?

In other words, Can I put the package dependencies of an included file inside the file itself? Or I must use the main file for that? I am in a situation in which I include different slides in a``main....
0
votes
0answers
23 views

Embed LaTeX document into another LaTeX document with different supporting files [duplicate]

How do I put a LaTeX document into an existing LaTeX document when the LaTeX documents have different document classes and supporting files? I have a document that summarizes much of my work on ...
0
votes
1answer
151 views

Default location for input [duplicate]

I have file structure that looks like this: images/ 1.png 2.png 3.png photos/ 1.jpg 2.jpg 3.jpg self/ chapter1.tex chapter2.tex chapter3.tex copied/ chapter1....