« first day (799 days earlier)      last day (4139 days later) » 
00:00 - 17:0017:00 - 00:00

12:14 AM
@TorbjørnT. I remember watching that (snooker) match live- he truly is a wizard
 
leo
@cgnieder when including questions from an external file, is there some way to avoid an especific exercise? For example something like \includequestions[random=5,avoidID=7]{calculusExercises.tex}
 
anyone here on xetex list? (Did a message I sent at 22.50 GMT get delivered?) the list system claimed It had subscribed me and the message hasn't bounced but I don't see anything in the archives (perhaps initial messages are moderated?)
 
@Max you can roll back your question if you prefer- perhaps @tohecz could make his bounty into a comment?
 
@cmhughes Yep, it's really impressive to watch him when he's on form. Must be frustrating for his opponents when he plays a frame or two with his left hand only.
 
@TorbjørnT. indeed, indeed :) He absolutely destroyed everyone last year at the Crucible, just a complete league of his own (when he's playing well) :)
 
12:29 AM
@DavidCarlisle Maybe.
 
True.

But I should get some sleep before I have to wake up (in five hours), so I'll log off. Good night.
 
@TorbjørnT. good night, hope you have a nice week :)
 
leo
12:50 AM
what is wrong with:
\newenvironment{pregunta}[1][type=exam]{%
	\begin{question}%
}{%
	\SetQuestionProperties{#1}%
	\end{question}%
}
it gives: ! Illegal parameter number in definition of \endpregunta.
 
@leo the end code doesnt take parameters
 
leo
@DavidCarlisle Don't want it to takes parameters
 
@leo you need to handle #1 in the begin code, if you need to access the value in the end code stick \def\myargone{#1} in the begincode and use \myargone in the end code
@leo well you used #1
 
leo
I want to use the eventually given parameter
@DavidCarlisle I see
 
@leo I don't know that code but can't you set the property at the start?
 
leo
1:00 AM
@DavidCarlisle I think I can. In the command definition it does not works
time to eat, I'll b back
 
@leo I probably won't be (1 in the morning here:-)
 
leo
back!
 
@DavidCarlisle There has been no message from you on the XeTeX list. It's possible that subscriptions are moderated, so perhaps your message is waiting for approval because you appear at the moment as a non-member?
 
leo
1:19 AM
what I want to automate is something like this:
\begin{question}[type=exam,topic=graficas]{1}
Seg\'un la gr\'afica adjunta de la funci\'on $f(x)=2x^3+1$, considere las siguientes propuestas:
\begin{enumerate}
\item[I. ]El dominio de $f$ es $\mathbb{R}$.
\item[II. ]$\displaystyle\lim_{x\to 0}f(x)=1$.
\end{enumerate}
De ellas, son verdaderas
	\begin{enumerate}[label=\emph{\alph*})]
		\item Solo I
		\item Solo II
		\item I y II
		\item ninguna
	\end{enumerate}

\SetQuestionProperties{ciclo=I2012}
\end{question}
 
1:31 AM
@AlanMunn thanks for the confirmation, I signed up just before posting, but perhaps it tales a while, I'll see if it gets through by tomorrow:-) (trying to get bm to work with extex/unicode-math is proving an interesting excercise
@leo can't you move setquestionproperties to just after \begin{question}[type=exam,topic=graficas]{1}
 
@DavidCarlisle The list is pretty efficient, but I think the mods are in your timezone, so most are probably sleeping. I'm sure it will show up by the morning.
 
leo
@DavidCarlisle it seems so. But when I try to mimic that in the command definition, it does not work
The command seems to have no future
I think it is because of the question environment provided by exsheets
 
I can't work out from your snippets what the intended use is, in particular whether the optional argument is #1 of your new environment.
@AlanMunn yes I think I should be asleep:-)
 
 
3 hours later…
4:59 AM
@StephanLehmke: When is the date in which the governmental office starts opening or working after the new holiday in Germany?
I made a correspondence with someone in Germany but I have not received any response yet. Probably the office is still closed.
 
5:15 AM
@AdorableCreature I don't think there is a fixed general date. Probably different offices have different closing hours. There is no general holiday apart from the 1st of January and weekends, but of course it might be that some institutions are closing "between the years". Usually such things are announced on the respective websites.
 
 
4 hours later…
8:54 AM
@Max Sorry if it's too much. I just thought that simple comment would not stand out enough, but I leave it up to you.
 
