# All Questions

1k views

### Revisiting producing structured PDFs from LaTeX

I am trying to produce a structured or 'tagged' PDF from pdftex (Tex Live 2012) that passes automated tests in Adobe Acrobat for tagging. I need to do this so that LaTeX will be accepted as a way of ...
358 views

### Can TeX generate “heap dumps” to analyze+optimize out-of-memory situations?

As package author of the memory-extensive package pgfplots, I have been asked to analyze some out-of-memory situation. I could identify the "culprit"; it was some call to \pdfmdfivesum in which it ...
870 views

### MultiMarkDown and biblatex citations

I'm using Scrivener to produce LaTeX output with MultiMarkDown. MultiMarkDown uses natbib by default, so footnotes look like this code snips: \footnote{~\citep[<prenote>]{<key>}} The ...
275 views

### What are the main differences between AutoLaTeX and LaTeXMk?

I stumbled upon AutoLaTeX today and it seems to be very similar to LaTeXMk indeed. Can you summarise the main differences, which might help me choose between the two tools?
150 views

### Tests for checking kerning and sidebearings

To test the kerning and sidebearings of digital fonts, Bringhurst suggests the following methods: To check the sidebearings typeset consecutive pairs of letters and check the symmetry. For the ...
435 views

### Reset nodestyle for tikzpicture in fancytikzposter

Problem I'm using the gorgeous package fancytikzposter to typeset my scientific posters. There I'd like to use tikzpicture to make sketches. Unfortunately the default TikZ styles are overwritten, ...
202 views

### TikZ 3 space between options and named angle in a label no more allowed

Release comparison In version 2.10 of TikZ you could write: \coordinate [label={[red] center:$P$}] (x) at (0,0); but in the latest release (version 3.0.0) you'll get an error (unknown function ...
522 views

### Letterspacing/font expansion in LuaLaTeX

I am a few months into learning LaTeX. I would like to use microtype with LuaLaTeX and I would like to obtain letter spacing for my smallcaps. I've tried to follow some of the threads on the subject ...
89 views

### Randomized drawing of individual glyphs

I was reading Knuth's "Mathematical Typography" (Bulletin of the American Mathematical Society 1(2):337-372) and the section "Randomization" called my attention. I quote most of it here. I'd like ...
180 views

### Randomly reduce the number of pages

My colleagues and I wrote a book that has m pages. Our editor wants n << m pages. For fun, I'd like to submit him two versions of our book. One version that randomly suppress (m - n) pages ...
608 views

### Best practice for typesetting physical quantities using siunitx

