{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

2
votes
1answer
18 views

How to get rid of extra numbered blank page before cover page in LyX?

I have a 50 pages document in LyX. For this report I have to add a coverpage before the title with different style and template from the report. This is what I do: I create my coverpage in a separate ...
1
vote
0answers
36 views

How can I make TeX find tikz's files without moving all of them?

I'm trying to recreate my file system on a cloud server so I can SSH into it from my new tablet. So I have def.tex, my main list of custom macros, which accesses tikz.tex: \input ...
3
votes
1answer
98 views

Relative paths for \input and building from different directories

The minimal example If I have a directory containing my main LaTeX source file and it uses \input to incorporate some data in another file, I can use a relative pathname. E.g., with these files: ...
7
votes
1answer
405 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
41 views

Spaces in names causes problem with graphicx

I keep getting the file name of my images next to the image. For example: The full path of the file is \\Shared Folders\courses\acce\14\exams\mtndfa.png. From reading other tex.stackexchange ...
1
vote
0answers
29 views

UPDATE LATEX missing file

my latex is already installed but at simulation some tex\context\base\supp-pdf.mkii file missing of mptopdf package, for update proxy server adress and port no.** and also proxy authentication Name ...
2
votes
1answer
34 views

How to get a file's “date modified” string when including graphics?

I am working on my thesis, and want to have the date corresponding to when each figure was generated included in it's caption. Currently I manually update the caption when I update the figure. I am ...
0
votes
0answers
23 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 ...
1
vote
0answers
17 views

Latex Not Recognizing png R graph [duplicate]

Please help! I made a Latex (using texworks) and it will not recognize my png file. I have the file in the same directory as the .tex and, when I scroll over the command in tex works, the image ...
1
vote
2answers
57 views

cross-reference chapter title from different file

My dissertation is several chapters, each written in a different .tex file. How can I reference the chapter number from one chapter in the text of another? For example, how would I produce '... ...
7
votes
3answers
209 views

pgfplots: 3D surface plot from data with free format

I want to plot 3D data from a file (data file) using pgfplots. The data represents an ellipsoid. I want to draw the outer shell like in the following picture, just without the background and in ...
2
votes
2answers
110 views

Pdflatex does not read the TEX root line, how do I solve that?

I have a main.tex file with several chapters in a sub folder included as: \include{chapters/chapter01} Each of the chapters' tex file have the line % !TEX root = ../main.tex at the top of the file. ...
5
votes
1answer
234 views

Drawing torus points and arches with coordinates read from a file

I have a quite intricate question... I have to plot a torus of radii (r,R) with two set of points of different colour on it its surface. The points' coordinates are in two different files that must be ...
2
votes
1answer
47 views

Creating one .tex file form a structured large document [duplicate]

I just finished my Ph.D thesis using LaTeX and I create it in a structured way with several folders and .tex documents inside. I have a master main.tex file and add the different chapters, sections ...
12
votes
3answers
2k views

Create list of all external files used by master LaTeX document?

Is there an easy way to create a list of all external files (complete path) which are used by a LaTeX document (and its "sub-documents") by \input \include \includegraphics ? (may I have forgotten ...
28
votes
2answers
12k 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 ...
8
votes
2answers
7k 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 ...
1
vote
0answers
36 views

Silence file inclusion messages?

The question seems so natural, that I would have expected it to be well researched. But, I could not find any resources. In compiling my source, I get notified on 249 file inclusions. This clutter ...
2
votes
1answer
95 views

Turn recipes (rezkonv, mealmaster) into LaTeX code

To better organize my recipes I would like to store them in a database instead of having plenty of books being scattered all around. There are many programs to realize this by offering a GUI to either ...
0
votes
1answer
56 views

What is the proper way of citing/referencing an external image/document file?

I'm writing a paper in latex and I have some tables and image files that are too big to fit on the page, so I wanted to just include them as extra files with the paper and reference them through the ...
2
votes
1answer
88 views

Modular Documents, including image from other LaTeX-Project

I am currently writing on a document where I want to include subfiles; I am creating a modular document. Now, the problem is, that I am including (read: input) files, that have been used for other ...
11
votes
1answer
198 views

How do you perform version control on TeX-related files that are used in multiple projects?

I'm an avid TeX user for quite some time now. I use LaTeX for most of my lecture notes and my assignments. That's why I'm usually working on about half a dozen LaTeX projects at a time. Over the time ...
4
votes
1answer
84 views

How can I reference line numbers in an external source file (e.g. C++) in a maintainable way?

I doubt there's a very efficient way to do this, but LaTeX seems to be capable of just about anything. I'm writing up a document to explain a piece of C++ source code to future users of the package. ...
12
votes
2answers
309 views

Is there any tool available to LaTeX to search for files with wildcards?

Say I want to find all of the packages of the form tikzlibrary*.code.tex Is there any way I can retrieve a list of all such files available in TeX's path in a portable way, hopefully one that ...
8
votes
3answers
170 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} ...
13
votes
3answers
1k views

Drawing different tikz shapes parameterized by data from a file

I have a file with three columns of data, x, y, r. # x y r 1 1 0.1 2 2 0.5 3 3 1.2 and so on. I'd like to loop over the rows, and draw a circle at x,y with radius r for each row. I first thought ...
28
votes
6answers
878 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 ...
3
votes
0answers
31 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 ...
5
votes
1answer
72 views

Why the pdf file cannot show the chapter?

Today,I typoset a book. My code: \documentclass[UTF8]{book} \usepackage{geometry} \usepackage{times} \usepackage[colorlinks,linkcolor=blue,anchorcolor=blue,citecolor=red,unicode]{hyperref} ...
11
votes
2answers
68 views

How can I insert an entire input stream (up to EOF) into an output stream?

I am trying to automate the generation of a text version of my resume. I'd like to incorporate a note to any potential human readers (most plain text resumes are, to my understanding, simply scanned ...
8
votes
1answer
64 views

How can I expand macros and write the expansion to an external file?

I'm trying to do a bit of single-sourcing with my resume, and would like to write given information to an external text file. \documentclass{article} \usepackage{expl3,xparse} \ExplSyntaxOn ...
3
votes
1answer
106 views

how to execute external commands from (Xe)(La)TeX?

i'm trying to capture output from an external command in a XeLaTeX document. as per http://tex.stackexchange.com/a/20566/28067 and http://stackoverflow.com/a/8929976/256361, i'm specifically doing ...
2
votes
0answers
43 views

providing a list of figure filenames used in tex file

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 ...
0
votes
0answers
28 views

LaTeX additional path [duplicate]

Sometimes I export an pdf with a matching tex file, that contains the text boxes and such, to the my Figures sub directory. Now instead of writing the "Figures/" every time in ...
3
votes
1answer
127 views

latex preamble for writing a book

I am writing a book. I am trying to build a preamble in such a way that there is master.tex and different files for different chapters, preface, contents etc. I am 4/10 in latex knowledge. I will be ...
12
votes
2answers
136 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): ...
6
votes
1answer
161 views

