{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

1
vote
1answer
30 views

Find files in subdirectories to use with \input

Is there a way to have TeX find all files ending on .tex in subdirectories of a certain directory to be used as \input? In my document I would like to include a large number of files from a ...
1
vote
0answers
11 views

How to attach files [migrated]

How do I attach some files to a question? Or can I? It doesn't like my grammar. If it were done when it were done it were well it were done quickly.
2
votes
0answers
11 views

view dependencies within lyx file

I have a lyx file that has a bunch of child documents (tables) embedded in it. How can I generate a list of these external files that are included in my main file when I compile (pdflatex) it? This ...
3
votes
1answer
93 views

Items from file in itemize environment

Is it possible to import items from a file into an itemize environment? For example, consider a file with just words and no formatting: Elem1 Elem2 Elem3 Elem4 ... Elem120933 I like to read in this ...
6
votes
1answer
77 views

Getting certain data out of .txt file

I'd like to use an external .txt file to provide a table in my LaTeX document with data. To achieve this I've taken into consideration the pgfplotstable package and the filecontents package. Both of ...
1
vote
1answer
355 views

LaTeX external document referencing from Main tex file

I have a file structure like this Main.tex chapters (folder) Chapter_1 (folder) chap1.tex Chapter_2 (folder) chap2.tex To refence diagrams and equations from chap1.tex in chap2.tex, I ...
3
votes
1answer
42 views

creating scatter plot from data file with missing values (sparse matrix)

I have a data set with multiple columns, where some entries are blank. I want to import and plot this data using tikzpicture. However, the resulting graph looks like some values are repeated. Can ...
1
vote
1answer
20 views

listings - How to format words of a external code file under a condition

I'm using listings to put a external code file in my document. I'm trying to customize its appearance to identify when the first character of a word is a digit and then change the color of this ...
2
votes
1answer
152 views

Looking for a LaTeX resource library

I'm a teacher, writing different kinds of documents with a lot of cultural resources that I have to organise with a catalog, then filter to retrieve ressources I want to import into my document, and ...
3
votes
2answers
335 views

A Question in Compiling book Class

I am writing my thesis using book class. And I use include function so that I can have separate files for each chapter. One problem with this is that I must click run button in the main file. If I ...
3
votes
1answer
42 views

Conditional evaluation of Sweave chunk

I'm using some R code to import and manipulate a time series. The code takes some minutes to run and, as a result, it generates a relatively small time series. Now, to prevent typesetting to take an ...
68
votes
3answers
27k views

How to include graphics with spaces in their path?

I want to import graphics into my main input file using the macro \includegraphics. It does not work if the filename contains spaces. Include image with spaces in path directory to be processed with ...
2
votes
1answer
26 views

underscore in filename using getfiledate Package

I'm trying to use the getfiledate package from CTAN to get, as sugested, the last file modification date. I've imported correctly the package and tested with another file, named table/classe.tex and ...
3
votes
1answer
63 views

Dynamic Table based on Json File

I'm trying to add in a dynamic table based on a two-dimensional array that is stored as JSON in a file on the disk. I've got no control of the file, as it gets pulled in from a web-service and ...
6
votes
1answer
1k views

Extract all \note tags from beamer as a simple text file

There is a nice presenter tool I am using called pdfpc. Sadly it does not show notes I put in my latex presentation with \note{}. Is there a way to extract the content of all my \note{} tags to a ...
0
votes
1answer
93 views

modular application (g-brief & moderncv) without changing \documentclass?

im writing a job application, so id like to have just one pdf document, which would contain my cover letter and my moderncv resumee. Both parts are working for themself, but i when i \input my ...
9
votes
2answers
247 views

What is the maximum nesting depth of \input?

Large documents are best split into various files. Using \input allows to nest multiple files. What is the technical limit of \input regarding the nesting depth? I haven't found any clue searching ...
1
vote
1answer
63 views

TeXStudio doesn't recognize self-defined commands in external file

I'd like to define some tables as commands (MWE) in an external .tex file, because there are a lot of settings for them. This external file gets included in the main document by the \input{} command. ...
1
vote
2answers
26 views

SVG filename argument to \includesvg - damned if you do, damned if you don't

I'm trying to use the svg package, for some svg files I have in a graphics/ subdirectory. My includegraphics command used to be: \includegraphics{graphics/foo.png} Now, if I write: ...
1
vote
1answer
49 views

Length of external plain text file

(Xelatex) How can one determine the maximal line length (e.g. in characters) of a external, plain text file? This file likely contains special Latex characters. Usecase is syntax highlighted code by ...
10
votes
2answers
1k views

How can I create Table in TeX and get information from txt file

How may I input .txt file to the TeX tabular? I have a list of students (FirstName, LastName, and if this student was at school). 0 means not, 1 means yes, of course... .txt file look like this: \r ...
8
votes
5answers
179 views

Importing Parameters From a Separate File

Looked a long time for a solution to my problem, but said problem did not seem to lend itself well to "google-eez"! Here's my problem: I have a Beamer presentation that I give to many different ...
1
vote
0answers
55 views

Automatically externalizing content of a PGFplot as a PNG

I've got basically the same issue as in this question: I have a rather complicated plot made with PGFplots and I can get a very significant file size reduction by using a rasterized image (PNG) ...
0
votes
0answers
17 views

Cross-reference line numbers [duplicate]

I recently found a helpful post about cross-referencing line numbers in LaTeX. This seems great for responses to reviewers, but suffers from a particular limitation. Quoting the original article, ...
11
votes
2answers
1k views

Listings line numbers that match the linerange specification

This is a follow-up question to First line number in lstinputlisting environment. Consider the MWE: \documentclass{article} %\usepackage{etoolbox}% http://ctan.org/pkg/etoolbox ...
2
votes
1answer
28 views

natbib with Vancouver bibliography style

I'm write a document of type tufte-handout, and wanted to use Vancouver reference style for bibliography, however I get the following error: Package natbib Error: Bibliography not compatible with ...
3
votes
2answers
49 views

write tokens to external files / loop unless ifeof does not work for me

I'm trying to write lines including tokens to an external file and read them again in a different document. I face two prolblems: (1) Is there a way around the ugly \unexpanded{} when calling my ...
1
vote
2answers
140 views

Generating a list with macros using tasks package

I cannot figure out how to generate a list with the tasks package using macros. If you swap the three identified lines in the MWE below, you should get the following error message: \begin{tasks} on ...
2
votes
2answers
54 views

File Path with Symbol Causes Error

I foolishly included a # (number symbol) in a file path. Whenever I reference this it generates the following error: Illegal parameter number in definition of \reserved@a. ...
2
votes
2answers
96 views

Add “sections” to a staked area chart [duplicate]

Edit: The original question was answered by @James and his solution covers the particular problem presented here. In This question I have exposed the original problem and I have received answer to ...
2
votes
0answers
25 views

Reading a defined number of line from a file with **addplot**

I'm using addplot to create figures from an external txt file. I want to create different figures, using an increasing number of lines of the data file. Obviously i can create different data files ...
2
votes
1answer
29 views

LyX: Adding External PDF in Hebrew File

I am trying to add an external pdf file in my document written in LyX, using the Hebrew Article document class. Following suggestions from other questions, I tried to use the "pdfpages" package but ...
7
votes
2answers
153 views

Write values to a file

I'd like to write the contents of a macro to an external file. The code below \documentclass{article} \begin{document} \newcommand\foo[3]{1: #1, 2: #2 and 3: #3} \foo{foo}{bar}{baz} \foo{See ...
2
votes
2answers
63 views

Combine multiple variable PDFs onto one page

I have n PDFs in a folder. Each PDF contains only one small figure. I want to combine all of these onto one page, one on top of the other. I want to be able to specify just the directory that the PDFs ...
62
votes
3answers
34k views

Cross-referencing between different files

I want to cross-reference between different .tex files, just because I want to put every chapters separately. Let's say in file chapterI.tex I have \label{a} and I want to access this in file ...
5
votes
3answers
168 views

How to cut pdf at crop marks?

I have a PDF document, evidently produced using LaTeX, which has wide white margins and crop marks. I'd like to remove these margins and corresponding crop marks. Is there a tool to do it ...
1
vote
0answers
18 views

Why is TexStudio is rendering figure names next to my figures? [duplicate]

I am using the TeXStudio environment to write short documents, and all of my figures are rendered with part of the file name next to them. Here's an example: The code associated with this image is: ...
58
votes
3answers
10k views

Can I use an image located on the web in a LaTeX document?

I have tried \includegraphics{http://www.site.com/path/to/figure.png} But this returns the error ERROR: Package pdftex.def Error: File `http://www.website.com/path/to/figure.png' not found. ...
13
votes
1answer
3k 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 ...
1
vote
1answer
92 views

How to run a batch file to compile a tex file that calls txt files in itself?

Trying to make a batch file that compiles a .tex document that calls .txt files into it. Can get the batch file to compile the .tex doc, brings back errors when trying to find each .txt file. Each ...
1
vote
1answer
32 views

What symbols are allowed in names of video files imported with media9?

I occasionally found that comma cannot be used in names of .mp4 and .swf files imported by \includemedia macro defined in media9 package although comma is allowed in names of a graphics file imported ...
2
votes
2answers
390 views

How to insert footnote with latex \input?

I have two tex files and use the command \input to include the table on my main file as follows: Main.tex \documentclass{article} \usepackage[T1]{fontenc} \usepackage{inconsolata} \usepackage{url} ...
7
votes
1answer
130 views

Rename associated Figure files

Some journals request that the submitted figure files are named to match the compiled latex pdf (fig1.pdf, fig2.pdf, ...). Now most of my colleagues and I do not name our figures according to the ...
7
votes
3answers
144 views

Reading the data to iterate over with \foreach from a file

I have a \foreach that should read the data points from a file. The points are stored in such a way that a simple copy paste would do. In fact, I don't want to do more than copy paste (if ever ...
4
votes
1answer
39 views

Biblatex: Where to put external abstract files?

In §3.11.8 ("External Abstracts and Annotations") of the biblatex documentation, it says that it is possible to put abstracts in external .tex files rather than storing them in the .bib file directly. ...
1
vote
1answer
97 views

Problem using \includeonly

I have a problem using the \includeonly command. I have a large document and I wanted to split it up into sections- each section would be in its own file and I would compile only the current chapter ...
3
votes
1answer
60 views

How to create a folded surface from a contour

I am computing the coordinates of a circuit on the sphere using several (heavy) pgfmath macros. This results in a costly production of what is basically a table of two dimensional coordinates. Using ...
7
votes
1answer
108 views

Getting the filename of the current input from within “show_error_hook”

In the luatex reference guide, status.filename is described to return "the name of the current input file". The luatex wiki describes how to use this along with show_error_hook to produce better error ...
3
votes
0answers
76 views

Save Feynman diagram files in a subfolder

Suppose one has a simple Feynman diagram, such as the following MWE (which has to be run with -shell-escape, I guess this is to allow compilation to "escape the shell" to run metapost). ...
3
votes
1answer
117 views

creating auxiliary files folder if it doesn't exist

If it doesn't exist, I would like to automatically create the subfolder ./temp where to put the auxiliary files with -aux-directory=temp. Can this be done in Texstudio 2.10.2? (see here and the ...