{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

7
votes
2answers
3k 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
382 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} ...
9
votes
2answers
539 views

How do I typeset a file containing ASCII art using a fixed-width character font?

I have a string with the text precisely spaced the way I want it displayed. It's sort of an ASCII art project. I want to convert this text to a PDF so I can print a poster with the text at my local ...
1
vote
1answer
302 views

How to strip curly-braces from variable before using it as a filename?

I'm trying to use a variable to pass a filename to \includegraphics. I'm having trouble because my filename is built up from other variables. This leaves an empty curly-brace inside the filename. The ...
1
vote
1answer
173 views

Adding condition to \DTLplot (dataplot package)

I'm working with the package datatool for a while now, and I'd like to make graphs of my created databases. But I do not want to plot all rows in my database so I'd like to use the condition. This is ...
2
votes
1answer
619 views

How to keep filecontents* from getting confused when it encloses \begin{document}..\end{document}?

I TeX the following code with pdflatex --shell-escape but the compilation got paused because of an error as the produced prepare.tex does not contain \end{document}. \documentclass{article} ...
5
votes
1answer
463 views

No room for a new \read/\write

I've already searched a lot about it and there seems to be no possible way of increasing the number of files (La)TeX can open. This for example, gives an explanation about the error message. I've also ...
4
votes
2answers
96 views

Search for tab in external file with filename in another external file (\catcode is not the problem)

This is a quite specific question. I have some code and I'm completely stuck because it won't work for an inexplicable reason. I need to find in which line of an external file there is a tab. I use ...
2
votes
2answers
277 views

Change a parameter in document using the cmd?

I need to be able to change the value of a parameter inside a LaTeX document without having to change it manually. I'll explain: There is one main program that executes another smaller one. This ...
2
votes
1answer
145 views

Why does \DTLgetkeyforcolumn not work?

I'm currently learning how to use the datatool package. I have a lot of .txt-files that need to be processed automatically. But if datatool loads a wrong kind of .txt-file I need to be able to check ...
4
votes
2answers
179 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
3answers
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 ...
1
vote
1answer
188 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
1k 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
238 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 ...
3
votes
2answers
543 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
320 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
188 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 ...
14
votes
6answers
1k 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
181 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
570 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
831 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
863 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
692 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
918 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
741 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
229 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
517 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 ...
12
votes
2answers
814 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
489 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
265 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 ...
4
votes
1answer
9k 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 ...
2
votes
1answer
2k 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} ...
9
votes
2answers
12k 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 ...
9
votes
2answers
2k 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
217 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
363 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 ...
5
votes
1answer
2k 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
2answers
595 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
607 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
204 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
828 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 ...
13
votes
2answers
4k 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 ...
7
votes
1answer
197 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
308 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. ...
8
votes
2answers
1k 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
291 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 ...
16
votes
3answers
518 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
153 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 ...