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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
21 views

Problems compiling when using \include

I decided to create an extra .tex file in my Overleaf project, called "portada.tex", where is written the cover of the "main.tex". It works perfectly, but now, when I compile the &...
user avatar
0 votes
0 answers
6 views

How to include external filenames in the TexMaker internal logger?

I am using a combination of multiple files in my latex document (glossary and biblatex). When compiling throws an error and the error is not from the main document, it doesn't give me any information ...
user avatar
  • 135
1 vote
2 answers
31 views

Add caption to figure in multicolumn

I need to add a caption to three images placed as follow: I did it by adding the caption command as you can see in the following snippet, but it doesn't work: \begin{figure*}[ht] \begin{center} $\...
user avatar
  • 115
0 votes
1 answer
72 views

`No counter 'blx@maxsegment@<number>` error with `\includeonly`

A book manuscript that I used to compile successfully, first with all chapters, and then with only a few, using \includeonly, while retaining the .aux files from the full compilation, now results in ...
user avatar
  • 2,872
0 votes
0 answers
33 views

\include tex file does not allow me to add anything else afterwards

I am trying to include two tex files at the end of my report. The first file is included as usual but anything I write after that does not appear. This is my code: \section{Code for Question 1} \...
user avatar
0 votes
1 answer
76 views

undefined control sequence in an included file

