{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
0answers
28 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
29 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
59 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
15 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 ...
0
votes
1answer
16 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
81 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
26 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
53 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
27 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
68 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
19 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
54 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
19 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
30 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
53 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
56 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
79 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
115 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
37 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
82 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 ...
6
votes
2answers
233 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
21 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
44 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
56 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
59 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
41 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
94 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 ...
2
votes
1answer
76 views

Combining LaTeX files with different formatting

I am trying to compile a teaching portfolio of various LaTeX files. I have a main file and want to call the other files while keeping the formatting of the other files. I do want to put my name in the ...
1
vote
0answers
120 views

Texmaker bibtex works with \input not with \include

I use bibtex 0.99d with Texmaker 4.3. I have a multi .tex file document with the main document using \include{} for chapters. The bibtex configured as bibtex build/%.aux doesn't work. However when ...
0
votes
0answers
36 views

pgfgantt: how to trim the bars to canvas start and end date

Work can sometimes become pretty complex and involving. When having different sub-Projects going with different start and end date, i found it a good idea to modularize my ganttcharts and use ...
0
votes
0answers
29 views

Integration of tex-file into another tex-file but with separate titlepage and bibliography

I am writing my cumulative PhD thesis and need to integrate the already written papers into my PhD main file. I need the following things: the page numbering to continue throughout the whole PhD ...
3
votes
1answer
99 views

Using \newcommand, \input and \includegraphics

I am writing a paper that includes simulation results from performing a number of trials of an experiment. Each of the output figures (.pdfs) I produce includes the number of trials in the filename ...
4
votes
1answer
25 views

Combining collcell with input

The following code works perfectly: \documentclass[12pt]{article} \usepackage{tikz} \usepackage{collcell} %The min, mid and max values \newcommand*{\MinNumber}{0.0}% \newcommand*{\MidNumber}{0.5} % ...
2
votes
0answers
35 views

Using titlepage.tex in the beamer

test_title.tex {\begin{titlepage} \begin{center} % Upper part of the page. The '~' is needed because \\ % only works if a paragraph has started. ...
0
votes
0answers
61 views

Generate only aux file for external files

I use an external document by both \input-ting it and cross-referecing labels. It looks a bit like this: \zexternaldocument*{external} In picture \ref{external-link}, you see ... \input{external} ...
4
votes
2answers
108 views

Using \input{} inside caption

I am wondering why I am getting errors when I try to add a caption to table using the \input command. A minimal example is as follows. The file cap2test.tex can be any text file. E.g., mine contains ...
3
votes
1answer
104 views

Undefined control sequence in input file (with \citeauthor and \citeyear)?

I have a main.tex file which is including other tex files in order to have a better overview over my file. Here is how the main.tex looks like: \documentclass[a4paper,10pt, twoside]{book} ...
4
votes
1answer
175 views

Can I pass LaTeX commands to latexmk instead of a filename?

This is a follow-up to How can I automate the workflow for producing multiple versions of a document? Here is toy example of my problem. I want to automate the generation of two slightly different ...
0
votes
0answers
50 views

Grandchild files?

I am using \input to include the various parts of a paper (literature review, research design, analysis, conclusion), each of which are a separate file. I also have subsections within some parts, ...
4
votes
2answers
50 views

list processing for file to input

i would like to create a 'list' of file names at arbitrary points in a document and use that list in the appendix to load these files. i understand that there's a generalized concept of a list in TeX ...
3
votes
3answers
91 views

\input{} as argument for \inputgraphic{}

I got a question very similar to this post (\includegraphics{\input{|shell command}}) which unfortunately hasn't been really answered. The aim is to make a command that invokes a python script to ...
5
votes
3answers
72 views

How can I get pgf's foreach to iterate over the contents of an input file

I would like to write something like: \foreach \myline in {\input{filehandle}} {\dosomethingwith\myline} If I have an outside_file.tex: this, is, the content, of, a file and then try to pass it ...
0
votes
1answer
28 views

Adding title pages into document with \input

The code below works if I do not include \input{ChapterHeading.tex}, but I would like to include this if possible? \documentclass{article} \begin{document} \input{title.tex} \tableofcontents ...
0
votes
0answers
44 views

paths when using \input

I tried the following: \chapter{Chapter One} \input{C:/Users/ocuk/MyDocuments/Introduction/Introduction.tex} I have already renamed "My Documents" to "MyDocuments" but is still doesn't seem to ...
4
votes
3answers
311 views

How to merge several tex files so that they have one table of contents/List of tables & figures

I have three chapters which I combine into a thesis using pdfpages: as shown in this link Merging several papers This gets me 95% of what I need the only thing I still need is a table of contents ...
1
vote
1answer
72 views

Including files from google drive

Does someone knows how can I include a file from Google drive? Something like \input{http://adress_to_myfile_at_GDrive.tex}
1
vote
1answer
39 views

How to get numeric bullets in a Master document in LyX which contains input Lyx documents

I want to create a master document in LyX. From there, I want to input (using the meaning of input as in LyX) 4 different LyX documents. Each one of these other LyX documents contains a list of ...
6
votes
2answers
190 views

How to automatically include several text documents into a LaTeX document?

I have several .txt or .dat files, whose names are of the form: dn-ddmmyyyy.txt. For instance: d0-01021989.txt d1-21021989.txt d2-15021994.txt d3-12121996.txt d4-14032014.txt d5-22022035.txt ...many ...
6
votes
1answer
195 views

modular chapters of a dissertation

I have several different chapters I would like to include into a dissertation. Each chapter is a standalone paper and has its own directory structure (figures, tables, etc.). I would like to retain ...