« first day (356 days earlier)      last day (1047 days later) » 

1:48 AM
Anyone around? @JosephWright? @egreg?
0
Q: Problem with shortcut in Kile

Regis da SilvaAfter I enabled the Shift Swticher (windows in Ubuntu) can not access the menu (via the hotkey) Kile. What is the problem?

Needs to be closed for off-topic.
 
 
8 hours later…
9:24 AM
@egreg: Juve today. :)
 
@PauloCereda No answers from 20:30 CEST to 22:30 CEST :)
 
@egreg hehe :)
 
 
1 hour later…
10:52 AM
At the UK-TUG Speaker Meeting. TeX.sx demo coming up soon :-)
 
@JosephWright Great! :)
@JosephWright: keynote?
 
@PauloCereda Well, sort of
We have a 'select' audience
 
Ah I see. :)
Any featured images? :)
 
11:35 AM
There would be an interesting question to ask: "Why did D.E.K. make \newwrite etc. \outer?" Answer: "Because those should be allocated once globally for the whole package. (Prompted by a recent package on CTAN with tons of redundant \newread and \newwrite within macro calls.)
 
@BrunoLeFloch Ask away
 
11:57 AM
@BrunoLeFloch What package?
 
12:48 PM
@JosephWright: TeX.sx demo :P
 
1:00 PM
@BrunoLeFloch I've found out: it's difficult to write so much bad code in only 44 lines.
 
@egreg Probably a counterexample of how to write a package? :)
 
1:12 PM
@PauloCereda Really. One can safely use the \@mainaux output stream before \begin{document} and make the package commands "only preamble" and use \input for reading the file.
 
1:37 PM
15
Q: Is it possible to calculate or mathematically prove if a game is balanced / fair?

LurcaThis question is not focussed on video games but games in general. I went to a boardgame trade fair yesterday and asked myself if there is a way to calculate the fairness of a game. Sure, some of them require a good portion of luck, but it might be possible to calculate if some character is overp...

 
@egreg You are a bit harsh. My main reaction about the multiple \newwrite and \newread was "That's going to create users for my morewrite package."
0
Q: Why are `\new...` defined as `\outer` in the plain TeX format?

Bruno Le FlochIn plain.tex, D.E.Knuth decided to define as \outer all the macros which allocate registers: \newcount, \newdimen, \newskip, \newread, \newwrite. This forbids them from entering the argument of macros, or definitions: they can only appear at the outer-most level. On the other hand, Leslie Lampor...

@egreg I wouldn't have thought of using the \@mainaux stream. I don't know LaTeX2e well enough, only TeX and LaTeX3 :).
 
