{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
49 views

Add “sections” to a staked area chart

In This question I have exposed the original problem, inspired in the answer given by Carina I started to work in some solution, but it is still not 100% right. Based on this meta I have decided to ...
2
votes
1answer
16 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
149 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
49 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 ...
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: ...
5
votes
3answers
123 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
1answer
60 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
28 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 ...
3
votes
1answer
28 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 ...
1
vote
2answers
63 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
3answers
117 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
35 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
64 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
58 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 ...
3
votes
0answers
58 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). ...
4
votes
0answers
59 views

How to get a list of all files used to generate a page?

I apologize upfront if this question is not clear. I am trying to create a document using memoir, and I am using a lot of individual *.tex files with \input. In order to create the page header I ...
0
votes
1answer
62 views

Compilation of main document, if subdocuments are compiled

I have a main latex document, and many other files included with \input{...}, e.g. by chapter. Often, I just work on a subfile and my idea is now, that I want to compile the main document if I start ...
3
votes
1answer
92 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 ...
2
votes
0answers
54 views

copying the compiled pdf in a folder from within tex file

In order to keep clean the folder where my .tex file is, I have successfully adopted the strategy suggested in other posts (see e.g. here or here), setting -output-directory=build and ...
3
votes
1answer
57 views

How to use data from a file in tikz?

I am using TikZ and I want to produce several graphs from a data file. The file contains many lines with three numbers x y r. I want to use each line and draw a circle with \draw (\x,\y) circle(\r); ...
2
votes
1answer
112 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
1answer
55 views

Automate importing pages from PDF file and add text to some of these

I'm trying to use LaTeX for lecture notes, but am having trouble implementing it the way I want to. For each lecture I will have access to a PDF file with presentation slides, where one slide ...
0
votes
1answer
54 views

How to Include external word document between the lyx document

I am writing my thesis, have to include a word file consists of 5 to 6 pages between the LyX document. Kindly help me by telling how can I include an external file in LyX document.
2
votes
2answers
301 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 ...
2
votes
1answer
47 views

macro for typesetting and adding a line to another document

I am writing a lengthy document and breaking it into chapters. I would like to use something like \include in my main.tex, and that typesetting of each chapter would typeset the main.tex with an ...
1
vote
1answer
236 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
89 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 ...
4
votes
1answer
646 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
78 views

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

I know enough LaTeX to produce great looking documents. LaTeX makes it more difficult to NOT do that. But I don't advanced LaTeX or TeX or plainTeX or "@" or other advanced, cryptic programming ...
0
votes
0answers
22 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 ...
10
votes
1answer
292 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
63 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 ...
4
votes
1answer
94 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
87 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
171 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
58 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 ...
1
vote
0answers
86 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 ...
2
votes
1answer
100 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 ...
1
vote
2answers
126 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 ...
4
votes
1answer
88 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
70 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
73 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
80 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
55 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 ...
3
votes
1answer
126 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
92 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: ...
2
votes
1answer
42 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} ...
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
156 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 ...
2
votes
0answers
124 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 ...