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}.

660 questions
23
votes
4 answers

How to increase the TeX open file limit?

I noticed that TeX has a open file limit, while using some additional bibliographies with multibib, using hyperref, backrefs and so on (basically only 5 additional newcites were possible in that document before hitting the limit). I worked around…
maxschlepzig
  • 12,082
13
votes
2 answers

IfFileExists and filecontents causes an error

I would like to use the filecontents environment in my document. I get a warning LaTeX Warning: File `test.txt' already exists on the system. Not generating it from this source. If I run multiple passes of pdfLaTeX on the…
StrongBad
  • 20,495
12
votes
2 answers

Is it possible to print the file size of a file?

Is it possible to print the size of a given file in latex? For instance, suppose I have a file ./foo.jpg whose size is 381.3 KiB. I want a command \printfilesize so that \printfilesize{./foo.jpg} writes 381.3 KiB.
11
votes
2 answers

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 doesn't require a special compilation sequence? My…
Sean Allred
  • 27,421
10
votes
2 answers

Efficient way to write backslash to a file

Say I have a writer and an environment (actually an Environ) defined as \documentclass{article} \usepackage{environ} % www.ctan.org/pkg/environ \newwrite\mywriter \NewEnviron{writethis} …
Bart Michels
  • 1,298
  • 2
  • 13
  • 24
8
votes
1 answer

Numbers in text, without having to update values from external files by hand?

I am writing a paper discussing numerical results of simulations. I am still tuning those simulations itself, so the results keep changing slightly. I don't want to re-type numbers over from what I computed all the time into the LaTeX document by…
eudoxos
  • 2,973
8
votes
2 answers

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 \ref{sec}}{\begin{description} \item[whatever]…
topskip
  • 37,020
7
votes
4 answers

Using #define value from c source to be used on .tex document

I would like to extract a value from a .h head (C language) and use this value as input to LaTeX. As an example, consider defines.h: #define MEB_COM_PACKET_ID 0x01 using this value on a table of a .tex document…
6
votes
1 answer

Output and Code on the same Sheet

I'm thinking of creating a query material so that I can see the compilation result with your code just below. As I'm starting in this TEX world, I do not want to accumulate multiple TEX files on my system. I'd rather create a PDF that has everything…
LCarvalho
  • 1,611
6
votes
1 answer

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…
silvado
  • 824
5
votes
3 answers

Access record values on external file using keys

I would like to access the value of a record using a key. Let's say an external file with two fields delimited b comma is as follows: A, Cycle A Morning Summer B, Cycle A2 Night C, Not a defined 1st cycle ..., ..... Z, Last cycle With a macro I…
hpcolos
  • 402
3
votes
1 answer

Expandable read from file

This question follows this Applying TikZ options stored in a file. I just wonder why the following fails to read the file. Please ignore the content of filecontents; although it works, it's just for developing a MNWE. The problem is with my use of…
Ahmed Musa
  • 11,742
3
votes
0 answers

Different file extension for \input files?

Is there a conventional choice for a different file-extension given to source files prepared for \input (i.e. containing LateX source, but not something you can process on its own)? The context here is automatically packing up selected files…
3
votes
1 answer

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}…
abc
  • 291
2
votes
1 answer

How to merge several files in LaTeX

I am writing thesis in LaTeX and I am beginner in LaTeX. I read about combining files into main file, but it didn't help me much and my problem persists. I am giving minimal code what I am trying to do. Please help me with this problem. Compiler…
1
2 3