@BrunoLeFloch No, that package is really bad. The \@mainaux stream is used for writing the aux` file, and this is initiated as part of \document. Opening it and closing it immediately is quite safe. Or one can do with stream 15, like the kernel does for filecontents.
 
2:19 PM
@egreg My point is that you have to be somewhat more advanced to think carefully about which stream to use. The major mistake is really to allocate \newread instead of \input, and to allocate a \newwrite multiple times. The package could be rewritten in half the lines.
 
@BrunoLeFloch Yes: 24 lines (just because I stopped to column 60 or so). :) Actually \newwrite is used "only" twice (at most), but that's not relevant.
 
@egreg :). I was too lazy to rewrite the package. If you've rewritten it, it may be worth sending an email to the maintainer with some "proposed changed"?
 
or put a x in the end of the package name and release it as a new version. :P
(disclaimer: I have absolutely no idea of you guys are talking about... those \newread's and \newwrite's are evil, I suppose...)
 
2:35 PM
@BrunoLeFloch I'll think about it.
 
@PauloCereda Wasting \newread or \newwrite is very evil: TeX (and any extension) only provide 16 of each (compared to 256 counters, dimensions etc for TeX, and 32768 for eTeX and all semi-modern engines).
It is possible, but hard, to circumvent the limit on the number of writes, but afaik, it isn't possible to cheat TeX on the \newread business.
 
@BrunoLeFloch Ah I see. :)
 
Most packages, even rather large ones, use at most one \newwrite and no \newread. If they want to write two different things to files, then open the writing stream, write what you need, then close the writing stream again. The package can then reuse it for writing something else to a different file later.
 
@BrunoLeFloch That's a problem I faced when writing imakeidx that supports multiple indices. The simplest way is to allocate an output stream per index (which has the advantage that indices are processed automatically during the LaTeX run); but there's also a one-stream-only mode that exploits the splitindex program Markus Kohm wrote for his own index package.
 
Dumb question: if I allocate, say, one \newwrite, will the slot be used until the end of the execution, or is there a way to release it when done?
I'm thinking like memory allocation.
 
2:49 PM
@PauloCereda In TeX and LaTeX2e, there is no way to release it (except if you use the morewrite package, which somehow cheats by using a single stream for everything). In LaTeX3, there is a proper allocation mechanism.
 
@BrunoLeFloch Ah that sounds terrific!
 
@PauloCereda Normally, the limit of 16 reads/writes is not a problem :).
@egreg The one-stream-only mode is a Good Thing.
 
@BrunoLeFloch I'm not normal, I already ran out of 16 reads/writes (actually, I had to use around 30). :) Thankfully, @egreg's imakeidx and the splitidx app saved me. :)
 
@PauloCereda Oh! I thought it was rare. Perhaps not.
morewrite is a very dirty thing. Hacking into TeX primitives :(.
Reading a filename myself, one character at a time :(
 
@BrunoLeFloch Nah, it's probably me. I usually have the craziest ideas. :)
@BrunoLeFloch oh my, a land where syntatic sugar doesn't exist. Spooky!
 
2:57 PM
I mean... I'm not actually reading the file names for every user of the package myself. Otherwise the package would only work when I'm online :).
 
Gotta love those other SE sites:
34
Q: Was Yoda fully sane on Dagobah?

PeterDCOur (and Luke's) original impression of Yoda is by no means flattering. He looks like a crazy hungry green thing that unfortunately has the ability to speak. Yoda digs through Luke's stuff, eats Luke's food, and, obsessed with that awesome little flashlight, ends up stealing it. (He even goes so ...

This comment: "Question my sanity, do you? Hmmm... When 900 years old you reach, be as sane, you will not. – yoda 21 hours ago"
 
@BrunoLeFloch Reading filenames is a pain, but one has to remember when TeX was written: every operating system had its own way. With or without extensions, with version number (VMS, have you ever seen it?), allowing strange characters or not. Terrible.
 
@PauloCereda Yeah, I saw that one :D.
 
@PauloCereda By the way, mission accomplished also today. I can prepare for Genoa, now. :)
 
@BrunoLeFloch and yoda is site moderator too. :)
@egreg Ah nice! I'm ready for the game too! :)
 
3:14 PM
@egreg I hope you like it: fpaste.org/15Y7
 
@JosephWright: I noticed you're 1 vote short of the second Populist gold badge on TeX.SX for your post on
20
Q: What are the advantages of TeX Live over MiKTeX?

xportI have been using MiKTeX for a couple of years. I don't know whether it is "wise" to insist on using it. Could you give me a list of advantages of TeX Live over MiKTeX?

 
@PauloCereda WOW! :)
 
3:41 PM
@PauloCereda You used some TikZ-compatible Vector Graphic Editor, did you?
 
@MartinScharrer Yes, I drew the symbol in Inkscape and exported to TikZ code. :)
 
4:03 PM
@PauloCereda Now you have done it: I learned about tvtropes.org and can't stop!! Help! Someone please ask some good question for me to answer!
2
 
@MartinScharrer oh my, I'm sorry I'm sorry!
 
4:29 PM
@MartinScharrer Nice question! It took a while to disentangle the big mess around floats, but I learned something I didn't knew too well.
 
5:13 PM
@MartinScharrer RIP Martin. How many days did you still have to go with the rep cap?
 
@BrunoLeFloch 137/150, so 13 left, not counting today
 
@MartinScharrer Wait those two weeks before going back to tvropes.
 
@BrunoLeFloch Good idea!
 
5:32 PM
17
Q: Using LuaTeX as a replacement for pdfTeX

Alan MunnIn this question Differences between LuaTeX, ConTeXt and XeTeX various differences between LuaTeX and XeTeX (and ConTeXt) are discussed. And in this question Using XeLaTeX instead of pdfLaTeX a recipe for switching from pdfLaTeX to XeLaTeX is given. In this question, I would like a similar recipe...

As can be seen from the comments, my LuaTeX question has opened a can of worms. Do we need another question as well?
 
Pandora box?
 
@PauloCereda \unhbox\pandora ?
6
 
Trivia:
- question with the longest title: http://tex.stackexchange.com/questions/12739/how-do-i-use-latex-to-create-table-of-contents-chapter-headings-subsections-et
- question with the shortest title: http://tex.stackexchange.com/questions/280/slashed-symbols
 
@PauloCereda Arg, it is PDF not pdf!
 
@MartinScharrer and lots of pdf's!
 
5:36 PM
@PauloCereda yeah!
 
Trivia:
- Shortest answer: http://tex.stackexchange.com/questions/3060/referencing-labels-from-other-files/3065#3065
 
@PauloCereda Did you obtain this via the Data Explorer?
 
@Werner Yes. :)
 
@PauloCereda I've gotta get myself some SQL proficiency.
...@ Walmart?
 
5:43 PM
@PauloCereda Well that was easy... ;)
 
@Werner In this case, I didn't use a "pure" SQL syntax, but used one of SQL Server functions - len() - to count the chars in the title. In this case, it's very database-dependant. :(
@Werner Thankfully! :)
And the question with the longest title is also the one with the highest number of words.
Longest name:
 
6:02 PM
Completely crazy: TeX lets you define the \halign preamble such that the preamble itself contains &, closing cells within cells...
2
A: setting \tabskip in a repeating \halign preamble

Bruno Le FlochYou can achieve what you wish by doubling the number of columns. \halign{&#\tabskip0pt&#\hfil\tabskip1em plus1em minus.5em\cr Foo&&Bar&&Baz\cr \noalign{\smallskip\hrule} } If the alignment is large, and you don't want to type & each time, it is possible to hide ...

 
 
1 hour later…
7:24 PM
Anyone know how old this version of pdftex is: pdfTeX (Web2C 7.4.5) 3.14159-1.10b
 
@AndrewStacey From tex.web it follows that this is probably earlier than December 2002.
 
7:40 PM
@AndreyVihrov Pretty old then. Is there somewhere where one can look up various primitives and when they were implemented/modified? There's a question which might hinge on the user having an old version of pdftex which doesn't handle a particular command in the way that a new package thinks it ought to.
 
7:59 PM
@AndrewStacey 1.10b was released on 2003-02-26, 1.11a on 2003-08-02
 
@AndrewStacey I can't imagine a better place than the version control history, provided pdfTeX had one back then.
 
@AndreyVihrov Check the NEWS file. The only SCMS pdfTeX used back then was the one from TeXLive.
 
Right indeed, NEWS has it all.
 
@JosephWright Sorry to bug you directly, but have you ever seen this with siunitx? tex.stackexchange.com/questions/32378/…
 
8:25 PM
@jtbandes It's not an error: it's a font size issue, and happens because LaTeX has to pick the nearest available size to the one requested
To be expected when using \sfrac
 
@JosephWright hm... why would xfrac not pick a font size that actually exists?
 
@jtbandes It scales the digits to make the necessary appearance. The size needed depends on the base size.
 
Which sizes are "available" and why? I didn't think font sizes were really provided by the font, rather just scaled versions of the same shapes.
@JosephWright also... the reason I was confused is that, when I remove \usepackage{siunitx}, the warnings seem to go away.
 
8:44 PM
@egreg: good game. Sadly, Genoa scored that goal in the last minutes. Pirlo played very well. And the stadium is so beautiful, I didn't know it was reformed. :)
 
@jtbandes Differences in font selection (siunitx is pretty complex in that regard)
 
@JosephWright Any recommendations for a workaround? or shall I just learn to live with the error?
 
9:04 PM
@PauloCereda The stadium was completed just before the start of the season. Conte should have made the substitutions earlier. Oh, well …
 
@AndreyVihrov, @MartinSchröder: Thanks for the information. I'll pass that on.
 
@egreg Indeed. Del Piero deserved a better chance.
Rubgy bets, anyone?
 
9:23 PM
@PauloCereda All blacks.
 
@AndrewStacey I concur
 
9:35 PM
@jtbandes It's not an error, it's a warning, meaning that you should check things look OK
 
10:06 PM
@JosephWright They do, and so I would rather not see the warning anymore. But if that's not possible, I guess it doesn't matter too much
 

« first day (356 days earlier)      last day (1047 days later) »