« first day (745 days earlier)      last day (4189 days later) » 
00:00 - 18:0018:00 - 00:00

12:02 AM
@egreg Would \iffalse{\else\expandafter}\fi work?
 
@StephanLehmke No.
 
@egreg :(
 
@DavidCarlisle You were faster than me, this time. :)
 
@DavidCarlisle Mindstorms are very expensive here. Believe it or not, 3DS is way cheaper. :)
 
12:25 AM
So no messages from @StephanLehmke that we can star yet?
 
@PauloCereda Wow I didn't know about master and balance counters at all. There should be a couple dozen extra warning signs at the beginning of the "brace hacks" section...
 
Bummer.
 
@percusse Is there a conspiracy behind this?
3
 
@StephanLehmke No. :)
 
@StephanLehmke Even if there is one, not much gonna happen other than some SQL queries :)
 
12:27 AM
@StephanLehmke best bit of the book, that.
 
@percusse Beware, when I feel cornered, I might start flagging things...
 
@StephanLehmke Even two warning signs at the beginning of a paragraph scares the living pizza out of me. :)
 
@DavidCarlisle Only if you like to do alignments. Feels a bit 80s to me. Today we have TikZ you know.
 
@StephanLehmke Ahaha, buried toma hawks gonna see some fresh air!
 
@egreg: Great answer here: tex.stackexchange.com/questions/82554/… I wonder about a curious abomination.tex in your filesystem. It certainly has fncychap, I believe. :)
 
12:30 AM
@FaheemMitha Can you give me a tiny MWE?
 
Sep 28 '11 at 23:56, by Paulo Cereda
Sometimes, we face a Monstruous Working Example. :-)
3
 
@PeterGrill, sorry about that I meant to put a sensible comment straight after but had a power cut, power back now:-)
 
@DavidCarlisle Oh, I thought you were trying to be funny... So, should I post another question, as it seems you are saying that \relax can be bad if you are not in math mode, but I am trying to determine if I am in math mode so need to use \relax before \ifmmode?
 
@PauloCereda Some people are born to be this way. Great stuff!
 
@percusse :P
 
12:35 AM
I love whateva people.
 
@PeterGrill don't you just love TeX sometimes
2
 
@DavidCarlisle =Ahhhh, so you see my dilemma?
 
@percusse I remember one of Cartman's catchphrase: Respect ma authoritaaah :P
 
@PeterGrill Is that the slang for delimiter?
@PauloCereda A Man from Malta :P
 
@percusse So me english not de bestest.
 