Consider the following example. Code \documentclass{article} \usepackage{amsmath} \usepackage[ locale=DE, output-product=\cdot, product-units=single % I use this option a lot in the document, ...
396 views

### A flexible derivative macro with LaTeX3

In an earlier post I asked a question about writing a flexible derivative macro, and someone suggested that a LaTeX3 version might be easier to understand, so I decided to try my hand at writing one. ...
209 views

### Using XMLTeX to typeset OpenDocument Text

I know that XMLTeX has already been used to typeset TEI documents, but has anyone publicly worked on a set of environment files and stylesheets to typeset OpenDocument Text? I have been looking for ...
359 views

### Speeding up compilation using precompiled preamble with LuaTeX

Compiling my documents with lualatex takes quite long. I have a complex preamble, and noticed it takes long to process this part of the file. Today I came across this website, which proposes a trick ...
71 views

### A class with default language settings

I want to write a class which loads babel and other language aware packages and pass to all of them the option ngerman as default. But if another language is used in the options of the \documentclass ...
293 views

### Are there any other methods left to create a spiral of equidistant segments?

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
338 views

### Selecting optical sizes for all fonts in a family

XeTeX and LuaTeX are able to assign optical sizes to fonts when they are provided. In those situations where XeTeX or LuaTex are unable to correctly assign optical sizes I am able to specify them but ...
127 views

### How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages?

How can one ensure that footnotes page-wrap only from verso (back, even-numbered) to recto (front, odd-numbered) pages? With the following code, the line to which the second footnote is attached ...
61 views

### siunitx disturbs spacing of \, in math with xelatex

In the following example - compiled with XeLaTeX - the spacing of \thinspacing/the value of mu (used by \,) is disturbed if \SI is used in the math before: \documentclass{article} ...
121 views

### How to diagnose a permanent “Label(s) may have changed” warning?

I'm getting the following warning: LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right. The problem is, it doesn't go away after rerunning (any number of times). The ...
186 views

### Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. ...
301 views

### How can I use Dragon NaturallySpeaking to write LaTeX math formulas by voice efficiently?

I write LaTeX documents by voice using Dragon NaturallySpeaking for speech recognition. It allows me to write much faster than if I had to type on a keyboard (~ 100 WPM vs. 50), I find that voice ...
182 views

### XeTeX in OpenBSD

How could I get XeTeX in OpenBSD? I have tried to: pkg_add texlive_base-2012, but it tries to install so much more that I ran out of space. run the install-tl perl script for TL13, but even if I ...
189 views

### A script language for beamer animations?

This is a follow-up question to Clever beamer animation? Writing a script that changes a tikz picture in beamer? as suggested there, I will put a bounty on this one. What I seek is a set of macros, ...
148 views

### How can I translate to English a TeX document without losing compilability?

Is there any way I can translate comments and non-commands from a different language to English ? I tried : Google Search https://www.google.lk/#q=translate+a+latex+code+without+losing+content ...
116 views

### Why does fake slant only seem to work after italics has been used?

Based on this question, can someone explain this behavior: \documentclass{article} \usepackage{fontspec} \setmainfont[ SlantedFont={Linux Libertine O}, SlantedFeatures={FakeSlant=0.30}, ...
195 views

### Biblatex, Use of prefixnumber changes indentation of all subbibliographies

I have a problem with my three subbibliographies. I am using two styles numeric and alphabetic. In one of the subbibliographies I would like to use a prefixnumber. Unfortunately this affects also the ...
350 views

### XeLaTeX and TikZ - how do I ensure my PDFs are using the CMYK color model?

The place I want to print my document at needs the PDF to be provided in CMYK. The document is mostly text, except for a few graphs and plots which are done in TikZ or pgfplots. As suggested in this ...
100 views

### Should packages on CTAN be widely applicable?

I have a couple 'packages' (more appropriately called styles) that I'd like to painlessly distribute to my classmates. The most straightforward way to do this is via CTAN, but I'm not sure if it is ...
42 views

### Reflow text blocks in a page

Friends, I have a simple layout to typeset a songsheet for my parish which consists of two columns provided by the multicol package and a custom environment that simply wraps each song. The following ...
106 views

### Parsing question: Do curly braces affect LaTeX compilation time?

I have an old and slow computer and long LaTeX files. When typing I prefer to use \frac 1{x} instead of \frac{1}{x} or x_i instead of x_{i}. Does the presence or omission of curly braces in these ...
75 views

### Recommended workflow for fixing several nasty frames in beamer?

I have a pretty long presentation: a course comprising a couple of hundreds frames. Occasionally, I go over the presentation, notice a few corrections in distinct frames. Fixing these requires a ...
92 views

### Is there any compiler-dependent font loadable for pdflatex but not for latex-dvips-ps2pdf?

I want to make sure that I can load the same fonts for each input file either for diagrams and text contents. It is related to my statement below, Even though PSTricks cannot work with pdflatex ...
98 views

### Is there an environment / document class for dictionaries?

Background of this question I've got the idea of creating a math dictionary with LaTeX for quite a while now. My native language is German and I write a lot of blog articles about algorithms and a ...
125 views

### Microtype and word spacing

I'm trying to change the default word spacing for some font. I know 2 ways to do it: setting \fontdimens or \spaceskip. With these approaches and microtype's \textls I get two different results, ...
79 views

### What is the easiest way to modify catcodes in a string?

Assume that a token register contains a sequence of letter tokens, each having a catcode of 12. I want to store in a second token register the same sequence of letter token, altering some catcodes on ...
61 views

### Insert terminal output to compilation or record time needed

For some reason my document takes very long to compile, and I would like to narrow down why this happens. Finding the bottleneck would be greatly eased if I could time how long individual sections in ...
145 views

### How to lock the back reference at the top left corner of the bibliography entry?

Anybody knows how to lock the back reference at the top left corner of the bibliography entry by employing BibTeX? The result should be like this: It works to me when using \bibitem (yes, it goes ...
109 views

### Make a command to mark a text and class them for text analyze

Sorry for my English, I'm French and it's my first post on this forum, but I'm a frequent visitor of this forum, thanks for all ;) My problem is this : I'm working with transcriptions of 35 ...
163 views

### How do I get an empty box on each page?

I'd like to have an empty box on the bottom of my pages in a certain chapter. I've messed around with wrapfigure and kinda sorta gotten something that looks okay, but I'd like to do it properly so I ...
711 views

### How to automatically generate Venn diagrams given the inclusion relations?

I'm writing a paper about classes of formal languages, and I'd like to have a diagram showing their heirarchy. Something similar to this (from Wikipedia:) Is there a LaTeX package which, I can give ...
63 views

### Make an index of historical time periods

I'm writing my thesis & I want to make an index with centuries, years, month, day, event & historical periods. So I try to build some commands, but unsatisfactory, I'm looking for your help. ...
70 views

### Emptying a cylinder - still intersection problems

Here is a try to empty a cylinder, still random intersection problem depending on angle. I made some cheats but some times the number of intersection point gives an error instread of giving 0. I can ...
103 views

### Polar Plots - layout and extraction of crucial parameters

Let S be some sort of function, depending on direction and frequency, for example: envir. background noise. I have S defined on a rectangular grid and I wanted it plotted on a polar grid. So far I ...
59 views

### PGFPLOTS: Show x labels for every second tick

How can I show xaxis labels for every second data in this dataset. I want a bar for each tick, but not a label. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} ...
75 views

### Help with a simple bar plot

I have some data in a table; the first column has some names; the second column associates a "category" to each name, and the third column associates a "section" to each name. All entries are ...
99 views

### . shortcut doesn't expand to \cdot

According to latex-suite documentation, . should expand into \cdot but this is not working for me. All other abbreviations (greek letters and math) do work. I tried looking in ...
105 views

### Bibliography style per language with biblatex/polyglossia?

This is a followup to Russian and Japanese and biblatex oh my. I've got a lot further now, using the polyglossia-enabled bib latex and writing my own Japanese csquotes and lbx files, but now I'm ...