{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

4
votes
1answer
170 views

Embed distributed LaTeX file/code to the PDF?

I have read of the possibility to embed the LaTeX source in a generated PDF, see the question here. Do you know of a way to do this with distributed TeX file, i.e. for a TeX file which is stored in ...
5
votes
1answer
168 views

Saving in macros plus \scantokens as an alternative to external files

I am generating a lot of TeX code automatically using Python scripts. I've been saving the TeX code to file, and then bringing those files into my documents at the appropriate places via \input. ...
6
votes
1answer
198 views

MiKTeX order of precedence for duplicate files

I am using MiKTeX under a single-user installation. My MiKTeX Options dialogue shows me, if I click on the "Show MiKTeX-maintained root directories" checkbox, directories in the following order (from ...
9
votes
2answers
259 views

How to use the contents of a file as a number

I want to create a loop including n images.The number n is the only content of a help file (created by the application that generates the images). Is it possible to read the contents of the help file ...
19
votes
1answer
551 views

Rationale to use \input{filename} on the pdflatex command line?

In a tex.SX user profile, I read the best practice recommendation Execute pdflatex \input{filename} instead of pdflatex filename. I have always used the latter one, directly, in scripts, and in ...
11
votes
3answers
874 views

force long text inside \item[{\texttt{}] to wrap

I have a LaTeX document that is automatically generated and then inserted as part of my own larger document with \input. This other document has a description environment for examples, one item for ...
3
votes
2answers
459 views

Using \input in a fancyvrb verbatim environment - problem with hyphens

I've set up a custom environment with DefineVerbatimEnvironment. Within that environment I'd like to \input{} files, which works all fine and well until one of them includes a hyphen. Here's an ...
11
votes
3answers
207 views

Read authors from file

At our university, we students write a lot of summaries in LaTeX. We have the convention of adding a CONTRIBUTORS.txt file to the repository containing the document code, which lists all contributors ...
3
votes
0answers
59 views

Store and retrieve content across documents [duplicate]

Possible Duplicate: Automating quoting across LaTeX documents I'm working on 2 documents: 1.tex and 2.tex. 2.tex is a metadocument about 1.tex, so that 2.tex has a lot of quotations from ...
0
votes
1answer
2k views

Splitting/breaking a long table from an input file

I am input a file in my main latex file but the table (inputfiles contains a table) is too long to be on apage. How can I break it on two or main pages. \usepackage{longtable} %% ...
2
votes
1answer
151 views

Complex latex document: how to locate offending package dependency [solved: was using dirty build] [closed]

For final distribution, certain appendix includes the pdfpages package. However, appendices should be skipped for normal "draft" versions, or while working on individual chapters. I am having ...
1
vote
1answer
4k views

Input file folder

In my main LaTeX file I'm using a number of input files which are dynamics (changing the contents). I want to put some of these files in a higher order folder but at the same time don't want to fix it ...
1
vote
1answer
187 views

Conditional inputfile , latex

I am using a conditionalinput file inside my main file %% Out2 doesn't exits %% Out exists I don't want to get caption and table number at position where I don't have file. ...
4
votes
1answer
85 views

Inserting a document with its own internal section numbering in another document

I have a fairly large LaTeX document, with several chapters. In one chapter, I intend to insert another LaTeX document. "In the following pages, we include (DOCUMENT) ..." I could use \includepdf, ...
1
vote
0answers
57 views

Only input file if it exists [duplicate]

Possible Duplicate: Expandable version of \InputIfFileExists or \IfFileExists I am writing a LaTeX file where I input other LaTeX files (if and only if its exits, otherwise it should not ...
0
votes
1answer
120 views

Adding a line to the TOC before the appendix [duplicate]

Possible Duplicate: First chapter appearing before first line in table of contents I am having issues with inserting a line into the TOC when including external files. \input and \include ...
13
votes
1answer
418 views

Help automating calendar creation

I'm doing calendars for all the family, and I have a problem automating the process. I'm using the calendar tikz library. I need to include the moon phase in the calendar. I can do it with this code ...
1
vote
0answers
46 views

Loop to include multiple files [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder I would like to include all the *.tex files from a directory in a document. To avoid me having to add manually the ...
3
votes
1answer
137 views

How do I best combine several documents?

I have a collection of articles written in latex, and I would like to "merge" them into a larger thesis document, in which each article will be a chapter. I have been looking at include and input, ...
10
votes
6answers
307 views

How can I '\input' a file without getting the implicit newline?

Intro I'm working on a lightweight package that allows you to put any content (typically LaTeX code) in an environment, then use that content multiple times, each time scanned separately, so you can ...
9
votes
3answers
304 views

Write on a file and input it

I'm trying to redefine a \tableofcontents-like command. I proceed this way : the displayed elements are written to a file, and the file is input when I want the display. If I know the toc will be ...
8
votes
3answers
7k 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 ...
4
votes
1answer
325 views

Include one TeX file into another

I have main.tex file with: \documentclass[]{report} \begin{document} \input{filename.tex} \end{document} Let say filename.tex have the following content: \begin{abstract} text \end{abstract} ...
0
votes
1answer
84 views

Reach another folder with \input

How do I reach a file in another folder when using \input? E.g. I have my main document frontpage.tex in a folder called main and a file chapter1.tex in a folder chapters. How do I in frontpage.tex ...
5
votes
2answers
176 views

Comment out input files through flags

Following up on a previous question about universal processing of some hundreds of exercises to prepare for my students has arisen a new problem that I try to resolve ... however the fact is that I do ...
2
votes
2answers
867 views

lstinputlistings syntax highlighting

I am using package listings to import my Python source code into my LaTeX document. I use the command \lstinputlistings. I have a Python source like class MyClass(Yourclass): def __init__(self, ...
7
votes
1answer
167 views

Automatically convert \left to \Bigl

I have a LaTeX file, which includes tons of other auto-generated LaTeX files containing TikZ figures. Suppose I want to make every \left( in the TikZ figure appear at the same, fixed size, say \Bigl(. ...
9
votes
1answer
1k views

Can a default path be set globally for \input{…} akin to \graphicspath{…}?

For the graphicx package, we can use \graphicspath{...} so that we can directly use filenames in the argument of \includegraphics{...}. Can a similar thing be done for directly using filenames in ...
5
votes
1answer
501 views

Iterating over files in a directory and including them

I have a folder called diary which contains a series of files: 20120101.tex 20120105.tex 20120304.tex etc. How can I create a single LaTeX document that includes each of these files, in ...
3
votes
0answers
591 views

BibTeX not working with \input or \include [closed]

I need some help with BibTeX. I use a seperate *.bib file which is working perfectly, but when the commands \input or \include are used to input text from another *.tex file the application tells me ...
3
votes
1answer
1k views

\graphicspath for Inkscape pdf_tex files

For writing a lecture note, I have put my images in a subdirectory named "image". In the main.tex file I have added \graphicspath{{image/}}. I have also included: ...
5
votes
0answers
264 views

Plots from externalized TikZ are rotated [closed]

I just found out about tikzexternalize and I love it - well, almost. This is my situation: I have done simulations in Matlab and used matlab2tikz to get the plots from Matlab into my .tex document. ...
1
vote
1answer
403 views

Problem in sciposter and \input command with figures

I'm making an a0 sciposter in LaTeX. I'm having problems when adding figures in tex+pdf files with the \input command. The problem is that the figure's text is too big for my figure. For example, the ...
2
votes
2answers
258 views

Wrong reference using \input twice for the same file

I have a short piece of text with an image that I need to use more than once in my document. The rational solution I came up with is to put the text in a file and call the file when needed, something ...
6
votes
1answer
153 views

Latex command /input relative adressing problem

My Latex project is organized like this: In my root Latex folder there is a root latex file named main.tex. In the same folder there is a subfolder pictures which contains 2 files named test.tex ...
5
votes
1answer
266 views

loop and input@path

I'm trying to have recursive path in the command \input@path, but it seems to be impossible (as I read, I'm with the TexLive 2012 and Linux). So I had the following idea, make a loop in \input@path, ...
6
votes
2answers
2k views

Is it possible to create a LaTeX preamble “header”?

Is it possible to create a header in LaTeX containing my usual preamble, functioning similar to a header in C? Specifically, can I write a text document (or something similar) with the preamble that I ...
3
votes
1answer
355 views

Including a .bib file with \input does not work

In the following simple document, the bibliography does not work : \documentclass{article} \usepackage[numbers]{natbib} \usepackage{inputenc} \inputencoding{utf8} \begin{filecontents}{\jobname.bib} ...
0
votes
1answer
602 views

The Latex Font Catalogue - Calligra Font

I'm trying to get the following example working: \documentclass[danish,a4paper,11pt]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{babel} \usepackage{slantsc} \usepackage{array} ...
1
vote
3answers
341 views

Relative image path in renewed \maketitle

To minimize the amount of copy-pasting I have to do between documents/projects, I've decided to create a separate file in which I renew the \maketitle command. This file (title.tex) should then be ...
13
votes
2answers
192 views

Which TeX procedure removes trailing tabs?

From reading the TeX source, it seems that the input_ln procedure is responsible for removing trailing spaces from lines upon input (before category codes are considered). A very short excerpt from ...
2
votes
1answer
5k views

TeXnicCenter problem, can't find input index file

I've just installed TeXnicCenter. The first error I have encountered is that when I try and build I get the following error: Couldn't find input index file D:\File location\test nor D:\File ...
3
votes
2answers
1k views

Generating a single TeX file by merging different TeX files

I have a main TeX file which inputs many other TeX files i.e. for example \documentclass{article} \begin{document} \input{input1.tex} \input{input2.tex} \input{input3.tex} \end{document} Let's call ...
8
votes
1answer
2k views

latexdiff + svn not working with multiple files (flatten)

Short question Seems like --flatten doesn't work properly with latexdiff-vc. How can I get this working, without reverting to my elaborated workflow described below? Context I track the history of ...
5
votes
1answer
240 views

inputting a file not from a subdirectory

I apologise if this question has already been addressed. Say I have a set up like this: I have a main folder in which I have both preamble.tex and a folder sub_1. In sub_1, there is another folder ...
27
votes
2answers
2k views

Insert libreoffice table as input

This question led to a new package: odsfile Suppose you have an localc spreadsheet myspread.ods and you want to insert the content of the range H4:I40 as a table into your latex document. I ...
13
votes
3answers
9k views

Path to External Files in Nested \input

Problem I usually load a helping TeX file that contains my customizations, e.g., usual packages, corporate standard colors, and macros for abbreviations. I want my helping file to also load another ...
5
votes
1answer
70 views

Hook into \input (or any underlying command) in order to allow transparent preprocessing

Which command would be most suitable to be hooked in order to preprocess input before it is passed to TeX? Input file: \begin{document} \input{a} \end{document} Seen by TeX (after a file ...
7
votes
1answer
66 views

How can I access the numbers of pages on which input material begins and ends?

Is there a way to access the numbers of pages on which material included using \input begins and ends? Crude approaches along the lines of \def\myinput#1{% \typeout{ Input starts on page \thepage} ...
10
votes
2answers
273 views

Large document edited by a dozen people

We, a team of 12 people, plan to write a 50 pages paper. The paper will be divided into chapters. Usually, no more than 2 or 3 people will work on a given chapter. Having one large file will create ...