@leo Just set the question properties in the begin code of the environment as David said. But beware that question properties are not the same as options to the question environments. Thus type=exam won't as question property
 
 
1 hour later…
10:33 AM
Good morning!
 
Hello.
 
@PauloCereda @unNaturhal Good morning
 
@egreg buon giorno! :)
 
Time to syntax highlight code :o
 
10:51 AM
@unNaturhal The most common package is listings
 
@StephanLehmke Ok.Thank you very much.
 
Lo :-)
 
11:09 AM
@NicolaTalbot Hi Nicola! :)
 
@PauloCereda How's things?
 
@NicolaTalbot In a hurry, as usual. :) How are you? :)
 
@PauloCereda Not too bad :-) Had a spate of bad luck with "next-day" deliveries :-( Delivery drivers can't seem to find my address. In the end I had to look up my GPS and when the driver finally arrived, it turned out he'd delivered my parcel to someone else!
 
@egreg Yeah I'm trying it, but it doesn't color code :/
 
@NicolaTalbot Oh no!
 
11:13 AM
@unNaturhal What language do you want to color?
 
@unNaturhal You need to specify the colour scheme.
 
@egreg SQL and PL/SQL. I tryed this piece of code:
\begin{lstlisting}[language=sql]
		CREATE TABLE Album (
			ID integer unique not null,
			primary key(ID)
		);
	\end{lstlisting}
But everything is black, and black
@PauloCereda You mean language?
 
@PauloCereda It's a bit annoying as it's delaying my work. Anyway, on a plus note the duck, hat, arara story is making progress :-)
 
@unNaturhal No, the colours you want for keywords, identifiers, and so on.
@NicolaTalbot Yay! We will have an ice cream party. :)
 
@PauloCereda Something like this? texblog.org/2008/04/02/… :)
 
@PauloCereda Wow! Just a thing: \definecolor is a command from the color library, not from listings, right?
 
@unNaturhal Go with xcolor. :)
 
@unNaturhal The SQL language (notice the capital letters) doesn't have any predefined coloring
 
@PauloCereda Advanced version of color?
 
@unNaturhal I prefer it.
 
11:25 AM
@unNaturhal Try this:
\documentclass{article}
\usepackage{xcolor}
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.9,0,0}

\usepackage{listings}

\begin{document}
\begin{lstlisting}[language=SQL,
  basicstyle=\ttfamily,
  columns=fullflexible,
  commentstyle=\color{greencomments},
  keywordstyle=\color{bluekeywords},
  stringstyle=\color{redstrings},
]
CREATE TABLE Album (
  ID integer unique not null,
  primary key(ID)
);
\end{lstlisting}
\end{document}
It's not necessary to write every time that horrible thing:
\documentclass{article}
\usepackage{xcolor}
\definecolor{bluekeywords}{rgb}{0.13,0.13,1}
\definecolor{greencomments}{rgb}{0,0.5,0}
\definecolor{redstrings}{rgb}{0.9,0,0}

\usepackage{listings}
\lstnewenvironment{SQLlisting}[1][]
 {\lstset{language=SQL,
  basicstyle=\ttfamily,
  columns=fullflexible,
  commentstyle=\color{greencomments},
  keywordstyle=\color{bluekeywords},
  stringstyle=\color{redstrings},
  #1}}
 {}


\begin{document}
\begin{SQLlisting}
CREATE TABLE Album (
  ID integer unique not null,
 
@egreg Wow, very nice! :D Now I have just to understand how to put all keywords bold
@egreg It's much more clear the fist piece of code :)
 
@unNaturhal Make sure your font has bold face. Inconsolata doesn't have (if you are trying my code).
Try \usepackage{beramono} instead.
 
@PauloCereda Oh.. and Courer New isn't usable.. :(
@PauloCereda Ok!
 
@unNaturhal keywordstyle=\color{bluekeywords}\bfseries
However, with your choice of the fixed width font, boldface is not easily distinguishable.
 
@egreg In fact I can't notice differences..
 
11:31 AM
@unNaturhal But isn't color sufficient?
 
@egreg Sometimes yes, but with the contrast of bold the code result more easy to read.
 
I quite like the txtt font for listings.That has a bold version.
 
I opted for beramono for the arara manual and decided to not add any colour scheme to my listings, except bold face.
 
Ehm.. I'm finding some posts on stackoverflow that uses "verbatim" to display code. What is it?
 
@unNaturhal It just displays the contents of its environment in a typewriter font "as is".
(It doesn't apply any syntax highlighting.)
I've added a section on the listings package to the new version of "Using LaTeX to Write a PhD Thesis" that I'm currently working on. I might add a list of recommended typewriter fonts to it.
 
11:45 AM
@NicolaTalbot Great idea. :)
 
@NicolaTalbot I'm using your "Latex for complete novices v1.4" as reference :)
 
@unNaturhal Cool :-) Hopefully "Using LaTeX to Write a PhD Thesis" will be ready soon. (I got distracted by other things, so I stopped working on it for a few months.)
2
@PauloCereda Okay. So far I've got txtt and beramono. Any other suggestions?
 
@NicolaTalbot I'm just writing a mini-mini-mini-thesis for a single exam :p
 
@NicolaTalbot Probably the one from the TeX Gyre collection. :)
 
Hoooowever! It's possible to put a background on my code alternating line by line? just like this: 2.bp.blogspot.com/-Np9A8u5WUG0/UGpabDpOY7I/AAAAAAAAA5w/…
 
11:49 AM
@AlanMunn It indeed was about LyX in a Mac environment, I couldn't find any valuable information from that question/answer.
 
@unNaturhal You should ask everything you want at once. :) tex.stackexchange.com/questions/18969/…
 
