{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.
4
votes
1answer
47 views
Mark on Document where Input stats and What is the Filename
I have a master document, and use many input{...} commands to compile the total document from many parts.
I would like to mark on the working document, the start of each new input, and, what the ...
5
votes
3answers
79 views
How to join two or more external .tex file using another .tex file and then compile?
Suppose I have two tex files file1.tex and file2.tex. I want to join them in another tex file. I have tried to do this with the following one :
\documentclass{book}
\begin{document}
...
5
votes
2answers
143 views
Argument to \input or \include statement?
I produce a lot of plots in Matlab which I export to TikZ with matlab2tikz. In matlab2tikz I can specify the plot width and height, for instance. This works out quite nicely, but as I write my ...
1
vote
0answers
29 views
catchfile(betweentags) and obeylines
I'm writing two large documents, both containing much of the same text.
To ease the maintenance, I'd like no redundant paragraphs, but rather to use catchfilebetweentags.
Everything works well, ...
1
vote
0answers
44 views
Cross-referencing (input) multiple tex. files on multiple levels
I´ve recently discovered this site and you might be able to give me some advice working with LaTeX.
Here´s my problem:
My company is working on several user manuals. Each user manual is located in ...
1
vote
0answers
63 views
epslatex: relative path issue
Please, how one could directly include epslatex graphics into main latex file, say main.tex? main.tex has its own template provided by a third party. I used this command within main.tex file to ...
0
votes
0answers
28 views
Include a value and its uncertainty both rounded properly
The output of a program is a value and its uncertainty. I want to include them in a tex document correctly rounded.
value_uncertainty.txt:
12345.67890 0.987654321
scientific_document.tex is ...
1
vote
1answer
64 views
siunitx: Error while including value
A value is saved in a file (value.txt, let's say).
The command
\SI{\input{value.txt}}{\someunit}
gives the error:
Argument of \input has an extra }
How can I read numbers from an external file ...
9
votes
1answer
61 views
Can I use \input inside an \include?
I know it is not possible to nest one \include inside another, but what about \input? Is it possible to have something like:
\documentclass{article}
\begin{document}
\include{file1}
...
7
votes
1answer
61 views
Suppress message during compilation
I use a macro with \write18 and \@@input, several times in each page of a large document. But \@@input output a message during compilation:
(filename)
This is very annoying and flood the other ...
2
votes
0answers
30 views
Use one tex file in different documents [duplicate]
I want to write a tex file which can be used in serveral higher order documents, but there are problems with the relative paths of the figures.
Example:
In folder sub1 is the file base1.tex which ...
1
vote
1answer
82 views
pdflatex “Required Page Does Not Exist” error with beamerarticle
I have several beamer tex files and need to create a manual (using beamerarticle) that incorporates all of the beamer files (with their notes) as one document. The original basis of the articlebeamer ...
4
votes
1answer
147 views
Is there a LaTeX editor capable of synctexing a live preview from an included or inputted or subfiled chapter02.tex?
As a beginner... I thought I had settled for the distraction-free Gummi; but now I'm unsure, as I gather it's not so great for larger, modularized documents, such as writing a thesis:
Gummi's live ...
0
votes
0answers
20 views
Why latest appendix-m is not shown in document and in ToC? [closed]
Everything was OK till I wanted to add latest appendix-m. It is not shown even in the document or in the ToC. Please help.
\begin{appendices}
\input{./shtojcat/appendix-a}
...
0
votes
1answer
63 views
How can I use \input and \include with biblatex (biber backend)?
I have a document with external files. The only reason I am using external files is to make it easier to organize my large project. I have taken a small piece of the larger project and attempted to ...
2
votes
1answer
77 views
Can't use animations with \input?
I have two different animations, made with TikZ and the animate package, that I want to include in a beamer presentation. When I had the code inside of my presentation's .tex file everything worked ...
0
votes
0answers
53 views
TOC in double languages with input files [closed]
How you can see here, I have already done the TOCs in double languages (English and Italian): the problem is that it works only if I write all the text in the same file, but, when I try to input ...
3
votes
1answer
122 views
Special characters in input file
I want to have my sections in independent .txt files in the folder of my assignment. So I use \input{text.txt}. The problem is, I write in Danish and we have the 'æ' 'ø' 'å' characters that aren't ...
0
votes
0answers
80 views
Resize Gnumeric Latex table using \input{ExportedFromGnumeric.tex} [closed]
I have spent now 3 hours looking for answers here and mostly everywhere on the internet... But I could not find any way to do that.
I have a table exported from Gnumeric. It is on a file say ...
2
votes
0answers
52 views
Including figures relative to the path of the current document?
I am writing a paper simultaneously with my thesis; the paper will be included verbatim in the thesis (or at least, parts of it will).
I am looking for a solution that allows me to update my paper ...
0
votes
0answers
72 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 ...
0
votes
0answers
61 views
\include not working but \input is [closed]
I have a problem with using \include. Below is the code:
\documentclass[11pt,twoside,openright]{memoir}
\usepackage[size=pocket,trim,bleed]{createspace}
%\usepackage[paperwidth=4.25in, ...
4
votes
1answer
156 views
Is this the correct way to format a book in LaTeX?
I have a question that may be subjective but I will try to make it as less subjective as possible.
Is this the correct way to format a book in LaTeX?
What I have done is the following:
...
7
votes
1answer
91 views
How to use luatex callbacks to generate a verbatim copy of the input file
I'm trying to devise a LuaTeX solution for the question Extracting the contents of text in a specified environment into a new file, but it is turning more difficult than expected.
To begin, I need to ...
1
vote
0answers
69 views
Input files relative to main file when using subfiles
I'm writing a report where I use the package subfiles to include different parts of my report.
\input{misc/variables.tex}
will include my variables file perfectly and render the subfiles. But if I ...
1
vote
0answers
46 views
if the remote file exists then include it, else include the local one
Here's the path where my tex file stands :
/home/me/documents/foo.tex
I also have one import file here :
/home/me/texmf/tex/latex/personal/bar.tex
However for security purpose I also include it ...
1
vote
1answer
98 views
Creating an abbreviations file [duplicate]
I'm new to the LaTeX scene as I've starting writing my thesis. I'm using a root .tex file and using \include to add in my chapters (etc). I'm also using \nomencl to add an abbreviations list. I'd like ...
0
votes
0answers
75 views
Is there a 'try' command for LaTeX? [duplicate]
What I'm trying to do is input file1 if it exists and input file2 otherwise, without having to deal with an 'I can't find file' error. I would like to accomplish this using TeX, without using symbolic ...
4
votes
1answer
101 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
101 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. ...
5
votes
1answer
136 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
243 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 ...
18
votes
1answer
222 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 ...
8
votes
3answers
172 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
116 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
146 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
54 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
0answers
81 views
splitting/breaking a long table from an input file, latex
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
96 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
229 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
84 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.
...
3
votes
1answer
67 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
52 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
82 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
232 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
38 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
0answers
78 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, ...
8
votes
6answers
195 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 ...
7
votes
3answers
163 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 ...
5
votes
3answers
382 views
Include data from a .txt
Useing a Finite Element Program that outputs data in txt fils. And this data i want to input in my latex. Is there a way to input the data fils so that they appear as the program output den.
Program ...


