{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

0
votes
0answers
10 views

How to force stop on missing input file?

I noticed that if I mistakenly \include a file that does not exist, such as when mistyping the name of the file, the compilation continues with no error, no warning, and just a message 'No file ...
1
vote
0answers
51 views

How do I do a scatter with trend line?

I'm trying to remake this table from an article about Nested Containment List by Alekseyenko: I have a file with all my points in this format: 1183 0.561 1222 0.384 1473 0.425 1941 ...
6
votes
2answers
44 views

How to 'robustly' use file contents in command arguments?

I have the following code which sets up a XeLaTeX document (to be run with --enable-write18) and defines two commands, \showme and \prRaise: \documentclass[a4paper,oneside]{memoir} ...
2
votes
1answer
54 views

The code of figures at the end of file, indeed

This question is connected with How to put figures at the end of pdf file. As one can see from @cfr's and mine comments, I hoped, that it was a question, how to put a code of figures, wich are lying ...
0
votes
0answers
40 views

How do I parse and include a custom text file

I have a text file containing my own structure and keywords. Does LaTeX have methods to parse(with rules given by me) a file like this before including the result? Here is an example of what I want: ...
5
votes
1answer
38 views

htlatex requires graphic file extensions “jpg” while other latex variants don't. What to do?

I am trying to make a book that is published in both print and ebook format, and I would like one source for the book that works in both media. When I compile the following with xelatex it works. ...
0
votes
0answers
58 views

LaTeX Figures in Scientific Workplace

I'm trying to use Scientific Workplace to compile a document that was written in LaTeX. Everything is fine but the figures. In the LaTeX file I wrote \documentclass[10pt,a4paper]{article} ...
4
votes
1answer
53 views

Tikz: clipping path from external file

I would like to use the data of an external file as the clipping path with Tikz. Something in the line of: \documentclass[10pt,tikz]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
1answer
37 views

Using .toc external files

I've a two volume book and I want to put both table of contents in both books. How can I do that? My idea was to use the .toc files, but I don't know how to use external .toc file. Any help. Thanks in ...
1
vote
0answers
32 views

tikz externalize itself is slow

I am following the instructions for externalization and makefiles. I'm using a macbook air with 4Gb of RAM. I find that the step involving the parallel make is extremely slow and uses a lot of RAM, ...
8
votes
1answer
548 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 ...
0
votes
0answers
36 views

Generate only aux file for external files

I use an external document by both \input-ting it and cross-referecing labels. It looks a bit like this: \zexternaldocument*{external} In picture \ref{external-link}, you see ... \input{external} ...
1
vote
1answer
20 views

Copying one file to another, while “expanding” some variables.

The use case is that I have a template LaTeX file, which I would like to be copied several times while replacing variables in it to some other variables. Here is an example of how such a template ...
15
votes
4answers
722 views

File copy without expansion

What is the command for file copy? I want to copy the contents of one file into another without any command expansion. In a command line driven operating system one would use copy source target I ...
1
vote
0answers
41 views

how to have an easily transferable LaTeX environment? [duplicate]

I've installed a number of sty TeX packages in my machine (under /usr/share/texmf/tex/latex/). I also have a number of LaTeX documents (tex files) in a github repository which I would like to be able ...
0
votes
0answers
31 views

Serious trouble inserting image in MacTex [duplicate]

So I was using the online editor Writelatex and inserting images there is pretty straightforward. However, it's quite slow so I began to use MacTex. I'm using the \usepackage{graphicx} but I guess ...
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 ...
11
votes
2answers
131 views

Reading in a conf file as a property list

I'm not worried about supporting sections, although a bounty would be given for doing so :) Here's what I have so far, but it produces strange output for #2: \begin{filecontents}{test} \Property ...
5
votes
1answer
91 views

providing a list of figure filenames used in tex file [duplicate]

Is there a simple way of getting a list of figure filenames from a tex file? for example if I have included 10 png, 5 pdf and 3 eps files, is there a script that can output the filenames to a list so ...
4
votes
1answer
57 views

Hide \multicolumn's

I place the same table multiple times in my main document. For that, the content of the table is placed in a file called model-values.tex. On every \input, I alter the part of the table to be ...
2
votes
0answers
25 views

File Inheritance Structure Possible?

Is it possible to make a kind of inheritance while working with big projects in LaTeX? I think of a tree like inheritance where each child (which are tex-files) inherits the packages and commands of ...
1
vote
1answer
69 views

LaTeX document containing csv data with empty fields

I am writing a form letter in latex. The addresses come from an external data source. The problem is that empty fields occur (quite frequently, actually) in the data source (see below). Therefore, ...
1
vote
0answers
187 views

Tikz Externalize

I'm having some issues with externalising my tikz images. I'm using the following preambel with -shell-escape enabled using lualatex: \documentclass[print]{adelaide-mecheng-thesis} % for splitting ...
4
votes
2answers
80 views

Add content from an external file to the input tokens for parsing

I have a possibly very long sequence of tokens which is parsed by a macro. I would like to be able to read parts of this sequence from external files, if this is possible. I made up an MWE for this ...
1
vote
1answer
58 views

Problem with documentclass memoir + pgfplots from data file

I'm using the documentclass memoir and I want to make a plot from a file.dat of two rows, nothing special. But I keep getting that pgfplots could not open the file. The point is that if I make a new ...
6
votes
0answers
34 views

Problem with catchfile package [duplicate]

I want to use the catchfile package to import the data of nodes from external file ver.dat as following: \documentclass[tikz]{standalone} \usepackage{catchfile} \CatchFileDef{\myver}{ver.dat}{} ...
5
votes
1answer
192 views

Splitting a huge `.tex` file to chapter files on TeX/LaTeX level [closed]

Inspired by (although a possible duplicate) Outputting each chapter of a LaTeX document to a separate PDF, I wonder whether there is a possibility to extract the chapter (or whatever sectioning level) ...
2
votes
0answers
21 views

LaTeX; Refer in one document-class to chapters in another document-class [duplicate]

I want to include an article (with documentclass: IEEEtran) into a report (with another, company specific, documentclass). I want to refer in the article (myarticle.pdf) to the ten appendices of the ...
2
votes
1answer
300 views

pdflatex.EXE: Not enough room in an internal buffer

I've got a (hopefully) trivial problem. I have a python script that is generating the a .tex file for over 600 figures. The code automatically groups figures in up to 4 subplots depending on some ...
3
votes
2answers
160 views

octopus-graph tikz/pgfplots

EDIT:I found a solution. See below. i'm trying to get something like this: I have small dots and big dots, and some small dots are connected to one big dot. I can "plot" all points with pgfplots: ...
0
votes
0answers
27 views

Logarithmic axes using \DTLplot

I am working with the dataplot package for quite some time and find it useful for my purpose. But now I have to display a log-log diagram and failed to find a suitable function; is there any command ...
3
votes
2answers
302 views

Read integers from external data file to document programming code in LaTeX

I am attempting to document my MATLAB programming code in LaTeX. For this, I use the mcode package, which defines the MATLAB lstlisting environment. With the commands ...
1
vote
0answers
73 views

How to hyperlink to a file and open it on presentation mode in beamer? [closed]

I want to create a hyperlink to the file, and want to open that file directly from the hyperlink during presentation. I tried with the following code. \documentclass{beamer} \usepackage{graphicx} ...
5
votes
2answers
222 views

Get number of pages of external PDF

Is there a possibility to get the total number of pages of an external PDF file within a LaTeX document? Assuming that there exists a PDF file test.pdf with 8 pages in the same directory my LaTeX ...
3
votes
0answers
91 views

\if and \fi inside different \def macros

Recently I failed to solve specific task in LaTeX. I wanted to make document with several sections, each divided on several subsections. Each section I had placed to separate files, and used \input ...
3
votes
1answer
437 views

href does not run properly

I have been working with Mac and TeX Live, the newest version. I want to run videos by a mouse click on the PDF generated by a beamer presentation. I tried with shells and I also used appify to ...
3
votes
0answers
55 views

Rename associated Figure files [closed]

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 ...
3
votes
2answers
411 views

How can I import a picture of the format graphml into LaTeX?

I have to import a picture into LaTeX which is in the format graphml created using yEd. I would like to avoid converting it in a .pdf since then LaTeX would import the whole A4 page. Could you help ...
8
votes
2answers
539 views

Efficient way to write backslash to a file

Say I have a writer and an environment (actually an Environ) defined as \documentclass{article} \usepackage{environ} % www.ctan.org/pkg/environ \newwrite\mywriter \NewEnviron{writethis} ...
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
0answers
30 views

Create parent folder [duplicate]

I'm writing my training report. I created different chapters in multipath. Now I want to join every chapter in one file. I use this command \include{C:/Users/ETTIEN/Google Drive/Rapport de ...
1
vote
2answers
37 views

How would I take imported file and format it to account for spacing?

Basically what I'm trying to do is use something like \input{details.txt} which contains: ____Here are some random details with stuff everywhere. This is to see if latex will use this ...
6
votes
1answer
219 views

Reading Arbitrary Text into a table format

Another file question from Latex; this time I'm trying to read in data from a single text file and put it directly into a table. The file reads something like: something | data | stuff | bacon ...
52
votes
2answers
15k 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 ...
0
votes
0answers
80 views

How to import `.jar` files in beamer presentation?

I'm using a beamer template to do a presentation and I need to import a .jar file. Is there a specific package for importing such files, or is it even possible?
10
votes
4answers
491 views

Check for a valid file before using \includegraphics

I know how to check if a given argument represents an existing file (see this question). But is there also a possibility to check if this file can be included by \includegraphics? What I want to ...
2
votes
2answers
106 views

Read part and page count from auxiliary file

My main document is included into another that rearranges and adds crop marks to it. For universalizing my script I need to extract the page and part count out of the .toc- or .aux-file. These are ...
3
votes
0answers
160 views

tikz externalization: list and make forces make to recompile the tikz images every time

I'm trying to speed up my latex development by parallelising as much tasks as possible and by redoing as little work as possible on every run. Amongst other things, I want to externalise my tikz ...
4
votes
1answer
426 views

Lualatex, fontspec and externalized tikz problem in MacTeX

To enable faster compilation of large documents I'd like to externalize tikz pictures. I also have to use lualatex and fontspec. EDIT: After further testing it seems that this is a problem only when ...
3
votes
0answers
80 views

How can I read in files paragraph by paragraph?

I have an interesting project here and, while I could do it manually, it seems to me to be an interesting puzzle to automate it. I have the following structure: ./ +- main.tex | +- originals/ | | | ...