@unNaturhal Using boldface doesn't help if the keywords are colored. Here's the result with txtt, but it's the same for all fonts, more or less
The second uses boldface. You see that the difference is not striking.
 
@PauloCereda Thanks. Must dash. I've got to go out. Bye.
 
@NicolaTalbot Ta ta! :)
OMG I love British English. <3
I wanna be English.
Well, British.
:)
 
@PauloCereda Wow! Sorry but I'm used to work for "steps" or "solving a mini-problem a time" if you prefer. Top down strategy :p
@egreg No you are right, but I'd be glad to know how to obtain your result :)
 
11:54 AM
@unNaturhal The code I've used before. For the font, just \renewcommand{\ttdefault}{txtt} (of course this should go after the magic code for Latin Modern Typewriter, if you want to experiment without modifying your preamble too much).
 
@egreg "Magic code for Latin Modern Typewriter"? What is?
 
@unNaturhal The \DeclareFontShape... bit of code I suggested some days ago.
 
@egreg Ooooh! That piece of fantastic code you given to me :) However in the preamble :P
 
@unNaturhal Yes.
 
0
Q: Proper way to refer to references in natbib?

copiancestralI'm using the natbibpackage for managing my references in my latex document. Is it correct to refer to a reference in the following way: A survey can be found in Ref.~\citep{Radke:2005ug} Which is typeset as: A survey can be found in Ref. (Radke et al, 2005) Since my bibliography is not numb...

More about writing: academia?
 
12:04 PM
@JosephWright Probably. I just suggested \citet that seems more appropriate.
 
@egreg @PauloCereda
http://puu.sh/1KLIJ
 
@unNaturhal Just paste the URL, no tag
 
@egreg Tags don't want to collaborate :(
 
@unNaturhal What I said: the color hides the boldface.
 
@egreg And the "zebra effect" hides line numbers :(
 
12:11 PM
@unNaturhal I'd definitely avoid zebras. Aren't you against them? :)
 
@egreg I have nothing against zebras :P they are so defenseless animals..
 
@unNaturhal I was thinking to another kind of zebra. ;-)
 
@egreg: This chatroom is amazing. First, llamas. Now, zebras. :)
 
@PauloCereda Did you call for zebras? :)
 
@egreg YES!
@egreg <3
 
12:16 PM
@egreg Oh, THIS kind of zebras xD
 
@unNaturhal You can be happy with Cavani, I guess. ;-)
 
@egreg I don't like football so much. I "sympathize" for Naples, but I admit when someone is a great athlete. And Del Piero is one of the greatest :)
@PauloCereda I saw your comment to the post you linked about "zebras" (another kind of zebras :P).. Do you know if there is a way to keep line numbers using that zembra escamotage??
 
@unNaturhal Did you look at the lstlinebgrd manual?
 
@unNaturhal Wrong answer. You maximise your chances of getting help from @egreg if you claim to be a lifelong Juventus supporter.
@PauloCereda beware, that can lead to this:
user image
3
 
12:32 PM
@PauloCereda No.. I search for it..
 
@DavidCarlisle LOL
@unNaturhal Use the sources, Luke. :)
\documentclass{article}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}

\usepackage{xcolor}
\usepackage{listings}
\usepackage{lstlinebgrd}

\begin{document}

