{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

1
vote
2answers
32 views

How can I include a new command in \input

I'm trying to variate the file name by creating a newcommand \lbname in LaTeX. by printing out \lbname, I got lo3.txt in this case, but it wouldn't work in \input command. I get an error "TeX capacity ...
2
votes
0answers
23 views

Where should I put my input files that should be accessible from anywhere? [duplicate]

I'm using MiKTeX and TeXnicCenter to compile my projects. Is there a folder where I can store all your input files which I want to include in another document, so I don't have to put all the files in ...
0
votes
1answer
23 views

Problem with graphicspath and pdf_tex

I use \input for a subsection, in which I would like to include a pdf_tex file MK.pdf_tex via \input. The pdf_tex files are in a folder /fig. If I use \input{./fig/MK.pdf_tex} it returns the error ...
0
votes
1answer
26 views

Have \input{} print the filename

I want to print the filename of the file that I'm calling (\input{file_name}). Clearly this includes the file contents but is there anyway to get the corresponding filename to print as well?
1
vote
0answers
19 views

Texmaker - nested document structure

Let's say I have a file that inputs files who input files. foo.tex: \input{bar} bar.tex: \input{baz} baz.tex: Hello World! When I am in foo.tex, Texmaker shows the structure foo --- bar ...
2
votes
1answer
23 views

How to input external file in figure caption with tufte-latex?

With the tufte-handout class, I want to insert some text in a figure caption, from an external text file generated with R. \documentclass[a4paper]{tufte-handout} ...
0
votes
1answer
25 views

Keep two inserted tables on the same page [duplicate]

I have produced two tables that when ran from the same LaTeX file are positioned on the same page, one under the other. However, when the two tables are called upon by using \input they appear on two ...
2
votes
0answers
22 views

Is there a way to input part of a file that includes sagetex?

I am trying to build a sort of jumbling program for Tex Files. Specifically I want to randomly order problems on quizzes/exams that are generated. I have gotten most of the work done, but I am left ...
5
votes
2answers
39 views

Truncate compilation of an “input” file

When writing mathematical results, I often jot down several quasi-proofs before deciding on the actual structure. Nevertheless, I like to keep these alternative sketches as a reference in case I ...
3
votes
1answer
89 views

Include .tex file from texmf folder

Suppose I have the following files in texmf/tex/latex/ myclass.cls mystyle.sty mydoc.tex What I would like to do is % file.tex \documentclass{myclass} \usepackage{mystyle} \begin{document} ...
0
votes
1answer
37 views

Footnote in input file - missing number treated as zero

Let's say I have a document Foo.tex: \documentclass[a4paper,11pt,titlepage]{article} %... %%Packages \usepackage[utf8]{inputenc} \usepackage[usenames,dvipsnames]{xcolor} \usepackage{hyperref} ...
3
votes
1answer
79 views

Outsourcing Tikz and relative paths

Summary: How do I get includegraphics to be relative to the current file, when using tikzscale? Details Similar to pmav I like to have a .tikz file which contains only the tikzpicture ...
0
votes
1answer
59 views

new \input{file} Package, Command wrapper: microtype .tex with reserved symbols

I know enough basics in LaTeX to produce a decent looking document. LaTeX makes it more difficult to NOT do that. But I don't know plainTeX or "@" and other advanced, cryptic programming tricks that ...
1
vote
1answer
12 views

File not found when importing figures produced by gnuplot (epslatex) from another folder

I have recently started using gnuplot's epslatex terminal to create graphs to a report I am writing. I have, however, encountered an unexpected problem. I usually keep my chapters and figures in ...
0
votes
0answers
18 views

Change name of table in caption and reference

I have multiple tables in my thesis with model results. I want to change these tables' names, meaning it wouldn't say Table 1 but Model 1 (also when referencing them). Also, a special table of content ...
3
votes
1answer
47 views

Splitting a class file

I am writing a class file and I use a lot of constants (length, colours, strings…) that I would like to take out of the cls file for cleanliness. I have tried ...
0
votes
1answer
40 views

epslatex tex-document faulty [closed]

I want to create a .texdocument with Gnuplot to insert in my Latexdocument with the following code reset set terminal epslatex color size 12cm, 9cm font 'Helvetica,16' set output "test.tex" set ...
0
votes
1answer
22 views

Main file setting ignored when using \include command

I want to split my tex file into several parts. When it was in the form of a single file, it compiled perfectly. After I cut out a chapter and created a separate file containing it (and imported it ...
2
votes
1answer
23 views

How can I include external macros for every line of the source code?

An answer to my last question gave a solution for hooking a small command onto line breaks in the TeX source. \documentclass{memoir} \usepackage[spacing, tracking]{microtype} \usepackage{libertine} ...
4
votes
0answers
69 views

\includestandalone cannot compile \section or \subsection commands

Main.tex \documentclass{scrartcl} \usepackage{standalone} \begin{document} \section{A} \includestandalone{Subfile} \end{document} Subfile.tex ...
1
vote
2answers
33 views

Using external inputs to be included based on \if switches

I am working on a specifications file which should be used for multiple projects. Ideally what I would like to have is a generic latex file where I can enable project specific additions, but these ...
0
votes
0answers
36 views

Input/import trouble

I've been trying to import tex-tables produced by Stata into a new document, but I keep getting an error that the imported file can't be found, even when I copy/paste the file path directly. My code ...
0
votes
1answer
62 views

Appendix will not work at all, please help.

I would like to include an appendix (just one appendix) in my thesis, following the bibliography. I am using book class, and have each chapter in a separate file. When I try to add an appendix, the ...
1
vote
0answers
34 views

Modular document compiling without some child documents [closed]

I am creating a modular TeX document with many child documents, using the \input command. After inputting the first 10 child documents, everything compiles as it should. However, after I add another ...
0
votes
1answer
50 views

Is it possible to input a file from the web

I am using PHP on my server to create a latex table from a database, which is working fine. The problem I have now is getting that into my latex document. I thought that giving it the path would ...
0
votes
1answer
22 views

Nested inputs with unwanted pagebreak

Let's say I have a document for which all sections and subsections are separate .tex-files. As I cannot nest \include, I'm using \input. \documentclass[a4paper,11pt,titlepage]{article} \title{...} ...
3
votes
2answers
41 views

How to \caption a longtable imported from a file by \input{file} and use a smaller font?

I'm generating a boring longtable from a database into a file. My goals are: Import the generated longtable into another document. The longtable data is dynamic and must be imported periodically. ...
2
votes
2answers
58 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
28 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
34 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} ...
5
votes
1answer
130 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
47 views

Including chapter as a separate TeX file [duplicate]

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
100 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
40 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 ...
2
votes
2answers
161 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
46 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
49 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
61 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
169 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
58 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
89 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 ...
3
votes
3answers
88 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 ...
10
votes
2answers
87 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
54 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
138 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
137 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
42 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
68 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
122 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 ...