{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
24 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 ...
2
votes
1answer
101 views

Problem with subimport command in LyX

I have the following structure (folders in italics) master.lyx parts mst mstCh1.lyx preamble packages.tex preamble.tex p1 p1Intro.lyx Each lyx file ...
1
vote
0answers
72 views

Writing modular classes

As an OOP programmer, I am very attracted to the idea of making separate files for independent features within a class definition, where each feature I feel is too long to be included inline in the ...
3
votes
1answer
74 views

Items from file in itemize enviroment

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 ...
2
votes
1answer
140 views

How do I add/upload pictures into my Overleaf document?

How do I get pictures into my LaTeX paper I did on line in Overleaf? It says I need to make a new file? I have the pics in a folder as JPG but how do I upload them into the paper?
20
votes
4answers
3k 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 ...
5
votes
1answer
95 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 ...
3
votes
1answer
82 views

Getting specific row/column values from a csv file to use in text, figures or table cells

I am trying to do the following: read a csv (or other similar format) external file with numerical and string data into an object; reference/get an specific value from such object to use into an ...
0
votes
1answer
52 views

new \input{file} Package, Command wrapper: microtype .tex with reserved symbols

I know enough basics in LaTeX to produce a decent looking document. LaTeX makes it more difficult to NOT do that. But I don't know plainTeX or "@" and other advanced, cryptic programming tricks that ...
0
votes
0answers
13 views

Importing pgfplot labels from external files

I create large tizk-pictures which require me to use the externalize library due to memory issues. I define these pictures in a secondary file figures.tex which I can compile to receive the pfds of ...
9
votes
1answer
252 views

\includegraphics takes the wrong image if no extension is specified

The following code incorrectly displays the image with the letter B in the header of the first page, even though I included the image with the letter A. \documentclass{article} ...
0
votes
0answers
13 views

(SOLVED) 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 ...
1
vote
1answer
51 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 ...
3
votes
1answer
44 views

How can I write verbatim code to a file with \immediate\write?

I'm using the technique described in egreg's answer to Efficient way to write backslash to a file to write LaTeX code in an external file: \newwrite\mywriter \NewEnviron{writethis} ...
4
votes
1answer
67 views

Does LaTeX support including a specific part of an \input, like a specific environment and ignoring everything else? [duplicate]

Can LaTeX natively include only specific expressions from an input file (ignoring the rest)? I am not sure how to best word my question. Below is an example of what I'd like to do. Situation For ...
1
vote
2answers
77 views

How to sequentially “feed” a LaTeX document from external data source?

I have a quite complex C program that has the ability to generat raw text output to text files that are then printed on a matrix printer. These lists are now meant to receive a typographical update to ...
2
votes
1answer
16 views

Using `inputminted` in lyx has no effect on document

I'm trying to import a complete code file into a lyx document using the minted package. But the resulting document has no code at all. Here is a minimal example. And there's nothing in the resulting ...
2
votes
1answer
70 views

Is there a way to extract some text from a .txt file (which is not a database) and displaying it in LaTeX?

Allow me to be more specific: I have quite a quantity of folder, each of them containing a .txt file. I would like to extract some text from the header of that file to put it in a LaTeX presentation ...
4
votes
1answer
66 views

How to print page number over page containing \externalfigure in ConTeXt?

I'm trying to merge a full size PDF page into my document and then to print the page number over the top in the normal position. I've read the page on the wiki about inserting PDF pages ...
1
vote
1answer
44 views

Dealing with braces in filenames for graphicx

For the purpose of managing a large reference document with many included files, I include links to these files in the margin. Broken down to an MWE, this is what I do: \documentclass{article} ...
0
votes
1answer
43 views

Use filecontents everywhere in the document (including after “\end{document}”)

According to filecontents' manual (version number v1.3, last revised 2011/10/08, p.1) : (The comment about filecontents being valid only before \documentclass is, in fact, untrue. filecontents ...
2
votes
2answers
58 views

Place % in file path

How can I reference a file path that contains a %? Using the standard escape (\%) does not seem to work. Unfortunately, changing the directory name is not an option. Example: ...
0
votes
1answer
48 views

Including monochrome TIFF [duplicate]

I have a monochrome TIFF (hand-drawn ornament) which I want to include in my book, but I want in not black-and-white, but pantone-and-white — the book will be printed in two colors. What should be my ...
9
votes
3answers
13k 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 ...
3
votes
1answer
112 views

precompile molecules for faster compilation

I have something like one hundred of chemfig-drawn molecules in a single file, that I consider a sort of database. Compiling this file takes approximately five minutes. I'm going to write a report of ...
4
votes
0answers
46 views

Setting Folder for Data pgfplots in LyX

I'm trying to get a figure in my LaTeX document, but I struggle to set the search-path I use \addplot[blue] table {invcum.dat}; from the example, however it keeps saying ! Package pgfplots Error: ...
24
votes
4answers
1k views

Best practices for publishing computer code with LaTeX?

I work a lot with MATLAB, and I want to enable the reader of my paper to easily reproduce my computations. I also want the pdf document to be self-contained, i.e., no hyperlinks to a webpage on which ...
2
votes
1answer
31 views

Automated plotting with \input inside \addplot

I'm trying to draw some figures with externally generated data. I'd like to draw a simple line inside a tikzpicture using pgfplots like so: \documentclass{article} \usepackage{pgfplots} ...
2
votes
0answers
83 views

pgfplotstable: typset csv with 2 or more header lines (eg. name, unit, comment)

I am exporting from Origin and get a Data.csv like this: Short_Name1; Short_Name2 Long_Name1; Long_Name2 Unit1; Unit2 Comment1; Comment2 1,1; 2,0 3,5; 4,3 When I try to ...
58
votes
2answers
20k 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 ...
9
votes
2answers
581 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 ...
3
votes
3answers
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 ...
4
votes
2answers
81 views

Add version number to document from file

I have been going crazy looking for a solution. Essentially, I need to add the version number of the document somewhere on the title page. What I want to do is have a file such as version.tex which ...
3
votes
1answer
51 views

Write a value near a coordinate in a plot

I want to do it from a file, rather from inside the document like I do it now: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} ...
3
votes
2answers
76 views

