Questions tagged [external-files]
{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}.
677 questions
2
votes
1
answer
145
views
\endcsname error using tabularray input file with automatic file name generation
I have a dynamic document where I enter some inputs within an array.
Then, in that document, I want to display a table (tabularray) which will evaluate the content of a given file, knowing that ...
3
votes
2
answers
204
views
Macro that reads dimension from file
I have a file "lenfile.tex" with content
2in%
or an alternative dimexpr (number + unit).
I want to define a macro that reads this file and expands to a \dimexpr that represents the value ...
1
vote
1
answer
115
views
Trouble displaying ASCII diagrams correctly
The Problem
I'm trying to import a file that shows ASCII diagrams like this one correctly, ideally with a figure/listing caption I can reference.:
ASCII-file (incomplete name.txt file for visibility):
...
0
votes
0
answers
32
views
Build tree in WinEdt: cannot find \inputted file in the local MiKTeX directory
When I try to build file tree in WinEdt, \inputted files in the local TeX directory are not found. The code lines
\input greekup2
\input pusymb_t2a
\input x2symb
produce such nodes in the tree:
...
0
votes
1
answer
41
views
How to indicate the location of the index style file in Overleaf?
I'm using Overleaf where I created a directory called "tex" and where all my style files could be found. Then I created a file called "latexmkrc" to indicate Overleaf where to find ...
0
votes
0
answers
47
views
Addplot from file error
community
I have the following code
\documentclass{standalone}
\usepackage[utf8]{inputenc}
\usepackage[spanish,es-nodecimaldot,es-tabla,es-noshorthands]{babel}
\usepackage[dvipsnames,table,xcdraw]{...
3
votes
1
answer
68
views
Generate many separate tex files that contain 2 tables
This code does not generate tex files.
\documentclass{article}
\usepackage{filecontents}
\usepackage{pgffor} % Add this line
% Define how many files to generate
\newcommand{\numfiles}{3} % Change ...
1
vote
2
answers
121
views
Write randomly generated content to external tex file
I am trying to generate random fractions and write their simplification to an external tex file using the code below. But, il only repeats the last one several times.
Is there a why to write each ...
0
votes
2
answers
138
views
Search and Replace Text in Multiple LaTeX files
I want to search for a specific text in multiple .tex or .bib files or combinations of them (can be 1000 files or more), and I want to replace that text with another text, and I want to be able to do ...
1
vote
0
answers
44
views
How To Restart A List From An External Document?
I need to start an enumerate list from where it left off in an external document. I'd like any changes in the items in the external document to automatically change where the number starts in the ...
4
votes
2
answers
121
views
How to detect changes in an environment between latex runs?
I'm writing a package that provides an environment, say DoSomethingIfChanged. The environment writes it's content to file and then does [something] with it (run LaTeX on it, but I think this does not ...
0
votes
1
answer
148
views
Includegraphics and file-existence
TLDR: If like a macro that takes a basename for a file (e.g. 101-JohnSmith) and looks for any file with that basename (e.g., 101-JohnSmith.png. If it finds such a file, it loads it with ...
0
votes
2
answers
132
views
Image files used in a document
Is there a ‘turnkey’ tool that allows you to retrieve all the image files used in a document using the \includegraphics command, for example? I know that these files appear in the log file, but I don'...
1
vote
0
answers
111
views
File picker in PDF form
I work for a university and we have a questionaire for students to fill out.
Unfortunately this is quite the hassle. What I just can't figure out is how to properly let users input files into a form.
...
0
votes
1
answer
121
views
Extract some sections from a external tex?
I have a large source tex, structured by sections, and I need to extract a lot of them to a new file. The goal is doing the same as the function \input, but only with some selected sections, not the ...