{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
1answer
186 views

Texmaker: Is it possible to save all files on compile?

When I press F1 in Texmaker, is it possible to automatically save all files which belong to the "master" file? If it is relevant: I am using Texmaker 4.1.
0
votes
0answers
30 views

Show up \included files in table of content [closed]

In my "main" latex file, I use \include to include all my separate chapter_xxx.tex files. However, the \chapter and \section tags inside those chapter files do not show up in the table of contents ...
3
votes
1answer
39 views

Weird image filenames

It was a pleasant surprise for me to find out that it is possible to include image named “K_{2,3}.pdf” into TeX document using \includegraphics (and pdfLaTeX). \documentclass{article} ...
1
vote
0answers
92 views

How do I reference supplementary files such as tables in Excel format?

Some of the information I need to include in my thesis are extremely long tables that will only be provided in the digital copy as supplementary files, most likely in Excel's XLS format or similar. ...
3
votes
2answers
261 views

How to ignore missing images when compiling?

I can't find a pdf figure that goes into a latex document that I am trying to edit. Obviously with the file missing, the document can't compile. Is there some way to edit the file without ...
2
votes
1answer
107 views

Scaling External Asymptote File within the Current Document

I have diagrams generated in Asymptote stored in external files. Is it possible to input the files into my current LaTeX document and to choose the scale factor within the current document? The ...
9
votes
2answers
246 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 ...
4
votes
0answers
81 views

hyperref link to file at position

I'm a newbie. I've figured out how to set up a hyperlink link to a file (in my case, a PDF) on the hard drive. But I would also like to change the starting position when this PDF opens up. This PDF ...
8
votes
1answer
72 views

Splitting file into lines and lines into parts

I'm working on a song book using LaTeX. It's early in the project, and the songs aren't all picked out yet, but I thought I'd fix the inner workings of it in the meantime. Since many people will ...
5
votes
0answers
112 views

Absolute path for pgf externalisation

The graphic externalisation works well when it is done in a subfolder of my TeX files with the command \tikzsetexternalprefix{figures/} However, I get an error message when I try to set a different ...
8
votes
2answers
105 views

Use labels from file in Tikz

I want to compare data from two files in a 4 by 4 grid. The data files are like this: data1.dat: A B C D ..... data2.dat: 1 2 3 4 ......... I am able to set up the grid with the ...
5
votes
1answer
175 views

Include a file passing a parameter

Is it possible, while including a file, to pass some parameters to that file and get included file rendered differently depending on those parameters? My particular case is, I have two documents, ...
13
votes
2answers
152 views

Filecontents and newenvironment issue

I need to write some inlined code on an external file, then load it with listings. I would like to define a new environment, but if I do, filecontents does not save the first line of code (see MWE): ...
7
votes
1answer
152 views

Extract problem and solution from files and create problem collection

I have a set of problems and solutions, and I wish to include (some of) them in several different documents. I would like to be able to choose if the solutions should be presented last, or immediate ...
4
votes
1answer
156 views

Using a non-centralized structure for tex files - similar to \graphicspath

I have a fairly large document, that I have picked apart into different sections etc, each in their own file. To include graphics that are not in one central directory I use \graphicspath which works ...
1
vote
0answers
113 views

Knitr/LaTeX: conditional execution based on external parameters

I'm using knitr to create LaTeX documents with integrated R code. Now I'd like to readout some external parameters (saved in a TXT or CSV file) and create a document based on the conditions specified ...
6
votes
1answer
179 views

filecontents* cannot write to file in Windows

With the following MWE: \documentclass{article} \usepackage{filecontents,hyperref,listings} \begin{filecontents*}{script.bat} @echo off echo "Hello, World!" pause \end{filecontents*} ...
1
vote
1answer
579 views

Geogebra import into latex doesn't work

I created this file : \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} \newrgbcolor{zzttqq}{0.6 0.2 0} ...
1
vote
2answers
117 views

Resorting the *.bib file as appeared in *.tex and rewriting to a new *bib file (biblatex)

I have quite a huge database of citations, but not all of them are included in the document. And of course they are not ordered by appearance in the text, because sometimes I have to go back to some ...
8
votes
3answers
738 views

How can I properly resolve relative paths in `\usepackage`?

I have a dedicated directory for my project; within that are nested directories source/, output/ and styles/ that contain the .tex, .pdf and .sty files. I was surprised to find that while ...
7
votes
1answer
136 views

does LaTeX support native multifile management?

This is not really a practical question, but more of an academic one: I use emacs to write my LaTeX files and in order to process multifile documents I include at the end of each file a local ...
2
votes
0answers
185 views

.aux file not found or empty while cross-referencing between files [closed]

I have an issue similar to this one. In oppose to that thread, I use xelatex. Don't know, though, if this is the issue or not. I have two files. In the first one (Characteristics.tex) I have: % ...
8
votes
3answers
198 views

Import pdf page selected by label instead of page number

For each figure in my main document, I import the corresponding page of a multipage .pdf containing all pictures (one picture per page). Is there a way to give a label to each picture, in order to ...
3
votes
1answer
662 views

Undefined control sequence \text when importing Matlab figures

I'm following a tutorial to import Matlab figures through tikz, however after trying to compile the .tex file I get the following error: ABD: EveryShipout initializing macros (./mysphere.tikz ! ...
4
votes
1answer
422 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 ...
4
votes
1answer
153 views

Problem importing a table containing dollar signs in pgfplots