Rotating a table in a .tex file

I have a .tex file and I am trying to rotate it. I won't post the whole thing, but it's a table file: \begin{table}[htbp]\centering \begin{tabular}{l*{8}{c}} %insert content here \end{tabular} ...
6
votes
1answer
117 views

Why does LuaLaTeX's \IfFileExists fail where XeLaTeX succeeds?

I have a series of files that I've been compiling with XeLaTeX. I recently attempted to compile with LuaLaTex and it made a royal mess of things. I traced the issue to the use of \IfFileExists in one ...
5
votes
1answer
236 views

includepdf does not find file with comma

I am already using grffile to ensure that all files are found on the file system (windows 7), but now I have an example where the second file is not found. \documentclass[]{scrbook} % \usepackage[% ...
1
vote
0answers
25 views

How to have Kile interpret TeX code when file extension is not .tex?

To produce my figures, I often use Inkscape with its export in Pdf+LaTeX feature. It allows to create a PDF associated with a TeX file which contains the text. Such TeX files have the specific ...
4
votes
2answers
127 views

How to get LaTeX to expand at the correct position?

I have a latex document which in the main part lists a number of "tasks" (for students to solve); to each task belongs a "script", however, all scripts are supposed to be printed in an appendix at the ...
0
votes
0answers
27 views

Tex File naming convention [duplicate]

Is it possible to number tex files? I'm avoiding it now but, I would like to order a list of files (chapters in a book) so that each chapter is easy to find. Will this cause a problem? I have in mind: ...
0
votes
0answers
63 views

inputenc -w- \scantokens \expandafter

Sorry to bother everyone again - this is a followup question to my earlier question: Can openout handle a filename with spaces? (I suppose I can combine this with the earlier question, but this ...
4
votes
1answer
88 views

How do I make an attached non-pdf file display like a link?

I'm embedding an external file in my pdf with \usepackage{attachfile2} and \textattachfile[color=1 1 1]{description}{file.txt}. How can I make the text look the same as it would if I had used the ...
3
votes
2answers
632 views

Wrong TikZ filepaths when included used input

I'm using TikZ for my thesis but have run into a small problem. In order to maintain some overview of the main tex file I have split all images into separate TikZ files (This also allows me to edit ...
3
votes
1answer
38 views

grffile package not working with includepdf when the command is in a “newcommand”

I'm able to include file names with spaces when I use the includepdf alone but when it's included into a newcommand , I cant seem to make it work. \documentclass{article} \usepackage{grffile} ...
1
vote
0answers
127 views

How can I prevent spaces in file names from causing the file name from appearing in the output when using graphicx? [closed]

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
70 views

Can LaTeX automatically search directories and \include discovered files?

I have a master document that has a lot of entries like the following: \include{entries/20141212-some-article/entry} \include{entries/20141215-another-article/entry} ...
1
vote
0answers
362 views

Externalize Tikz figures with pdflatex

I want to externalize all figures I have created with Tikz in my document. When I use the following code using TexShop 3.5 under OS X Yosemite 10.10.2, \documentclass{article} \usepackage{tikz} ...
1
vote
2answers
51 views

Converting a number into a character and then using it in a filename

I am trying to create a loop that will print out a list of image files. All of these image files have a filename like this: fa-x.jpg (where x is a character from a - h). I've made a loop, but the ...
2
votes
1answer
95 views

How to write authors of an article to the file?

I have a macro \writetitletofile which is write title of the article to the .dat file. How can I do the same with authors of an article. It should be noted that list of authors create with authblk ...
0
votes
0answers
27 views

included pdf files, shift to the left [duplicate]

I'm totally new and hope that this isn't a stupid question... Anyway I downloaded this template and used it to write my thesis but at the end I wanted to add some pdf files as annexes. So in my annex ...