48
votes
0answers
2k 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 ...
33
votes
0answers
1k views

Speeding up compilation using precompiled preamble with LuaTeX

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

How to embed Javascript in LaTeX Beamer?

I'm wondering if it is possible to add javascript animations in LaTeX Beamer, e.g. figures created with C3 or D3? As far as I remember the animate packages uses javascript in order to display (and ...
25
votes
0answers
917 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, ...
21
votes
0answers
501 views

wxLua in LuaLaTeX

I have some problems using wxLua in LuaLateX. This works: lua simpleui.lua (print instead of tex.print) But if i try this: lualatex wx.tex it doesn't work. \documentclass{article} ...
20
votes
0answers
499 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 ...
18
votes
0answers
551 views

Customizing the height of the pages

The question I would like to control the height of the pages of the PDF documents I produce with LaTeX. Starting with a LaTeX document and two parameters: a given page size (heightPage and ...
17
votes
0answers
227 views

Test if paragraph has an overfull line

I'd like to test if the last paragraph has any overfull line. The naive approach of looking at the \badness once the paragraph is finished does not work, as it will only give the badness of the last ...
16
votes
0answers
186 views

What is “the” LUA root for context packages?

As package author, I want to write a LUA module which can be found by both lualatex and context. The lualatex prototype works reasonably and I am convinced that this will also be true if I release ...
16
votes
0answers
303 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} ...
16
votes
0answers
327 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 ...
16
votes
0answers
515 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 ...
15
votes
0answers
381 views

High-profile cases of non-compliance with the LaTeX Project Public License?

As I'm getting more and more interested in releasing packages of my own in the future, I just read the LaTeX Project Public License (or LPPL). This document defines, among other things, the rules for ...
14
votes
0answers
118 views

How does one retrieve \rpcode values in LuaTeX?

The \rpcode values from pdfTeX are properties of font characters, e.g., \rpcode\font 50 = 200 sets the right protrusion value for character 50 in the current font to 200. Reading chapter 7 of the ...
14
votes
0answers
79 views

How to use luatex's node.hpack so that marks, inserts and vadjusts migrate out?

TeX's hpack routine packages an hlist into a box. While doing that it looks at a global pointer adjust_tail and if that is not "null" it migrates some nodes to a separate list starting at ...
14
votes
0answers
7k views

eps-converted-to.pdf not found

I was trying to include a figure in LuaLatex, but got an error message of !Package pdftex.def Error: File 'test-eps-converted-to.pdf' not found. The same code run in pdfLaTex+MakeIndex+bibTex. ...
14
votes
0answers
627 views

How to colour the pgfgantt canvas based on calendar dates

I am working on a pgfgantt document where all timelines are governed by real dates and where the titlelist shows week days based on the TikZ calendar library. I have used and modified the code from ...
12
votes
0answers
180 views

Obtain \badness or glue adjustment for each line

This might be interesting for perfectionists and/or fastidious typesetters who would like to improve the document even further (beyond the beyond the magnificence of a book with zero bad boxes). We ...
11
votes
0answers
251 views

ConTeXt for non-technical person

A dear person to me has started her own small publishing company (psychology related books -- completely non-technical) and she uses Microsoft Word. It's a one woman operation and she often asks me ...
11
votes
0answers
445 views

TeXLive and MikTeX behave differently in handling BOM

It is a followup of my answer that has been converted to comment (click) posted several decades ago. Shortly speaking, MikTeX does not remove leading BOM but TeXLive does as shown in the following ...
11
votes
0answers
295 views

How to write an arara rule for knitr

I've been trying to write a rule for invoking knitr via arara, but I don't seem to know what I'm doing, apparently. The arara manual explains how to define custom rules. To do so, it is necessary to ...
11
votes
0answers
318 views

Can't generate ligatures with LuaLaTeX under TeXLive 2014 when using certain fonts

Consider the following MWE: % !TEX TS-program = lualatex \documentclass{article} \listfiles \usepackage{fontspec} \setmainfont[Ligatures={Common,Rare}]{Hoefler Text} \begin{document} ff fi fl ffi ffl ...
11
votes
0answers
398 views

Changing colors of included cmyk jpg

I am trying to convert a pdf containing grayscale pictures and black text into shades of a single color in cmyk color space (for printing). I was thus very happy to learn, from a side remark in one ...
11
votes
0answers
397 views

Why isn't the arc drawn on the good plane using tikz-3dplot in Tait-Bryan convention

As some people on tex.sx, I used the tikz-3dplot and changed some commands to use Tait-Bryan convention instead of the default Euler convention. As you can see on the following picture, the rotation ...
10
votes
0answers
58 views

tcolorbox: Can one store the parts of a breakable tcolorbox for later use?

I would like to delay the output of some parts of a breakable tcolorbox (I want to use them in a "notes column" and try to implement a way to split them if they get too long for a page). Has someone ...
10
votes
0answers
82 views

How to best make the transition from LaTeX2e to expl3 syntax

I was peeking at the LaTeX3 github repository and specifically l3auxdata.dtx. There was a surprise for me, as I have been practicing and studying the expl3 syntax and modules for the last couple of ...
10
votes
0answers
92 views

Determine File Name and Line Number Where a Macro is Invoked From

Wondering if there is any way to print out (for debugging purposes) the file name and the line number from where a macro is invoked (not where it is defined). My attempt to use the currfile package ...
10
votes
0answers
154 views

Did one manage to get the new dvisvgm driver from PGF 3.0 to work?

Background: PGF 3.0 added a new, direct way to create SVG. It now has a dvisvgm driver (pgfsys-dvisvgm.def) which has fewer (claimed) limitations than the pgfsys-tex4ht.def driver. Except it doesn't ...
10
votes
0answers
491 views

