« first day (1452 days earlier)      last day (3472 days later) » 

Tom
1:16 AM
Closures in LaTeX are so much harder than in Python! :-D
 
Tom
I'm sure its easy here as well, I just haven't learned expandafter etc well enough.
 
@Tom Actually, I asked a question that's basically as close as you can reasonably get to this
Let me see if I can dig it up…
8
Q: How can I create lambda expressions?

Sean AllredIt's common for packages to accept one- or two-argument macros as transformations of some element, and it's at least common for me for these to be one-offs that don't deserve a permanent name—or at least one in the user's namespace. How can I effect this? \documentclass{article} \usepackage{xco...

From there, you'd just have to \let to your 'variable' for the anonymous function
@Tom For serious programming though, I'd very much recommend expl3. It trivializes \expandafter. texdoc expl3 for an explanation of the basic idea, texdoc interface3 for a reference manual.
Specifically §3
 
Tom
neat, i will have to get into that!
 
@egreg Saw this while I was at work today. I have to say, this was the coolest, most useless text to be displayed on my screen all day—and I work with code that's older than I am.
@Tom Very :)
 
Tom
2:33 AM
anyone have a minute to check out tex.stackexchange.com/questions/208358/…. i'm trying to finish up tonight, and I am just stuck.
 
 
7 hours later…
9:24 AM
@Tom: "closures" (I don't like the sound of them, personally) are simple in TeX, it is just an expansion happening at the right time. :)
 
@PauloCereda quack! oh I mean, amen! :D
 
@tohecz: <3
 
10:31 AM
@DavidCarlisle That is insane. I lost the count. :)
 
@HarishKumar probably 31 (that's what I put in the google search) it's usually 2^n -1
@HarishKumar you are about to split up our "row of mods" :-)
 
10:48 AM
@HarishKumar Here's an easier version
\documentclass{article}
\usepackage{xparse}

\ExplSyntaxOn
\DeclareExpandableDocumentCommand{\withthreeargsexpanded}{mmmm}
 {
  \exp_args:Nooo #1 {#2} {#3} {#4}
 }
\ExplSyntaxOff

\begin{document}
\def\Test#1#2#3{\texttt{\detokenize{(#1,#2,#3)}}}

\def\AA{\BB}\def\BB#1{\CC}\let\CC\relax
\withthreeargsexpanded\Test{\AA!}{\BB!}{\CC!}

\def\AA{\BB}\def\BB#1{was -#1-}\def\CC{cc}
\withthreeargsexpanded\Test{\AA!}{\BB!}{\CC!}

\end{document}
@PauloCereda How's the office refurbishing going?
 
@DavidCarlisle Oh! I don't dare to try so many of them!
@DavidCarlisle Oh! probably. Noticed just now.
@egreg Wow, Good version for lazy people like me :). Thanks.
 
11:05 AM
@HarishKumar Without expl3 and without assignments:
\documentclass{article}
\makeatletter
\def\withthreeargsexpanded#1#2#3#4{%
  \expandafter\x@i\expandafter{#4}{#2}{#3}{#1}%
}
\def\x@i#1#2#3#4{%
  \expandafter\x@ii\expandafter{#3}{#2}{#1}{#4}%
}
\def\x@ii#1#2#3#4{%
  \expandafter\x@iii\expandafter{#2}{#1}{#3}{#4}%
}
\def\x@iii#1#2#3#4{%
  #4{#1}{#2}{#3}%
}
\makeatother

\begin{document}
\def\Test#1#2#3{\texttt{\detokenize{(#1,#2,#3)}}}

\def\AA{\BB}\def\BB#1{\CC}\let\CC\relax
\withthreeargsexpanded\Test{\AA!}{\BB!}{\CC!}

\def\AA{\BB}\def\BB#1{was -#1-}\def\CC{cc}
 
Hello everybody (hello @DavidCarlisle - thanks for answering all my questions / comments :-) )
 
@egreg: I hope it will be done today in the afternoon. :)
 
Does anybody know if there is a LaTeX benchmark document (for testing the compilation speed)? I remember there was a question about how to speed up LaTeX compilation and how hardware influences it... (I have a new computer and I want to see if it is faster - it should be MUCH faster)
 
@moose not as far as I know, you could use source2e the first time I (anybody:-) ran that it took hours
@moose the comment I added on chktex doc was correct:-) I'll update the answer
 
11:32 AM
Good maen ...
@moose: I just noticed your comment and tried to compile your example -- I have no conflict
 
@ChristianHupfer: I added a "minimal" example to tex.stackexchange.com/q/207084/5645 - I still try which packages I can remove to see whant makes it break
 
11:49 AM
@DavidCarlisle: Thanks for helping me with the chktex / checktex question. How did you find out that it is chktex ## and not checktex ##?
 
