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
26 views

Include subitem from a file into master file

I am currently working on my resume and I am trying to make it modular. I have a content folder which has different .tex file for each section in resume such as education.tex, experience.tex, and ...
0
votes
0answers
29 views

INCLUDE Code on Web?

One can include another code as follows. \documentclass{article} \begin{document} \include{code1} \include{code2} \include{code3} \end{document} Can I let this code to include another code in GitHub?...
0
votes
0answers
17 views

Finding .pdf location from associated `included` .tex file

I am running TeXShop on a Mac and frequently find the corresponding portion of a typeset page by using an ⌘-Click in the .tex source file, as described here. Conversely, I can ⌘-Click in the pdf ...
0
votes
1answer
79 views

Trying to build a latex document with latexmk and additional tex files in subdirectory

I am trying to build a complex latex document (at least it's complex for me). The directory structure looks like this: - bat.tex - packages.tex - {other tex files}.tex - content -- {chapter folders} -...
0
votes
1answer
19 views

Using \include(only) to produce 2 pdf-s: text and references

This is what I want to do: you keep the references in the same document, but in a file included with \include. Then you can use \includeonly to produce separate PDFs, one without references and ...
0
votes
1answer
118 views

Pandoc: not using LaTeX packages

I am using pandoc to convert my .tex-file into a PDF, but my definitions are not being used. Example: \documentclass[12pt,letterpaper]{article} \usepackage[a4paper,margin=1in]{geometry} \usepackage[...
2
votes
1answer
62 views

How to import a tikZ figure which has images as dependencies?

I came up with a tikZ figure, which I have written in a file, lets call it A.tex. This figure uses image files (.jpg, ...), which are included as nodes using \includegraphics. Now obvisously, I'd like ...
0
votes
1answer
47 views

How to keep figure index number/style and \hyperref after included into another tex?

The document(supp.tex) to be included into another (main.tex) has a indexing style that start with "S": \renewcommand{\thefigure}{S\arabic{figure}} How to keep this naming style after included to ...
11
votes
1answer
1k views

Dealing with strict rules for paper submission using LaTeX

My dear LaTeX users, I'm quite new to Latex and as PhD student in Chemistry at want to prepare all my manuscripts in LaTeX even though my groups is not a big LaTeX user (I'm tired of Word). ...
0
votes
0answers
58 views

\input working but \include not showing anything

I am facing the following issue. I have a big project on Overleaf that I split into many separate files. All those files are included into the main.tex file using the \input command. After some time I ...
0
votes
2answers
29 views

The appendix word disappears from the table of contents when using \include

If you compile the following minimal example which uses the abntex2 class, which is just a wrapper around memoir class: \documentclass[ 12pt, ]{abntex2} \begin{filecontents*}{beauty.tex} \chapter{...
1
vote
0answers
19 views

Include multipages pdf as picture in the center of a a two-column paper

I have a two-columns paper in which I want to put a multipages pdf as an "image", in a sheet-wide style (that is, with the pdf contenct centered on the center of the page, and not just in one column). ...
4
votes
0answers
80 views

A version of \includeonly for \input

I have a pretty long paper that is getting sluggish to compile. Different sections are imported with \input. I'd like to have something like \includeonly but that works on \input rather than \include ...
1
vote
1answer
51 views

Eliminate the extra page after use \includepdf

I have a question. I'm writing my thesis and I use a custom cover page using the \includepdf command, then I start the document, but I think this command adds an extra blank page after using it.. ...
0
votes
0answers
32 views

recommendations for a large book with many images

I 'm writing a book with many pages (until now are 200, expected 600) and with many tikz-images. I split the book with \include and \includeonly commands for compiling speed reasons and everything is ...
1
vote
0answers
38 views

Passing parameters to \input{text}

I'd like to create an exam from several .tex files. I'd like the master exam .tex file to include (or input, etc) a file for each question. I'd like each question to list the number of points that ...
3
votes
1answer
84 views

Something like \includeonly but for \includepdf?

Let's suppose we have a document like the one below. \documentclass{scrartcl} \usepackage{pdfpages} \begin{document} \include{Text_A} \include{Text_B} \include{Text_C} \include{Text_D} \includepdf{...
0
votes
1answer
31 views

Define colors in a central file and import them to other tex documents

I'm new to LaTeX, so this might be a stupid question, but is there a way how I can define colors in one file and then use them by their name in another document? I'm thinking of something like this: %...
3
votes
1answer
87 views

Compiling problem in book class

I am writing a book and I split it in to several files using \include{} and \includeonly{} commands. The chapter "chapterThomae" has the Thomae's function from here. If I use the \includeonly{} ...
0
votes
0answers
34 views

ToC for svmult with \include

I am editing a book with multiple contributions using Springer's svmult document class. To include the single contributions into one document I am making plain use of \include{}. All goes fine up to ...
0
votes
1answer
333 views

Read file using LaTeX

Problem I am planning to read source code of a open-source project. With a (perhaps weird) habit, I often print all the source codes according to the way they are organized (in particular, the ...
0
votes
1answer
37 views

Problem with a child-document within a table

I ran into a problem with the \include/\input command. I want to generate a table based on the child document somedoc.tex, which looks as follow $$12.67$$ & $$6.18$$ & $$5.00$$ & $$60.33$$...
1
vote
1answer
58 views

How to find out the page span of a section

I have several short documents out of which I want to build a larger document, each smaller document corresponding to a section in the larger document. I want to set the footer to contain the name of ...
1
vote
0answers
56 views

include files from specific folder

New linux (mint) user, with pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian), using TexStudio (that might change) I have custom files (sty's and whatnot) in a folder that I cannot move (...
0
votes
0answers
16 views

Severals files with \include [duplicate]

Good morning. I have a directory with several *.tex files. Then I have a main file with the preamble. How can I insert in the main file all the files of the directory with the command \include without ...
1
vote
1answer
74 views

Recursively search parent directories when including/inputting file

I'm wondering if it's possible to modify the function of the \input command so that e.g. \input{macros} would work recursively. Variant 1 Check if macros.tex exists in the current directory. If ...
0
votes
0answers
37 views

xelatex option -output-directory problem with include command

My setup is texlive2019 + texstudio, compiler is xelatex, I setup "temp" folder for aux files in root folder same as main tex, use this command xelatex.exe -output-directory=temp -synctex=1 -...
0
votes
1answer
29 views

Inclusion of separate files in a main file show error for graphics

When I call two separate files(chapters) from a main file, it shows error for graphicx. Details are bellows: (i) The main file main.tex contains following contents: \documentclass[a4paper,...
0
votes
1answer
127 views

How can i remove this blank page after my list of figures?

All chapters of my work have enough text in them to fill atleast two pages, so this is not an issue, but for my list of figures, i get this empty page after wards: This is my main page: \...
0
votes
0answers
17 views

ToC as enumerated list + Separate ToC's for each \include{filename.tex}

I am hoping to accomplish two things here. The first is that I would like to have a Table of Contents that looks exactly like a typical \begin{enumerate} \item \end{enumerate} list, where each \item ...
1
vote
1answer
45 views

How to only \include as much data as fits on a single page in ConTeXt?

I need to \include data from several different files, showing the contents of each file on a separate page (e.g. file1.tex on page 1, file2.tex on page 2), but cut off any extra data if the contents ...
0
votes
2answers
108 views

How to include all files in a directory in ConTeXt?

I need to include a large number of files in my ConTeXt document: \starttext \include file1 \include file2 \include file3 \include file4 \include file5 \stoptext They are all ...
1
vote
0answers
32 views

Suggested way to embed or include an article as an appendix within another book?

I have made an scientific article using LuaTeX because I need to publish it on a journal. It's already completely written and laid out. Now, I also need to write my thesis and include the former ...
1
vote
1answer
55 views

Aligning \includestandalone{} graphs

I have these two standalone bar graphs that are identical in size, but when I \includestandalone{} them, to insert them into my main document, I can't for the life of me get them to line up. If I put ...
0
votes
0answers
27 views

Size of document changes when printed in paper, and size of PDF changes when included as is

I am using this LaTeX template for an academic thesis. I have two problems with the size of the page: When the document is displayed on a screen, it shows the normal page margins you'd expect. ...
0
votes
1answer
43 views

Problem using Part in main file while %including chapters

I am using MikTex and WinEdt on a Windows machine. I am writing a book and right now I have it structured with chapters, sections etc. I want to add parts. Here is my main file \documentclass[...
0
votes
1answer
122 views

“Run section” in LaTeX?

Anybody know of any LaTeX/TeX package or GUI that allows LaTeX script to be run in sections? I'm after a feature similar to MATLAB's "run section" feature. My LaTeX documents tend to take ages to ...
4
votes
2answers
74 views

What is the purpose of ../ in \input and \include?

I sometimes see \include{../foo} and \input{../bar.tex} in code examples online. What does the ../ means? What does it changes? What are its advantages? How is it possible to use it?
0
votes
2answers
63 views

incorporation problem in book class

I 'm writing a book and I 'm trying to incorporate the chapters that are in other tex files. I have these chapters: ch1.tex \chapter{1st chapter} \begin{examp} example1 example1 \end{examp} text1 ...
1
vote
1answer
351 views

Saving tikz figures in external file

I have several tikz figures, some of which are over 400 lines of code. This complicates my working on the main file since I have to scroll past all that code quite often so I was thinking I put it in ...
0
votes
0answers
53 views

Preprocess a .tex file and save it as a new file

I have several .tex files that I would like to share with other people. I've included in them (with the command \input) several files with macros that I've written myself. However, I would like to ...
3
votes
1answer
97 views

Include specific parts of a standalone subfile

I'm trying to compile one main file of exercises where each exercise is a standalone TeX file. standalone is the perfect package for that but it lacks the customizability to choose a specific part of ...
1
vote
1answer
106 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} \...
1
vote
0answers
62 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
131 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
188 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: \...
1
vote
1answer
61 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 ...
4
votes
1answer
120 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
526 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 ...
1
vote
1answer
40 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 ...

1 2 3 4 5 11