@DavidCarlisle I'm going to put some ideas together then will mail you (I'm at a meeting today but there will doubtless be less interesting talks I can work during)
"When Hans changed the fontloader to the new model (which was in experimental for some time already at this point, I gather), he did away with the old code paths." no backward compatibility? what a shock...
@Johannes_B honestly, I would zap it just to show that this is not a way how to ask questions on the site; he asked an unclear question and self-answered it with a solution to a completely different question, which he took from the comments. But today I slept well and I am in a good mood, so I'd leave it be :-)
is it just me or does facebook always email people saying "lots has happened since you last logged in" followed by "5 new notifications" (or sometimes 2 or 3 or whatever) and then a link to a page that says "No new notifications"
@egreg true more numerous certainly, I hesitate to say better
where is Gonzalo? I just noticed that I'd almost caught him up but since he's not been on site since November that isn't really surprising.
@Johannes_B I'd zap it, however, while you don't seem to feel the need to have an answer there, beacon_bonanza was the first to point things out and he should have answered the question in the end.
@Johannes_B it may be a good trend, I don't know. I mean, I don't mind it myself, since I really don't need the reputation. But new users who try to follow our answer-in-comments policy can righteously get upset.
@egreg The Cunning Little Vixen is perfect, if done properly! The play it in the National Theatre now, the scene, costumes and direction is done by the biggest Czech expert on the fashion and manners of the 20s and 30s, so it's really nicely put together!
@DavidCarlisle How to plant an apple tree is one thing. Showing people how to shoot a shotgun or prepare a ghillie suit is another. I don't like the latter.
In the process of typing up a set of lecture notes for a course, I found myself in need of a nice picture of a torus knot, which basically comes down to drawing a very complicated line. With some trickery, I was able to produce the simplest such knot, which wraps around both circles only once. Th...
@PauloCereda @Danu i doubt the code needs a unicode engine but just change the macro names to be ascii \pgfmathsetmacro \τ won't work in pdftex but change \τ to \anythingthattexcanuse and it should work
@DavidCarlisle wasn't there som tl_case macros removed from expl3 lately? A user is using the tikz knots lib which in turns use spath3, I get an error at \tl_case:Nnn
if luatexbase.catcodetables == nil then latexpackage_catcodetable=luatexbase.registernumber("catcodetable@atletter") else latexpackage_catcodetable=luatexbase.catcodetables['latex-package'] end function fontspec.sprint (...) tex.sprint(latexpackage_catcodetable, ...) end ... local function tempswafalse() fontspec.sprint([[\bool_set_false:NTF \l__fontspec_check_bool]]) end
@WillRobertson I'll have to contact the author. Any suggestion as to what one can add in the preamble to make it work (still a bit green in this expl3 stuff)
@WillRobertson did you see the discussion about mathtools vs unicode-math discussion the other day?
@daleif \ExplSyntaxOn\cs_set_eq:NN\tl_case:Nnn\tl_case:NnF\ExplSyntaxOff should do the trick
@daleif I'm a bit swamped at the moment; I saw there was an email but didn't really understand without delving into the details (which I didn't have the time for)…
@WillRobertson it was a user that contacted me about mathtools messing up his fonts in xelatex while using unicode-math, turned out to be unicode-math's attempts to "fix" mathtools in unicode-math-xetex.sty, you should be able to find it in the archives.
@DavidCarlisle I'm glad I asked; sorry not to be on top of things. There's no \catcodetable@expliii?
@DavidCarlisle I have such a small amount of code being passed through here I could easily write \csname bool_set_true:c\endcsname{...} but didn't want to be ugly.
@WillRobertson no doesn't really fit in base, the luatexbase package (ctan or joseph's githib) adds % \DescribeMacro{\CatcodeTableExpl} but adds a lot of other stuff as well of course:-)
@DavidCarlisle So for forwards compatibility I should have:
if luatexbase.catcodetables == nil then
latexpackage_catcodetable=luatexbase.catcodetables.expl
else
latexpackage_catcodetable=luatexbase.catcodetables['expl3']
end
@DavidCarlisle Oh, it would help if I actually read the code I was writing!
if luatexbase.catcodetables == nil then
latexpackage_catcodetable=luatexbase.registernumber('CatcodeTableExpl')
else
latexpackage_catcodetable=luatexbase.catcodetables['expl3']
end
I was mislead by (in Joseph's luatexbase):
% The standard way to access catcode table numbers from Lua in
% \textsf{ltluatex} is the |registernumber| function. This
% package provides a |catcodetables| table with a metatable
% that accesses this function and is extended with aliases for the
% predefined tables so you can use |catcodetables.expl| as an
% alternative to |catcodetables.CatcodeTableExpl|, both being
% equivalent to\\
% |registernumber('CatcodeTableExpl')|.
Which makes me wonder whether that test will still work. Okay, better actually start messing around with things.
@WillRobertson by the time luatexbase is loaded expl3 catcode table is defined but the point there is that the new way is to use a function but the old way was to use a table so that is defining a metatable to call the function for each index so the old table syntax should work.
@WillRobertson have you loaded luatexbase by then? (or have you defined the catcodetable directly?) if luatexbase package is being used you should be able to get rid of the test and just use the latexpackage_catcodetable=luatexbase.catcodetables['expl3'] form
@DavidCarlisle fontspec loads luaotfload which loads luatexbase, so that should be fine. I didn't write any of this lua code myself so I can't vouch for it
@DavidCarlisle Ah, so I should now load luatexbase myself. Easily done. And I now (finally) see how the new luatexbase supports the old syntax, so that looks good. Thanks for keeping me out of trouble!!
@DavidCarlisle Or... maybe I should just use \csname…\endcsname after all and avoid another package!
@WillRobertson would be better not really: Joseph and I went to some trouble pruning that and if every lualatex document just loads fontspec and loads it all again we are back to square one:-)
@WillRobertson it is only three or four lines to just define a suitable catcode table, so you could do that and use it in probably less code than it takes to test and certainly a lot less code than loading luatexbase emulation
So I am still new to TeX and wondering how far it's practicality and utility actually extends.
I know there are useful macro packages . . actually I'm not sure if they are indeed packages because I don't have to add them like other packages. Are they simply compiled with different compilers?
L...
@WillRobertson well unless we byte compile the font loader and load it at everyjob... (@JosephWright) (but that raises issues about defaulting to tfm fonts and OT1 in lualatex:-)
@JosephWright Yeah, there's always the hideously bloated log file if you really want to know :) no, having them in the console is probably the thing to do.
$ lualatex gg723
This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev)
restricted system commands enabled.
(./gg723.tex
LaTeX2e <2016/02/01>
Babel <3.9n> and hyphenation patterns for 79 languages loaded.
(/home/davidc/texmf/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/home/davidc/texmf/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/fontspec/fontspec.sty
(/home/davidc/texmf/tex/latex/l3kernel/expl3.sty
(/home/davidc/texmf/tex/latex/l3kernel/expl3-code.tex)
@JosephWright My current plan is to upload a new version of fontspec quite soon that contains the TU encoding, but have it off by default. So people can try it out with a package option, and package authors have time to change. Then presumably in TL2017 move TU to latex2e and make it the default in fontspec. Is that too slow for your liking?
@WillRobertson it seems slow compared to people(soon) having to swallow much bigger changes like half the primitives not being defined anymore, with no warning (unless you follow luatex dev lists)
@DavidCarlisle Well, I'll try to release the conservative version ASAP (this week?) which still gives us time to switch to TU by default for TL16 if all seems well enough (even if some package authors don't make the switch)
$ lualatex gg724
This is LuaTeX, Version beta-0.88.0 (TeX Live 2016/dev)
restricted system commands enabled.
(./gg724.tex
LaTeX2e <2016/02/01>
Babel <3.9n> and hyphenation patterns for 79 languages loaded.
(/home/davidc/texmf/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/home/davidc/texmf/tex/latex/base/size10.clo))
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/graphicx.sty
(/usr/local/texlive/2015/texmf-dist/tex/latex/graphics/keyval.sty)
@WillRobertson almost all of that could be avoided, the old context supp-pdf.mkii coudl be replaced by lua (luamplib has equivalent code but the interface is different and I didn't have time to adapt it) and similarly if writing a lua interface to eps to pdf conversion you probably wouldn't just do minimal updates to the pdftex one if you had unlimited time....
@Johannes_B all the "standard" encodings start with T as in T1, T2a etc, and the only encoding starting with U is U which is "undefined" so there were some arguments against it (it would have been Ok though) but TU is probably better except it means technical university rather than text unicode to some people :-)
I hope it's okay for me to go a bit OT since this is chat ... I'm looking for a way to export an entire WorldCat search as RIS (which will then be made BibTeX, of course) ... what should I do?
@KristianNordestgaard hi. I'm afraid thhat peeople who visit this chat won't be able to answer your question, and you are right, this would be off-topic on the site...
@JosephWright yes I looked a bit at that for luatex-def the other day but decided to leave it to you, could always go back to my two line bash script that just ran zip:-)
@JosephWright copied from texlive graphics.cfg claims to be public domain, color.cfg says nothing, do you think I can get away with claiming PD, or CC0 or ...
@JosephWright ultimately it probably came from me, so if push came to shove I wouldn't have qualms about relicencing it under any licence I wanted, if I knew what i wanted..
@JosephWright I'll go for CC0 and also write something about how it can be edited to set up site defaults, but is usually just edited by people setting up tex distributions. Possibly tomorrow, getting a bit late for thinking of words.
@DavidCarlisle No. The snow has been so light here that that I just sweep it off the walk with a broom. But we're in a very different part of the weather pattern in the continent and so the storm system on the east coast will likely have no effect here at all.
It's also quite warm, around -2C or so, which for mid-January is really warm.