{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.

learn more… | top users | synonyms

2
votes
2answers
23 views

\input with wildcards (regex) in the file name

I would like to \input all tex-files in a certain directory starting with "prefix", in alphabetical order. Something like \input{prefix*tex} would be nice, but it doesn't work. Is there some ...
3
votes
0answers
20 views

How to import multiple fragments of file labled with the same label?

I want to make include of labled part of file. I need something like catchfilebetweentags but with the support of multiple usage of the same lable. Catchfilebetweentags include just the first ...
2
votes
1answer
27 views

Automated plotting with \input inside \addplot

I'm trying to draw some figures with externally generated data. I'd like to draw a simple line inside a tikzpicture using pgfplots like so: \documentclass{article} \usepackage{pgfplots} ...
3
votes
1answer
31 views

Define path for packages in the LaTeX file (analog of \input@path or \graphicspath for \usepackage)

How to specify path for additional packages in the LaTeX file itself? For graphics, you use \graphicspath{{a}{b}}, and then \includegraphics{file} finds b/file.pdf. EDIT: it should be ...
3
votes
0answers
44 views

Including chapter as a separate TeX file

I am trying to include a separate TeX file that will contain the text of a chapter, however when I try to point the main TeX file to the chapter TeX file, there is an error which claims to not be able ...
4
votes
2answers
44 views

Add version number to document from file

I have been going crazy looking for a solution. Essentially, I need to add the version number of the document somewhere on the title page. What I want to do is have a file such as version.tex which ...
1
vote
1answer
36 views

How to input text from a file

I need to do the following: I have a file A which consists out of short fragments of text: Text 1 Text 2 Text 3 Text 4 I have another file file B in which I need to input ...
1
vote
2answers
101 views

Split thesis chapters into separate files for compilation speed

I am writing a thesis using a template similar to this template. The main file (dissertation.tex) uses \include{} to include each chapter. I have a large chapter (over 60 pages with 70 images) that ...
1
vote
0answers
16 views

Error after inputting frmttable stata table

I am using the Stata user written command frmttable to create journal-like tables and to write them to LaTex. When I use the command \input{... .tex} the table is displayed like I want it, but LaTex ...
1
vote
2answers
56 views

Input a tex file in my document, but it's not placed well

Recently, I input a .tex file (just name it as table1.tex, which contains a table I needed in my paper) in my main document, but it's not placed well, I want it be in the middle, but it's on the ...
3
votes
1answer
40 views

eplain macros in CWEB

I would like to use eplain macros in a CWEB program, but eplain and cwebmac seem to conflict in their PDF support. Specifically, they both define \ifpdf. The cweave program turns the code below ...
0
votes
0answers
36 views

Listings tcbinputlisting

This is a follow up question. Have a look at my comment on the answer to this one: Listings: line number separator rule How do I use the input and the environment of tcolorbox? I have created a ...
1
vote
1answer
94 views

package inputenc error : the keyboard character used is undefined

I have a simple text line that I get the above error in it , I don't see anything strange in the line , shall you please help me about it ? I am sure it's not about reading the help again ! thank you ...
5
votes
1answer
36 views

What to \input and what to \include in a very large document?

I have a large notebook (~300 pages and growing at ~50 per month) with: Deep hierarchy (I use parts, chapters, sections, subsections, subsubsections and paragraphs) Document is broken into many ...
0
votes
1answer
52 views

Image File Not Found in LaTeX

I am trying to use the includegraphics command alongside a custom command to include an image in my PDF file, however I'm running into an issue where LaTeX can't seem to find a file that clearly ...
1
vote
2answers
38 views

Include/input every subfile from a subfolder

Our chemistry teacher gave us a collection of vocabulary cards which include every term we should be able to explain (looking forward for the final exams). Because just having those cards doesn't help ...
9
votes
2answers
73 views

Workaround to make catchbetweenfiletags work with lualatex

I recently discovered that a basic example of the package catchbetweenfiletags doesn't work with lualatex (while it works with pdflatex). What follows is the MWE. Do you know if there is workaround ...
1
vote
0answers
46 views

Unwanted line break after \input{} [closed]

I have two tikz / pgfplots figures that I'm including in my document va two calls to \input: \input{file1.tex} % There seems to be an unwanted line break after this \input{file2.tex} I can't have ...
3
votes
1answer
69 views

Using latexmk with multiple tex files in the directory

edit solution to compile : latexmk -pdf mainfile.tex I have left this example up as it might contain language used by others unfamiliar with this area :) At the very least it provides a Minimal ...
0
votes
1answer
61 views