@moose: I have to kick out minted such that it runs, but it fails with this line
Too many math alphabets used in version normal.
 
@ChristianHupfer What does that mean "to many math alphabets used"? What happens there?
 
@moose: I have never seen this error message before
 
12:01 PM
@moose googled for the svn repository
@ChristianHupfer you should get out more, you'd see it all the time
@moose you can only have 16 math families in any math list
 
@DavidCarlisle: ???
 
@DavidCarlisle What is a math list?
 
@moose NFSS (latex2e) lets you declare as many as you like and loads them on demand but if you use mathfrac and mathcal and... you use them up (and if you use bm you can use twice as many)
@moose well for the purposes at hand it may as well be the whole document
@ChristianHupfer ignore me
 
@DavidCarlisle: /ignore David ;-)
 
@egreg claiming there is a bug in one of my packages. He must be deluded.
 
12:09 PM
@DavidCarlisle Undocumented feature
 
hi all, does some TeX guru know what was going on with glue nodes in LuaTeX in this answer of mine?:
11
A: How to access the last line of a paragraph with LuaTeX

michal.h21After too many hours of failed attempts I got a working solution. The problem was in setting correct values to glue nodes. Documentation on this is unfortunately lacking, so I spent too much time hacking node dumps, but this lead to nowhere. \documentclass{article} \usepackage{lipsum} \usepacka...

 
@michal.h21 not talking to you: you stole the bounty:-)
@michal.h21 no:-) was planning to look later
 
@egreg Thank you for your answer! texdef is nice :-)
 
Still the same arcane graphics and horrible type (though they claim it is Helvetica). But hey at least jet is finally kicked out.
Ah and still the same handler issues.
 
12:25 PM
@percusse yes got that a while back:-) jet?
 
@DavidCarlisle Default colormap was jet. Now parula.
Sstill don't like it but at least now it's a matter of taste compared to that jet stuff which was distorting data.
I'm 100% sure that they copied matplotlib and pgfplots styles.
 
@percusse never really paid so much attention to that, it's just a name and user changeable anyway isn't it?
 
@DavidCarlisle Yes a tiny happiness from matlab world which makes me still have hope that other problems such as JIT engine etc. will be solved and my grandchildren will have a functioning matlab
 
my main issue is Exception in thread "XPCOMMessageLoop" java.lang.UnsatisfiedLinkError:
R2014a/sys/jxbrowser/glnxa64/xulrunner/xulrunner-linux-64/libxul.so:
dlopen: cannot load any more object with static TLS
 
@DavidCarlisle Is this documentation related?
 
12:36 PM
@DavidCarlisle yeah, I tried harder when I found that your answer has more votes than mine :)
 
@michal.h21 votes per line of code is what counts:-)
@percusse it is in that form but actually if you try to use code first the doc dies, and if you use doc first the code dies, apparently on linux64 platforms there are ony 10 or so slots that it can bind shared libraries to, and if you use a toolbox using a shared library and doc using svg that some back ends link in dynamically ...
 
12:57 PM
@DavidCarlisle Strange indeeed.
 
27
Q: MatLab error: cannot open with static TLS

Hans MeyerSince a couple of days, I constantly receive the same error while using MatLab which happens at some point with dlopen. I am pretty new to MatLab, that is why I don't know what to do, and google can't help me either. When I try to make an eigenvector, I get this: Error using eig LAPACK loading e...

 
1:19 PM
@DavidCarlisle Wow, the code to reproduce the problem is really scary and simple.
I'll add this to my matlab crash suite.
By the way, while I'm at it, IPython notebooks now support PDFLaTeX support.
 
I have to go now. Bye! (And thanks for all the help :-) )
 
Please, any TikZpert here?
 
@tohecz That's Till Tantau :)
Shoot it. Tantau emulation mode=true,ignore truth=true
3
 
1:40 PM
@tohecz I've got a badge
 
@DavidCarlisle More familiar one for you slicot.org
Thanks to the NAG Gateway Generator.
 
@percusse wow we've not shipped that for "a while" :-)
 
@DavidCarlisle I'm really curious what you are actually doing since most of the stuff is outdated :P
Full throttle MathML?
 
@DavidCarlisle Whoa, those are juicy routines! Are you actually implementing them?
 
