All Questions

55
votes
0answers
2k 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 ...
49
votes
0answers
2k 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{...
44
votes
0answers
1k 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 ...
26
votes
0answers
822 views

TeXLive and MikTeX behave differently in handling BOM in listing

This is a followup to a comment of mine posted in 2012. In short, MikTeX does not remove the leading BOM from listings, but TeXLive does, as shown in the following images. The leading BOM effect can ...
26
votes
0answers
1k 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 ...
26
votes
0answers
1k 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 ...
24
votes
0answers
635 views

Feedback on new package for creating on-line quizzes from latex

Arguably this question is either too broad or outside of the scope of TeX.SX, so I accept that it may be closed. As I only want feedback I'd also be happy if this was made a community wiki. I have a ...
24
votes
0answers
889 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 ...
23
votes
0answers
362 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 ...
23
votes
0answers
742 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 ...
19
votes
0answers
263 views

Feasible TeX projects to get started with (expl3?)

I'm a pretty decent LaTeX user in the sense that I write LaTeX documents all the time and I can do pretty much everything that I need to do (with some occasional help from you lovely people). But I ...
19
votes
0answers
520 views

Advanced Math and braille

How does one go about typesetting math books in braille with all parenthesized subscripts and superscripts and are there braille signs for the amsmath package special symbols?
17
votes
0answers
285 views

How to customize `l3doc`?

As I'm currently writing a package and started to use dtx format I wondered if there are alternative classes just using doc, so I started to use l3doc (since I use expl3 syntax). I'm pretty satisfied ...
16
votes
0answers
233 views

Adding full non-English Unicode language (Bengali) support to polyglossia

As we can see in this question, Bengali (Bangla) support in polyglossia is incomplete. The major weak areas are, Support for numerals. Support for other language related areas like dates. For the ...
15
votes
0answers
199 views

What explains this discrepancy between LuaTeX and other engines?

I answered a question about hyphenating already-hyphenated words (like “already-hyphenated”, or “often-hungry”), and this came up. Consider the following input file (uncomment the first three lines if ...
15
votes
0answers
286 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} \...
15
votes
0answers
535 views

Datepicker for LaTeX fillable form

I am replicating a fillable/savable form from LiveCycle with LaTeX using \CheckBox and \TextField items. I would also like to replicate the pop-up calendar / datepicker feature. I am aware of the ...
15
votes
0answers
882 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 ...
14
votes
0answers
240 views

Is there a way to optimize citation order to reduce the number of superscript numbers in text?

I want to know if there is a way to optimize the order my citations are in, such that they output the minimum number of numbers in the text. So, if I have citations \cite{A,B,C} and later \cite{A,C,...
14
votes
0answers
670 views

Special effects in TikZ leads to unprintable PDF

So I recently made a picture of the Mexican Hat Potential (related to the Brout-Englert-Higgs Mechanism of particle physics). I am more than satisfied with the graph and everything, but I noticed ...
14
votes
0answers
657 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 = ...
13
votes
0answers
131 views

Thickness of Brackets and Parentheses

I try to make all the brackets and parentheses to have the same thickness. Normally, the thickness of brackets and parentheses depends on how many lines of array and thing you will have inside them. ...
13
votes
0answers
146 views

What is the recommended way to protect a TeX Live file from updates with no changes or to auto-patch it on such updates?

Many package managers allow users to prevent certain packages from being updated. Often this is called 'pinning'. A pinned package is protected from automatic updates. This is useful, for example, if ...
13
votes
0answers
461 views

Calendar instead of table of contents

Situation I am planning to take some notes in a 'laboratory book'-ish latex document (compare these templates 1,2). The protocol will span a large time and entries might vary from a few items to ...
13
votes
0answers
966 views

How to manually typeset text in parallel on facing pages in (Lua)LaTeX?

I want to typeset a bilingual text in parallel on facing pages using LuaLaTeX. The existing solutions to automate this task have proven unsatisfactory as they don't allow for footnotes (parallel), don'...
13
votes
0answers
692 views

Marginpar on a fixed side of two-column double-sided memoir document

I have a two-column, double-sided document class based on memoir, where the wide margin is always on the left. I would like the \marginpar to always be in this left margin, irrespective of whether it ...
12
votes
0answers
555 views

Unexpected behaviour with sorting option, multiple ref context and biblist (biblatex 3.0)

I have a large bibliography file where the vast majority of entries are annotated (and annotations can (and do) contain \cite commands). I have to produce a list of the annotated entries displaying ...
12
votes
0answers
122 views

Is there any repository of BibTeX extension conventions?

There are a few fairly wide-spread extensions to the set of "standard" BibTeX entry types and fields: @webpage is fairly common, I think, and url and eprint are fairly common fields. In some cases (...
12
votes
0answers
769 views

Script for using metatype to convert metafont to TTF?

In the metatype FAQ, there's a section called "I have Metafont sources of some font. How could I convert it to TrueType using Metatype?" In that, he lays out a dozen steps that really should be ...
12
votes
0answers
342 views

Lists (itemize, enumerate) without \parshape

AFAIU (reading ltlists.dtx), lists (itemize, enumerate) in LaTeX rely on \parshape. Is there an other way to get the same result without \parshape. Motivation: wrapfigure and list environments badly ...
11
votes
0answers
118 views

xparse gobbles character(s) using an optional argument

Some recent change of the xparse package or of the LaTeX3 fundament seems to yield some changed behaviour regarding parameter processing. In some situations, at least one character is gobbled where it ...
11
votes
0answers
233 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 ...
10
votes
0answers
307 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} \...
10
votes
0answers
488 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 ...
10
votes
0answers
137 views

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec?

How can protrusion in the headings of document divisions be fixed when using pdfLaTeX and titlesec? In this answer I provide a tentative patch which allows character protrusion to work normally in ...
10
votes
0answers
2k views

Is it possible to convert a citation style language (csl) style file to a bibtext (bst) style file?

I am in a bind, trying to wrap up my thesis in two weeks time. My university requires me to use their citation style, which they only provide for endnote or zotero. Since all my citations are in ...
10
votes
0answers
166 views

Correcting wrong choice of character variant from a stylistic set

I'm typesetting a document in German blackletter with XeLaTeX and ran across a peculiar — for want of a better word — error: The hyphenation in itself is okay at that position. However, German ...
9
votes
0answers
1k views

How is the support for polyglossia in LuaLaTeX?

The polyglossia manual states that Polyglossia is a package for facilitating multilingual typesetting with XeLaTeX and (at an early stage) LuaLaTeX. However, I could not find any words about the ...
9
votes
0answers
388 views

Kashida-like Hebrew typesetting

I was wondering, what if there actually was a way to produce kashida-like typography in Hebrew in LaTeX. Not necessary as paragraph text, even as an image (nobody prints books like that to the best ...
9
votes
0answers
616 views

Transform paper folding diagram to 3D object or vice versa

I made this commands to make paper models, and I ask if it is possible to have a 3D view of them converting in tikz-3D, or backward. But it's easier to draw the flat model and generate the volume ...
9
votes
0answers
667 views

Creating a PDF form that accepts uploaded images

I am creating some forms that require users to stick photos in boxes. I was wondering if one could, with some PDF magic, create forms that could accept user supplied (via an upload button on the form) ...
8
votes
0answers
75 views

What does the .fit() method of a picture do?

What does the .fit() method of a picture do in the following Asymptote code? picture pic1; real size=50; size(pic1,size); fill(pic1,(0,0)--(50,100)--(100,0)--cycle,red); picture pic2; size(pic2,...
8
votes
0answers
77 views

siunitx, brackets around negative numbers

writing tables with statistic s result often contain negative numbers in brackets, for example (-1.23), which should be aligned on the decimal point with other numbers in columns. this can be (simply) ...
8
votes
0answers
277 views

'flushend' vs 'balance' for two-column balancing - what's the difference?

There are (at least) two packages you can use to balance a two-column document's column length on the last page: balance and flushend. Other than the superficial difference of balance requiring an ...
8
votes
0answers
226 views

Problem with dtx file after LaTeX kernel upgrade (2018/04/01)

Today, the generation of one of my dtx files stopped with the error: ! Undefined control sequence. \UseTextAccent ...up \@firstofone \let \@curr@enc \cf@...
8
votes
0answers
136 views

How can I combine overlapping marginnotes in ConTeXt?

I'm working on a project very similar to the one described in this question, only for various reasons I'm using ConTeXt rather than that poster's use of XeLaTeX. I too am typesetting a text with ...
8
votes
0answers
355 views

Asymptote 3D graphics: Convert prc-file to 2D file format

I have a question regarding Asymptote, which I recently started to use to make some simple drawings. I am facing some problems when I try to create 2D output files. I am working in a software company,...
8
votes
0answers
202 views

\- doesn't work in footnote

In the following example the \- in the footnote doesn't work. In Indian languages "dh" is one letter and should not be separated by hyphenation. I know I could use \discretionary here, but I want to ...
8
votes
0answers
1k views

Framemaker to LaTeX

I'm a software person who has been tasked with moving a few thousand pages of documentation for a piece of legacy software online. The documentation is all in Adobe Framemaker and yes, there are lots ...
8
votes
0answers
875 views

How to add/check missing punctuation marks (itemize/enumerate) automatically?

(An experiment) I'd like to present you one of the possible tasks (to be automated) I solve in my daily work: adding missing punctuation marks in the itemize and enumerate environments. I polish ...

15 30 50 per page