{automation} is about automating certain tasks when creating a (La)TeX document, e.g., with the help of {packages}, custom {macros} or {tools} for {compiling}.

learn more… | top users | synonyms

3
votes
1answer
174 views

Check if non-empty subsection exists under another section

I'd like to try to make a LaTeX class which enforces a number of (non-empty) sections to exist-- if the user doesn't define them manually, then some default section content will be created. ...
5
votes
2answers
137 views

Automatic linebreaking inside displaymath

Yes, I know of the existence of breqn, and I am very excited about this package. I am trying to write a mathematics paper, that will be typeset in two different styles (different page sizes, and ...
2
votes
0answers
191 views

Large block diagrams with auto positioning [closed]

I need to make some (large) maintainable block diagrams. Some small diagrams I already made using Tikz, but I always need to specify the placement of every block. Now for large diagrams this could be ...
6
votes
1answer
800 views

Include figure (from macro) with underscore in filename

I have a system of where a .tex is generated from a program. The final .tex file has a (simplified) structure like this: \newcommand{\PlotFrame}[1]{% \begin{frame} \frametitle{...} ... ... ...
7
votes
1answer
113 views

How to avoid the need to declare already declared items in \index?

Code: \documentclass{article} \usepackage{index} \usepackage{lipsum} \makeindex \begin{document} \section{\index*{Hello World}} Hello World Some text about \index*{foo}. \lipsum[1-15] Hello ...
5
votes
1answer
162 views

How do I make future equations renumber as extensions of previous equations?

I'm looking to do the following automatically rather than manually \documentclass{article} \usepackage{amsmath} \begin{document} These equations are pretty important. \begin{align} ...
32
votes
1answer
734 views

TeX as the basis for data driven document generation system?

I am in the early stages of trying to replace an existing document generation system based on Microsoft Office apps (Word and Excel). The system runs once a year to generate over 300,000 individual ...
4
votes
2answers
1k views

Automatically run Latex command after saving .tex file in Emacs

How can I have Emacs call the Latex command every time after I save my .tex file? Thanks A solution: while playing with ELisp and looking around, I added this to .emacs and it seems to work quite ...
15
votes
2answers
848 views

Create a LibreOffice spreadsheet from luatex

After reading this amazing answer, I'm wondering if it possible to do the same thing but the other way round, that is create a LibreOffice spreadsheet from luatex, exporting data from the tex file to ...
9
votes
1answer
738 views

Create a “yearbook-style” multi-page layout of photos

I would like to create a "yearbook-style" layout of photos in LaTeX. Each photo would have a caption and the objective would be to automatically layout the differently sized rectangular photos to ...
5
votes
1answer
255 views

Automatically capitalize macro output if used after a period [duplicate]

Possible Duplicate: Detect beginning of a sentence in a macro for capitalization Is it possible to write a macro that is able to determine if it is used at the beginning of a sentence? For ...
2
votes
3answers
338 views

using AutoHotKey to streamline LaTeX document authoring

Is it possible to use AutoHotKey to facilitate LaTeX document authoring? In which ways? Is there any off the shelf AutoHotKey script for this purpose?
20
votes
1answer
838 views

How to automatically arrange an unknown number of images?

I have several compilable LaTeX input files and their corresponding PDF files. Each PDF file contains any number of pages. I want to import each LaTeX input file with \lstinputlisting followed by its ...
4
votes
0answers
42 views

makebbx - program similar to makebst? [duplicate]

Possible Duplicate: Is there a style definition helper for creating biblatex citation styles, like makebst for biblatex? There is a "program" called makebst that allows creating of ...
1
vote
0answers
165 views

Script to import .bib and output HTML based on a style [closed]

I'm able to use various tools (such as pyP2B.py) to generate a BibTex database. I've also successfully created a AMA styled RTF of the database using JabRef and the APAish extension, although this ...
12
votes
1answer
3k views

Auto generate an Index

Is there any way to auto-gererate an index for the makeidx package? I've written ~270 pages and didn't think of adding \index{} everywhere. Do I really need to go over everything and add \index{}?
3
votes
1answer
143 views

How to automatize the creation of arrows in TikZ?

I'm creating yet another graph and I don't have particular problems. I can easily create the nodes, assign IDs and create arrows/paths using these IDs. But when there is a lot of content and there is ...
17
votes
1answer
140 views

Floats shortly after they have been \ref-erenced; Warn otherwise

In my thesis I have a many floating figures which I then reference using \ref. I use flafter to ensure that they do not appear before they are defined in the source code (See Force floats to be ...
7
votes
3answers
384 views

How to define a key=value that has an equivalent boolean value key

Assume you're defining a key=value align for some environment realign that you'll use in the following way: \usepackage{xkeyval}% http://ctan.org/pkg/xkeyval \newenvironment{realign}[1][] ...
39
votes
3answers
4k views

Detecting all pages which contain color

In an larger LaTeX document there are often only some pages with color content (mainly figures) and the remaining ones are only black and white. Because printing costs for color pages are much higher ...
15
votes
2answers
446 views

Avoid linebreaks in LaTeX console / log output

Is it possible to tell the LaTeX command not to use line breaks in its console / log output? This would make it easier to automate the processing of the log file, e.g. extracting the names of missing ...
11
votes
1answer
494 views

Running several latex processes in parallel

I am working on an experiment running LaTeX on server to compile some documents on the fly. Assuming I want to have several workers waiting for documents to be compiled, are there any access issues in ...
8
votes
1answer
491 views

Label automatically positioned so that it doesn't overlap anything

I produce automatically generated LaTeX-files with nodes and links. Is it possible to put the label of the node outside of the node and it is automatically positioned somewhere, such that there is no ...
12
votes
1answer
298 views

Automatic deletion of unused macros

The following scenario occurs quite often to me: I have a couple of input files where I have my own macros, mainly math-related stuff like definitions for \esssup and so on which are not available in ...
1
vote
0answers
121 views

How to treat specific words formatting (ie. API names to wrap inside texttt command)? [closed]

I would like to know if there is any elegant way to treat specific words as symbols, and automatically wrap them with a \texttt command. This would come handy with API names for instance, so \texttt ...
16
votes
1answer
1k views

Automatic line break in alignat

Consider the following example from http://tex.stackexchange.com/a/12782/4011 \documentclass{article} \usepackage{amsmath} \newcounter{eqn} \renewcommand*{\theeqn}{\alph{eqn})} ...
0
votes
2answers
643 views

How to create a new command with variable numbers of arguments

I am creating one command to define a functional requirement and many non functional requeriment in a table. I wrote the following code: \newcounter{Number} ...
42
votes
5answers
2k views

Automated Newspaper Layout (with TeX and abroad)

Update: I'd like to revive (and revise) this question a bit because there have been some recent developments, and furthermore I would be happy to encourage some up-to-date discussion. I'm thinking ...
4
votes
1answer
165 views

How can I tell ConTeXt to automatically rotate images to fit their dimensions most accurately?

I have high resolution images that would be much more effectively executed in landscape format. Is there a way to tell ConTeXt to automatically place images in landscape format to suit their ...
13
votes
6answers
803 views

Custom format file: How to automate the generation of the “precompiled preamble” whenever one of the files that are used there are changed

I would like to speed up compilation of my LaTeX documents using the precompiled preamble approach, and I was wondering whether any of the Tools for automating document compilation have support for ...
10
votes
2answers
2k views

Generating reports with LaTeX programmatically

Crystal Reports, JasperReports and many other report writers are conventionally used in software development practices when it comes to producing printer-ready reports. It would appear that a LaTeX ...
2
votes
3answers
327 views

Best way to print key-value pairs: table, array or matrix?

I have a series of values that need to be printed row-wise in multiple columns. (These values, held as \def variables, are generated programatically and some of them can be empty strings.) The ...
6
votes
3answers
154 views

How to order linked data simultaneously?

Apologies for an unclear title; I'm not sure how to describe what it is I want to do (please feel free to edit my tags). But here is my best shot: I have a collection of data; each datum is an ...
14
votes
7answers
512 views

Automatic generation of pages with variable fields

I need to produce dozens of same pages, except for the part that each page has to have a different person's name on it. Imagine it as an exam, where the content is equal for every page, except that I ...
18
votes
2answers
936 views

Repeated slides in beamer

I have about 200 JPEG files that I need to include in a PDF document, one JPEG per page (i.e. 200 pages + intro slide). The following code successfully does this with one JPEG. ...
0
votes
1answer
408 views

Fine-tuning bibliography

This question concerns fine-tuning a bibliography. I collected bib files (that are available for download from the source of a journal article) and put them all in a single biblio.bib file. Here are ...
4
votes
2answers
301 views

Solutions to problem sheets

For writing problem sheets I have a customized theorem environment called pr for the problem and a specialcomment called solution for the solution. See example below. Now my question is, if it is ...
29
votes
2answers
5k views

What's the advantage of using csquotes over using an editor's auto-replacement for "?

Many editors (TeXnicCenter, Texmaker, TeXworks, ...) offer auto-replacement of " by the desired form of quotation marks, be it `` and '' for English, "` and "' for German, or whatnot. Usually, I know ...
4
votes
1answer
523 views

Fake MLA-style bibliography fix?

\leftskip0.5in \parindent-0.5in Author. Title. Place: Publisher, Date. Medium. convincingly fakes the hanging indent of MLA-style bibliography. Is there a way to set this for a region at every new ...
16
votes
1answer
901 views

texify or latexmk?

MiKTeX 2.9 comes with both and they apparently do the same thing. I was wondering what the difference between them is (if any) and which one is preferable for large documents.
9
votes
1answer
217 views

Automated placement of text and graphics within presentations

The beamer package creates very professional presentations. Are there any additional packages which can be used with beamer which allows users to focus on content, while leaving TeX to decide where to ...
11
votes
5answers
1k views

Cross Platform LaTeX Build System

I am on Windows 7 Professional (64 bit) and would like to be able to execute one command to completely compile a PDF from source .tex files (including all required runs to get the table of contents, ...
6
votes
1answer
669 views

Latexmk can't see a dependency on a .fmt format file

I'm using latex on a small netbook, and with average-sized files (~150 pages at the moment) compilation is already pretty slow. So I am looking for every way to speed up the compilation. In this ...
7
votes
2answers
243 views

How can I determine what a label is labeling (a-la \autoref)?

I want to have a command which gets a label and returns the environment (or the last sectionining command etc.) after which I had the \label. I mean, like \autoref, but no need to convert from the TeX ...
3
votes
1answer
584 views

latexmk -pvc option breaks when compiling beamer class

latexmk is the tool I'm using to compile my documents, and the -pvc option is the one which is normally on. In this setting, when I save a file which produces a compilation error, then latexmk informs ...
3
votes
2answers
518 views

Exam poll generator?

I need a recomendation for some good LaTeX document generator. I have two lists of questions - I want the Generator - to make a given number of exam polls which will have first question from the ...
2
votes
1answer
208 views

Using checksums to determine completion of compilation

Before preparing a document for printing, I use a BASH script, like the following: #!/bin/sh xelatex document.tex % compile 1 makeglossaries document xelatex document.tex % compile 2 xelatex ...
3
votes
1answer
157 views

Find and match corresponding arXiv preprints and journal articles

Many works are published on a preprint server such as the arXiv before publication in a peer-reviewed journal. Since the arXiv can be updated during the peer-review process, it is common to find ...
1
vote
1answer
243 views

Is there software similar to the arXiv.org AutoTeX?

I was wondering, does software similar to the arXiv AutoTeX exist, or is AutoTeX is available somewhere?
5
votes
2answers
335 views

macro for custom indexing with conditionals and text recognition

I was unable to solve this by myself and by searching this wonderful site. The problem is with indexing. I still consider myself as a LaTeX newbie :) The situation: - I'm working on an english book ...