{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

0
votes
1answer
31 views

Side by side figures from tex input

I have some plots obtained through gnuplot with epslatex terminal. The output is in two files for each plot: (1) foo.eps and (2) foo.tex. I want to put these plots side by side in a tex document. But ...
4
votes
1answer
69 views

How to automate introduction of section titles in book

I'm using Spundun's method for automating inputing the entries in a diary, in turn inspired by Peter Grill (Using LaTeX to keep a diary), and I would like to add section dividers by year. This should ...
2
votes
0answers
39 views

Insert pgf with referenced png file from a different folder

I'm trying to insert a pgf file that I made with matplotlib. This file references to a png file (since I inserted a png figure in the plot). When I put the png in the same folder than my tex file, ...
1
vote
0answers
34 views

Insert bibtex file B in bibtex file A

Scenario: I manage citations with JabRef (inside Docear which sadly currently does not support the import of .bib files) and want to easily import citations from Zotero into the Jabref library. I'm ...
4
votes
2answers
106 views

Saving language preferences for inputing source code

Using the listings package, I am trying to input a Java source file into my document using a specified, user-defined style. This works just fine if I have the specified style definition in the same ...
1
vote
0answers
13 views

Remove trailing space from \input [duplicate]

It seems that \input appends a trailing space. MWE: foo.tex \documentclass{article} \begin{document} foo\input{bar.txt}baz \end{document} ...
6
votes
1answer
84 views

noalign and \include

I have reduced my code to the following lines: \documentclass[9pt,letterpaper,oneside]{amsart} \usepackage{graphicx} \usepackage[table, dvipsnames]{xcolor} \usepackage{longtable} ...
5
votes
1answer
45 views

Restricting \input to avoid unpleasant duplication

Avoid inputting a file multiple times describes how to prevent a file from being \input more than once. I wonder, though, if there is a way to limit this to only preventing a file from being input if ...
3
votes
1answer
67 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 ...
5
votes
2answers
65 views

parallel or other parallel text - paragraph alignment feeding from input files

I am scratching my head trying to sort out an issue with parallel text (in a bilingual document). So first off I have seen many examples on stackexchange regarding this problem but not quite the ...
3
votes
2answers
63 views

Importing Tabular Cells from Text File

Suppose I want to build a table which looks as follows: \begin{tabular}{ccc} 1.23 & 2.98 & Apple \\ -3.78 & 4.01 & Banana \\ \end{tabular} However, the numbers in the table ...
2
votes
0answers
60 views

Consolidated latex code [duplicate]

My latex document consists of hundreds of TeX files that are loaded by the main file using the \input command. I need to submit the TeX code to the publisher of a scientific journal for publishing. Is ...
0
votes
1answer
75 views

Latex, Tikz, PDF's and Multiple .tex files

To give a brief background of my situation, I am currently writing a group report in LaTeX for my honours project and I'm attempting to use LaTeX for this. There are several sections in this report, ...
12
votes
1answer
215 views

Is there a limit to the size of a tex-file?

I've been writing a document for some time now. It is steadily growing and hopefully will continue to do so. Lately I realised that -- although I just recently bought a new MacBook -- when I work on ...
8
votes
2answers
216 views

Dynamic upper bound for foreach loop

I want to read the upper bound for my foreach loop from a file. I've tried the following, but it gives all manner of errors. \documentclass{article} \usepackage{tikz} \begin{filecontents*}{foo} 42 ...
0
votes
1answer
67 views

caption overlapped on plot label

I have a plot obtained with gnuplot with epslatex terminal. So, I have two output files from gnuplot: foo.eps with the graph and foo.tex with the label also. To include the plot in my latex document I ...
3
votes
1answer
21 views

Relative path issue with epslatex

I'm trying to include a figure which is saved as two files (eps and tex). I can get it to work if the files are in the same folder as the main document, but not if I move them elsewhere, even just to ...
3
votes
0answers
40 views

One tabular with column input from multiple data files with pgfplotstable

I have a question which sort of extends the page Multiple Files input to one pgfplotstable. In the answer to this question, data is read from dataB.dat and subsequently appended to the data as ...
7
votes
3answers
5k views

Include data from a .txt

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 ...
1
vote
1answer
67 views

Structuring a Large Document

I just started to write my thesis and i want to organize my document in Latex using the \input command, so for example, the main file main.tex is like this: \begin{document} ...
5
votes
2answers
67 views

How to make a wrapper for \input

I would like to make a wrapper for \input to include TikZ figures. I have tried something like this: \newcommand{\inputtikz}[1]{% \tikzsetnextfilename{#1} \input{figures/{#1}.tikz} } but with this ...
2
votes
2answers
64 views

\input produces errors, copy&paste not

I'm working currently on a beamer-document and want to use LaTeX-code. Therefore I set up the listings-package in the following way: \documentclass[12pt]{beamer} \usepackage{listings} ...
0
votes
1answer
61 views

\input problem 'missing $' 'extra }'

I'm writing my thesis and I'm stuck on a problem \usepackage[latin1]{inputenc} \usepackage[brazil]{babel} \input{./inc/Intro/intro.tex} When compiling I get tons of "Missing $", "Missing {", ...
1
vote
1answer
42 views

AUCTeX/ RefTeX: ignore files by extension

I'm writing a very long document with dozens of figures that are all generated with matplotlib and exported as pgf files. Each figure environment then looks something like \begin{figure} ...
4
votes
2answers
55 views

Search for files first in the texmf trees

If I want to check first if a file is in the current dir and then look for it in the texmf tree I can do it like this: \documentclass{article} \begin{document} \IfFileExists{./biblatex.def} {yes, ...
2
votes
1answer
68 views

How to display text different place than the source in LaTeX?

As an example: I would like to put the text of a math problem and the solution of the problem in the same input file next to each other, but in the pdf book I want to separate them into different ...
1
vote
2answers
35 views

How would I take imported file and format it to account for spacing?

Basically what I'm trying to do is use something like \input{details.txt} which contains: ____Here are some random details with stuff everywhere. This is to see if latex will use this ...
13
votes
2answers
176 views

How to get rid of unwanted spaces with \input?

For my project to bring scripting to (Xe)(La)TeX, I need to execute command lines with write18, redirect output to a temporary file, and then insert the produced text using \input. I've noticed some ...
8
votes
2answers
97 views

\input - \return-command

I'm looking for a command like \return with which I can manually exit a TeX file, which is included by \input. (At the end of my TeX file are some notices, which I sometimes want to print, sometimes ...
4
votes
1answer
277 views

Combining different projects into one (papers into PhD Thesis)

My question is similar to this one, but I have a problem with relative paths when including files. Assume I have three projects which all start with \documentclass[12pt,a4paper]{article} ...
0
votes
0answers
31 views

Removing headers on pages between chapters while using \include to input chapters

I am writing a document using the report class with the options twoside and openright. I want to remove headers and footers from blank pages between chapters. I tried the emptypage package as well ...
5
votes
2answers
59 views

error lines, input files

My problem is debugging a large LaTeX project (a book) with several input files. The line of each error is referred to the current input file, but the name of the file is lost in the previous ...
6
votes
1answer
26 views

Make text from external file uppercase

I would like to do something like \uppercase{\input{filename}} so that the text in the file filename is printed uppercase. (Above command complains about FILENAME.tex not to exist, apparently ...
4
votes
1answer
96 views

Why does this Tikz tower look OK standalone but not when included as a figure in article?

I built two towers in Tikz. Because the document they will be included in takes a while to compile and because my Tikz skills are somewhat limited (so I need to compile often to check if I've done ...
10
votes
1answer
88 views

`\input`ting contents of a file into a `hyperref`'s `pdfkeywords`

I use git to manage the development of my LaTeX documents, and I have a makefile I use to build a PDF from the LaTeX source. For the sake of provenance, I would like to embed the most recent git ...
3
votes
1answer
74 views

Undefined reference using a0poster (\include Vs. \input)

I have an a0poster document (see below an example) which is not loading the cross-references, although bibtex is working fine and compiling the references. I write the main text into a different tex ...
5
votes
1answer
42 views

How to include files from a directory specified by a concatenation of text and a macro?

This is almost certainly a silly mistake somewhere. I'm essentially trying to do what is being done here. My MWE project: $ find ./ ./ ./common ./common/preambleCommon.tex ./mydoc ./mydoc/mydoc.tex ...
8
votes
2answers
129 views

\input in the reverse order

I wonder if there is a reverse version of input. For instance, I maintenance a list of things. list.txt \myitem{20080103}{a} \myitem{20090202}{b} I could do \input{list.txt} and define \myitem in ...
0
votes
0answers
75 views

Parametric Title Page

I'm relatively new to writing TeX, but have hopes and dreams of being able to do this with it. I've done some looking around, and had little luck finding much detail on it. If someone could either ...
3
votes
2answers
191 views

Include file with preamble to another tex file

I have two files: paper.tex with text, title, and full preamble with authors and so on. It compiles successfully. The second file (B) has also a full preamble with title, authors, little text. It ...
16
votes
4answers
11k views

\input and absolute paths

Sometimes it is convenient to use an absolute path to include a preamble. To do so, I use the following "hack": \documentclass[a4paper, 12pt]{article} \newcommand{\folder}{/path/to/folder} ...
1
vote
0answers
29 views

replacing macros parameters by its definition [duplicate]

Usually, I use many macros in my documents to save time. I am searching for clever "ideas, methods, tools" which can replace macros by its definition. For example, if we have a the following document ...
3
votes
1answer
202 views

Relative paths for \input and building from different directories

The minimal example If I have a directory containing my main LaTeX source file and it uses \input to incorporate some data in another file, I can use a relative pathname. E.g., with these files: ...
0
votes
0answers
42 views

Saving Chemfig submolecules in a separate file, to be recovered into beamer

Please consider the following code \documentclass[t]{beamer} \usepackage{chemfig} \begin{document} \begin{frame} \frametitle{1st frame} \definesubmol{x}{-[:+30,.6]-[:-30,.6]} ...
3
votes
1answer
92 views

\vref and input command

You've saved my life in some occasions, I am writing my master thesis and as I am working with MATLAB, I found a very useful MATLAB function which "translate" MATLAB images to TeX tikzpicture. I ...
3
votes
1answer
73 views

Resize a table imported from another TeX file

Is is possible to resize a table imported from another table without having to modify the LaTeX code in the file from which the table is imported? I was thinking of something like: ...
5
votes
1answer
26 views

Selectively apply \global to some tokens set via an \input file

This should be simple, but I can't quite guess the correct combination of \expandafter needed. The value of \MyTokenGlobal should not be changed via the \input, but the value of \MyTokenLocal should ...
1
vote
0answers
26 views

Include .Rtex as a chapter in latex

I have an Rtex that contains: \documentclass[openany]{book} \chapter{Introduction} \input{./Introduction/Introduction} \chapter{Thesis Outline} \input{./Outline/Outline_Chapter} ...
4
votes
2answers
63 views

Why does \ExecuteMetaData break my paragraphs?

I have a lot of content to assemble in several different ways and would like to use excerpts from one file in another. I have specified: \usepackage{catchfilebetweentags} I then have an external ...
1
vote
1answer
56 views

Inputting files alphabetically

I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems. I was wondering if there was a simpler way of ...