5,323 reputation
1528
bio website bitbucket.org/phg
location Golgafrincham
age
visits member for 2 years, 4 months
seen 13 hours ago

Jul
26
comment Arch Linux: fontspec does not find system fonts
That’s an old one and it had the bug you describe. Unfortunately, the TeX packages in most distros are crap and Arch is no exception. You could install a current TeX live yourself, otherwise you will have to wait for the Arch maintainers to catch up.
Jul
26
comment Arch Linux: fontspec does not find system fonts
What version of Luaotfload do you run? You can find out running luaotfload-tool --version. The current version (2.5) should update the font index automatically if a font couldn’t be found, unless you explicitly disabled the updates in the configuration file. In any case it should work on Arch because that’s the platform it is being developed on. If not then you most likely found a bug.
Jul
24
comment Escape a string printed from Lua using ConTeXt
@Aditya Are you sure? It calls tex.sprint() explicitly with the currently active catcode table. There is context.verbatim(), though, which sets the vrbcatcodes table.
Jul
23
comment Escape a string printed from Lua using ConTeXt
You can use \pushcatcodetable \setcatcodetable \somecatcodetable to set the table and \popcatcodetable to drop it again (that’s context.pushcatcodetable() context.setcatcodetable(catcodes.numbers.vrbcatcodes) / context.popcatcodetable() at the Lua end, or use context.sprint(n, ...) with the catcode table as the first argument). As for the terminology: TeX is interpreted by a TeX engine.
Jul
23
comment Escape a string printed from Lua using ConTeXt
The solution you are looking for is switching the catcode table. vrbcatcodes should suffice for most literal printing, but if you like you can skim the list for a more appropriate one: git.contextgarden.net/context/context/blob/master/tex/context/… (Btw. there is no such thing as a “TeX compiler”.)
Jul
19
awarded  Enlightened
Jul
19
awarded  Nice Answer
Jul
14
awarded  Necromancer
Jul
12
comment How to get box dimensions within lualatex
@JPi “Is there a way of doing this for boxes generated in lua” -- Each hlist and vlist node has width, height and depth attributes. See the manual, section 8.1.2.
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@egreg: Indeed. That is weird. I’m not that well informed about how things work on the Latex end, but my guess is that something (Fontspec? Microtype?) doesn’t get the feature string right. It should be something like +smcp;letterspace=5 instead (I have no clue as to what the value 50 might mean in this context).
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@dmakarov Ah, the linked code does indeed lack small caps. You can try requesting letterspacing directly like so: \textsc{\addfontfeatures{RawFeature={letterspace=10}}foo bar baz} but I have no idea how to translate this into a more Fontspec’y / Latexnical idiom.
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@dmakarov It might be easier to post the output on a paste site like gist.github.com pastebin.com -- they do a much better job at preserving formatting than these puny comments. Btw. your luaotfload and luatex look fine and you have more recent Minion Pro than me. I have no idea why it doesn’t work for you.
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@dmakarov Can’t reproduce. Please post the output of luaotfload-tool -V, luaotfload-tool --find="MinionPro", and otfinfo -i FILENAME where FILENAME is the full path to the file output by the previous command.
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@egreg “the chosen fontname seems invalid when letterspacing is involved.” -- What are you referring to? Minion Pro works perfectly well with both small caps and letterspacing enabled. Here’s the code: gist.github.com/70f8bbb8515ba71978b6
Jul
11
comment Small caps font is not enabled with fontspec and MinionPro
@dmakarov I tried your MWE with the TL 2014 luaotfload and it looks fine to me. Both marked regions are in small caps, and the document does use Minion. Can you please post an image demonstrating what is wrong on your setup? Thanks.
Jul
10
comment curious luatex warning checksum mismatch in font txr.vf ignored
Already reported
Jul
5
comment ConTeXt: How to prevent new paragraph after \hrule in section heading?
Rules don’t cause TeX to enter horizontal mode as text does. Try \setuphead[subsection][style=\tfb, before=\leavevmode\blackrule] (or \dontleavehmode\blackrule). See also wiki.contextgarden.net/…
Jul
4
comment GNU Readline- like history, for the latex terminal shell?
Dont forget to customize your ~/.inputrc!
Jul
4
comment GNU Readline- like history, for the latex terminal shell?
Did you try rlwrap pdflatex?
Jul
1
comment Why lua and not python?
lua-users.org/wiki/LuaVersusPython