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
0answers
8 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 ...
2
votes
1answer
60 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-...
1
vote
0answers
25 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 ...
4
votes
1answer
43 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 ...
0
votes
1answer
26 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 ...
1
vote
0answers
31 views

Change font size in a pdf file without changing plot size

I am trying to include a pdf file in my work, where I plotted a graph. In the pdf there is a graph and axis labels. When I am resizing the pdf to fit in my A5 latex pdf, the axis labels are getting ...
1
vote
0answers
50 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} \...
0
votes
1answer
27 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 ...
0
votes
0answers
62 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{...
1
vote
1answer
27 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....
0
votes
0answers
37 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 ...
0
votes
0answers
48 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 ...
0
votes
1answer
37 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, ...
0
votes
0answers
33 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 ...
0
votes
0answers
34 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?...
2
votes
1answer
41 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 ...
2
votes
1answer
51 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 ...
0
votes
1answer
52 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{...
0
votes
0answers
24 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 ...
0
votes
2answers
27 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 ...
0
votes
1answer
37 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 ...
0
votes
2answers
41 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 ...
0
votes
0answers
42 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/...
1
vote
1answer
23 views

How to include Rd2pdf latex file as appendix in document

I Have created an R package, I want to include the documentation as an appendix in my Thesis document. To create the latex file I did the following (I am partly including this to make it easier for ...
0
votes
0answers
28 views

Merging tex files to make one big pdf, but need to keep the formatting in each tex file the same

I'm wanting to merge three .tex files together in a way that allows the formatting of each file to remain the same. So I want each file to show in the exact same way as they show when I view them ...
0
votes
0answers
30 views

How to include a *.tex file in another one when each use their own classes

I have two *.tex files (let say main.tex and subtex.tex). I want to include the "subtex" in the main file. The accepted answer to this question might work but the problem is that the "...
1
vote
4answers
71 views

Writing own LaTeX templates with relative paths, difference between include, input, class

I'm working on a Windows environment with Miktex. Most my documents are created with XeLaTeX but I think my problem is not compiler-specific. I would like to create a template with all my package ...
0
votes
0answers
27 views

How can we eliminate the extra space in the pdf when including two tex files such that they are continuous in page? [duplicate]

I had two separate tex files ( theory.tex & molecular_dynamics.tex ) for chapter 2, where i had some written text in these tex files, and are included in a single tex file named main.tex whose ...
1
vote
2answers
65 views

Ordering and aligning graphics and text in tables

I have a very urgent matter and I've read so many threads and tried to combine the answers but nothing works or it gets much uglier... I just want to show up my figure and the text in a table in a ...
1
vote
0answers
19 views

Beamer - generate some slides separately, include them in the main file

I have a few slides that have \animategraphics in them (as a way to embed GIFs consisting of hundreds of frames). Generating those particular slides takes a long time, and it's not really necessary if ...
0
votes
1answer
53 views

Forward search from Emacs (AUCTeX) to Okular with \include not working

OS: Debian bullseye (testing) Emacs: 26.3 Okular: 1.11.1 AUCTeX: 12.2.4 .emacs (Emacs settings): (custom-set-variables ...
0
votes
1answer
48 views

Make inline questions that are later printed again as flashcards

I am working on a handout in the tufte-book document class but wanted to make flashcards inline that are both printed within the text in one format (front and back side-by-side to show what you are ...
0
votes
0answers
18 views

Path dependency of template

I created a template (myclass.cls), which includes another file (mystyle.sty) using the input command. Then I used the template in a document (mydocument.tex). The directories are as follow: mypath/...
0
votes
0answers
16 views

Specify additional include directories within a tex file [duplicate]

I want my document to use class files, style files or bibliography style files located in some subdirectory of my TeX document's directory. Sometimes I can sorta-kinda- use, say, \documentclass{...
1
vote
0answers
24 views

TexStudio adding custom include command

When TexStudio sees \include command in the source file it will add the included file to the document structure pane. I am using leadsheet package which defines \includeleadsheet command. Is it ...
0
votes
1answer
51 views

\include & graphicx

I use \include and I have the following folder-structure: main.tex Images/ Subfiles/ Subfile-1.tex Subfile-2.tex Where and how should I put my images, because the code doesn’t compile. I’ve ...
2
votes
1answer
64 views

Reftex and \include*{sections/sec} - how to get it to work?

I have a multi-file LaTeX project with statements like \include*{sections/sec1}. Reftex does not find the labels defined in the included files. When switching to the unstarred variant \include{...
0
votes
0answers
35 views

Incorporate .html plots

I am attempting to incorporate some .html plots into a LaTeX or LuaTeX document on overleaf. How should I do it? Do I upload, say, data.html file onto overleaf then just \includegraphics{data.html?
0
votes
1answer
29 views

How to make an included PDF page linked to an url?

I have a PDF title page included in the main document, using the pdfpages package, as shown in the MWE code below. I know that all the hyper links included in that page are lost in the process. But ...
1
vote
2answers
46 views

How to total item counts in multiple enumerate environments, respecting \include

I'm writing a book in which each chapter ends with a list of numbered exercises. I would like to persuade LaTeX to count the total number of exercises in the book, to be referred to with \ref or ...
1
vote
0answers
27 views

URL links not working from included PDF title page

I included a separate PDF page as my main front page for a large LaTeX document. That PDF page was made with LaTeX using the hyperref package, and contains several linked URL elements (source of ...
0
votes
0answers
26 views

Figure not showing in multi-file latex project

I am trying to include a figure in a large document. It works fine directly. But when I call it in another file using \include or \input, the figure does not show. It is a simple code as below. \begin{...
0
votes
0answers
35 views

\include chapter issue

I am compiling a manuscript and have been told to create a RootFile which compiles all the Chapters. However when I click Typeset only the 1st chapter shows - even if I rearrange the order, only the ...
0
votes
1answer
72 views

Using TikZDevice and APA 7 class: Including a figure note for a plot (including the plot by include())

I am using TikZDevice for including a R-Plot in Latex, using the APA7-Documentclass. The documentary of the APA7-Class lists \figurenote{} as "Formats figure note when placed after \...
0
votes
0answers
36 views

LaTeX citation with included chapters

this is my first time asking a question at StackExchange and my first time using Latex to write something so pls excuse some form mistakes. I already invested a lot of time to find my mistake while ...
1
vote
1answer
39 views

Why \include doesn't include a file with space in the path name?

What is wrong with \include{"./folder/another\space folder/lastfolder/file"} that the file is not included while \input would include it?
0
votes
0answers
25 views

\usepackage{pdfpages} ruins my TOC

I have a bunch of sections and subsections all in my TOC but when I use \usepackage{pdfpages} to include some files in the appendix section it removes all the subsections. Screenshots:
0
votes
0answers
25 views

Continuous \inputlineno for documents with \include and \input

The \inputlineno counter represents the current line of code in the .tex file. \the\inputlineno returns said number. If, however, I have a document which \includes or \inputs other .tex files, \...
0
votes
0answers
32 views

How to Create My OWN LaTeX Template Document? [duplicate]

For almost every document that I type in LaTeX, I start by opening one of the most recent documents that I made, copying all of the packages and pre-set commands, and pasting them in the new document. ...
0
votes
0answers
15 views

How to include multiples tables sequentially in the same page

I'm struggling on how can I include a lot of tables sequentially. I'm using \foreach \i in {1,...,23}{ \include{filename\i} } but using the code above, I got one table per page and I would like ...

1
2 3 4 5
12