\begin{lstlisting}[language=C,
  basicstyle=\ttfamily,
  linebackgroundcolor={\ifodd\value{lstnumber}\color{gray!20}\else\color{gray!40}\fi},
  numbers=left]
/**
* Prints Hello World.
**/
#include <stdio.h>

int main(void) {
  printf("Hello World!");
  return 0;
}
\end{lstlisting}

\end{document}
 
@DavidCarlisle Look out, there are zebro-llamas!
 
@DavidCarlisle Doh! But I hope that @egreg take in account that I'm italian like him :P
 
@JosephWright must... resist... posting... MP... sketch...
¡Cuidado, cuidado, cuidado, cuidado, llamas!
 
@PauloCereda So you edited the "linebackgrouncolor" command behavior instead of "numberstyle"?
 
12:35 PM
@unNaturhal This example is in the manual. :)
 
@PauloCereda Oh, so I must find the manual anyway xD
@PauloCereda I tried to add modifies of you example to my code, but nothing works..
@PauloCereda Fixed it! And without manual :P Thanks!
 
@PauloCereda Btw, a USB stick we sent to Brazil in August just came back ;-)
It seems it reached Porto Allegre in October, but never passed customs...
 
12:50 PM
@StephanLehmke Our customs is a tragedy. :)
 
Anyone knows what this means?
 
@StephanLehmke I'll solve the mystery. :)
@StephanLehmke: for some reason, our customs decided that your package had to be taxed, and the guys at Porto Alegre had to pay +60% of the value in order to get the package.
Welcome to Brazil, when taxes kill you everyday.
 
@PauloCereda So this means it DID reach the recipient? From the angry label I got the impression it was returned to sender...
 
@StephanLehmke It did, I'm pretty sure. Do you have the tracking code?
 
@PauloCereda fuck. It is 19% when delivered to Czech rep. :( (it can be more if you're over some price)
 
1:01 PM
@PauloCereda TBH, we forgot all about it because we put the stuff up for download after the package seemed to be lost...
 
@StephanLehmke Ah I see.
@Stephan: They probably got the package, but as I said, they had to pay the taxes in order to really get the package from the postoffice.
 
@PauloCereda 60% of what? Postage? (we were sending the data free of charge)
 
@StephanLehmke Postage + declared value, if I'm not mistaken.
 
@PauloCereda I suppose only declared value (international postage is not due to VAT and import taxes AFAIK), but I can be wrong. When you don't insure the package and the reseller is nice to you, they can claim a lower value :)
 
@PauloCereda We really need a foreign customs office here at QS. Very unprofessional to know nothing about all that. Sending post in the EU is like sending a christmas parcel to my neighbours...
 
1:05 PM
@tohecz Brazil is weird, man. :)
 
@PauloCereda yeah, but some things in intl. law are fixed (e.g. no VAT for intl. flights)
 
I thought you give the thing to a nice man from UPS and then he'll fly over to Brazil and hand it out to the recipient. What business have other people sticking labels on my package???
 
@StephanLehmke I think the real problem is Brazil. :)
@StephanLehmke You are lucky if the guys at the customs didn't open your package. :P
 
@PauloCereda I'm imagining someone from defence searching for military stuff in our Linux VM... ;-)
 
@StephanLehmke Next time, take a plane and come visit me. I always wanted to know Porto Alegre. :)
 
1:18 PM
0
Q: Compiling my own mktexfmt

user24070I'm trying to compile my own version of pdftex which works fine. However, I must compile my own format file (fmt) for that. This should be done with mktexfmt. My problem is that I don't know where to find the souce code for mktexfmt (for linux). Can anybody give me a hint where to find it? Chee...

A bit odd to want to compile your own pdfTeX without knowing about -ini
 
1:39 PM
@JosephWright btw, google is fucking fast: google.cz/…
 
@tohecz Slightly misleading wording... ;-) (does "fuckingly" exist at all?)
 
@StephanLehmke "fucking" doesn't exist?
 
@tohecz It does, but shouldn't it be an adverb ?
 
@tohecz Ask Al Pacino. :)
 
@StephanLehmke oh! ok
 
1:49 PM
I watched "train spotting", @tohecz has about two dozen uses of "fuck" to go to even cover half a minute of that movie ;-)
 
@StephanLehmke what?
 
Uhh... underage users, please avoid.
 
@StephanLehmke I cannot listen a movie here :-/
 
2:04 PM
Lo :-)
 
@NicolaTalbot loo ... brb :D
 
