233 views

### 1 compilation, several outputs

I'm a teacher and using PdfTeX to write my courses. My question is the following : How can I compile my .teX file and generate into Pdf file : the course itself, and one or two excerpts (that I've ...
846 views

### Passing arguments to latex file

I have a pgfplots main.tex file which plots a graph from an input file. I would like to run it on 100 input files and automate creating 100 PDF pictures. How can I do that? The files are named as ...
777 views

### How can I manually create a hidden bookmark (PDF anchor)?

I would like to create invisible bookmarks/anchor points in my PDF. I want something like \pdfbookmark but with an invisible parameter. Does this exist? After experiments and reading, I determined ...
660 views

### How to write shell script for latex compliation? [closed]

Here's my needs. I have a latex file or template, some content of this file(say company name) needs to be changed according to different companies. I want to write a shell script satisfying this need, ...
264 views

### Conditional \if \fi using hooks \AtBeginDocument and \AtEndDocument

I wonder if there's a way in LaTeX to create a conditional in the whole document from the preamble? Something similar to this sample (which obviously does not work): \documentclass{article} \...
253 views

### mail merge and create multiple pdfs

I have a .csv file called sbriefdata with some data in it, for example A;B;10 C;D;20 E;F;30 G;H;40 and I want a separate .pdf file for each of the rows in the .csv file. I know how to do a mail ...
221 views

### Compile to PDF file with different name than the source

I have a latex document containing some problems and their solutions. I also have a macro \excludecomment{sol} which if uncommented, excludes the solution environments. (Similar command is there for ...
264 views

### Execute luacode after \end{document} to rename pdf file after creation

I'm using toggle switches to create different outputs with a single tex-file. However my output PDF is always named after the producing tex-file e.g. luaexample.tex produces luaexample.pdf. Along ...
236 views

### Lecture notes with embedded exercises and separate keys

I have a collection of lecture notes which have exercises scattered throughout them. I would like to provide a key to these exercises that is a separate file from the compiled notes, but whose ...
102 views

### 2 PDF Outputs at once with 2 different styles

Is it possible to export into 2 PDF Files at once? It should have the same text, but use 2 different style documents. For now I just rename the Style Documents all the time, but there must be an ...
61 views

### Output Content ONLY from a Single Macro

I want a mode where the output consists of ONLY a single macro. In the MWE below, that is the output of \ImportantMacro. All other text outside of this macro is to be ignored. An obvious start to ...
94 views

### Splitting a bibliography-driven Latex document into per-page Open Document ODT files?

I have already seen Can one TeX file output to multiple PDF files?, and I'm aware this is likely to require "external" scripting - but I just wanted to see if anyone has a straightforward approach. ...
166 views

### Output to multiple .pdf documents using LuaLaTeX and Toggles

I have a document that I sometimes want to print as one single document, and other times I want to print it as smaller groups of pages. I would like to automate the process. I'm using TeXmaker with ...