Y&Y TeX versus TeX Live/MikTeX

I noticed that the formerly commercial Y&Y TeX is available under http://tug.org/yandy/. My question is: compared with a modern MikTeX or TeX Live is there any feature in Y&Y TeX that could be ...
10
votes
0answers
195 views

How to pass a LaTeX argument verbatim to lua?

I would like to pass an argument verbatim from LaTeX to lua including LaTeX commands and end of line characters. The example below takes care of the former issue, but not of the latter. Is there a ...
10
votes
0answers
301 views

LaTeX Visual Novel Engine: Does it exist?

Did anyone in the past use LaTeX to create a "visual novel" engine? I've been using http://www.renpy.org/ for rare presentations when I need functionality the beamer class in LaTeX doesn't easily ...
10
votes
0answers
105 views

How can I make a custom environment that wraps listings?

Thanks to this answer, I know it is possible to float and wrap text around a listing. I would like to setup an environment for mini-code snippets that always floats and wraps the same way. I can ...
10
votes
0answers
489 views

Is there a document class or package specifically for drafting United States legal documents?

I recently drafted a non-disclosure agreement in TeX using the document class article. I liked doing this a lot and I intend to continue doing my legal paperwork in TeX. Do document classes or ...
9
votes
0answers
262 views

water inside 3D tube

How can I generate the above image using TikZ. The oval inside tube represents water and arrows indicates the dipole orientation of water. What I was able to get so far is pasted below. ...
9
votes
0answers
67 views

Indent text without using trivlist

Quite a lot environments which change margins (e.g. center, quote, addmargin from KOMA) use internally trivlist. This has some drawbacks, e.g. when the list is directly between two sectioning ...
9
votes
0answers
67 views

Fall back to all-caps if small-caps shapes are missing

If I use \textsc{xyz} with a font that has no small caps (e.g. Latin Modern Sans), the result is typeset in lower case. Is it possible to fallback to all-caps instead?
9
votes
0answers
179 views

Doing things to every page of a multi-page table

So, the designers did their job and specified coloured backgrounds and rounded corners for all tables. Like so: As described here, this requires doing nasty things like putting the whole table ...
9
votes
0answers
342 views

Document Blending: An Analysis of the Sex Appeal of Business Instruments

Here is what I'm working with so far: \documentclass{letter} \usepackage{background} \usepackage{lipsum} \backgroundsetup{% scale=4, %% change accordingly angle=0, %% change ...
9
votes
0answers
178 views

Variable page break penalty for odd/even pages?

I am working on a document that has a large number of external Lilypond files included. These render quite well and (while a bit of a pain to use) lilypond-book is smart enough to render the music ...
9
votes
0answers
1k views

knitr & xcolor: incompatible color definition

I'm using knitr and RStudio to compile LaTeX. In my real project I'd like to use some options from the LaTeX package 'xcolor', but when I do include \usepackage[options]xcolor, I get the error message ...
9
votes
0answers
321 views

Markerless footnote which is page-wide in twocolumn document

I'm using this code to create markerless footnotes in LaTeX (source): \makeatletter \def\blfootnote{\gdef\@thefnmark{}\@footnotetext} \makeatother Furthermore I'm using the footmisc package for ...
8
votes
0answers
84 views

PDF/X in pdflatex with memoir, new xcomply package

Only a question in the sense of feedback requested. Move if necessary... For some time, I have been working on a better alternative to packages such as pdfx and xmpincl. I think I've got it! Results ...
8
votes
0answers
119 views

What type of Chomsky hierarchy is TeX?

There are four types of chomsky hierarchy (specified for formal languages): Type-0 Recursively enumerable Type-1 Context-sensitive Type-2 Context-free Type-3 Regular I consider that, it should ...
8
votes
0answers
386 views

Current state of LaTeX on iPad?

I most recently got an iPad and since I have a oldish, heavy laptop, I'd much rather only carry around my iPad instead of my laptop (I'm a student). I do need to create and compile TeX files though ...
8
votes
0answers
267 views

PDF/A with CMYK, how?

Using http://tex.stackexchange.com/a/99666 and http://tex.stackexchange.com/a/136653 I think I have been able to generate (using TeX Live 2014, pdfTeX 3.14159265-2.6-1.40.15) a PDF/A-1b compliant pdf ...
8
votes
0answers
101 views

XeLaTeX: Set an alternative font in case it is not found

I am setting up the packages for a shared project with someone who's not familiar with LaTeX. I want to use some of our local fonts. I used XeLaTeX and it works. However, we'll also use a notebook ...
8
votes
0answers
167 views

xdvipdfmx parse error when using particular font with fontspec

I am using the font IM FELL English PRO (open-source otf here) via the fontspec package, and when I tried typesetting the characters \"{a}, \'{n} or \"{o}, I got this error: xdvipdfmx:fatal: Type2 ...
8
votes
0answers
162 views

What kind of data can be gleaned from a PDF created in LaTeX?

As I use LaTeX for the creation of many of my business instruments, and since I send these all over the world to different clients I just wanted to know if there are any data embedded in a PDF that ...
8
votes
0answers
164 views

Guidelines for creating an index

This is not necessarily a LaTeX-only question, and it is a bit open-ended, but given that this community is clearly very detail-oriented, and it is a general-interest question, I think that this is a ...
8
votes
0answers
220 views

Alternative text for Javascript (form) boxes for viewers that don't support Javascript?

I am using the tdclock package to display the current date and time. In looks pretty good in Acrobat, but in other viewers (like Evince) it looks terrible because they don't support Javascripts and ...

15 30 50 per page