@NicolaTalbot Welcome back! :)
 
@PauloCereda And there are so many great dialects :-)
 
@NicolaTalbot :)
 
Since I'm in Norfolk, I ought to sign off with "do you keep a-troshin" instead of "bye".
 
2:10 PM
Can we speak all of them at the same time? :)
 
@PauloCereda Oh, a challenge :-)
 
@NicolaTalbot ooh cool! :)
@NicolaTalbot: @JosephWright's accent is very easy to follow. :)
 
@PauloCereda This has been happening a lot to us lately. Someone in the post office has decided on a make money quick scheme. Every package we've sent in the past few months has had extra duties imposed on it, some of them enormous.
 
@AlanMunn Oh my. The taxes are absurd.
 
@AlanMunn damn, I ordered $49 package from US to EU yesterday...
 
2:16 PM
@tohecz Don't worry, I'm talking about packages sent to Brazil, and taxes imposed by the Brazlian post office.
 
@PauloCereda yeah, but IMHO only some of them. The basis of modern economy is of course VAT.
@AlanMunn oh ok
 
@tohecz You definitely don't know Brazil. :)
 
@tohecz Regarding commath: why defining \pd in that way when \newcommand{\pd}[3][]{\frac{\partial^{#1}#2}{\partial#2^{#1}}} would do (almost correctly) as in the author's intentions? I think he never tested it.
 
well, I have full understanding for the frustration of @Paulo and @azetina
 
@tohecz I'd prefer \pder, of course.
 
2:19 PM
@PauloCereda When I was in Brazil in 1991 with my brother we had problems with a restaurant sneaking an extra 0 on the end of our bill.
Was it the cruzeiro then? I can't remember.
 
@NicolaTalbot Sadly, it happens a lot. :( Foreigners, tourists and people from the countryside are easy targets. :(
 
@NicolaTalbot Probably. And at that time the extra zero was just due to inflation over the course of your dinner. :)
2
 
@AlanMunn Plano Collor?! :P
 
@PauloCereda Yeah, we were fine while we were with our family, but when we went anywhere on our own we might as well have had a big sign on us saying "rip us off!"
@AlanMunn :-) At least it was only a light lunch!
 
@AlanMunn In '89 I went to Romania through Yugoslavia; at the Yugoslavian border we exchanged 100000 lira, they gave us something like 3 million dinar. After a week in Romania, we discovered that the gasoline price had increased by something like 10%.
 
2:25 PM
@egreg I didn't look into the definitions
 
@PauloCereda There's also a variation "keep you a troshun" (they both mean "keep on threshing" - it's a rural county). I think my favourite Norfolk expression is "thass a rummun hintut".
 
@tohecz If you want to see something that should never be done, here's the occasion. :(
 
!!/texdef -t latex -p commath pd
 
@tohecz It's down, gimme a minute. :)
 
@egreg Yes. Inflation at that rate is really almost incomprehensible to those of us who've lived in places where inflation is under control.
 
2:27 PM
@PauloCereda I suppose you saw this: tex.stackexchange.com/questions/17886/…
 
@tohecz awww <3
!!/texdef -t latex -p commath pd
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:

\pd:
macro:->\@protected@testopt \pd \\pd {}


\\pd:
\long macro:[#1]#2#3->\ensuremath { \ifinner \tfrac {\partial {^{#1}}#2}{\partial {#3^{#1}}} \else \dfrac {\partial {^{#1}}#2}{\partial {#3^{#1}}} \fi }
 
@AlanMunn The interesting thing is that local calls from public phones still cost 10 dinar or so, because they had to use coins.
 
@StephanLehmke Hm, wonder where it would end up on this list.
 
@PauloCereda @egreg well, WTF?
 
@NicolaTalbot Cool! :)
 
2:29 PM
@tohecz Never use or recommend that package. :)
 
@TorbjørnT. Incredible they don't have it!
 
@TorbjørnT. The things that wikipedians think should be documented never ceases to amaze me.
 
@NicolaTalbot my reverend in Paris is Scottish, as well as many other people there. To amuse us non-Scottish, he said a Scottish sequence, then it took him 5 minutes to explain it :D
 
@StephanLehmke Well, you could just start counting ...
 
@AlanMunn That would be a nice article as well. :)
 
2:30 PM
@AlanMunn I know.
 
@tohecz :-)
 
!!/texdef -t latex rotatebox
 
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:

\rotatebox:
undefined
 
@PauloCereda Do you need to specify it's in graphics?
 
