« first day (252 days earlier)      last day (4664 days later) » 

12:34 PM
I keep seeing people (mostly new, non-English native users) which add a space before punctuation in their posts. This leads sometimes that a comma or question mark is placed at the beginning of a line. Are there actually languages which add such spaces bu intention or is that just personal "style"?
 
1:04 PM
@MartinScharrer Yes, French typography requires that semicolons, question mark and exclamation mark are preceded by a "thick space", while the colon must be preceded by a normal interword space. This reflects into typing habits.
 
1:30 PM
@egreg: I see. Thanks!
 
1:53 PM
@egreg: Interesting, I didn't know that. =)
 
 
1 hour later…
3:03 PM
Just discovered codegolf.sx! I have to try very hard not to get sucked in... codegolf.stackexchange.com/questions/3119/soundex-function
 
@BrunoLeFloch: wow. o.O
Noooo, that site is so tempting!
 
@PauloCereda Sorry ;-). Most of the challenges are next to impossible in TeX, so that limits its appeal to me, thankfully.
 
3:19 PM
@BrunoLeFloch: Even for the other languages, I'm not used to write insanely fast cryptic code, so I'm stuck as well. =P
 
@PauloCereda Speed is not really the issue. Conciseness seems to be the main goal.
 
@BrunoLeFloch True. =) There are some nice Q&A's in there.
 
3:34 PM
@PauloCereda I don't like the question much: it's too close to stuff I had to do in first/second year. But the answers are quite amazing :).
 
@BrunoLeFloch C'mon, why can't they see the beauty of TeX? =P
 
3:50 PM
codegolf.stackexchange.com/questions/2380/… would be amazing in TeX (if you remember xii.tex)
 
@MartinScharrer I've added my answer to "top aligned images" because that's a place where taking into account the strut's height is very important.
 
4:22 PM
@egreg: Thanks for that. Actually I was asking a related question on comp.text.tex last week, about how images should be top-aligned relative to text. I wasn't thinking about table cells but normal text. I would have gone with the height of the upper-case 'X' (you remember my other question about that), because \ht\strutbox is a little larger then the text. However, after seeing your answer I actually just use \ht\strutbox for that. It will make my life easier anyway!
@BrunoLeFloch Nice. It also pointed me to generator.lorem-ipsum.info. It gives you e.g. a Greek variant of lorem ipsum! (We could give "language" support to lipsum)
 
Last night I posted an answer that involved patching a command. So I used etoolbox to do it, whereas in earlier times I might have just done a new \def or \renewcommand enclosed in \makeatletter ... etc. On the one hand, using etoolbox is cleaner; on the other hand, it adds a package. Any thoughts on which should be preferred (or under which circumstances?)
 
@AlanMunn: In my packages I try to avoid the need of external packages if possible. However, in documents I would go with etoolbox.
 
@AlanMunn Martin was faster than me. I completely agree.
@MartinScharrer Not sure a random lipsum generator would be very useful.
 
@MartinScharrer Yes, I was mainly thinking about user documents (and especially for answers posted here). I agree in packages it's best to minimize dependencies.
 
@BrunoLeFloch: I wasn't really serious and blindtext provides already similar things.
@AlanMunn: I wouldn't mind using etoolbox here. A lot of visitors are better suitedd with high-level commands. The OP might understand lower level commands, but there might be others with the same issue.
 
4:38 PM
@MartinScharrer That's true. There's also less room for error using a patching command, especially if the command being patched is quite complicated.
 
@egreg: It's also possible to define a `top` option for `\includegraphics`:

\define@key{Gin}{top}{%
\Gin@esetsize
\@tempswatrue
\def\@tempa{\raisebox{\dimexpr-\height+\ht\strutbox\relax}}%
\toks@\expandafter\expandafter\expandafter{\expandafter\@tempa\expandafter{\the\toks@}}%
}
Then use \includegraphics[top,...]{image}. In this case however defining \topincludegraphics is actually less work.
 
4:58 PM
@MartinScharrer Neat. But for a 12 column table with I don't know how many images it would actually be better to define \newcommand\tig[2][]{\raisebox{\dimexpr-\height+\ht\strutbox}{\includegraphics[width=7.3in,#1]{#2}}}, including the desired width in the definition, minimizing input.
@AlanMunn etoolbox is quite heavy, but it's used also by other common packages (think to biblatex); in that case a simpler \g@addto@macro would have done the job. Probably \appto would have been sufficient.
 
5:35 PM
@egreg Yes, I forgot about the simpler \appto. The downside of \g@addto@macro is that it's not so obviously documented so that if someone wants to understand the macro, it's not sure where to look. But I agree that etoolbox is a big package to add for a simple fix, hence my question.
 
TeXPrinter is about to be released! =P
 
6:00 PM
1
Q: Moderators should be able to undelete comments

Martin ScharrerSince recently moderators can see a list of deleted comments (which is not displayed nicely with Firefox 5 under Ubuntu Linux btw). There should be a possibility to undelete these comments as well, at least for a certain period of time. Sometimes moderators delete the wrong comment by accident an...

First comments: "Why do you care?", "Stop worrying about that" :-(
@AlanMunn I often mention both possibilities but this is always an extra effort
@PauloCereda What does it do again?
 
@MartinScharrer: "prints" a TeX.SX thread to pdf or tex file. If it's tex, the code is formatted with listings and if there are any images, they are downloaded to the current directory and referenced in the file.
 
@PauloCereda Nice! What language did you used to code it?
 
@MartinScharrer: Java.
 
I will check it out as soon I find time!
 
Oh thanks!
Spaghetti code FTW.
=P
 
6:46 PM
@PauloCereda: Our dreams come true:
1
A: TeX.SX T-Shirts

JinI have already started designing T-Shirts and Stickers for some of the SE2.0 communities. For example: Gaming, Programmers, English etc. I'll try to finish up the swag design for all of our graduated communities this month. We'll send out a free swag package to the top users(first 2 pages, sor...

@PauloCereda Java lets you write spaghetti code?
 
"We'll send out a free swag package to the top users(first 2 pages, sorted by rep). We will also have the T-shirts and stickers available in our Stack Exchange store later too, for those who are interested in purchasing them."
2
I'm gonna sit in the corner and cry.
 
@PauloCereda: You could help Jim to design the T-shirt then I'm sure you get one too.
 
@MartinScharrer: I already saw some bad Java code. So I don't doubt the human mind is able to breed a spaghetti masterpiece. =P
@MartinScharrer: Hm nice idea, I'm gonna reply that thread offering help to Jim. =)
Knuth will kill me for sure.
Then we write down I WANT YOU IN TEX.SX!
 
7:18 PM
If the T-shirt giveaway is based on the top users sorted by rep, @MartinScharrer will receive 3 or 4. =P
 
 
1 hour later…
8:46 PM
@PauloCereda: Two would be plenty. I like to have one of the beer Steins for the rest! :-)
@PauloCereda: They also have coffee mugs!
 
9:18 PM
@MartinScharrer: Me wantee a mug!
=P
 
@PauloCereda: 20$ + shipping :-) (Shipping to Germany is about 20$ as well)
for the Stein I mean
 
@MartinScharrer: Hm Shipping to Brazil is probably expensive. =P
 

« first day (252 days earlier)      last day (4664 days later) »