33
votes
0answers
777 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} \directlua{...
30
votes
0answers
799 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 ...
29
votes
0answers
407 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 ...
29
votes
0answers
552 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 ...
25
votes
0answers
381 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 ...
24
votes
0answers
341 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 ...
24
votes
0answers
776 views

TexLive: Why compiling in linux is much faster than windows?

I use TexLive in both linux and windows. However, the project compiles very fast (below 1 sec.) in linux while it takes between 10 to 20 seconds on windows (in the same machine). This has happened ...
23
votes
0answers
710 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 ...
23
votes
0answers
2k views

TikZ library for Computer Science

Is there a Computer Science library for TikZ? I am looking for a library for drawing standard data structures (array, linked list, stack, queue, pointers, trees, etc) in a consistent way. I would ...
21
votes
0answers
154 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 adjust_head....
20
votes
0answers
186 views

Is there a reliable way to get the number of arguments of a command?

While pondering over a test to distinguish two versions of a command I came up with the following example: \documentclass{article} \begin{document} \def\testA#1{\#2->blabla} \typeout{\meaning\...
19
votes
0answers
281 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 ...
17
votes
0answers
166 views

Inconsistent letterspacing (interword space) in pdflatex vs lualatex

In my documents I prefer text in small- and all-caps to be letter spaced. To that end I am using the letterspacing capabilities of the microtype package. Until now (with version 2.5 of microtype) I ...
17
votes
0answers
540 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 ...
17
votes
0answers
469 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 ...
17
votes
0answers
415 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 ...
16
votes
0answers
130 views

Globally assigning a coffin

There is no macro \vcoffin_gset:Nnw. How can I achieve that result? MWE \documentclass{article} \usepackage{expl3}\ExplSyntaxOn \usepackage{mwe} \newcommand\typesetit {\coffin_typeset:Nnnnn\...
16
votes
0answers
254 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 ...
14
votes
0answers
309 views

How to draw topological surfaces?

I am making some notes on differential geometry and topology lecture. As I know in LaTeX we can draw some very nice images. But I was not able to find any examples on surfaces, which I could use. Is ...
14
votes
0answers
167 views

Put Gnuplot mutiple surfaces plot in PGFplots axis environment to overcome z-buffer problem

Although PGFplots is the perfect tool for many depictions, it unfortunately does not have a properly working z buffer for intersecting surfaces (at this time, 10-09-2015). I'm trying to overcome this ...
14
votes
0answers
352 views

Microtype configuration for kpfonts

The microtype documentation suggests to use settings matching one's font choice. I am currently using the kpfonts package but have not succeeded to find some matching settings online. As there seem ...
14
votes
0answers
612 views

Complex ligatures in Devanāgarī

Ligatures are known to the Western European languages, however it isn't that common to spot vertical or complex form of them. As an exercise in typography I tried to get some complex ligatures in ...
14
votes
0answers
281 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 ...
14
votes
0answers
305 views

Is it possible to produce a context free grammar for Tikz path? node?

Even further, I would be happy to see a definition of the tikz language in the usual manner programming languages such as Java and Pascal are defined. The reason I ask is that I keep getting ...
12
votes
0answers
164 views

Should \minipage restore the default definition of \@par?

I came across the issue hinted at in the title while I was reflecting on this question (“Irregular spacing around a user-defined environment”) and its answer. The \@endparenv command is called by ...
12
votes
0answers
101 views

Wrong marginnote positions inside a tikzpicture with XeLaTeX

The marginnote package offers the \marginnote macro. I use this inside a tikzpicture environment to place notes into the margin. While this works without problems when compiling with pdfLaTeX, this ...
12
votes
0answers
679 views

Copy to clipboard feature in PDF output

I want a clickable copy to clipboard feature in my PDF document. Ideally the macro also allows for graphical elements to be embedded inside them (say, a button that will automatically copy paste ...
12
votes
0answers
848 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 ...
11
votes
0answers
155 views

Is there a package manager that works directly with CTAN (or local TDS structures)?

Almost out of sheer frustration, I'm on the verge of writing a Python script that will automate the install of both local TDS packages and those retrieved automatically from CTAN, without regard to ...
10
votes
0answers
93 views

Is there a general rule when to write pgfplots keywords together?

When using tikz especially pgfplots I find it often difficult to remember if a keyword is written together or separaded. Examples for keywords written together are: xticklabels enlargelimits ...
10
votes
0answers
150 views

Is CTAN secure against attackers uploading bugged versions of well-known packages?

I was checking out how to make a CTAN package, and I was surprised that it does not involve making it account: you simply have to fill out a form. If you have a new version of a package, you simply ...
10
votes
0answers
116 views

Setting up PDF outlines from Lua

In recent versions of LuaTeX, the PDF outline hierarchy may be set up from the TeX side with \pdfextension outline; for example: \pdfextension outline goto page \the\c@page {} count 1 {Chapter 1} \...
10
votes
0answers
110 views

How to get a list of valid commands?

I want to dynamically create a list of LaTeX commands that are valid in a particular file based on the packages used so that I can use them for code completion. Does LaTeX provide a method for ...
10
votes
0answers
452 views

How to exclude or remove weekends from ganttchart

Hi there and sorry for the incomplete question which only a psychic could answer :-) My problem is that I want to have my nice ganttchart or time schedule, but without including weekends. As my ...
10
votes
0answers
418 views

Asymptote generates different output whether running in interactive mode or from pdflatex

I would like to make 3d pictures and put them side-by-side. I can do that nicely creating a file example.asy: settings.render=1; import graph; import graph3; import contour3; material reds = ...
9
votes
0answers
75 views

Text copied from pdf is missing spaces, or has extra ones

When I create a pdf with pdflatexand copy text from that pdf (using Adobe Reader DC on Windows 10), some of the spaces are missing. Here's an MWE: \documentclass{article} \usepackage{newtxtext} \...
9
votes
0answers
63 views

Properly breaking up ligatures using selnolig / LuaLaTeX

Currently I use the selnolig package together with LuaLaTeX to automatically break up ligatures. This works quite well regarding the fact that ligatures get broken up at the right places. Note however,...
9
votes
0answers
156 views

Branch TikZ graph always on the same side

I am trying to draw a graph (actually, generate TikZ code automatically) which has a main branch that must be straight; secondary branches must always branch on the left. On each layer there must be ...
9
votes
0answers
67 views

Computer Assisted Tranlsation of LaTeX document

We use LaTeX as our primary documentation source. Aside from execellent looking PDF documents it also provides us with the ability to: share chapters between different versions of tools, auto ...
9
votes
0answers
82 views

Passing special characters to “shorthand” x+y options in TikZ

Update: this is now a bug report on sf.net. I think I understand the rules for special characters in pgfkeys key arguments: If it contains any of {,, =, ]}, it must be protected by putting the entire ...
9
votes
0answers
70 views

Side effects of changing blackboard bold font with \setmathfont

I'm using Latin Modern Math as math font but, since I don't like the blackboard bold letters that come with it, I replace them with the ones from TeX Gyre Termes Math. I believe to achieve this, the ...
9
votes
0answers
455 views

lualatex and polyglossia with \setdefaultlanguage{german} does not work after recent texlive update

Here is a minimal example: \documentclass{article} \usepackage{polyglossia} \setdefaultlanguage{german} \begin{document} Hallo Welt! \end{document} And here is the error message: (/mnt/software/...
9
votes
0answers
127 views

TeX to ScientificWorkplace and back

I use TeXWorks while coauthors are stuck with ScientificWorkplace. They are not (even) able to save the document as Portable LaTeX. Is there a "standard" preamble I could add to the .tex document to ...
9
votes
0answers
655 views

How to place todonotes in left and right margin?

I want to place todonotes not only on the left or the right margin. I want to use both at the same time, and that the notes should decide by themself where to place. E.g. when the note points to a ...
9
votes
0answers
370 views

Embedding a complete rather than a partial font

Is it possible to make XELatex embed a full rather than a partial font? The reason I ask is that I am trying to induce a fillable form to use the body font (a question asked before by several ...
9
votes
0answers
673 views

proper alignment of pdfpages import in memoir typeblock

Finding the solution to Setting up pdfpages with memoir? turned out not to be as simple as adding the right layout parameter as an offset. The first finding was that if a twoside documentclass is ...
8
votes
0answers
165 views

LuaTeX 0.95 “incorrect math kerning”

I am trying out the new luatex 0.95 in TeXLive 2016 pretest. There's a problem with math kernel. Below is a MWE \documentclass{article} \usepackage{unicode-math} \setmathfont{Lucida Bright Math OT} \...
8
votes
0answers
113 views

Why is 1.5 the default pdf version?

At least TexLive creates PDFs by default in version 1.5. Why this particular version? This question has been asked before in a comment and didn't receive the attention it deserves. (duh!) This site ...
8
votes
0answers
54 views

Performance difference between different graphics formats in pdflatex

I have a very complex document with many pictures (jpg, png and pdf). In trying to improve compiling performance I tried to convert all pictures to jpg, then all pictures to png and then to pdf (with ...
8
votes
0answers
113 views

Tags, like on TeX.SE, but with the ability to show or hide both the tag--document structure and associated text, as in the multiaudience package

The term "tags" can be understood to mean that which is used to organize and make text more understandable (as in TeX.SE). The term "tags" can also be understood as something used to manipulate the ...

15 30 50 per page