{external-files} is about external files included in a document, e.g., pictures via \includegraphics, or parts of a document via \input or \include. For questions about files automatically generated by LaTeX (.aux, .log, .out, .toc, ...) use {auxiliary-files}.

learn more… | top users | synonyms

4
votes
2answers
172 views

Include pdf documents from a list written in a text file

In a text file titles.txt, I have the title, category and filenames of all the documents I wish to insert in TeX file. I can properly insert the title and the category (used with \index) but ...
3
votes
2answers
677 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 ...
1
vote
1answer
159 views

Expandable read from file

This question follows this Applying TikZ options stored in a file. I just wonder why the following fails to read the file. Please ignore the content of filecontents; although it works, it's just for ...
1
vote
1answer
905 views

Why does \includegraphics fail when using TikZ's externalization?

I'm trying to use \includegraphics and the auto-pst-pdf package to convert and import an EPS file, but when I enable TikZ's external library, \includegraphics fails with an error message: Package ...
8
votes
3answers
207 views

Applying TikZ options stored in a file

I need to set some TikZ options that have been written to a file by a script. I thought I could use a helper macro defined with \edef and the expandable version of \input as described in Why is ...
2
votes
2answers
371 views

Disable including of system files [duplicate]

Possible Duplicate: How can I safely compile other people's LaTeX documents? I've got a Linux server that is rendering LaTeX documents, I want to disable the access of LaTeX to system ...
2
votes
1answer
283 views

treating multiple code listings as one figure (listings package)

Please note that I am quite new to tex/latex. For my paper I need to reference specific parts of my source code as one code listing. This allows me to skip specific lines of the source code that are ...
4
votes
1answer
171 views

Splitting .tex file across pages when included as figure

I am trying to include a .tex file in my thesis. The file is some MATLAB code formatted to appear correctly in LaTeX. The compiler throws a warning that the code is too long for the page, but it ...
1
vote
0answers
54 views

How do I read data from one cell of a table and print its content in text? [duplicate]

Possible Duplicate: Formatting complex table from CSV using datatool I have a list of hundred names with an associated ID number, name, contact info, and more... Is it possible, knowing ...
13
votes
6answers
932 views

Automating quoting across LaTeX documents

I occasionally face the following situation when writing LaTeX documents. (This question is probably not LaTeX specific, though). Suppose I have a document, say orig.tex. Then I quote from that ...
5
votes
2answers
169 views

Latex3 input/output and expansion of macros

I have a package that formats a course outline and have a macro that reads a formatted user file and turns it into a section. \documentclass{article} \usepackage{xparse} \ExplSyntaxOn \tl_new:N ...
3
votes
1answer
413 views

Cross reference supporting information in class achemso

By using the class achemso Supporting information to prepare the there to carry out a cross-reference (\ref{table:S1}} for this aquivo external "supporting.tex", example: Text ... see (Fig. S2) or ...
19
votes
2answers
619 views

What are the allowed characters in filenames?

What characters can be used in filenames for the main document and input files, both .tex and images etc.? I'm not asking about which are recommended to be used, but about a list of all possible ...
1
vote
1answer
558 views

Pointing to Java files not in root latex folder using listings

I am trying to use listings to point to a Java source code file. The file path is different from the Latex document. Below is an example of what I am trying to do, though it doesn't compile it says it ...
2
votes
1answer
621 views

Hyperlink in Beamer [closed]

I have used hyperlink(say fig.pdf) for my presentation in main pdf. In the fig.pdf I have again used hyperlink to main document. But my problem is when I come back to main document its starting from ...
6
votes
2answers
677 views

How to import ASCII coordinates to TikZ

I have a long file of Brazil coordinates like: (-3.43,-0.56) -- (-3.44,-0.56) -- (-3.44,-0.55) -- (-3.50,-0.55) -- (-3.52,-0.55) ... and I want to import then into a tikzpicture environment to use ...
1
vote
1answer
502 views

