5,103 reputation
1527
bio website bitbucket.org/phg
location Golgafrincham
age
visits member for 2 years, 3 months
seen 5 hours ago

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?
Nov
9
comment LuaLaTeX — too high memory usage
Does the leak occur when running luaotfload-tool -uf as well? The font index is rebuilt while compiling a document under some circumstances, and depending on the fonts on your machine it can eat tons of memory.
Nov
6
awarded  context-mkiv
Nov
5
answered How can I list fonts available to LuaTeX in ConTeXt (TeX Live 2013)?
Nov
1
awarded  Enlightened
Nov
1
awarded  Nice Answer
Oct
9
comment How to debug error message from luaotfload-database.lua
You could try using the corrected file from that commit: raw.github.com/lualatex/luaotfload/… but backup the existing file before you do so. It’s been a while and I don’t quite remember if this is still compatible with the version on CTAN.
Oct
9
comment How to debug error message from luaotfload-database.lua
This happens when for a given font family there are members of the same style that come with and without design size information. Fixed in the dev version a while ago: github.com/lualatex/luaotfload/commit/…
Oct
6
comment fontspec option “Renderer=Basic” - what does it mean?
@egreg Once it’s official, sure. Right now I’m still waiting for Robert’s input so the implementation can be finalized. I appreciate that you guys are keen on leaving nothing unanswered. On the other hand, an answer that might be invalidated by the next release isn’t worth much. At the moment letterspacing in Luaotfload is still in flux (in fact, there are two mutually incompatible implementations of it!).
Sep
30
comment Any advanced example of layout designing with ConTeXt?
@Aditya ... save for MkVI notation (named parameters). But that’s optional and transparent to the user.
Sep
29
comment Any advanced example of layout designing with ConTeXt?
To expand on what @Marco suggested, probably the most complex document available is the Metafun manual (source at context.aanhet.net/svn/manuals/metafun). It boasts tons of graphics and doesn’t resemble math papers at all. Also I strongly recommend the Layouts manual. Though for weird requirements like “selecting a page and assigning it a typeface” (‽) you may be better off using a drawing program.
Sep
28
answered Tracing group-level and position in LuaTeX
Sep
28
comment LaTeX + Memoir or ConTeXt MkIV?
Why would you claim that Context isn’t well documented? In my experience, the opposite is the case. The trick to being productive is developing an intuition about what to lookup where. For instance, instead of searching for a derived command (e.g. \placetable)‌​, check what facility it inherits from (\placefloat), as well as the corresponding setup and macro generator.