Put from external file?

I need to write a command that read a line from a text file and expand to the content of this line, the next command read the next line and so on. ... \command{arg} ... \command{arg} ... ...
3
votes
0answers
30 views

Include values of \ref, \eqref into a new document [duplicate]

I have an introduction to my thesis. It includes a lot of constructions like in Section \ref{sec1} is shown or the formula is given in \eqref{eq1} whereas the corresponding Section and equation are in ...
4
votes
1answer
53 views

How to make LyX process TeX code without converting it into .lyx format?

When I do \input{file} in a .tex document I later import in LyX, LyX converts file.tex into file.lyx and changes \input{file} to \input{file.lyx}. But LyX doesn't do well with the TeX code it does not ...
2
votes
1answer
210 views

How to include PDF file in LaTex Doc from folder location?

I'm using the \usepackage{pdfpages} to include PDF files. I'm using the following convention: \includepdf[pages={1-7}]{myFile.pdf} My question is, how can you include a link to a folder that ...
3
votes
0answers
97 views

How to color groups of bars in a graph, coming form an external file?

I have a graph displaying bars and error bars, the numbers comming from an external .dat, being simply black and white. And this is how I got there: \documentclass[12pt]{report} ...
2
votes
0answers
58 views

How to maintain data to be both implemented and documented (in a personal package)

I'm looking for the best strategy for maintaining, in a personal package, a (long) list of data that has to be defined in the implementation and to be documented in the documentation. Let me be more ...
3
votes
1answer
64 views

Vertical space only after every second row in a table

I have several tables in the following custom format, to which I would like to add vertical space (e.g. 6 pt) after every second row. I know this can be done manually. I am only wondering, if there is ...
32
votes
11answers
9k views

Deleting external/auxiliary files?

Is there a way to make TeX delete files? In my document a lot of auxiliary files are created and it would be wonderful to have them removed after their content has been used.
4
votes
1answer
70 views

Loading file after converting to ASCII characters

I am writing a document on phonetics using the media9 package to include pronunciations of some of the words in the document. The words that are to be pronounced are in Danish, and thus their ...
3
votes
0answers
68 views

Cross-referencing between tex-files [closed]

I have a main TeX-file named Thesis.tex that contains this: \documentclass[11pt, a4paper, oneside]{Thesis} \begin{document} \input{./Chapters/MethodologyAndResearchStrategy} ...
6
votes
1answer
140 views

Can I define a variable that contains a URL (youtube) and call \includemedia with it?

I can successfully embed a video in my latex file using a syntax like this: \documentclass[10pt,letterpaper]{book} \usepackage[latin1]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
4
votes
1answer
107 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
26 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 ...
15
votes
4answers
3k views

How to iterate through the name of files in a folder

Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory. I want to input all files from within my main LaTeX document. Actually I can create a ...