2:41 PM
@NicolaTalbot hm?
 
@PauloCereda Does texdef need to know which package the command is defined in?
(graphics.sty in the case of \rotatebox)
 
@NicolaTalbot I think it needs. If you don't specify the package, we end up with only commands only defined in LaTeX.
!!/texdef -t latex -p graphics rotatebox
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:

\rotatebox:
\long macro:#1#2->\leavevmode \Grot@setangle {#1}\setbox \z@ \hbox {{#2}}\Grot@x \z@ \Grot@y \z@ \Grot@box
 
@PauloCereda Cool :-) That's more useful than \show as it doesn't break the lines partway through a command name.
 
@NicolaTalbot It's a fantastic tool powered by @MartinScharrer. :)
 
@tohecz \owns; I too was distracted by Herbert.
 
2:55 PM
@egreg well, someone's done the job of properly placing the \not over \in, so rotating it is not a bad idea IMHO...
 
@tohecz Also, \mathpalette inside \mathchoice doesn't seem the best thing to do.
 
@egreg well, it is a bit ... heavy, I know, I thought I could make it without \mathchoice, but I obviously cannot.
 
@egreg Ooh yes, quadratic runtime, here we come ;-)
 
@StephanLehmke containing one symbol? even if you used it on every page of your thesis, the load would not be more than one line in TikZ...
 
@tohecz And pretty useless: the first argument of \mathchoice is typeset in display style, so using \mathpalette inside it will obviously choose display style; you're typesetting 12 boxes instead of 4.
 
2:57 PM
@egreg damn, I have to learn how this works.
 
@PauloCereda Looks like I ought to get around to updating my TL distro ;-)
 
@tohecz been there, done that...
 
@StephanLehmke done what? one line in TikZ? :p
\makeatletter
\newcommand\@notni[2]{\mathrel{\rotatebox[y=#1]{180}{$#2\notin$}}}
\newcommand\notni{
\mathchoice
  {\@notni{0.57ex}\displaystyle}
  {\@notni{0.57ex}\textstyle}
  {\@notni{0.39ex}\scriptstyle}
  {\@notni{0.26ex}\scriptscriptstyle}
}
\makeatother
 
@tohecz Note that \mathpalette almost always means switching in and out of math mode, and with NFSS this is really expensive.
 
^^ @egreg @StephanLehmke better?
 
2:59 PM
\newcommand\notni{\mathrel{\mathchoice
  {\rotatebox[y=.57ex]{180}{$\displaystyle\notin$}}
  {\rotatebox[y=.57ex]{180}{$\textstyle\notin$}}
  {\rotatebox[y=.39ex]{180}{$\scriptstyle\notin$}}
  {\rotatebox[y=.26ex]{180}{$\scriptscriptstyle\notin$}}
}}
 
My Linear Algebra class is in 2 1/2 hours ^.^
 
@egreg yeah, but using @'s makes it look fancy ;)
 
@tohecz Well at least I'm the one doing performance tests whenever there is a non-TikZ alternative. Building math symbols with TikZ is ridiculous.
 
@tohecz Anyway, \reflectbox is better.
 
btw, isn't the height of the "math axis" on of the \fontdimens?
 
3:02 PM
@tohecz yes
 
@DavidCarlisle so I suppose that I don't need the manual values at all, but that would be too much for me now :)
 
@tohecz \fontdimen22\textfont2 if you are in text or display style.
 
@PauloCereda Grot@ always one of my preferred prefixes
 
@DavidCarlisle :P
 
@egreg lol ok
@egreg I would not say so: (notin, reflect, rotate)
 
3:09 PM
@tohecz reflect \in then put \not over that (for fonts that don't have horizontal line of symmetry through \in)
 
@DavidCarlisle yeah I know. Well, this is what @egreg does in his answer ;)
 
@tohecz I never read egreg's answers (I might feel obliged to upvote them and he'd get further ahead)
6
 
David is surely the guy with the most starred messages. Ever.
 
@DavidCarlisle your upvote is irrelevant of his rep, since you never click the gray tick to make it green :p
@PauloCereda and egreg's name is present in most of them ;)
 
!!/cricket
 
3:12 PM
Psmith, the TeX bot, in fixed font mode: Let's take a look at the last cricket results:

- Jharkhand 310/6 * v Punjab
- Saurashtra 469/10  v Karnataka 45 *
- Mumbai 524/6 * v Baroda
- Services 263/10  v Uttar Pradesh 134/10 &  138/4 *
- Barbados v Leeward Islands
- Combined Campuses and Colleges v Guyana
- Melbourne Stars v Sydney Thunder

Our cricket expert David might explain these results later on.
 
Why the reflection instead of using \ni?
 
@NicolaTalbot some fonts needn't have that one
 
@NicolaTalbot That's reserved for the knights that say...
 
@tohecz Oh, okay.
@DavidCarlisle Definitely :-)
 
I always thought foobar sounded like a pseudo expletive
 
3:15 PM
@PauloCereda What you may not know is that @NicolaTalbot is also a cricket fan, I believe.
 
@AlanMunn Oh!
 
@AlanMunn I'll defer cricket explanations to @DavidCarlisle :-)
 
Psmith no news of the England XI v India A tour match?
 
@DavidCarlisle :)
 