12:36 AM
@PeterGrill etex has a `if you can use to detect if you are in that omit pre-scan and so you can just add the \relax there which is safer (etex's a bit modern for me I'd have to look up the name)
 
@percusse :)
 
@DavidCarlisle Or you could just read the code? Thanks, I'll look it up...
 
@PauloCereda One of my favorite German bands other than Rivo Drei :)
 
@PeterGrill also \protected\def\foo{\ifmmode....} doesn't do a \relax in the unprotected case or perhaps I was wrong about the if, you can check you are in an alignment currentgrouptype=6but that isn't quite what you want
 
@percusse Oh my, epic clip! :)
 
12:48 AM
@DavidCarlisle Well it seems to be working for me (in the small test case, full document still recompiling), so will just add a note there for now to post a follow up question in case there are issues.
 
@PauloCereda great production
The other end of the spectrum with a shitty video but an incredible drummer.
 
hmm I think if lastnodetype=-1 and currentgrouptype=6 you are almost certainly at the start of an alignment cell. Next challenge is to find somewhere else where that is true
 
You can see Berlin at the very beginning of that video :-)
 
26
A: File.separator vs Slash in Paths

PointyYou use File.separator because someday your program might run on a platform developed in a far-off land, a land of strange things and stranger people, where horses cry and cows operate all the elevators. In this land, people have traditionally used the ":" character as a file separator, and so du...

"where horses cry and cows operate all the elevators" LOL
 
@StephanLehmke I must be getting old. It seems as if rap sounds more like a foreign language these days :-)
@PauloCereda Wow, looks like David and Andrew might have competition after all..
 
12:57 AM
@PeterGrill Uh that's the sound of the daddy generation ;-)
 
@StephanLehmke :-)
 
@StephanLehmke Yeah, but I don't have any kids... Well, at least not that I am aware of. :-)
 
Am I too crazy to reencode (creating copies, not overwriting) my MP3 library to 64k bitrate just to store about 1.5k in my 2GB player? :)
 
@percusse At the moment there are a lot of German bands I like. It has become more popular to sing German (outside the "Schlager" genre) since the "Neue Deutsche Welle" :-)
 
1:15 AM
Man, it's 2012 and we still need to charge our laptops. I'm gonna tweet about this.
 
Ok, this has been preying on my mind for a while:
 
@StephanLehmke As a Déformation professionnelle I follow the drummers rather than bands. I don't know if it is your thing but I enjoy listening to Sieges Even.
 
Can someone put my mind at ease?
0
Q: Will cruft from a previous compile ever change the final look of my document

CanageekOk, this has been bugging me for a while; Will cruft left over from a previous run of LaTeX ever change how my document looks? Would the following procedures ever give me different results: I compile my document until it stabilizes (All references resolved and such) then edit my document and ...

 
@StephanLehmke This sounds quite nice actually.
 
@PauloCereda Of course you would star something that shows how much of a horrible newbie I was not that long ago.
 
1:21 AM
@Canageek What is cruft?
 
@percusse "Anything unnecessary or redundant; esp. poorly designed or unnecessarily complex computer software, e.g. that containing sections of obsolete code. Also: filth, esp. that which builds up over time; detritus." Used in the second version.
 
@Canageek Ah PhD food! :)
 
@percusse "1999 APC May 146/2 The cruft that accumulates in the front fan grille of a computer with no dust filter." or "2005 Wired Dec. 156/2 Tagger cross-references the acoustic fingerprint of each untitled tune... It was about 85 percent accurate with our playlist cruft."
 
@Canageek But TeX doesn't have any cruft. It overwrites it no?
I mean it doesn't build up.
 
@percusse For once I don't like the OED definition though, as cruft as I've heard it used is always in the form of that 2nd quote, as in, things that once were useful, but have built up over time.
 
1:26 AM
@Canageek I gave up on the quest of learning English properly some time ago.
 
@percusse That is; I'm not sure. It must be getting information from the .aux file, or compiling multiple times to get references and links right wouldn't work. So I was wondering if it would ever save old paragraph information or information about the placement of floats on a page, then not reset that each time if it didn't have to.
@percusse Is it your first language?
 
@Canageek It does consecutive passes over the same material but that's not going into the aux file. So better ask the TeX alrighties. :) No I've been introduced to English in high school via heavily smoking elder students and heavy metal people, we had also some courses...
 
@percusse Gives @percusse the horns
 
Maybe I should sue Axl Rose and James Hetfield for teaching me terrible English.
 
@percusse It could be worse. You could have learned it from Ozzy Osborn.
 
1:35 AM
@Canageek Then I switched to instrumental music (progressive etc.) so everything was fine heheh.
 
@Canageek no. You should live in fear.
4
 
@percusse Did you ever listen to groups like Therion or Apocolypitca that borrow from both traditions?
@DavidCarlisle Lovely. Thanks. So it can happen, but only if I use a bad package or muck about with odd things myself?
 
@Canageek bad isn't quite the word I'd use. I'm sure I'd never right a bad package, but I'm reasonably sure I wrote longtable
@Canageek you get the same effect in anything that leaves measurements in the aux file (some uses of tikzmark for example would probably have this problem)
 
@DavidCarlisle No offence intended.
 
@Canageek :-) only joking
 
1:41 AM
@DavidCarlisle Is there an easy way to tell if I'm using a package that would do that, or does it only occur with pgf, TikZ and longtable?
 
@Canageek Yes but they are not my thing to be honest. Actually I shouldn't say big words like that because recently I was going over Pain of Salvation's early albums and I've realized what a big mistake I did by dismissing them judging by their later albums.
 
@DavidCarlisle: But after the bad things happen, the .aux files get written, and then next time things are ok?
 
@Canageek not really, unless you know the package really well, For instance if a package writes \def\foo{25cm} into the aux file that might be harmless or it might not. If for example it is recording the widest item (for some class of item) so that it can make some uniform heading that wide, then if you delete the wide item the package may insert the wide heading which forces all items to be that wode so they just get wider and wider. This was what would happen in longtable
@PeterGrill no/
 
Well, assuming that there is no malicious intent?
@DavidCarlisle Ahhh, good example...
 
@PeterGrill no the package has to try really hard to make this safe (David Kastrup did a really great job in longtable v4)
 
1:46 AM
@DavidCarlisle Ok, but then would be considered a bug in the package.
 
@PeterGrill in the case of longtable it was a documented feature. The package refused to use the saved widths from previous runs by default unless you added \setlongtables and it was documented that if you edited the file without taking \setllongtables out bad things would happen.
 
@DavidCarlisle I have a feeling you purposely added all the issues in the table packages knowing that someday they will come in handy!! Can't believe you are already rep capped for the day!!
 
am I? must look
 
@DavidCarlisle Do you know of any modern packages with features like that, documented or otherwise?
 
user19161
@PeterGrill HAHAHAHA, so early!
 
1:50 AM
@PeterGrill nah still 20 short:-)
 
@DavidCarlisle 210 today.
 
Had i known that you knew about more than just tables, I would not have posted that dammn ifmmode question :-)
 
user19161
Accepts are not counted towards the rep cap.
 
@WillHunting Early? 9 pm here, what timezone are you in?
 
user19161
So it is possible for one to get over 200 in a day.
 
user19161
1:52 AM
@Canageek It is 9.52 am.
 
@Canageek well I'm sure that some uses of tikzmark (or tikz generally) suffer from this. That lets you measure the distance between two pints on the last run. They may be wrong if the file has been edited so it deoends how that information is used
 
@DavidCarlisle I should not have looked at your profile. I feel very young now. You started using TeX the year before I was born.
 
user19161
@Canageek Well, I was talking about how the SE day just started.
 
@Canageek rep cap (and I) work in GMT whatever timezone you are in
@Canageek You may think I'm old, but @egreg is older and been using TeX since before I started.
 
@DavidCarlisle I'll keep that in mind; I've only used it once, and copied it from a document Joseph had in TUGboat.
@DavidCarlisle Wow. It was just seeing that date, since it is something I can wrap my head around.
 
1:59 AM
@DavidCarlisle problem fixed.
now you can have a good night's sleep
 
@PeterGrill you've not been scoring own goals have you? you can never win that way:-)
 
@DavidCarlisle Yeah, but I got a table answer yesterday so was happy with that... I think I'll just ask a lot of questions, and if others answer then the extra 2 upon accepting that I get is not subject to rep cap so that is going to be my secret weapon... :-)
Of course if you answer I am down by 13, so have to avoid any table questions, or TeX questions, well,,, ok I 'll ask ONLY tikz questions. Haha found the secret... :-)
 
@PeterGrill I actually tried to do a tikz answer this afternoon (to that changebar question) but failed miserably:(
 
@DavidCarlisle what change bar question? I missed that. MUST go hunt for it...
 
2
Q: Is there a way of using changebars with XeLaTeX?

Norman GrayIs there any way of using the changebars package with XeLaTeX? The current release of changebars doesn't support a xetex option. Almost three years ago there was a discussion on comp.text.tex about a patch to the package to support XeTeX, but nothing seems to have come of it; there was a simila...

 
2:08 AM
Damm.. XeLaTeX??? Guess I'll have to pass, just too slow to compile
Wonder if "Use pdflatex" count as an answer?
 
I could use andrews tikzmark example but my way of getting to the margin from wherever the start/end marks were probably wasn't very tikz, and I couldn't see away of making it span multiple pages without using so much low level tex code I may as well do the rule by hand as well
 
I thought Gonzalo had posed a question where I tried to answer which did that....
Oh, and Andrew had posted an answer where the curly brace would stretch across pages, wouldn't that do it?
 
@PeterGrill That is the reverse of the answers I get, which is use XeLaTeX or LuaLaTeX
 
@PeterGrill dunno he has an example coming with the package that does two pages but there is a specific tikz path call at either end so I couldn't see how to generalis thet to multiple pages without hacking the oitput routine to know that it was mid-change region(s)
 
I guess I just have no encountered the issues where I need to do that..
 
2:12 AM
Oh, not TeX related, but good news: I've accepted a grad school offer.
 
@Canageek where?
 
@DavidCarlisle Simon Fraser University, near Vancouver.
 
@Canageek ah I was in vancouver for a TUG meeting a long time ago
 
@DavidCarlisle I've heard of that meeting. It is a lot nicer now, at least if you don't own a car.
 
I didn't see much of the city really, but we drove there from Calgary which was a nice drive (via banff and Jasper)
 
2:20 AM
@DavidCarlisle A very nice drive I hear. My brother did it once. I have a lot of family in that area, Mom is from Calgary, and my family is centred around Drumheller.
 
well hope it goes well for you. bed time for me...
 
@DavidCarlisle Sleep well.
 
 
2 hours later…
4:54 AM
Hi all
 
5:19 AM
@hpesoj626 Hi.
Anyone by any chance have a question where you need some line drawn from one place to another so I can give a \tikzmark answer, or now that David is sleeping, how about a simple table question??
 
@PeterGrill lol
I told you to give David a wide berth
108 rep difference. wow
 
@hpesoj626 Thanks, but don't think you were very convincing. He was re capped fortoday after just a few hrs!!
Not sure how you are computing things..
Oh you are looking at weekly totals.. Need to look at all time totals!!
 
@PeterGrill Oh. Still a lot of work to do there.
 
yep..
 
@PeterGrill Well, David's asleep so maybe you can get the table posts. You have about 3 hours more or less
@PeterGrill But the questions are slow in coming at these hours
 
5:26 AM
@hpesoj626 Yeah I know, but of course having a few questions coming in at this time has an upside -- I can get some real work done..
Ok, I am going to resort to just asking a lot of questions!!
 
@PeterGrill You still have some unanswered questions. Well, hauling reps is your past time so go
 
@hpesoj626 "hauling rep is my past time" :-)
I have a table question coming up -- hope it gets answered before David gets up
 
@PeterGrill I stand corrected :) Yeah. Do that
 
@hpesoj626 New table question posted. If it does not get answered by the time @DavidCarlise gets up I'll have to delete it, can't make it too easy for him...
 
6:07 AM
@PeterGrill The problem is beyond me. Has something to do with some TeX magic that easily fools me.
 
thanks for trying. I have not had any problems with the collcell package until now..
@hpesoj626 I think the \cdot (or \times) is the answer.
 
Yeah. But OP must be trying the suggestions at the moment.
 
but might be a duplicate of "How to look up a symbol?"
 
But this one is asking for a specific case. Too localized perhaps? Not so clear with the given example though.
 
@hpesoj626 I don't think it is too localized (which I mostly disagree with). OP wants a multiplication symbol. It seems as if he does not realize how quickly one gets a response here, so hasn't seen the comments yet.
 
6:29 AM
@PeterGrill \prod and \cdot.
 
@hpesoj626 Perhaps \prod, but I think it is either \cdot, or \times based how the example given.
 
@PeterGrill See new comment by OP
 
@hpesoj626 Oh I see, he was looking for \prod.
 
6:43 AM
@PeterGrill Your problem is strange. Although if you try to put \textcolor{red}{Curie} in your .csv file, it works. I don't know why \IfStrEq doesn't work
 
@DavidCarlisle Well, I have seen both triple and triplet, and I'll happily be helped, I have no preference.
 
6:58 AM
@percusse It's Ok. I think I got it figured. out.
 
7:43 AM
@percusse Ah, so that is progressive metal. Sounds nice. With metal I somehow associate the sound of chainsaws ;-) Do you also like more "jazzy" stuff? (see 1:35:00 or 00:36:00)
 
 
1 hour later…
8:46 AM
@StephanLehmke Okay, here's an example. Suppose you have the following code:
    \documentclass{article}

    \renewcommand{\thepage}{\textsc{\roman{page}}}

    \begin{document}

    Test document.

    \write0{:locref "\thepage"}

    \end{document}
 
I can hear you :-)
 
@StephanLehmke This writes :locref "\textsc {i}" but this string needs to be read in by xindy, and from xindy's point of view that string starts with "\t" (tab character), so I need to escape the backslash.
Which is done at the start of glossaries \@@do@wrglossary but that's too soon if the page counter is in a page spanning paragraph
BTW I think it really needs to be done in TeX rather than post-processing the file. I get enough users grumbling about using makeglossaries as it is.
 
At the moment I'm not getting the problem on the TeX side. What do you mean by escaping the backslash?
 
Hi @NicolaTalbot. Have you seen @PeterGrill's table problem? tex.stackexchange.com/questions/82682/…
Ops, just saw Martin's comment
 
@StephanLehmke It needs to write :locref "\\textsc {i}" rather than :locref "\textsc {i}". All control sequences (except for the one that generates the actual number, such as \roman{page}) need to be \stringified and have the initial backslash doubled.
@hpesoj626 No, I hadn't seen it. Thanks for pointing it out.
BTW any solution needs to work regardless of what counter is used. For example, replacing \thepage with \theequation or \thesection
 
9:11 AM
@tohecz triplet is (almost) exclusively used these days for one of three babies born at same time (like twin). triple is more common for the ordered list, along with quadruple for 4, ... hence n-tuple for a length n list.
 
@NicolaTalbot This may be a really silly idea, but what if you wrote out '\textsc{i}' instead? I.e., single-quoted and thus (possibly) not subject to expansion.
 
@NicolaTalbot Where does the \write0 come from? How much control do you have over what goes in there?
 
(expansion in the external program, I mean)
 
@AndrewStacey That's a good idea. I'll have to have a look to see if xindy supports single-quoted strings
 
@AndrewStacey I just wandered in, sounds vaguely interesting, is there a start to this thread?
 
9:15 AM
29 mins ago, by Nicola Talbot
@StephanLehmke Okay, here's an example. Suppose you have the following code:
 
@StephanLehmke The \write0 was just for the minimal example. It's actually a \protected@write, and I don't have any control over what goes in there. A user may have a really wacky page number design.
Sorry for interrupting
@DavidCarlisle My rant about the OR yesterday :-)
 
@NicolaTalbot But it will come out of some glossary macro, won't it? Can the user write down the whole \protected@write construct themselves? How do you hook in to escape backslashes?
My first impulse is \protected@edef, then \detokenize, then escape Backslashes as characters.
 
@DavidCarlisle Ditto, really. I was just chipping in in the discussion between Nicola and Stephan.
 
Second impulse: write first \def\gensym{\textsc {i}}, then write :locref "\\gensym".
 
@StephanLehmke Commands like \gls ultimately use \@@do@wrglossary. The counter used for that entry's location is stored in \theglsentrycounter (which defaults to \thepage). This gets expanded and stored in \@glslocref via \protected@edef\@glslocref{\theglsentrycounter}. If xindy is in use this then gets processed by ` \@gls@escbsdq`, which does the double-backslashing.
@StephanLehmke xindy needs to know it's page i
 
9:24 AM
@NicolaTalbot How can it know? What does it do to separate the i from the rest of the text?
 
@NicolaTalbot yes but in the usual refrain of this site is there an MWE to play with, I missed the example just heard the cries of pain:-)
 
@PauloCereda I don't remember what abomination.tex is about; I'll look at it later.
 
@NicolaTalbot Forget first impulse, \thepage would be expanded at the wrong time.
 
The samplexdy.tex file that comes with glossaries illustrates the problem. It used to work until v3.02 when I modified the code to fix the problem of the page number being out in page spanning paragraphs.
 
9:29 AM
@DavidCarlisle Ok, thanks a lot!
 
@NicolaTalbot I have some problams understanding that. The whole point of using \write is to make sure the page number is expanded at the right time. When is \protected@edef called?
 
@StephanLehmke To do the double-backslashing. I'd forgotten the problem about expanding the page number at the right time when I wrote that bit of code. What I was hoping to do was delay that bit of code until the \write, but if @Andrew's suggestion works that would be the best solution.
 
@NicolaTalbot What I don't understand: xindy sees :locref "\\textsc {i}". How does it know that's page i?
 
@StephanLehmke By identifying \\textsc { and } as pre and post location separators
@AndrewStacey just tried single-quotes and xindy gave me a syntax error, so it seems that option isn't viable :-(
 
@NicolaTalbot Is this pattern-based or is there a list?
 
9:43 AM
@StephanLehmke Just a list. If the user wants an exotic page numbering scheme, they have to add to the list (as in samplexdy.tex).
 
Wrt to my question
5
Q: Odd behaviour with arrows and multipart rectangles

Faheem MithaI recently posted a question Display issues drawing DNA sequences with TikZ. The issues I described were for the most part resolved, but one remains. I managed to simplify my example down to show the issue more clearly. Consider the following code. In this code, the line drawn between the two mu...

I was just writing some notes. Can anyone explain why
\path [line] (leftrow1.two north) node {}; produces an arrow, but \path [line] (leftrow1.two north); doesn't?
Here
\tikzstyle{line} = [draw, -latex']
I suppose both of these are lines of zero length.
 
@NicolaTalbot Well \protected@write simply does \let\thepage\relax, so you could do the same in your own \protected@edef construction.
 
\documentclass{article}

\renewcommand{\thepage}{\textsc{\roman{page}}}
\newcommand{\theglsentrycounter}{\thepage}

\begin{document}

Test document.

\makeatletter

\begingroup
\let\thepage\relax
\protected@edef\tmp{\theglsentrycounter}
\show\tmp
\endgroup

\makeatother

\end{document}
This sets \tmp to \thepage without the \textsc bit
 
@NicolaTalbot It would probably? be simpler if you never bothered xindy with the formatting of the page number it doesn't really need to know it does it? If it always just wrote out something like /glossarypageformat{5} with a arabic page number then xindy/makeindex could do sorting stuff and when you read it back in you could flip / to being the escape char and format the result, or something....
 
@DavidCarlisle I was wondering if I could change the escape char just for the \write
And again when reading in the glossary file
 
9:58 AM
@NicolaTalbot protectedwrite has a spare arrgument for you to insert extra definitions so you could insert \let\theglossarycounter\realx if you wnat it to be held like page
 
@DavidCarlisle That's true, I'd forgotten about that. That's a good idea.
 
@NicolaTalbot you could but you don't want to, changing catcodes mid document is evil and doesn't work (like verb) inside other macros, but you can use a character like / (or j if you like xii.tex) and then switch that to being escapechar on reading it back as you are in control there.
@NicolaTalbot It works best if you can spell relax though
 
@DavidCarlisle :-)
Hello @PauloCereda
 
@PauloCereda I was expecting something on my desk.
 
@NicolaTalbot Hi Nicola! :) How are you?
@DavidCarlisle (think fast) My duck ate the homework.
5
:)
 
10:02 AM
@PauloCereda Still railing against OR ;-)
 
@PauloCereda oh OK, I suggest you eat the duck.
 
@DavidCarlisle ooh! "Bigoli al sugo d'anatra". :)
@NicolaTalbot This OR is evil! :)
@DavidCarlisle: Now tell me what that line means, please. :)
 
@PauloCereda It's still holding glossaries to ransom, but @David had a good idea. But first I have to typeset some Bayesian inference notes before I can mount my trusty stead and charge off to the rescue.
 
@PauloCereda oh heck you'll have to ask @egreg, I knew last century, now I just copy it from one package to another. Looks good though doesn't it.
4
 
@NicolaTalbot :) (Don't mention Bayesian stuff near David, he'll be scared) :)
@DavidCarlisle ooh!
Speaking of triplets, there's a very cute cartoon by a Catalan artist. :)
 
10:11 AM
@PauloCereda basically it's a typical Knuth-ian optimisation where if it is possible to use some bizarre combination of commands to achieve an effect then that is documented rather than adding a simple extra primitive. Alignments need a special kind of grouping so that when you go \begin{array} inside \begin{array} the inner & are taken as not ending the outer cell even before \begin{array} has been fully expanded and TeX knows that it is an \halign.
That particular combination basically acts like { and there is another one at the end that acts like } but it interacts with the pre-scan for \omit in a way that works rather than a way that doesn't work.
 
@DavidCarlisle Oh my!
 
@PauloCereda The trick is used basically to insert "open" \noalign bits in definitions. For instance \hline does \noalign{\ifnum0=}...\futurelet\reserved@a\@xhline` to look ahead for another \hline; then \@xhline ends with \ifnum0={\fi}` to close the \noalign. In this way the brace counters that TeX uses in alignments is kept happy.
 
@PauloCereda Years ago (last century) a film crew came round to interview me about me work (using Bayesian belief networks to assess the risk of food-borne botulism). I'm sure the interviewer's eyes glazed over when I tried to explain Bayesian statistics.
 
@PauloCereda Oh, and my Jabref answer was also downvoted. :(
 
@egreg ooh that sounds like a very clever move! :)
@NicolaTalbot :) Some concepts might be too abstract to grasp at first sight. :)
@egreg Oh no!
 
10:22 AM
@percusse I added some notes to my answer. Take a look if you want.
 
@PauloCereda When the camera actually started rolling, all he asked was is there a button you can press that will tell you the food is safe? No. Why not? It just gives you probability distributions. But can it tell you there's no risk? No, there's no such thing as zero risk. Ok, let's just film you doing something interesting on the computer.
2
I'm not convinced it every got aired.
 
@NicolaTalbot Oh. :(
 
@NicolaTalbot There is something to be said for protecting \thepage that way. If the page number format is redefined between pages, then if \thepage goes into \write unexpanded, the page number will come out with the correct formatting.
@NicolaTalbot So I suggest following David's suggestion, but be careful what is expanded when. If the macro name you write out is your own, then you can just define it to expand to the escaped version and don't need any preprocessing at all.
 
10:38 AM
@StephanLehmke I think that might be the best way to go. I'll experiment once I've finish this little typesetting job.
Thank you everyone for your suggestions
 
@NicolaTalbot @PauloCereda was referring to this where it is all explained (the following one explains rocket science, and today's explains logic) xkcd.com/1132
 
@DavidCarlisle I think that sums up frequentists vs Bayesian nicely ;-)
@PauloCereda Mind you, it wasn't as bad as the time another film crew came round to ask about muesli, which isn't my field of expertise, so I just looked like a token female with nothing to say. I think I got cut out of the shot in the end.
 
 
1 hour later…
12:15 PM
@NicolaTalbot: I'm having fun playing with jmakepdfx. :) Great code. :)
 
@PauloCereda blush Thanks!
Just finished my lunch break. How did I manage to get soup on my glasses?
 
@NicolaTalbot My glasses always fall. :)
 
12:33 PM
@PauloCereda In the soup? Mine stayed on my nose. Honestly, I can't take myself anywhere without myself embarrassing me.
I'm using tikz for these Bayesian notes I'm typesetting :-)
 
@NicolaTalbot Let's blame the soup. :)
 
@PauloCereda Definitely :-)
 
@PauloCereda One needs to move in the right circles. You have an IPad like Andrew, I have a samsung android tablet like the queen bbc.co.uk/news/technology-20314882
 
@DavidCarlisle Oh no!
 
@DavidCarlisle :-)
@NicolaTalbot Could be weirder: about 18 months ago we had Kazakhstani TV here! We were all worried about Borat, but they were legit.
 
12:45 PM
@JosephWright :-)
@DavidCarlisle 'remain available online to all "in perpetuity"' I wonder if the file formats used will be readable "in perpetuity"
 
@JosephWright No way!
You gotta be kidding. :)
 
@JosephWright There was a spate of film crews hanging around NRP in the late 1990s. In addition to the ones filming me at IFR there was also some filming going on at UEA for some TV series. (Can't remember which one now.) I remember them lolling very untidily on the footpath I wanted to use.
 
user19161
@NicolaTalbot Maybe the soup is too delicious so you did not notice when some of it splashed onto your glasses. =)
 
@WillHunting :-) Although I'm not convinced about that. There wasn't a great deal of choice in the cupboard. I've ordered some groceries online, but the delivery isn't due until later. (The nearest shop is 1.5 miles away.)
 
1:52 PM
@JosephWright moderator question do we just close legal questions on sight rather than answering them?
The answer to tex.stackexchange.com/questions/82713/… clearly should just be a simple "no" in a sane world but I'm not sure about the world we actually live in.
 
2:18 PM
@DavidCarlisle I believe that there is at least one question about that; but it's like having to license as GPL a program just because it was compiled with gcc (of course using some libraries might require such a license) or the output of a Perl script.
 
2:33 PM
@DavidCarlisle In general, my approach is that these are (sadly) off-topic, as we don't have the necessary legal expertise to answer. The intention is I am sure as @egreg says, but I would not be sure on interpretation
 
@JosephWright seems Frank is brave enough to answer:-)
 
@DavidCarlisle Yes, but does not change my opinion of the question: Frank is no more a lawyer than I am :-)
 
@JosephWright agreed.
 
2:48 PM
@NicolaTalbot: we are making progress. :)
 
@PauloCereda :-) I like your message. It's far more upbeat and cheerful than mine!
@PauloCereda I was also thinking about making a command line batch version, but I haven't used it often enough to provoke me into making the necessary changes. (I only use it just before uploading the PDF to the printers, so it's not like I use it every time I latex a document.)
 
@NicolaTalbot Nah, I didn't know what to say. :)
 
@PauloCereda Mind you, it looks a bit like the user has just won a prize ;-)
 
@NicolaTalbot :)
@NicolaTalbot I'll try to write one. :)
 
@PauloCereda :-)
@PauloCereda I'm going to see my illustrator tomorrow and we're going to chat about the new duck, hat, arara story :-)
 
2:56 PM
@NicolaTalbot OMG! :)
 
 
2 hours later…
4:55 PM
@PauloCereda Here is the contents of abomination.tex (I believe it's from a c.t.t. message by D. Kastrup, the name should be his)
\def\recur#1{\csname rn#1\recur}
\def\rn#1{}
\def\rnm#1{\endcsname{#1}#1}
\def\replicate#1{\csname rn\expandafter\recur
  \romannumeral\number\number#1 000\endcsname\endcsname}
\replicate{100}{This is just sick. }
\end
Just to show how it works, here are the expansions when \replicate{2}{X} is called
\replicate{2}{X}

\csname rn\expandafter\recur\romannumeral\number\number2 000\endcsname\endcsname{X}
\csname rn\recur mm\endcsname\endcsname{X}
\csname rn\csname rnm\recur m\endcsname\endcsname{X}
\csname rn\csname rnm\csname rnm\recur\endcsname\endcsname{X}
\csname rn\csname rnm\csname rnm\csname rn\endcsname\recur\endcsname{X}
\csname rn\csname rnm\csname rnm\rn\recur\endcsname{X}
\csname rn\csname rnm\csname rnm\endcsname{X}
\csname rn\csname rnm\rnm{X}
\csname rn\csname rnm\endcsname{X}X
\csname rn\rnm{X}X
 
@egreg Looks like the alternative approach to \prg_replicate:nn discussed in the LaTeX3 docs: I think your are probably right about this being David K.'s idea
 
@JosephWright The file is dated 2003
 
@egreg The L3 stuff goes back years, so that would be 'quite recent' :-)
 
@egreg Oh! I have no idea what it means. :)
 
@PauloCereda Just follow the expansions. :)
 
5:07 PM
@egreg Nice. But it's not tail-recursive, is it? Won't some stack overflow if too many \csname constructs are nested?
 
@StephanLehmke There are various issues :-)
 
@StephanLehmke Yes, it explodes at expansion depth=10000
 
@JosephWright What are the other issues?
 
@StephanLehmke The maximum on my machine is \replicate{4997}; with 4998 it explodes with input stack size=5000
 
@StephanLehmke Speed, I believe
 
5:12 PM
@JosephWright What makes it slow?
 
@StephanLehmke Now there you have me: I'm just going on the notes in l3prg.dtx :-)
 
@StephanLehmke other than the fact that it's programmed in TeX not C?
 
@DavidCarlisle Well I guess something like this is used when you need something expandable in TeX, not otherwise. I haven't thought about possible alternatives though.
 
@StephanLehmke One reason is probably that it does the replication from the wrong end so for large input it is putting a lot of tokens into the input list which you then have to finally process in the right order at the end
 
@DavidCarlisle Sounds about right
 
5:17 PM
@NicolaTalbot: More fun! :)
 
@DavidCarlisle OTOH it only reads the string to be replicated a linear number of times. I'd expect this to be more difficult if you want to avoid that effect.
But I'd like to see how to "jump over" the input if you want to process the other way round.
Maybe if you're allowed to use \unexpanded, but then it'd practically only work in \edef.
 
@StephanLehmke The expl3 replicate function is 'written out longhand' in tex.stackexchange.com/a/16192 :-)
 
This seems to work
\def\a#1{#1}
\def\b#1{}
\def\r#1#2{\if m#2\expandafter\a\else\expandafter\b\fi{#1\r{#1}}}

\def\c#1x#2{\r{#2}#1x}


\def\repl#1#2{%
\expandafter\c\romannumeral#1000x{#2}}

\repl{3}{Y}


\repl{30}{Y}

\repl{100000}{.\penalty0}

\bye
 
5:39 PM
@DavidCarlisle I had assumed the specification was "\replicate{n}{X} expands to n copies of X", which doesn't seem to be met by this solution because the first copy of X would be expanded/executed before the replication was over.
@DavidCarlisle Interestingly, your solution only seems to be slightly slower than the abdomination one. I'd have assumed otherwise, because it seems to read stuff multiple times.
I meant "only slightly slower".
 
@StephanLehmke ah but when do you really want to just replicate the tokens without expanding any of them:-) It does have the advantage of working rather than not working for big numbers though
 
@DavidCarlisle Certainly. No offense meant. There are surely reasons why the other one is called "abdomination". I just want to understand better. The recursion limit was the first disadvantage which occurred to me. Now I want to understand the others.
One thing that occurred to me was that the "abdomination" variant really expands away completely, leaving n copies of its argument, before the first copy is expanded. As I'm often faced with problems of "expanding over" some string (that is, expanding stuff behind a token sequence without touching the token sequence itself), I'm intrigued what other techniques exist to achieve this effect.
 
5:59 PM
@StephanLehmke You'd have to try harder than that if you did mean to cause offence.:-) Also it is hardly a considered bit of code I just wrote it in the last few minutes so it's surprising it works at all:-)
 
@JosephWright Great stuff! But a bit too deep for me to understand just by looking at it (so I have to analyse). At first glance it looks very similar to the abdomination, only with logarithmic recursion depth...
 
00:00 - 18:0018:00 - 00:00

« first day (745 days earlier)      last day (4189 days later) »