\input can't find file (nested directory structure)

I have the following directory structure in my project: main.tex LaTeX mypackage.sty content chapter2.tex figures LaTeX figure.tex In main.tex I input content/chapter2.tex. ...
3
votes
1answer
38 views

Reusing the same tex files in different base files

I have a number of .tex files containing sections which are \input{} into a large document. I'd now like to create an "excerpt" document that includes only a subset of these sections. The problem is, ...
1
vote
1answer
43 views

Including a file with relative path

I'm trying to include a file whose path relative to the main tex file is ../folder/chapter.tex. I tried \input{../folder/chapter.tex} but it doesn't work: I get an error of file not found. I'm ...
1
vote
1answer
89 views

Latex Macros: Local Variables and Path Names

I initially have a group of TeX codes that looks like so: paper.tex assignment.tex Where paper.tex is the main TeX and takes in the assignment.tex file and adds it in there. The assignment.tex is ...
1
vote
1answer
40 views

How can I use relative paths?

I want to add a table from a separate tex file to my document. I get an error saying the file vr_sets.tex is not found, when I do this in Chapter2/chapter2.tex: \input{tab/vr_sets} This also fails: ...
4
votes
3answers
75 views

How to randomly input a specified range of files?

The LaTeX file below outputs the numbers 1,2...,20, in natural order \documentclass[12pt]{article} \usepackage{multido} \begin{document} \multido{\i=1+1}{20}{\i\ } \end{document} The output is ...
0
votes
0answers
19 views

Is there a file path behaviour fixup

I have the following structure: In main file \input{figs/figure.tex_t} In figs/figure.tex_t: \includegraphics{figure.pdf} This results in build failure, since \input does not affect the current ...
2
votes
1answer
34 views

Issue with \scalebox, \makeatletter, and \input

A colleague of mine had a LaTeX-specific issue for which I did not exactly know the cause of the issue. I have distilled a Minimal Working Example to illustrate the issue. Originally my colleague had ...
3
votes
1answer
92 views

Is there a way to limit the scope of the Table of Contents (\tableofcontents command)?

Question If I have a document with multiple tables of contents, can I limit the scope of a toc sections are added and reset the toc? Situation I have a document made up of 10 languages. (using ...
1
vote
0answers
54 views

The blank page between last chapter and list of symbols

I have problem with blank page but the answers I've found here didn't work. I have found two (unwanted) ways how to get rid of the page (under the code): \documentclass[12pt]{report} ...
0
votes
1answer
65 views

Why cannot I input a tex file to the main tex file?

I want to insert a old tex file to the new tex file which I'm currently working on, I made it like this: however, it always has error, such as ./1.tex:1:LaTeX Error: Can be used only in ...
0
votes
0answers
34 views

Child Documents have different sectioning levels than Master Document. How can I incorporate?

I have three Lyx documents I would like to insert into a Master Document as Child Documents. However, the child documents begin with a Chapter. I need them to begin with a Subsection in the Master ...
2
votes
1answer
78 views

Place circuit figures side by side in tabularx environment

My MWE, \documentclass[a4paper,11pt]{book} \usepackage{tabularx} \usepackage{tikz} \begin{document} \begin{enumerate} \newcommand{\OOO}[4]{% \begin{tabularx}{\linewidth}{@{}X@{}l@{}} \textbf{A)} #1 ...
0
votes
0answers
20 views

Forbid building a file when it's not used in \input [duplicate]

I have two files, main.tex and chapter.tex, organized as follows: %main.tex \documentclass{article} \begin{document} \input{chapter} \end{document} and %chapter.tex \section{Hello world!} $2 + 2$ ...
5
votes
0answers
56 views

distribute contents of two input-files to left and right pages

Is it possible to import two tex files with \input and to have the content of the one file be always on the left page facing the content of the other file being always on the right? The page numbers ...
0
votes
1answer
24 views

showlabels package and segmented document

I have a segmented document, namely I import packages through \input{Preambule}. However, the showlabels package does nothing when called in the Preambule file, but works when called in the main. ...
0
votes
0answers
42 views

Character escaping in \input{|“command”}

This includes two main questions: A)Which characters are forbidden in between the quotes (" ") of an \input{|"command"}? B)How can those forbidden characters be escaped so that they, infact, can be ...
1
vote
1answer
114 views