Inserting a blank page using pdfpages results in “Missing number, treated as zero”

I am using the pdfpages package (version 25688 0.4r) to create a document with a blank page followed by a PDF file. Here is the working example \documentclass{article} \usepackage[final]{pdfpages} ...
2
votes
1answer
186 views

Create version of report with local links to referenced articles

I have the following set-up in mind, and I hope someone could help me achieve this: I cite entries from my .bib file. I use the hyperref package (manual) with the pagebackref option set to true, so ...
13
votes
3answers
397 views

Need help creating a custom aux file read/write routine to suit my needs

I require two new commands, \createreference and \citereference, to work with. They should work as shown in the following examples: \createreference{john}{John Q. Citizen} should write the text “John ...
11
votes
2answers
641 views

TikZ read out file

I have a file called assocFile.dat. The file has the following format: 0/b 1/d 2/f 3/h I want to use this file to draw nodes (however it would be nice if this question can be ...
3
votes
2answers
442 views

Measuring the width of a verbatiminput block

Is there any way of measuring the width of a VerbatimInput block? In other words, I would like something along the following lines, except that the verbatim data should be taken from an external file ...
4
votes
1answer
224 views

Write LaTeX section title to an additional file

I have a book that comes with an answer manual. So when I define a section or subsection I want to also write the name of that to the file containing the answers. Thus, I want to end with this type ...
1
vote
1answer
4k views

Link to local (PDF) file [duplicate]

Possible Duplicate: Does hyperref work between two files? I want to make a link in LaTeX to a PDF file on my local network drive, i.e. when you click on it then Adobe Reader should open and ...
1
vote
1answer
1k views

PS/LaTeX figure exported with Xfig doesn't render properly

I just installed the basic version of MiKTeX 2.9 on my Windows XP system. I compile this very simple document (test.tex) with TeXworks, using the default pdfLaTeX command: \documentclass{article} ...
8
votes
2answers
7k views

Using \import correctly

I've got a main-file which includes the preamble. I then use \import to put together all chapters of my final document. When saving the main-file in another directory than the chapter-files I get the ...
8
votes
2answers
1k views

IfFileExists and filecontents causes an error

I would like to use the filecontents environment in my document. I get a warning LaTeX Warning: File `test.txt' already exists on the system. Not generating it from this source. If I run multiple ...
9
votes
2answers
199 views

Hooks into mathmode

Short version Is there a way to pipe every symbol in a math environment unevaluated to an external program w/o manipulating the (La)TeX file directly (except for adding header files) or patching TeX ...
4
votes
1answer
324 views

Using listings for R code with ## in rangeprefix

In R, comments are preceded by the symbol #. Moreover, to avoid messing with the indentation, it's usually ## instead of #. Therefore, as I want to include some R code in a LaTeX document, I am using ...
3
votes
1answer
1k views

Showing only specific lines using the listings package

I am very new to TeX. My source code is in an external file, let's call it source.java, and I use \lstinputlisting{source.java}. How could I use only the lines 3-5 for my code listing? (and not the ...
3
votes
1answer
461 views

Wrong TikZ filepaths when included used input

I'm using TikZ for my thesis but have run into a small problem. In order to maintain some overview of the main tex file I have split all images into separate TikZ files (This also allows me to edit ...
1
vote
2answers
460 views

How to disable package used by external document?

Doxygen uses its own doxygen.sty style file, but I'd like to keep the style of my document where I want to put the Doxygen's output. So I'd prefer to somehow to turn of its settings. For example, ...
3
votes
1answer
194 views

Url of the picture in final PDF

Using ConTeXt I want to create a pdf with pictures from the internet. I don't want to include those pictures into the pdf, but I want only links to these pictures, and the pictures themselves shall be ...
6
votes
1answer
570 views

\input only part of a file using catchfilebetweentags package

I would like to include only a part of a .tex file into a different .tex file. The part I want to include is delimited by some comment tags, as it is used by catchfilebetweentags package. I tried the ...
11
votes
2answers
3k views

Where can I put biblatex style modifications?

Guidelines for customizing biblatex styles says: Finally, assuming that I'll want to use my style adjustments in a multitude of documents: Where do I put the relevant macro stuff? The ...
6
votes
1answer
174 views

Processing input files

What is the easiest technique to get the n-th line from a input file called input and pass it on to a macro called \process. Please note that I'm not asking about outputing the n-th line verbatim but ...
8
votes
4answers
226 views

Having multiple commands with underscores and numbers that start with same text

Recently me and some friends really got into "making everything compilable". More specifically, we need to do a lot of matlab calculations, and then we need to put the results into a tex document. ...
6
votes
2answers
716 views

Using the xr package in LyX (for cross-referencing an external LyX document)

Question: What steps are required to use the xr package in LyX in order to reference items in other, independent LyX documents? Steps already taken: The tools package (that contains the xr package) ...
2
votes
1answer
255 views

How to reference list items in another TeX document?

Problem in a nutshell: I would like to reference items in an external LyX document (containing a list of definitions and theorems). Problem in detail: I am a Math student. I maintain a LyX document ...
15
votes
3answers
409 views

How to trim .tex for each filename read from an external file?

I have an external text file that contains a list of names of TeX input files. The names have trailing extensions .tex. For example, the external text file named data.txt contains the following list: ...
6
votes
2answers
147 views

Input Auto-Generated Figures Captions

I'm trying to include an Matlab-auto-generated figure-caption tex-file using \caption{\input{Spectrogram-2011-09-28-S003.title.tex}} but if fails with error ERROR: Argument of \@caption has an ...
14
votes
3answers
5k views

Scaling a TikZ figure from an external file

I would like to insert figures which were created with TikZ to my LaTeX document. I suppose that if I create the TikZ figure inside the document, that wouldn't be a problem - I'd just play with the ...
5
votes
1answer
2k views

Including all files within a directory [duplicate]

Possible Duplicate: How to iterate through the name of files in a folder Using \input{filename}, I can input a file canned "filename.tex". I have a directory containing all of the files I ...
12
votes
1answer
1k views

How can I pass underscore to \newcommand properly?

I'd like to simplify my code appendix with this command definition: \usepackage{listings} % ... \newcommand{\CodeListing}[1]{% \lstinputlisting[caption=#1]{#1}% } That is, the caption should be ...
6
votes
2answers
1k views

Data from file as list in \foreach in Tikz

I have data stored in files I named x.dat and y.dat. In the file are two columns and each row stands for one point. These points I plot in the beginning. But then I want some arrows from the x-points ...
6
votes
2answers
217 views

Storing captions in a file

I would like to have LaTeX read figure captions from a list stored in some file rather than writing their text directly in the \caption{} command. However I've not been able to figure out if this can ...
7
votes
1answer
1k views

pgfplots from file: search path, looking for \graphicspath equivalent

I have recently discovered the wonderful pgfplots package and I've started coding my Python code to output tabular data of whatever is plotted (at least for simple plots). In my LaTeX source code, I ...
7
votes
2answers
1k views

LaTeX cannot embed images located inside a folder

I have a few JPEG images inside a folder. I use the following code to embed images \begin{figurehere} \centering \includegraphics[width=0.5\textwidth]{folder\test.jpg} \caption{Example ...
7
votes
1answer
170 views

expansion of loop macro

I have a macro that contains a loop using \@for and it works until I try to write its output to a file. The following document shows the problem. \documentclass{article} \makeatletter ...
14
votes
2answers
267 views

Write to /dev/null?

I'm working on package that (among other things) writes an external file during compilation. I'd like to provide an option to the package to not write the external file. I know I can set up a ...
6
votes
4answers
2k views

How to decrease the font size of a table in an \input file

I have: \documentclass[11pt]{article} \begin{document} This is the main tex document. \input{tables} \end{document} In the tables.tex file, I only have numerical tables. I want to decrease the ...