I use pgfplot for plotting (obviously). I load a table from a file, but I have the problem that my columns can have a dollar sign in them and then LaTeX complains: ! Extra }, or forgotten $. ...
2
votes
1answer
269 views

Externalize pgfplotstable with csv file

This is a direct follow-up question to this: Adding units to pgfplotstable header After fixing the output I tried outsourcing the table. After figuring out that standalone does not work with ...
6
votes
1answer
201 views

Adding units to pgfplotstable header

I am plotting a table using a semicolon separated .csv file and pgfplotstable. The table shows up fine, but i need to have units within the head of the table. like this: what I have looks like ...
3
votes
1answer
92 views

In which folder should I copy the image (JPEG) so that it could be found?

I used the following code to insert a JPEG image in my document but I don't know where exactly should I copy the image so that it'll be found. I know it must be somewhere in the TeX folder, but I ...
1
vote
1answer
77 views

How to include/import only specific sections when using a multiple file structure

I am writing a rather large document of which I am planning on using multiple input files. I have previous work that I would like to reuse without copying the data (for purposes of maintainability). ...
11
votes
1answer
253 views

Can filecontents write an external file in a parent directory?

Reading Are there any disadvantages of TeX being Turing complete? got me thinking about the potential of .tex files for harbouring malicious code. The filecontents package is used to write external ...
6
votes
1answer
129 views

Is there a command to define a “virtual file” in a tex document

I wonder whether there is something like the filecontents environment, but without writing the actual data to the filesystem. With the filecontents environment, I can write a texfile like this: ...
3
votes
1answer
649 views

Sublime Text 2: Building Parameter with LaTeX

How can I perform a build process of a certain tex file, different from the current one I'm editing with the Sublime Text 2 Editor? I use the Sublime Text 2 Editor with MikTex and Sumatra PDF. My ...
7
votes
1answer
519 views

Including pictures in subdirectories with standalone package

After using standalone package extensively, I ran into one problem, which I cannot solve. The problem is that I need to include a TikZ picture in main files subdirectory. What is more I want to build ...
1
vote
0answers
28 views

How do I reference an online image from a LaTeX document? [duplicate]

I've tried this chunk of code: \usepackage{graphicx} \usepackage{hyperref} \begin{figure} \href{http://commons.wikimedia.org/wiki/File:Pachydyptes_ponderosus.jpg} ...
2
votes
1answer
550 views

Lstinputlisting and listings styles

To further extend my recent question about new listings environments, found here: Multiple listings styles. How do I define a new lstlistings environment, via the command \lstnewenvironment, and, be ...
5
votes
1answer
510 views

bibdata command

My .aux file says \bibdata{all}. How can I find out which of several files named all.bib is being interrogated? Presumably this depends on some path defined in my copy of TeX. How do I find out which ...
11
votes
1answer
312 views

Organizing images for multiple latex files

This is kind of a soft question. In my work, I generate a lot of images (graphs with data, sketches of the experimental system, etc..) which I later use in various latex files (papers, beamer ...
2
votes
0answers
331 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 ...
8
votes
3answers
188 views

How to join two or more external .tex file using another .tex file and then compile?

Suppose I have two tex files file1.tex and file2.tex. I want to join them in another tex file. I have tried to do this with the following one : \documentclass{book} \begin{document} ...
6
votes
1answer
391 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
30 views

How to specify a source directory for images and chapter files? [duplicate]

I am doing a Thesis report in a modular fashion which includes a lot of different pictures and several chapters. I figured out how to specify a source directory for all my images ...
9
votes
2answers
92 views

Including PDF pages from URL

Does anyone know a way of including an external PDF document from a URL? When using pdfpages the following will not work: \includepdf[pages=-]{http://www.mydomain.com/myfile.pdf} My reason for ...
5
votes
1answer
130 views

Writing file names used with graphicx

I'm trying to modify the command \includegraphics{}to write the name of the included file, including its path and extension, to a text file. What I have so far is: \makeatletter \newwrite\myfile ...
2
votes
1answer
126 views

How to include symlinked graphics with spaces?

I symlink to images and reference the symlink in the code. This works well as long the filename ends in an extension. However, the method I use to create symlinks creates symlinked files with the ...
6
votes
2answers
145 views

Flagging/tracing in roughdraft source document location

Surely I must be reinventing the wheel here. I'm writing a rather lengthy document for which each section corresponds to its own input file. Basically, I have a mother document which looks ...
1
vote
0answers
141 views

Why is centering a TikZ picture from an external file not the same as a centering a .png figure? [closed]

Why can't I put a Tikz picture inside \makebox? \begin{figure}[!ht] \centering \makebox[\textwidth][c]{\includegraphics[width=.8\textwidth]{./Figures/chapter5/procedure_contacts.pdf}} \end{figure} ...
5
votes
1answer
697 views

How does 'filecontents' keep LaTeX parsing while temporarily stop writing output

We all know filecontents.sty can do \documentcalss{article} \usepackage{filecontents} \begin{document} Hello World \begin{filecontents}{dummy.txt} No one will read this if I don't use it ...
4
votes
1answer
348 views

At which point does \immediate\write write to file?

Assume I have opened a file myfile and write to it with \immediate\write\myfile{My cat is too old} I have multiple such statements in my document and do calculations in between which influence the ...
2
votes
1answer
380 views

Trouble including a Matlab surf plot (pdf or png) with pgfplots

I have successfully used \addplot graphics before. Now I have a surf plot in Matlab, which I exported as png and pdf and I would like to include the image with \addplot3 graphics. I found some ...