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

Sep
9
revised How hard is it to use typo-dir.lua in LaTeX?
add note about Context version required
Sep
9
comment How hard is it to use typo-dir.lua in LaTeX?
You can install the Context Standalone distribution alongside texlive if you want the full system. Alternatively, if you just need those three files, get them from the Context Garden server or the third-party Git mirror.
Sep
9
comment How hard is it to use typo-dir.lua in LaTeX?
@VafaKhalighi Are you using the texlive version of Context? The directions code got revised only two days ago and that is the version my wrapper targets. I’ll see if I can add more workarounds so it accepts the texlive version as well.
Sep
9
comment How hard is it to use typo-dir.lua in LaTeX?
Oh, that’s sad to hear. Hope the code will get you started.
Sep
9
comment How hard is it to use typo-dir.lua in LaTeX?
Have you read the gist I linked? The included .tex shows how.
Sep
8
comment Devanagari/Indic in LuaTeX
I don’t have access to Devanagari MT. Here is a test file that renders your test string with Chandas and Uttara fonts. With Context as of two days ago the result looks like this: i.imgur.com/hIIrE8v.png -- in my untrained eyes it looks pretty similar to the Xetex output.
Sep
8
answered How hard is it to use typo-dir.lua in LaTeX?
Sep
8
comment Devanagari/Indic in LuaTeX
The Context implementation actually progressed a good deal this year. It might be worth checking out. Also I’d encourage you and everybody who is interested in improving typesetting of Indic scripts to test the current implementation and report problems on the Context mailing list.
Sep
8
comment Per line text gradient (ala beeline reader)
@mattharrison It’s possible, but far less convenient. I had to dig out my dusty texlive 2012 installation for testing: the updated gist should work with older versions.
Sep
7
comment Per line text gradient (ala beeline reader)
@mattharrison Yes, definitely too old. You need at least texlive 2013 (you cannot update only luaotfload since it won’t work with Luatex < 0.75).
Sep
7
comment Per line text gradient (ala beeline reader)
@mattharrison your Luaotfload is probably too old. What TeX distribution are you using?
Sep
7
comment Get cell content from a Google doc spreadsheet using LuaTeX
What do you mean by directly? It cannot be done with Luatex alone since there is no SSL support in Luasocket. According to data-sch.lua only the http scheme is handled by that library. For https URIs Context falls back to external curl.
Sep
7
answered Per line text gradient (ala beeline reader)
Sep
7
comment Get cell content from a Google doc spreadsheet using LuaTeX
Very interesting answer. I wasn’t aware of Context using curl for retrieving files on secure hosts. Looks like it also inherits the troubles curl has with Google redirects, though (you absolutely need to get the cookies right). Btw. wget fetches the files easily and I modeled my redirection handler after it.
Sep
6
comment Does LuaTeX access write18 differently from pdftex?
Fyi Lua comes with the function os.renam() for that exact purpose. Makes it easy to work around escaping hell. And btw. there is a builtin MD5 library as well.
Sep
6
answered Get cell content from a Google doc spreadsheet using LuaTeX
Sep
4
comment Get cell content from a Google doc spreadsheet using LuaTeX
For one you can append &output=csv to the URL and then throw a CSV parser against it. Yes, it is definitely possible.
Sep
3
comment How do I create 6 parallel texts aligned by paragraph, with 3 texts on each page?
@MartinSchröder: not in this case.
Aug
31
comment ConTeXt: Is there a package or functionality similar to the LaTeX mwe package?
Also, have a look at the files in the sample/ directory. They exist in every Context installation for demonstrational purposes. E.g. use \input knuth if you need some dummy text, \externalfigure[cow] for an image etc.
Aug
31
comment ConTeXt: Is there a package or functionality similar to the LaTeX mwe package?
Have a look at meta-imp-dum.mkiv. All you have to do is to place the statement \useMPlibrary[dum] at the top of your document and then use figure names that do not resolve to real image files. If you need further functionality your chances of a good answer will rise if you describe what exactly it is that you wish (image!). You cannot presuppose that Context users will be familiar with any Latex package.