{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

6
votes
1answer
4k views

Including XML file into LaTeX

I am using LaTeX for very first time and have very basic knowledge about it. I am using the template from here to write my thesis. I am using Ubuntu 12.04. When I try to include a small XML file in ...
1
vote
1answer
794 views

How to merge several files in LaTeX [closed]

I am writing thesis in LaTeX and I am beginner in LaTeX. I read about combining files into main file, but it didn't help me much and my problem persists. I am giving minimal code what I am trying to ...
0
votes
2answers
1k views

! LaTeX Error: File 'figures/UILogoLG3L' not found [closed]

I'm trying to follow this tutorial: http://www.matthewjmiller.net/howtos/customized-cover-letter-scripts/ I downloaded the cover letter.tex, and I'm trying to 'typeset' it. So I press the green play ...
1
vote
0answers
47 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
129 views

Auto include specific part of source files

I'm creating a lot of code to our small projects (in computer science), and finding myself copy/pasting my comments into the document. Would it be possible to make a reference point in the code file ...
1
vote
0answers
83 views

Adding the date of adding todo-note [closed]

As is -I suspect- usual is that while writing documents sometimes one skips writing certain parts for a cornucopia of reasons. For me that is usually because I am too lazy at the moment. In an case, ...
28
votes
6answers
1k views

Is it possible to write all mathematical formulas in a separate file and add them in main file on-demand?

Consider this scenario: I have a report to write and I want to write all mathematical formulas in a separate file and then add them in the main report file on demand (i.e. include/import/add/call a ...
2
votes
3answers
322 views

How to deal with zero padding using multiframe in the animate package?

In the animate package, using \multiframe, how to deal with zero padding? For example if I have 101 pictures from pic0000.jpg to pic0100.jpg and I want to do something like that: ...
10
votes
6answers
311 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 ...
3
votes
1answer
114 views

Part of the file name of my image is printed in the document, twice [duplicate]

Possible Duplicate: How to include graphics with spaces in their path? When I add a piece of code of figure insertion to the context I'm faced with a problem: a number of irrelevant words ...
2
votes
1answer
361 views

.bat file execution from a .tex document during compilation

Is there a way to execute a .bat file directly from a latex document when I compile that document? I would something like this: \documentclass{article} \begin{document} \chapter{test} bla bla bla ...
5
votes
1answer
325 views

\write and \\ command

Why I get some errors with the code below, and how can I fix that behaviour? \documentclass{article} \begin{document} \newwrite\indexist \immediate\openout\indexist=classic.ist ...
4
votes
1answer
347 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} ...
8
votes
3answers
5k views

How to create and include .tikz files in your manuscript?

Recently, I learnt about the matlab code matlab2tikz. The output of this code is a .tikz file that can be used, I guess, alongside standard figure packages with a simple line \input{mysphere.tikz} in ...
46
votes
3answers
6k views

Outsourcing TikZ code

My Tex files get very confusing since I have multiple long TikZ code in them. How do you organize your files when it comes to TikZ?
4
votes
1answer
197 views

How to write the documentclass into a file

Suppose I have received a selfcontained LaTeX source file, main.tex. It includes a file of macro definitions, my_macros.tex, that the author included in the preamble. This macro file is under my ...
4
votes
2answers
435 views

How to write the preamble into a file

Can one define a bunch of macros, include them in a LaTeX source file main.tex and after issuing $ latex main.tex find the preamble of main.tex in a file, say main.nem ? It is a requirement, that ...
14
votes
1answer
228 views

Poor man's “namespaces”

I have searched for "namespaces", but all of these posts seem to ask for something way more advanced. The problem I encounter can be solved by renaming everything, but that does not seem "right". ...
6
votes
3answers
1k views

undefined control sequence when cross-referencing with xr-hyper

I'm trying to create references between two documents. Normally it works great, but I can't figure out why using siunitx inside a chapter name, causes build errors. Simple example: doc1.tex ...
13
votes
1answer
362 views

Can Footnotes reside in another file?

I want to know if is there a possibility/method/package, by which I can uniquely label all footnote positions in book.tex. And another file, footnote.tex, containing the footnotes and matching labels, ...
3
votes
1answer
2k views

\lstinputlisting for a normal text file?

sometimes im using \lstinputlisting to show some code examples in my pdf. Now I just would like to insert a normal textfile. Everything is fine, I like this box around my text and the numbers every ...
0
votes
0answers
45 views

Creating tables from files [duplicate]

Possible Duplicate: How typeset a numeric table from a CSV file I use the pgfplots package to add graphics to my LaTeX documents. Usually I have a data set in a .dat (plain text) document ...
27
votes
2answers
2k views

Graphics file extensions and their order of inclusion when not specified

When using graphicx's \includegraphics you can specify the file extension or not. For generic use and perhaps portability, extensions are commonly dropped. The types of "approved" inclusions and their ...
2
votes
1answer
187 views

Location of EPS file while inserting into LaTeX file

Where should my files be located for inserting them into LaTeX document. Please help me. \begin{figure} \centering \includegraphics[scale=.87]{Plot_Left_Right.eps} \caption{Banknote Left vs ...
4
votes
2answers
2k views

Inserting Code in multiple pages as an appendix

I am trying to insert a script (bash shell code) to the appendix of my document. I am trying to import the script from separate file. The script file name is Event_Db_BckUp_Script.als. The problem is ...
8
votes
1answer
611 views

Accessing randomly selected problems via the probsoln package

I have two datasets, each containing problems dealing with a specific topic. These problems are stored in external files (again, one file per topic) and loaded into the datasets in a random order. I ...
8
votes
1answer
903 views

Hyperref to external pdf that will open at particular label

Suppose you have a tex file (lets call it B) with some labels, and another one file (call it A) , xr package will allow us to make hyperref from A->B , but I previously found couple cases (I don't ...
2
votes
2answers
606 views

Hyperref to external file in LyX

I have two separated folders, each includes LyX files with the needed attachments (pictures...etc.) , I found that I need to to use zref-xr package to make hyper cross references between those files ...
3
votes
2answers
499 views

How to outsource \hypersetup to an external file?

I use the hyperref package and defined custom settings as follows: \usepackage{color} \usepackage[dvipsnames]{xcolor} \usepackage{url} \usepackage{hyperref} \hypersetup{ bookmarks=true, ...
7
votes
1answer
1k views

Include figure (from macro) with underscore in filename

I have a system of where a .tex is generated from a program. The final .tex file has a (simplified) structure like this: \newcommand{\PlotFrame}[1]{% \begin{frame} \frametitle{...} ... ... ...
6
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
363 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
507 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
283 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
160 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
531 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
392 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
95 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
268 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
135 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
178 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
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
181 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
228 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
498 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
304 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
184 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 ...