@NicolaTalbot But you have actual cricket knowledge (unlike myself who only inserted cricket to break up the football monotony)
 
3:19 PM
@DavidCarlisle Well I think Psmith shows great taste in having a cricket function but not a football function :-)
3
 
@NicolaTalbot Dang! Can you please finish the "Using LaTeX to Write a PhD Thesis" 4 months ago. :) I've caught myself fiddling with csquotes package which means contentwise the thesis is done.
 
@tohecz I've got the ultimate one. :)
 
@percusse Okay :-) I think it's just the glossary/index writing section that needs updating now.
I'll get my time-machine and go back 4 months to publish it ;-)
 
@NicolaTalbot That's just because the football results would occupy a huge amount of space.
 
@NicolaTalbot Oh but that machine is only going to be available if I finish the thesis.
 
3:28 PM
@egreg well... speak about "complicated" ;)
 
@percusse Oh no, a paradox. The universe is going to explode!
 
@NicolaTalbot or just stop working after throwing an error, (I'm more into the deafening hiss instead of the roaring bang)
 
@percusse public void timemachine() throws paradox
 
@NicolaTalbot Let's enclose it inside a try/catch block. :)
 
@PauloCereda :-)
 
3:34 PM
@PauloCereda it needs a if you can end clause
 
@percusse GodException. :)
 
@PauloCereda fprintf('Photon')
 
@percusse :)
 
@DavidCarlisle As our picture mode expert, any advice for tex.stackexchange.com/questions/89745/…?
 
3:50 PM
@JosephWright \usepacakge{epic,eepic} IIRC
 
@tohecz Does that use specials or simply more fonts?
 
@JosephWright specials I think, but I believe it works correctly everywhere.
 
@tohecz Not in PDF mode here!
 
@JosephWright damn, wtf? I was using it for sure...
 
@tohecz XeTeX is fine: am testing :-)
 
3:52 PM
@JosephWright I have one: don't use that horrible \diaghead. Maybe using pict2e helps.
 
@tohecz Still out as the ratio which is initially requested is not altered: still one of the fixed ones
 
@JosephWright and does it really use {picture}?
 
I'd appreciate it if someone would check my analysis of the bad placement is correct!
 
@JosephWright No, with pict2e it's just the same
 