I am using TeXstudio to handle a long document organized around a main document and a series of included chapters that are separate .tex files (of course the chapter files begin with \chapter and do ...
user avatar
0 votes
0 answers
37 views

alternating page numbers in scrbook

I just realized that my document, written with scrbook does not have the page numbers on every page, and the behaviour looks very strange to me: My document is mainly made of chapters includes with ...
user avatar
0 votes
0 answers
31 views

Unwanted character when using includepdf

\includepdf[pages=1, pagecommand={\subsection{Results},\label{subsec: results}}, scale=0.9]{extras/Scoring} When using this command I get this character " at the left corner of the page. Am I ...
user avatar
  • 1
0 votes
1 answer
28 views

Including output from a read-eval-print-loop [duplicate]

I would like to include output from a read-eval-print-loop of a programming system. In my case, this would be the Poly/ML Standard ML compiler, but I guess there is a general solution for this, be it ...
user avatar
  • 747
2 votes
1 answer
43 views

lstlisting: do not tread include-file as a keyword

I am writing some C++ listings. I would prefer some more keyword highlighting (for cout, cerr, endl, ifstream, string, etc.). However, when I define string as a keyword, also the #include directive ...
user avatar
  • 43
0 votes
0 answers
50 views

Include a pdf file as Thesis Cover

I need to include a cover in my thesis. Its is a specific cover from a pdf file. Supposedly using \includepdf, the pdf should appear, but it does not.
user avatar
0 votes
3 answers
82 views

Using Latex code chunks as library - For reusing latex elements such as figures in multiple representations

In object programming languages often structs exist which help you to reuse code twice or often, but writing that code only one time. A convenient way to write Latex code if the author does not want ...
user avatar
0 votes
0 answers
28 views

cannot insert image in latex tex file code

tex code $\includegraphics[scale=0.5]{pzt_image.jpg}$ Above is the code in texmaker code. The image is in same folder and the details are also correct. in output pdf pztimage[scale = 0.5]pztimage.jpg ...
user avatar
2 votes
2 answers
99 views

How to \include files with commas in their path

I am part of a large project working with big documents (>100 chapters and ~1000 pages per document). As it stands, we input our partial files into the main document via \input. The project would ...
user avatar
  • 1,221
13 votes
1 answer
243 views

How to force LaTeX to error when an \include file is missing/misspelled?

The only file which was meant to be compiled in my Main.tex was specified by the following line: \include{transformtaion} It was compiled without any error using the following command: pdflatex -...
user avatar
  • 274
0 votes
0 answers
33 views

For my usecase, should I use \input, \import or \include command, subfile package or standalone package

I am writing a manual. The manual has a bunch of versions intended for different audience. Let's say I am writing files A,B1,B2,B3,C1,C2,C3, where B1,B2,B3&C1,C2,C3 are different versions of the ...
user avatar
  • 1,023
0 votes
0 answers
16 views

How to use import pacakge(Error:test.aux not found)import

I tries to run my latex as a project, with each section using a different text file. But I seem unable to let import command do what I want it to do. Here is the MWE: mainfile \documentclass{article} \...
user avatar
  • 1,023
0 votes
1 answer
25 views

How to prevent \include from changing the position of text in a minipage?

When I place some text in a minipage it is positioned exactly as I expect, at the very top of the minipage. When I move the text to a separate .tex file and use the \include command it messes up the ...
user avatar
  • 125
0 votes
0 answers
28 views

Tex adding information to txt

Is there any possibility to add Information to a .txt or other type of document? For example I have the following .tex \begin{filecontents*}{Info.tex} @ P & 1 & 60 & 2 & 77 \\ ...
user avatar
  • 119
0 votes
0 answers
112 views

quick tip on \input or \include?

I'd been trying to compile a pdf from a tex file, using only miktex texworks. But it turned out that the file(gutenberg 38769) was too big to be loaded at all on some devices and so I am now ...
user avatar
0 votes
0 answers
48 views

Is there an equivalent of the python 'if name == __main__.py' command in latex?

I'm busy working on a multi-document latex file. I use \include to import my different chapters into my main file, and I've defined my preamble in a separate .sty file, that I import into my main file ...
user avatar
1 vote
2 answers
93 views

Automatically composing documents from multiple text files which are not LaTeX formatted?

I'm looking for a way to create a songbook out of individual song files. Each song file is a self-contained block of text data consisting of: Song name Song author Some details (optional) Lyrics with ...
user avatar
1 vote
1 answer
74 views

Error "Extra \else" after \include file making use of vref/vpageref inside Beamer frame

Some background: I have been working on a 600 page LaTeX document (a scientific writing with a lot of math) for 15+ years. The source is trilingual (English, Norwegian and Spanish) with identical ...
user avatar
  • 483
0 votes
2 answers
75 views

Including only the calling file

I'm currently writing a large document with many included files. I'm using the command % !TEX root = main.tex at the beginning of the included files, as in the following example: subfile1.tex: % !TEX ...
user avatar
  • 6,130
0 votes
0 answers
46 views

Print file name of \include{} in the output

How to print file name that contains word in the \include{ABC-2100011} in the PDF output? Print File name: \filename ---> Output should be Print File name: ABC-2100011 Please find MWE file as ...
user avatar
  • 809
1 vote
0 answers
22 views

Incompatibility between RevTeX, \include{}, and \label{}?

I have a large project that uses the RevTeX documentclass. Sections are incorporated using \include{}. The problem is that labels are not correctly resolved (Reference `xxx' on page 1 undefined). A ...
user avatar
  • 111
0 votes
0 answers
30 views

Hide chapter's title in TOC

There is a structure of my document: \include{chapter_1} \include{chapter_2} \include{chapter_to_hide} I thought it would be a good idea to use star: \chapter*{Chapter_to_hide}, but it disable ...
user avatar
  • 135
0 votes
1 answer
119 views

Is it possible to use the LaTeX packages "subfiles" and "background"?

I ran into a problem using the packages "subfiles" and "background" in my LaTeX project. I have a main file that looks like this: \documentclass[10pt, a4paper, parskip]{scrartcl} \...
user avatar
1 vote
0 answers
132 views

Overleaf cache not working properly with `\tikzexternalize` and `\include.`

I can confirm that some figures go missing or shows up in the wrong place in Overleaf when combining \include and \tikzexternalize. I also tried the suggestion of @usr1234567 in How to externalize ...
user avatar
  • 515
2 votes
1 answer
90 views

\include pattern instead of filename

I'm fairly new to LaTeX. I am using Overleaf for my thesis, and, in order for Overleaf to display my chapters in the right order, I've prepended a number next to each of them: 01-intro.tex 02-...
user avatar
  • 153
1 vote
0 answers
26 views

Centralized Master Equation in Single File like `\cite{}` [duplicate]

Is it possible in latex to have single file like equations.tex and able to call part of it to our main.tex just like a combination of \include{} or \input{} and \cite{}? For example I have a ...
user avatar
4 votes
1 answer
59 views

Typeset chapters based on conditional settings

Problem: Currently I like to work on each chapter by using \iffalse and \fi to skip processing certain chapters. But I am interested to know if there is a way to generalize this so one or more ...
user avatar
  • 2,603
0 votes
1 answer
192 views

Add axis labels to plot from a pdf

This question is related to my latest question on how to change the font size in a pdf file, without having to change the whole scale of the figure. I am now thinking about taking only the Plot and ...
user avatar
1 vote
0 answers
69 views

When I use include I must have preamble only in one file?

I have a question. I try to include from one .tex file to another My first file \documentclass{beamer} \mode<presentation> { \usetheme{Warsaw} \setbeamercovered{dynamic} \...
user avatar
  • 111
0 votes
1 answer
33 views

Footer does not show up when including pdfs to document

I am trying to include a footer on each page that would link to the table of contents but this footer ("Contents") does not show up on pages where pdf is inserted. It shows up on pages with ...
user avatar
  • 413
0 votes
0 answers
153 views

I can't get texcount to count words from my input files

I am trying to use texcount to count the number of words in my document which is set-up in a way similar to this: \chapter{Introduction} \input{Latex_writing/Chapters/Introduction.tex} \chapter{...
user avatar
  • 1
1 vote
1 answer
32 views

How to have unnumbered chapters (included from other .tex files) in the table of contents?

I'm sorry, I'm new to latex and still have much to learn. I'm using the report document class and also openright. And this is what my "structure" looks like: \tableofcontents \setstretch{1....
user avatar
  • 37
0 votes
0 answers
41 views

Having the document structure match the table of contents when using \include

I'm a latex newbie and writing my thesis. One of the things I really like about latex is that as I add sections chapters etc... it gets included in a navigable structure that can be used to browse the ...
user avatar
0 votes
0 answers
49 views

Placing pdf documents into LaTeX

I want to include several pdf documents along my main LaTeX text, but I encountered an obstacle. When I compile, the pdf appears perfectly, but it is always placed in the next page, so there is an ...
user avatar
0 votes
1 answer
198 views

Combining Latex files with different preambles

I am in the process of writing a Python program that scrapes exam questions in tex files from a website and combines them to create a new paper. The questions are picked by random from a spreadsheet, ...
user avatar
0 votes
0 answers
38 views

Is there a way to use the alternative code for a thesis/dissertation in a certain thesis template?

Now that Adobe Flash is dead, I was hoping if anyone else discover a new way to embed a video in a .pdf file instead of a hyperlink to another file in LaTeX and I have come across this link: Media9 is ...
user avatar
0 votes
0 answers
39 views

How do I remove empty page between a chapter when include?

\let\cleardoublepage\clearpage this line of code does not avoid it in texstudion? I know that the Texstudio is a powerful environment to write a report. How would avoid black page between the chapters?...
user avatar
  • 1
2 votes
1 answer
59 views

tex4ebook subfigures: (1) side-by-side subfigures (2) styling changes when .tex inserted with \include

I'm using tex4ebook to generate an epub. I want subfigures to be placed side-by-side with subcaptions below the subfigures. I came across a couple of issues and I'd appreciate any hints for how to ...
user avatar
  • 123
2 votes
1 answer
65 views

Incorrectly ordered contents with tocloft

I am trying to add some horizontal bars to the contents of my thesis, to split it up a little. However, I am finding that the horizontal bars do not appear where I set them. As an MWE I have written ...
user avatar
  • 291
0 votes
1 answer
199 views

Have no idea how to include a tex file into another tex file

I would like to include a tex file into another tex file. However, I failed to use the \include{} command in this case. What command should I use to input the content of PR1.tex below \section{...
user avatar
0 votes
0 answers
34 views

Changing .txt data which is in parent folder through Latex

I try to use a .txt data in many different folders, so I thought It is enough to put it in the parent folder and all my Latex data can access to it and can also increment the numbers in the .txt data ...
user avatar
  • 119
0 votes
2 answers
32 views

How to use \include or \input (or another command?) to render dissertation chapters as research articles?

I have multiple "content" file that I need to pull into two different directions for two different document classes, book and article. There is only one book file, and I am successfully ...
user avatar
0 votes
1 answer
54 views

How to avoid page break when using \include? [duplicate]

I am writing a book, the format goes like this: Theory -> Answer key -> Hints -> Solutions. I have separate tex files for theory, answer key, hints and solutions. The problem is that when I ...
user avatar
0 votes
2 answers
110 views

LaTeX Import Command Error while Nesting

I am facing this issue while I am trying to use \import command from latex. I have nested document which is compiling on GitLab pipeline. My configuration uses sub-modules also. Please see the error ...
user avatar
0 votes
0 answers
44 views

Command for including all .tex files from a folder into the current file [duplicate]

What command can I write in main.tex as shorthand for "include all .tex files from a given folder". So I don't have to write a lot of \include{} commands for each file like \include{sections/...
user avatar

1
2 3 4 5
12