Tag Info

New answers tagged

2

Please, use csvsimple version 1.12 (2014/07/14) (or newer). In my code, I made a helper macro \commandThreeX which is used to get rid of the semicolon at the end of the input lines. The rest is quite straigtforward using \csvreader: \begin{filecontents*}{example.csv} foo,bar,baz; zip,boom,bang; \end{filecontents*} \documentclass{article} ...


0

Deleted first code block, and used: \newread\reader \newcount\TotalFiles \makeatletter \newcommand\IterateImages[2]{% % #1: directory path with a trailing / % #2: a list of file extensions: eps pdf jpg png \immediate\write18{batch "#1" \jobname\space #2} \openin\reader=\jobname.list\relax \newcounter{figurecounter}\setcounter{figurecounter}{1} \loop ...


6

This answer had been prepared long time ago and I am waiting for someone to ask it. Here (click) is the history. Batch.bat rem batch.bat echo off rem %1 path (relative to the main input file) to the files to be iterated rem %2 output file name rem remaining args represent the extension of file to be iterated set curdir=%CD% cd "%~1" shift rem output ...


0

With latexmk you could use latexmk *.tex from a command line if you have all and only the files you need in one directory. (Something like this probably works with other tools too.) To answer the question raised in the comments: each of the files will need to include the template, e.g. with \include. using '*.tex' will also run latexmk on the template if ...



Top 50 recent answers are included