@percusse some yes, some we get from academic collaboration etc, we also do a lot of consultancy for all kinds of clients that may or may not involve the Library itself. Interesting place to work really (even though I don't do any maths anymore:-)
 
@DavidCarlisle Yes. They are pretty much what I'm using all the time :) Must be quite fun to develop these. Is Mathworks your customer if that's not a confidential information?
 
@percusse personally as well as looking after the documentation we do a lot of code generation using xml tools from the doc (C library, .NET library matlab toolbox) are all generated from the documentation
@percusse no but we go back a long way with some shared origins in the early days of numerical analysis and lapack work
 
@DavidCarlisle So you were involved with LAPACK too? Please tell me no. I'll pass out from jealousy since you are there for LaTeX and other stuff.
 
2:03 PM
@percusse no (I'm not as old as egreg:-) (also I did pure math and skipped all the NA courses at University)
 
@DavidCarlisle Phew :)
 
@percusse NAG was involved in lapack from the start with Jeremy Du Croz and Sven Hammarling (Sven still comes in quite often)
 
@DavidCarlisle That's a really convoluted story with all the people involved
 
2:57 PM
Damn, I really don't understand how to do math with pgfmath
\documentclass{article}\usepackage{tikz}\begin{document}
\begin{tikzpicture}[xscale=0.3, yscale=0.1]
\foreach \y in {0,10,...,40}{ \draw (-5,\y) -- (25,\y); }
\draw (17,0) \foreach \x [count=\y,evaluate=\x as \xx using \x ] in {
	13,21,7,20,11,11,18,17,14,11,
	12,8,12,16,4,1,7,10,9,12,
	8,9,12,15,10,17,3,14,6,9,
	5,16,3,6,12,8,10,5,10,4}
{ -- \pgfmathparse{rand}\let\z\pgfmathresult (\x+\z,\y-1) -- (\x+\z,\y)  } ;
\end{tikzpicture}\end{document}
 
ppr
Hi everyone. Quick question : how do I know which version of biblatex I use (I installed biblatex by installing texlive-bibtex-extra on debian)
 
@ppr tlmgr info biblatex in a terminal
 
@PaulGessler hopefully it works like this in Debian's TL
 
@tohecz uh oh, I thought it was standardized. maybe I am wrong.
 
ppr
@PaulGessler @tohecz tlmgr is working on debian (you should launch tlmgr init-usertree the first time).
I've got: ~$ tlmgr info biblatex
(running on Debian, switching to user mode!)
tlmgr: package repository http://mirror.ibcp.fr/pub/CTAN/systems/texlive/tlnet
package: biblatex
category: Package
shortdesc: Bibliographies in LaTeX using BibTeX for sorting only.
longdesc: Biblatex is a complete reimplementation of the bibliographic facilities provided by LaTeX in conjunction with BibTeX. It redesigns the way in which LaTeX interacts with BibTeX at a fairly fundamental level. With biblatex, BibTeX is only used (if it is used at all) to sort the bibliography and to generate labels. Fo
Which is inconsitent with apt information: $ apt-cache policy biblatex
biblatex:
Installé : (aucun)
Candidat : 1.7-1
Table de version :
2.7a-1 0
100 /var/lib/dpkg/status
1.7-1 0
500 http://ftp.fr.debian.org/debian/ stable/main amd64 Packages
pierre@nil2:~$
?
So do I have 2.7a-1.0 version or 2.9a? @tohecz @PaulGessler
 
3:09 PM
@ppr tlmgr is looking to a current repository, so it gives the new (current) version. The Debian package installed the older version (2.7a).
 
ppr
3:31 PM
@PaulGessler indeed. I dod remove the debian package version and keep the newer one. Thanks
 
3:44 PM
@ChristianHupfer I'm still not sure now, we'll see:-)
 
4:01 PM
@ppr you should remove the debain everything and install vanilla TL2014 :)
 
4:59 PM
@DavidCarlisle: Perhaps... the OP is not a very prolific writer ;-)
 
vi `kpsewhich makeidx.sty`
I thought to myself: Can't be that much code. Boy, was i right.
 
5:28 PM
@JosephWright I think this could be of interest.
0
Q: Meta-data in achemso class: journal-appropriate affiliation format

Step2I am using achemso to prepare a manuscript for J. Phys. Chem. A. Everything looks great except that the author/affiliation page has affiliation info both in the footnote and below the author list. For the journal I am submitting to, no affiliation info goes in the footnote aside from a 'current...

 
@Johannes_B People get very worried about this sort of thing: I have no idea why
 
@JosephWright Are those journals using the pdfs as they are?
 
@Johannes_B Of course not
 
@JosephWright Pity, you couldn't see my hand throwing something invisible behind my back making phht noise.
 
 
2 hours later…
7:11 PM
@Johannes_B yes well that's about the maximum size file you'd want to handle in that editor
 
 
3 hours later…
10:03 PM
@egreg: my office is ready, tomorrow will be the great reopening. :)
 
tex.sx is incredibly slow at the moment... maintenance mode???
 
10:15 PM
@PauloCereda Post a photo. What do your cats say about this?
 
10:29 PM
Emacs/OSX users:
 

« first day (1452 days earlier)      last day (3472 days later) »