Questions tagged [input]
{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.
872
questions
0
votes
1
answer
890
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}
...
12
votes
2
answers
6k
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 ...
6
votes
1
answer
5k
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}
\...
14
votes
1
answer
4k
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
0
answers
64
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, ...
3
votes
2
answers
649
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
3
answers
442
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 ...
4
votes
3
answers
500
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 to ...
0
votes
1
answer
4k
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
\...
1
vote
0
answers
464
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 work?
...
6
votes
3
answers
10k
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 ...
2
votes
1
answer
1k
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}
0
votes
1
answer
75
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
2
answers
2k
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
1
answer
2k
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 ...
5
votes
1
answer
22k
views
Input figures from sub-folders
I'm writing a big thesis using latex and I'm trying to keep organised.
File-tree:
../Thesis/mainfile.tex
../Thesis/Section1/section1.tex
../Thesis/Figures/figure1.png
../Thesis/...
2
votes
2
answers
766
views
Getting `tables` R package to print a text file that I can import into my .tex file
I'm trying to write some R code that takes data from my (evolving) experiment, makes a summary statistics table, and inputs it into the .tex document that I'm writing. I want to avoid copy-pasting. ...
8
votes
2
answers
194
views
How not to load a file repeatedly?
I created a file version.tex with a git log message. This .tex-file is then included in my main.tex file like this:
\renewcommand{\footsnippy}{%
Author Name,
Title of my Book, %
\input{version}...
4
votes
1
answer
17k
views
How to force section to not go to new page in article
I have a document like this:
\documentclass{article}
\begin{document}
\include{sect1}
\include{sect2}
\end{document}
Both files sect1.tex and sect2.tex begin with \section{...}. The output pdf file ...
5
votes
1
answer
28k
views
Scaling an \input within a subfigure
I'm including latex files with \input within a subfigure environment:
\documentclass[a4paper]{report}
\usepackage[usenames,dvipsnames]{color}
\usepackage{linegoal}
\usepackage{graphicx}
\usepackage{...
4
votes
3
answers
3k
views
How to work with command \input{filename.tex}?
I'm writing a book with lots of chapters using a command \input{filename.tex} for each chapter in the book book.tex. How to make it not to have book.tex and all filename.tex in the same directory? Is ...
1
vote
0
answers
81
views
pstool not working with grffile [closed]
An error report regarding my template and pstool not working made me look at the problem which
seems to be a principle problem of pstool together with grffile
I created a matlabfraq file using
...
0
votes
0
answers
173
views
Import and scale LaTeX table data from file (only ampersand stuff) [duplicate]
Is it possible to create a table and include only the pure data from an external file (only ampersand delimited stuff). Is it also possible to scale a table because data is vast and I don't want to ...
5
votes
2
answers
284
views
Use of \csname in \input produces mysterious results
I am stuck with the following one where I want to input a file with a name in the line of \jobnameQ.tex.
Here is my MWE excerpted from a bigger picture.
\documentclass{article}
\usepackage{lipsum}
...
3
votes
1
answer
326
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
1
answer
1k
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, ...
4
votes
2
answers
778
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
0
answers
81
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
2
answers
139
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 ...
13
votes
1
answer
15k
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 ...
6
votes
2
answers
17k
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 ...
1
vote
1
answer
471
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, ...
8
votes
2
answers
679
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
\...
3
votes
1
answer
3k
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 ...
2
votes
0
answers
70
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
1
answer
978
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 ...
2
votes
1
answer
618
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 ...
12
votes
1
answer
2k
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 ...
3
votes
0
answers
625
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 ...
5
votes
2
answers
734
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 ...
2
votes
1
answer
378
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}
\input{...
2
votes
2
answers
274
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}
\usepackage{...
0
votes
1
answer
264
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
1
answer
130
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}
\input{...
4
votes
2
answers
255
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 ...
7
votes
2
answers
503
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
1
answer
237
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
2
answers
53
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 properly and ...
2
votes
1
answer
2k
views
Using input to read a table into a beamer. I want to neglect the table environment and keep only the tabular environment
I'm trying to input a table into my beamer and resize the table. But since the table file contains a table environment and a caption, I couldn't do like this:
\resizebox{\linewidth}{!}{
\input{table....
13
votes
2
answers
2k
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 ...