Questions tagged [input]
{input} is about the \input command which makes LaTeX process the content of a given file basically the same way as if it would be written instead of \input.
230 questions
1561
votes
7
answers
1.0m
views
When should I use \input vs. \include?
There are two different commands to incorporate another file into the source of some document, \input and \include. When should I use one or the other? What are the differences between them? Are there ...
47
votes
4
answers
37k
views
How to make the main file recognize relative paths used in the imported files?
I'm currently using doxygen to generate some documentation for a project,
and doxygen generate some LaTeX code that then can be used to generate a nice pdf.
But let's say I would like to write ...
118
votes
11
answers
28k
views
Replace \input{fileX} by the content of fileX automatically
Suppose I have a document with multiple include or input statements
\input{fileA}
\input{fileB}
etc.
Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the ...
65
votes
4
answers
21k
views
\input only part of a file
I would like to include part of the contents of a .tex file into a different .tex file. I don't have the option of modifying the file to include. The file to include may change so simply copying and ...
65
votes
2
answers
21k
views
Can a default path be set globally for \input{...} akin to \graphicspath{...}?
For the graphicx package, we can use \graphicspath{...} so that we can directly use filenames in the argument of \includegraphics{...}. Can a similar thing be done for directly using filenames in \...
45
votes
6
answers
14k
views
Create list of all external files used by master LaTeX document?
Is there an easy way to create a list of all external files (complete path) which are used by a LaTeX document (and its "sub-documents") by
\input
\include
\includegraphics ?
(may I have forgotten ...
23
votes
1
answer
2k
views
Tabs in output file written by xelatex and pdflatex are different
I'm trying out pgfplots with gnuplot to generate the data. This works by having pgfplots write some stuff to an external file, run gnuplot on the file, and then use the generated data to plot the ...
8
votes
1
answer
1k
views
Misplaced \noalign error with \input in a table after the 2020 fall LaTeX release
With the 2020 fall update, the behaviour of \input{} changed. Before, I would have a main latex document (main.tex) and then the table contents in another file (table.tex) . Importantly, the file ...
13
votes
1
answer
16k
views
Spaces in files names in \input or \includegraphics
I'm going crazy...
I have a file I want to include which path is C:\Users\Matthieu\Documents\Folder withOneSpace\myFile.tex.
(As you can see with the \, I'm on windows actually)
I tried the ...
64
votes
3
answers
133k
views
Include data from a .txt verbatim
I am using a finite element program that outputs data in .txt files. And I want to input these data in my LaTeX code. Is there a way to input the data files so that they appear as the program output ...
5
votes
2
answers
9k
views
Export each figure as a separate PDF-file
I am using .pdf_tex files to insert and label figures in LaTeX:
\begin{figure}
\centering
\graphicspath{{Graphics/FiltersCa/}}
\input{Graphics/FiltersCa/COMB_filter_activeZ2b.pdf_tex
}...
50
votes
4
answers
56k
views
Path to External Files in Nested \input [duplicate]
Problem
I usually load a helping TeX file that contains my customizations, e.g., usual packages, corporate standard colors, and macros for abbreviations. I want my helping file to also load another ...
40
votes
3
answers
31k
views
Splitting a large document into several files
Why is it recommended to split a large document into several parts and include them with \include? Is it only a relic of the past times when computers and LaTeX compilers were slower, or is it still ...
18
votes
2
answers
4k
views
Problems with \input{table.tex}\hline after 2020 fall LaTeX release
Since updating to the 2020 Fall release (MikTeX on Windows but also tested with TeXLive), I can no longer compile files where tables are imported from an external file using \input and followed by \...
18
votes
1
answer
2k
views
Why is \input not expandable?
In latex.ltx I found \def\input{\@ifnextchar\bgroup\@iinput\@@input} where \@@inputis expandable. I would like to know if there is an expandable version of \input.
The problem comes from an example ...