Linked Questions

9
votes
6answers
5k views

Automatically create two PDF output files from one tex file [duplicate]

Possible Duplicate: Can one TeX file output to multiple PDF files? Let's say I have a tex file foo.tex. Now, I want to achieve that pdflatex does not only create a file foo.pdf but simultaneously ...
1
vote
1answer
2k views

Compiling a file with two document classes [duplicate]

Just out of curiosity: Is there a way to compile latex document with two document classes at once? Suppose that I have a paper which start with line: \documentclass[preprint,authoryear,12pt]{...
2
votes
0answers
1k views

Splitting a big document into several output PDF files [duplicate]

Possible Duplicate: Keep chapter number of chapters inserted with \include Can one TeX file output to multiple PDF files? My document structure has: 1 file with preface; 12 individual .tex ...
1
vote
0answers
116 views

generate multiple documents [duplicate]

Is it possible to generate multiple documents files from one .tex file? For instance: \begin{document} \input{part1} \input{part2} \end{document} I would like part1 to be generated in part1.pdf and ...
1
vote
0answers
113 views

split output into multiple files [duplicate]

Is there a way to automatically split the output into different PDF files? The reason is that I want to generate a document "paper.pdf" and a different document "supplementarymaterial.pdf", with ...
3
votes
0answers
63 views

Splitting a book by chapter [duplicate]

In the line of this post, I am looking for a way to compile a large document (~400 pages with 10 chapters) into a single pdf file and one additional pdf file per chapter. Currently, I use pdftk to ...
1
vote
0answers
47 views

It is possible to generate more than one pdf from one source? [duplicate]

I would like to generate some pdf files with a 'for' cycle. The documents have to be very similar, but some variables are different. It is possible to do it with only LaTeX language without external ...
70
votes
9answers
35k views

How to create individual chapter PDFs from included TeXs?

My document structure has one file with preamble (i.e. MainTex) and around 75 individual .tex files (i.e. Chapter_01, Chapter_02, ..., Chapter_75) representing each chapter. I am using \include ...
71
votes
4answers
37k views

How to influence the name of the pdf file created with pdfLaTeX (from within the source code)?

I have a source file called 2011-05-27_Myfilename.tex and I'd like to create a PDF file from it called only Myfilename.pdf. Can this be configured from within the .tex file itself? (It seems to be ...
26
votes
2answers
6k views

How to automatically create 4:3 AND 16:9 versions of my LaTeX Beamer slides?

As someone who often gives talks abroad, I usually do not know beforehand which resolutions the projector supports. Thus, I always create both a 4:3 and a 16:9 version of my slides, using e.g. \...
13
votes
3answers
4k views

Does LaTeX have to reprocess included files that haven't changed?

I have included several .tex files (they do not contain the header code like documentclass, begin and end document, etc). When I include the file using \include everything works. But if I recompile ...
12
votes
2answers
6k views

Mail-merging documents from a database

I use the term database loosely here -- it can be an actual database, or a spreadsheet (in any format including CSV) or can be package-dependent. Is there a way to create mail-merged documents ...
10
votes
2answers
5k views

Output Beamer notes to a separate PDF file?

Is there a simple way to have Beamer output the presentation notes to a separate PDF file whenever compiling the presentation? I know one way is to create two master files, one for the presentation ...
7
votes
1answer
2k views

Multiple PDF generation with one tex file

I'm writing my cv using moderncv, and I want to make it in 2 languages. I wrote a common part, which both languages will have, and specific ones, where I put the translated content. I also want to ...
6
votes
2answers
2k views

Supplying string parameters to Sweave document

This must be a simple question but I don't figure out how I can do it. I would like to produce a pdf report using Sweave. And actually, many many reports. I shortened and simplified the sweave code ...
3
votes
3answers
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 ...
1
vote
1answer
840 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 ...
1
vote
2answers
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 ...
2
votes
2answers
659 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, ...
3
votes
1answer
262 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} \...
6
votes
1answer
252 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 ...
2
votes
2answers
219 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 ...
2
votes
1answer
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 ...
3
votes
1answer
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 ...
6
votes
1answer
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 ...
6
votes
1answer
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 ...
1
vote
1answer
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. ...
3
votes
2answers
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 ...
1
vote
1answer
165 views

Create two documents from one texclipse project

We have one main LaTeX project in texclipse for our Help Documentation and that works great. However we have a folder and tex file on installation instructions of our software which we would like to ...
2
votes
1answer
160 views

Different PDFs from one .tex file

I'm writing an article in LaTeX with theorem environments. Is it possible to create automatically one PDF file with whole article and in addition other PDF file only with theorems without the rest? ...

15 30 50 per page