@tohecz Yes
For South-East or North-West directions.
311 \begin{picture}(\mcell@diagH,\mcell@diagVcorr)(\z@,\mcell@diagVoffset)%
312 \put(\z@,\mcell@diagV){\makebox(\z@,\z@)[tl]%
313 {\edef\tempa{(\mcell@Hratio,-\mcell@Vratio)}\expandafter
314 \line\tempa{\mcell@diagH}}}
315 \put(\tabcolsep,\jot)%
316 {\makebox(\z@,\z@)[bl]{\theadfont
317 \let\cellset\theadset\makecell[bl]{\strut#2}}}
318 \@tempdima\mcell@diagH\advance\@tempdima-\tabcolsep
319 \@tempdimb\mcell@diagV\advance\@tempdimb-\jot
320 \put(\@tempdima,\@tempdimb)%
 
3:55 PM
@NicolaTalbot Actually texdef uses \show internally, but removes the linebreaks afterwards. There is also the -s or --source option which tries to extract the definition from the original source. This doesn't work with 100% of all macros however, therefore it is not the default setting.
 
@JosephWright If I see correctly, this shows the placement, not the core for the line (which is #2 or #3 in your code)
 
@tohecz Yes, still trying to track that down :-)
 
!!/texdef -t latex -p graphics rotatebox -s
Psmith, the TeX bot, in fixed font mode: Here's the output from texdef:
% graphics.sty, line 319:
\long\def\rotatebox#1#2{%
  \leavevmode
  \Grot@setangle{#1}%
  \setbox\z@\hbox{{#2}}%
  \Grot@x\z@
  \Grot@y\z@
  \Grot@box}
ooh!
 
@PauloCereda what's -s ?
 
@tohecz There's a setting for the ratio, it's probably involved here
 
3:57 PM
@tohecz See Martin's message a few lines.
 
@MartinScharrer That's great.
 
@PauloCereda oh ok!
 
crosses fingers and hopes none of his professors have accents that are super strong
last semester I didn't have a single American professor >.<
 
yawn
 
4:03 PM
Out of curiosity, is there any predefined additional chapter style shipped with KOMA, like it happens with memoir?
 
@tohecz I think eepic does not help as the ratio of height/width is fixed up-front, so you can't just pass 'a slope from point x to point y'
 
@JosephWright yeah, I remembered that eepic introduces some other plotting commands that have syntax \path(x1,y1)(x2,y2)...(xn,yn)
 
Okay, given how often I instruct people to use the latest versions of my packages, it's really about time I updated my TL distro. I think I'll have an hour and a half long coffee break while it installs.
 
@tohecz Quite: you still have to use them. Hopefully my edit makes sense in this regard.
 
@NicolaTalbot hahaha
I update my TL daily along with my Gentoo syncs
 
4:05 PM
@MartinScharrer I wasn't 100% sure and aware of the details. Do you think I should revert the edit?
 
@JosephWright you might try using \roundcap in the picture environment, shortening a bit the line, so that the corner will overlap the end of the diagonal line.
 
@egreg I've no intention of trying to fix the code here, just explain the problem :-)
@egreg If you want to do it so everything lines up, using TikZ is as good an approach as any as the floating-point stuff is all there
 
@JosephWright Well, I believe that pict2e should be mentioned.
 
@egreg Fine with me
 
hmmm
 
4:08 PM
@egreg We already have tex.stackexchange.com/questions/17745/… which seems the best place for a solution using 'some other tool'
 
having three classes back-to-back-to-back in different buildings could represent a strategical problem for my bladder
note to self: drink less coffee tomorrow
 
@Gnintendo or be French
 
@tohecz I now mention the strict option at the top together with an explanation.
 
@MartinScharrer ok, sounds good
 
I originally added strict later, direct after Konrads comment and then wrote an own package for this.
 
4:12 PM
sorry if I offended you.
@MartinScharrer lol, Martin Scharrer as we know him
 
@tohecz No, no problem. I just found it fits better at the top
 
comment removed
 
@tohecz ;-) I needed this feature in another package of mine. Relying on changepage was not really an option as it does much more and I saw no reason to place it inside my other package as it was a dedicated feature. Therefore -> new package!
 
@MartinScharrer well, at least your packages are well-crafted (we had some discussion with @egreg here earlier aboud one rather unfortunate package)
 
@JosephWright use pict2e version so it uses a driver backend and arbitrary slopes. (oh egreg already said that)
 
4:18 PM
@DavidCarlisle I guess that makecell chooses an available slope, so there's no difference.
 
@egreg That seems to be the case
 
No builtin styles form KOMA then? :)
 
@egreg, @DavidCarlisle I've added a link to diagbox, which does use pict2e
 
@JosephWright I'd simply use booktabs, putting a "global header" above the columns with the data.
 
@egreg Yes, I agree, but I'm trying to answer the question posed :-)
 
4:22 PM
@JosephWright And one can have some fun reading the commented code of diagbox (hint: learn Chinese before trying)
 
@egreg I've asked Leo for an answer on the question about creating slashed boxes, to complement his TikZ one: that will hopefully be in English
 
@JosephWright probably the thing to do in pure picturemode is calculate the slope but use the diagonal line to adjust the column width so it matches in the end
 
@DavidCarlisle Yes, that makes sense
 
@tohecz Thanks. I like to provide general features as separate packages so that other users and package authors can use it directly.
@tohecz: I now saw that ifoddpage isn't mentioned in the oddpage FAQ entry yet. I emailed the editors now.
 
4:58 PM
Dec 18 '12 at 17:37, by David Carlisle
@egreg's after my green ticks again. I spot the tactic of answering the question the OP should have asked rather than the one asked. (Not to mention making an answer that is 100 times longer than the accepted one.)
 
00:00 - 17:0017:00 - 00:00

« first day (799 days earlier)      last day (4139 days later) »