How to set \input global directory to \graphicspath?

tI have Latex template to which I pass parameters using Pandoc. One parameter is $logopath$ where all the graphics are located and I'm able to set graphicspath properly, no problem. ...
3
votes
1answer
69 views

How to manually number Chapter number when using \input?

I am writing my Thesis using the memoir class. To keep my main .tex file fairly short I use the \input command to compile the chapters. This also helps when I only want to send a chapter on to my ...
0
votes
1answer
115 views

Replacing placeholder text in LaTeX \input file

I am using the Dia graphics editor and exporting my diagrams to TikZ code. I am trying to address Dia's inability to easily typeset formulas e.t.c. by using LaTeX for this part. Unfortunately that ...
2
votes
1answer
125 views

What is the most practical method to write a book of math or physics problems?

My main problem is the following. I would like to put the problems and their solutions together into separate input files. In the source code I would like to switch easily between two modes. In mode 1 ...
0
votes
0answers
29 views

How to load input file with given starting string but unknown end?

In the directory of my latex source there are input files: input_01.tex, input_02.tex, etc. It is very easy to load them with a for cycle. But how to load them if their names are: ...
0
votes
0answers
49 views

Eliminating white space after input generated in Stata

I have a question about an extra white space that is appearing after I use \input to call a file. I'm not sure if this is relevant, but the file I'm inputting is a table generated by the esttab ...
3
votes
2answers
107 views

“Runaway argument?” error with \NewEnviron

I have two files. Basically, the main file just loads the environ package and inputs the secondary file. The secondary file creates an environment that basically does nothing, and creates one instance ...
7
votes
2answers
296 views

Input/Output primitives of TeX

I'd like to write some simple macros for handling things like cross-reference, to use them in plain TeX. (I know there are already macros devoted to this, like the ones present in Eplain, but I would ...
0
votes
0answers
22 views

Standalone package installation [duplicate]

I want to include a table in a tex file and I get this error: ! LaTeX Error: File `standalone.sty' not found. Type X to quit or to proceed, or enter new name. (Default extension: sty) Enter file ...
2
votes
0answers
65 views

Newgeometry changes all document

I am trying to set different margins for some pages of my Thesis. Essentially, I want some pages to have larger margins, since they contain big tables. I use the \input command to include big Tables ...
0
votes
0answers
75 views

Including Mathematica Code, in book type document

I want to include some Mathematica code in my tex file. For that I'm using this solution. As an example: \documentclass[12pt,a4paper]{book} \usepackage{graphicx} \usepackage{bm} ...
3
votes
1answer
101 views

Using \newcommand to display user input that may contain special characters that need to be escaped

I don't know much about LaTeX right now, but I need to be able to use it to generate dynamic PDF documents using C#. For the most part, everything is cool and works the way I want it to work. ...
3
votes
1answer
47 views

How to pass parametres to an external file included by `\input{<filename>}`

I have a class file to set up agreements. I want to define a command that choose boilerplate text to include using a parameter pass a parameter to the included file to run a test and choose correct ...
1
vote
2answers
166 views

\input with undefined environments

I am trying to assemble my thesis with the standalone package. I am attempting to input my old LaTeX document, lna_achemso.tex, into thesis.tex. The standalone package works well when both documents ...