4,873 reputation
1226
bio website bitbucket.org/phg
location Golgafrincham
age
visits member for 1 year, 11 months
seen 19 hours ago

Dec
28
comment Center an image horizontally and vertically in a table with ConTeXt
@Fabrice Another related Wiki section
Dec
2
comment How to implement (low-level) arrays in TeX
@David Lua strings > 31 bytes are hashed only partially. Great post though.
Nov
23
comment Latin Modern and Greek, an issue
Try CMU for a matching Greek face. Doesn’t come in multiple optical sizes like LM, though.
Nov
22
comment ConTeXt customize styling similar to CSS
It’s not exactly classes or id”s, but \definehighlight may be what you’re looking for.
Nov
21
comment LuaTeX callback for single line captions
You need to register the function both in the pre_linebreak_filter and the hpack_filter callback. This combination is quite common, for instance in Context, both are fused into the mvlbuilders node processor and not even available separately unless you resort to Dirty Tricks™.
Nov
19
comment How can I highlight ligatures?
@LaRiFaRi Yes, I’m being cheap not using the colorstack but injecting pdfliterals instead.
Nov
18
comment ConTeXt: How to control vertical and horizontal line thickness in tables?
Which of the table mechanisms do you use? Usually the line width is controlled via the same rulethickness key as in \framed.
Nov
17
comment Programming Conway's Game of Life in LaTeX
You might be interested in a silly Context module of mine which includes Game of Life code for Luatex. It even supports the common run-length encoded format so you can just feed it pattern files as you can download them from most websites. The code is quite old though and I’m not sure if even runs with a recent version.
Nov
15
comment Is there a list of <float> in ConTeXt?
@NobbZ you’re correct, of course. Regarding the numbering, I cannot reproduce your result with either of my examples, anyways have a look at conversion sets.
Nov
15
revised Is there a list of <float> in ConTeXt?
correction by OP
Nov
15
answered Is there a list of <float> in ConTeXt?
Nov
15
comment Is there a list of <float> in ConTeXt?
1) Use \place... instead of \complete... and supply your own heading. 2) \setuplist should get you started.
Nov
15
comment Randomly reduce the number of pages
1) If you remove pages at random you’re going to get dangling references in indices and lists. 2) I’d start with the pre_output_filter callback since that should give you access to the completed page.
Nov
15
comment Is there a list of <float> in ConTeXt?
Search the manual for \placelistof<<floats>> and \completelistof<<floats>>.
Nov
14
comment Measuring the true height of a character
The Luatex fontloader also keeps the bounding boxes for each character around, see tex.stackexchange.com/a/130320/14066
Nov
14
comment Why can't we use a \define'd value as a parameter to \switchtobodyfont[…]?
@LarsH \protected (or it’s Context alias \unexpanded) is described in the ε-TeX manual (p. 14 of the PDF version, see also the reference).
Nov
13
comment Why can't we use a \define'd value as a parameter to \switchtobodyfont[…]?
\define creates \unexpanded macros that interfere with the parser. Also, the \{setup,switchto}bodyfont macros are known to have some quirks: wiki.contextgarden.net/…
Nov
13
comment Are \def and \define the same in ConTeXt?
@LarsH Yes, Mk**VI** (not MkIV!) macros are the ones with (optional) parameter names. I’m not sure there exists any user-level documentation besides the source: the preprocessor code can be found in luat-mac.lua (for Context) and luatex-preprocessor.lua for Luatex-Plain. Hth.
Nov
10
comment LuaLaTeX — too high memory usage
@Georg In that case I have no advice to offer besides platitudes: clone the code and bisect until memory consumption drops. Without a concrete test document there isn’t much hope for remote help, sorry.
Nov
10
comment LuaLaTeX — too high memory usage
@Georg This rules out one class of causes. What changes did you make to the document since it now compiles?