{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
1answer
6 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
14 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
44 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
18 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
20 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 ...
1
vote
1answer
21 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
56 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
29 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
32 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
36 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
24 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
44 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
21 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
40 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
36 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
22 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
28 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} ...
4
votes
1answer
63 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
65 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
37 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
124 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
26 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
48 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
50 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
127 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
43 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
66 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
71 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
82 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
50 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
101 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
87 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
49 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
106 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
48 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
84 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
22 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
57 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
99 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
59 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
69 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
35 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
82 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
57 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
50 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 ...