Skip to main content

All Questions

Tagged with
0 votes
0 answers
127 views

Python from LaTeX: Strange Networkx/Graphviz error

It is hard to give a minimal example, because Python3 with some packages is needed. I want to call Python from LaTeX, here is an example how I want to do it (--shell-escape is needed): \documentclass[]...
Titanlord's user avatar
  • 541
3 votes
1 answer
969 views

lua code inside directlua throws an invalid escape sequence error

I'm trying to make use of lualatex to automate generation of some part of a pdf. The directory tree for my minimal working example looks like the following: │ lua_escaping_issue.tex │ └───a_folder ...
user32882's user avatar
  • 1,594
3 votes
1 answer
61 views

How can I automate file inclusion using arguments?

I am working on a collection of books that uses content from other files. I want to have each reference in a file to avoid redundant content and to make it easier to review and correct the content. ...
A. Cedano's user avatar
  • 453
1 vote
1 answer
157 views

LaTeX code with input dependent on some integer parameters

Suppose that I have a large number of .tex files with names 1.tex, 2.tex, ..., N.tex (with N = some integer). I would like to write a LaTeX document, where I set some parameters for example: howMany ...
azonips's user avatar
  • 13
4 votes
2 answers
122 views

expl3-strategy to automatically update the title of a document, depending on its content

Context The current question arises: as an attempt to improve the aim explained in a question of mine (Expl3' tl variable storing the result of a \seq_map_inline: OK in article's title but ...
Denis Bitouzé's user avatar
1 vote
0 answers
89 views

version of multiple files: all document in one .tex file

I am using latexpand to Replace \input{fileX} by the content of fileX automatically using the following command in ubuntu: perl latexpand mainfile.tex > newfile.tex But I am obtaining a warning ...
user144209's user avatar
6 votes
2 answers
2k views

How to automatically include several text documents into a LaTeX document?

I have several .txt or .dat files, whose names are of the form: dn-ddmmyyyy.txt. For instance: d0-01021989.txt d1-21021989.txt d2-15021994.txt d3-12121996.txt d4-14032014.txt d5-22022035.txt ...many ...
osjerick's user avatar
  • 6,970
3 votes
1 answer
332 views

How to automate introduction of section titles in book

I'm using Spundun's method for automating inputing the entries in a diary, in turn inspired by Peter Grill (Using LaTeX to keep a diary), and I would like to add section dividers by year. This should ...
Questionbeggar's user avatar
1 vote
1 answer
414 views

Inputting files alphabetically

I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems. I was wondering if there was a simpler way of ...
Nikel King's user avatar
1 vote
1 answer
1k views

Automatic report generation

I am trying to automatically create a curriculum vitae (or any other document if one would prefer) from a datafile that holds all values/entries. Here are my individual files that go into this ...
dearN's user avatar
  • 2,780
6 votes
1 answer
5k views

Iterating over files in a directory and including them

I have a folder called diary which contains a series of files: 20120101.tex 20120105.tex 20120304.tex etc. How can I create a single LaTeX document that includes each of these files, in alphabetical ...
Chris's user avatar
  • 225
114 votes
10 answers
25k views

Replace \input{fileX} by the content of fileX automatically

Suppose I have a document with multiple include or input statements \input{fileA} \input{fileB} etc. Is there an easy way to generate a single .tex file where \input{fileA} is replaced by the ...
student's user avatar
  • 29.2k
30 votes
2 answers
22k views

Inputting multiple files in LaTeX

Suppose I have a directory containing a bunch of LaTeX source files, and I want to input all of them into a single main file. I could do this by saying \input{dir/file1.tex} \input{dir/file2.tex} \...
Moor Xu's user avatar
  • 901