« first day (1313 days earlier)      last day (3621 days later) » 

3:37 AM
@DavidCarlisle Reads like a lot of FUN :-)
@Malipivo Well if your posts reflect your professional life, it sounds like quite an exciting job to me :-)
 
4:30 AM
@1010011010 Of course you can read tokens A B and then decide what to do with A based on B. But you must know you want to do that already when reading A.
 
@StephanLehmke Just kidding: Of course, being a hacker and trying to hack as many tasks/questions as possible is just matter of love (or hate). :-)
 
 
3 hours later…
7:23 AM
0
Q: Figuring out Xetex fonts under Debian

RusiI have been trying to start using xelatex. My configuration: Debian: testing Texlive: 2013.20140408-1 Taking the minimal example from unicode-math and amsmath environments viz \documentclass{article} \usepackage{amsmath} \usepackage{unicode-math} \setmathfont{XITS Math} \usepackage{xltxtra...

Didn't we just had this question?
 
2
Q: Why are 'mistaken' questions marked off-topic?

pokeeffeFairly often I see questions which are in fact about Tex & friends but are closed & marked off-topic. One reason I see listed in the comments is: This question is off-topic because it simply stems from a misinterpretation of the [insert-pkg-name-here] documentation. Isn't the appropriate ac...

Input welcome
 
@1010011010 that is exactly what \expandafter is for
 
@JosephWright Sounds allright.
Related, but in a different place:
 
8:06 AM
@HeikoOberdiek I've recently noticed \luafunction as a new LuaTeX primitive. At the moment I guess no-one has sorted out an allocator for managing functions: any plans to add such a thing to your LuaTeX support packages?
 
Hi there. Does anyone know, if it isn't possible any more to use a \node inside a tikz-cd? Just tried using something like \node[draw,circle]{A}; \ar[r] & ... which I thought would work. Does this have something to do with the ampersand bug I read somewhere some time ago? Maybe you heard something, if not, I'll do a real question on this. Thanks.
 
9:01 AM
@LaRiFaRi I believe to have already seen something on the site about constructions in tikz-cd not working any more with TikZ/PGF 3
 
@egreg yeah, me too. Not sure where and when. Maybe I will ask the maintainers, if there is something ongoing. Can't believe, they dropped this feature by purpose
 
@LaRiFaRi I think it was this one: tex.stackexchange.com/a/163957/4427
@LaRiFaRi By the way, this
\begin{tikzcd}
X \arrow{r} & \node[draw,circle]{A}; \arrow{r} & Y
\end{tikzcd}
works only with TL2012, not with 2011 or 2013
 
@egreg Yes, this seems to be the post, I have been reading. Wasn't sure, if my approach is already called "nesting". What a pity.
@egreg I am on MikTeX here. Is your example somehow different to mine? \node[draw,circle]{A}; \ar[r] & ... Just other syntax... isn't it?
 
@LaRiFaRi I'm not a fan of the \ar[r,<other options>] syntax: the arrow's direction is a mandatory argument.
 
@egreg ok. I understand. guess I got that from xy-pic
@egreg Just fixed the problem. Something unorthodox about this? `\begin{tikzcd}
\tikz{\node[draw,circle]{1}} \ar[r] & \tikz{\node[draw,circle]{2}}`
 
9:14 AM
@egreg Again spam: tex.stackexchange.com/a/183259/16967 (same spammer)
 
@egreg up to your old tricks again I see
 
@LaRiFaRi I guess it's good. I'd like something like \arrow[above=<label>,below=<label>,<other options>]{<direction>} instead of the clumsy swap
 
@egreg Just changing everything :-) I understood your point. Makes sense.
 
@DavidCarlisle Why proposing a bad solution when a better one is available? ;-)
 
9:18 AM
@egreg Thanks like always for your time and patience.
 
@egreg because it answered the question asked?
 
@JosephWright The last spam answer even got an upvote!
@DavidCarlisle You know that I answer the questions that should have been asked
 
@DavidCarlisle To make the question a little more concrete.. Imagine I have a macro \a. If I just use it like that: \a, I wish \a to expand to \q. Now if I have another macro \b which I use in this fashion \a\b, then I want to instead expand the entirity of \a\b to \r.
 
@JosephWright Thanks for alerting. \luafunction should also be supported in luatexbase.
 
The macro will also have arguments, but this notation is to make it a little more readable.
 
9:29 AM
@egreg Zapped
@HeikoOberdiek Cool
 
@1010011010 \newcommand{\a}{\@ifnextchar\b{\expandafter\r\@gobble}{\q}}
@JosephWright And user removed, it seems
 
@egreg Yes: I meant 'user zapped'
 
Whoa, user name in cyrillic.
I mean, it's an open world with unicode and all, but if this is the future for all users to use their accustomed script, then I guess the significance of user names is going to decline ;-)
 
@HeikoOberdiek Dealt with
 
9:48 AM
@StephanLehmke you mean as opposed to standard English names like 1010011010 or user3004698 ?
@1010011010 define \a to look ahead for \b
 
@egreg @DavidCarlisle Thanks :-)
 
@JosephWright Interestingly, the content of the spam messages is quite similar. I assume hundreds, if not thousands of these are raining down all over the SE network. Intriguing that there is no filtering based on statistical content analysis in place like it's usual for email.
 
@StephanLehmke I think it's mainly IP-based as e-mail address isn't actually required
 
@DavidCarlisle Well I guess if we also had users 1010010110, 1001011010, and 1010101010 the same would apply :-) And for user3004698, well, that's anonymous on purpose. So if the intention is anonymity, then all is well ;-)
@DavidCarlisle But you're right; maybe the idea that a user name has any significance is fundamentally flawed. At least, everyone knows your name is really Alfred E. Neuman.
 
10:05 AM
@StephanLehmke LOL
I thought he was Donald P. Cnuth. :)
Less than a week to the World Cup, the SP subway is on strike! Yay! :)
But I'm not in SP today. :P
 
@PauloCereda It will feel extra relaxing this time to sit back on the sofa and watch it all on TV :-)
2006 I had a more direct experience as a couple of world cup games were taking place in Dortmund.
 
@StephanLehmke I had this feeling for Sochi :)
 
@StephanLehmke I wish I could do the same. :)
I just want to watch the opening ceremony to see what Dr. Nicolelis did with the Robocop thingy.
@tohecz I watched the skating because of the cute girls and also because it was the first time Brazil had a girl on that event. :)
I want a new TV!
 
@PauloCereda lol
the summer olympics are certainly better in this sense ;)
 
Hi everybody
I have a simple question for you,
 
10:19 AM
@tohecz I also watched curling because hey it's very crazy so it was fun. :)
 
@PauloCereda I love that sport!
 
I can't find it on Tex SE but I am sure when I will write the question it will be set to duplicate
 
@tohecz Me too! :) Specially with the ladies. :)
 
@Alji hit us! :)
 
I have a snippet of code in Java
 
10:20 AM
@tohecz not too hard. :)
 
and I would like to add it to my latex beamer presentation
 
@PauloCereda It already is hard #java
 
but in pretty way
 
@tohecz Uh-oh. :)
@Alji fragile + listings? :)
 
I found it :D
 
10:22 AM
@PauloCereda this ;)
 
\usepackage{listings}
@Paulo
@PauloCereda I found it before you tell me :p
 
@Alji and you should probably use \begin{frame}[fragile]
 
@Alji I is slow today.
 
hhh
okey noticed @tohecz
goodbye
 
@egreg: tex.stackexchange.com/a/183267/3094 Comic Sans and Russian. :)
 
10:35 AM
 
@StephanLehmke oh no that was supposed to be a secret
 
@PauloCereda haha
 
10:59 AM
@StefanKottwitz texwelt.de/blog is not reachable. It says Fehler beim Aufbau einer Datenbankverbindung
 
11:30 AM
Comic Sans? Gasp! ;-)egreg 24 secs ago
 
@egreg Upvoted. :)
 
@PauloCereda Today I recalled the students not to blindly rely on calculator telling them the story about diagonalization. A student's exam reported: “The 3x3 matrix is diagonalizable, because it has 3 distinct eigenvalues, namely 1, 2+0.000000001*i, 2-0.000000001*i”
 
@egreg Oh my!
 
@PauloCereda Guess how the exercise was graded. ;-)
 
@egreg :)
@egreg: I bought an used book last month that is a jewel of computer arithmetics. If it were not a rare book, I'd carry it around and hit people with it everytime I see calculator/computer arguments on calculus. :)
 
11:43 AM
@DavidCarlisle Green tick stolen, mission accomplished. :P
 
@egreg there is no justice in the world
2
 
 
1 hour later…
12:49 PM
@cgnieder Farouk probably pulled the server cord in @Stefan's kitchen. :)
 
 
2 hours later…
2:51 PM
@cgnieder Thank you, I fixed it!
 
 
2 hours later…
4:34 PM
@DavidCarlisle, @JosephWright: youtube.com/watch?v=BUY6HGqYweQ :)
 
@PauloCereda I had to install Debian/jessie just to understand what was going wrong with fonts and XeLaTeX
 
@egreg Oh my! Did it go well?
 
@PauloCereda Yes, without a glitch on VirtualBox.
 
@egreg Debian grrrr. :) At least it's not Ubuntu. :)
 
@egreg Good stuff
@PauloCereda Question is about Debian
Exciting times on the LaTeX team list!
 
4:42 PM
@JosephWright oh. :)
@JosephWright xor is released?!?!?!!
/faints
 
@PauloCereda I wish
 
@JosephWright I did that on purpose. :)
 
Frank does seem to be up to something, though
 
@JosephWright ooh a secret!
 
@PauloCereda Keeps asking me l3keys questions: I've ended up as the 'keyval man'
 
4:44 PM
@PauloCereda not from everybody
 
@DavidCarlisle :P
@JosephWright cool! :)
 
@JosephWright I expected worse, but the window manager is slim and, as I don't have to do much with it, I can bear having it occupy some space on my disk.
 
0
Q: Talking Balloon in Tikz

user64066I have the following code \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{calc,shapes.callouts,shapes.arrows} \newcommand{\bubblethis}[2]{ \tikz[remember picture,baseline]{\node[anchor=base,inner sep=0,outer sep=0]% (#1) {\underline{#1}};\node[overlay,cloud callout,ca...

ooh a talking balloon!
 
@DavidCarlisle You've not been getting all of the questions :-)
@DavidCarlisle Anyway, it's LaTeX2e that's looking more exciting than I'd expected
 
@PauloCereda With CS, of course.
 
4:50 PM
@egreg :)
 
@JosephWright so I gather:-)
 
 
2 hours later…
6:45 PM
Can I make this more terse?
\ifdefined\ba
\newcommand{\makefigure}[6]{%
\begin{figure}
\centering
\tikzsetnextfilename{#2}
\input{#3}
\caption{#4}
\label{#1}
\end{figure}
}
\else
\newcommand{\makefigure}[6]{%
\begin{figure}
\centering
\tikzsetnextfilename{#2}
\resizebox{#5}{#6}{
\input{#3}
}
\caption{#4}
\label{#1}
\end{figure}
}\fi
somehow move the \ifdefined \else \fi inside so there is only one function? The two functions only differ in the \resizebox{#5}{#6} bit.
 
@cgnieder A chemfig question over at latex-community. Ich hab gerade keine Lust auf chemfig. Maybe you have some time. latex-community.org/forum/…
@cgnieder I have to watch a grinding machine tomorrow, i might have a look at it myself, if there isn't anything else going on.
 
@FaheemMitha well des it matter when you make the test? if it is where it is the test is at definition time, but if you put it in th enewcommand it is tested when you use the command, each time?
 
@DavidCarlisle I guess either is fine. Is there any reason to prefer one over the other?
 
@FaheemMitha and you are missing loads of % at ends of line
 
@DavidCarlisle I am?
 
6:56 PM
@FaheemMitha well they do different things, so it depends which you want:)
@FaheemMitha yes
 
@DavidCarlisle I keep forgetting what those do. Anyone want to send me a link?
 
@FaheemMitha ther'es nothing to forget, ends of lines are like spaces, it is the difference between helloworld and hello world
 
@DavidCarlisle Well, in practice, if \ba is defined at the beginning, it will give the same results, right?
 
@FaheemMitha yes but then you could make a more obvious test that \ifdefined\ba :-)
 
@DavidCarlisle ok, so where do the % come into it?
@DavidCarlisle like what?
 
7:02 PM
\makeatletter
\newcommand{\makefigure}[6]{%
\begin{figure}%
\centering
\tikzsetnextfilename{#2}%
\ifdefined\ba
\@gobbletwo
\else
\resizebox
\fi
{#5}{#6}%
{%%%%%%%%%%%%%%%%%%%
\input{#3}%%%%%%%%%%%%%%%%%%%%%%%%
}%%%%%%%%%%%%%%%%%%%%%%
\caption{#4}%
\label{#1}%
\end{figure}%
}
@FaheemMitha @FaheemMitha the single % above save tex memory, the %%%% save you messing up your output.
hello world

hello
world

hello%
world
@FaheemMitha see the above the newline makes a space unless you comment it out
 
@DavidCarlisle crap, i need extra brain cells or something.
 
@FaheemMitha the above should be
\ifdefined\ba
\expandafter\@gobbletwo
\else
\expandafter\resizebox
\fi
 
I'm really not following what you could possibly need a zillion % for.
or one, for that matter.
 
@FaheemMitha oh no sorry you only need 1 % the multiple % were for you to see the important lines where it was needed as opposed to ones where it was just good practice
 
@DavidCarlisle oh
so what does it do?
 
7:08 PM
@FaheemMitha if you do \resizeboox\linewidth{foo} then foo is stretched to linewidth if you do \resizeboox\linewidth{ foo } then the apparent size of foo will be smaller as foo+ 2 word spaces are stretched to linewidth newlines act like spaces...
 
@DavidCarlisle you've lost me. i'm guessing the extra spaces have to do with the % somehow.
@DavidCarlisle I'm also not seeing the relevance of this to my function, sorry.
 
@Johannes_B I'll have a look
 
@cgnieder Thanks
 
@FaheemMitha your \resizebox is like this, it inserts a space before and after the thing that it is scaling
 
@DavidCarlisle and the % removes the space?
 
7:22 PM
@FaheemMitha yes like the hello world example
 
@DavidCarlisle ok, i didn't get that.
and why does it insert a space without the %? because the newline adds a space?
19 mins ago, by David Carlisle
@FaheemMitha see the above the newline makes a space unless you comment it out
 
@FaheemMitha yes it is a space
 
@DavidCarlisle You mean TeX interprets as a space?
I don't see how it is literally a space.
 
@FaheemMitha yes you get a character token 32 from a space or from a newline, you can not tell the difference from the macros
 
@DavidCarlisle ok
 
7:26 PM
\def\A{ }
\def\B{
}
\A and \B are ifx equal
 
@DavidCarlisle ok. why was it done that way?
I don't normally think of a newline as being equivalent to a space?
 
@FaheemMitha don't you? most people when typing paragraphs of text wrap the lines to fit the editor view and expect spaces or newlines just to make word spaces in the typeset result
 
@DavidCarlisle not newlines, no.
not by itself, without an additional space
 
@FaheemMitha you mean you type your entire paragraph on one line?
 
@DavidCarlisle No.
Sorry, not seeing your point here again.
 
7:30 PM
once upon a time a
cat sat on a mat
 
@DavidCarlisle Ah, Ok. I see. You mean the texified result.
 
@FaheemMitha If you typeset the above whet would you expect between a and cat
 
@DavidCarlisle a space. I didn't realise you meant in the translation to TeX.
 
@FaheemMitha well this is a tex chatroom (even if cricket is more popular:-)
2
 
Thanks for the clarification. I guess I was being dumb as usual.
@DavidCarlisle right
Ok, I'll try to keep that in mind. So, sprinkle % liberally everywhere at the ends of lines to avoid introducing spaces?
 
7:33 PM
@FaheemMitha basically the syntax of tex is optimised for typing text the programming syntax is eccentric because Knuth never thought people would do much programming
 
@DavidCarlisle Which they do, apparently. Would he have made it less eccentric if he had thought people would use it for programming?
 
@FaheemMitha white space is always dropped after a command name so you don't need one after \xxx but after { or } or #1 then a % will save a space going in the definition and may or may not affect the output depending whether a space matters there,
@FaheemMitha probably:-)
 
@DavidCarlisle I added all the % you put in, but I think I'll stick to my original defn. It is easier to understand, especially if one is in a hurry.
@DavidCarlisle were you ever a teacher? you seem very patient.
 
@FaheemMitha @egreg is here watching with dismay, he likes people posting questions with missing % as that's how he gets most of his rep, adding % to ends of lines.
@FaheemMitha I married one, does that count?
 
@DavidCarlisle Come now, not nice to tease @egreg.
@DavidCarlisle Probably. It might rub off.
 
7:38 PM
@FaheemMitha why?
 
@DavidCarlisle Because he might get upset and leave, and then who would answer our questions?
 
@FaheemMitha Psmith
 
Personally, if I lived in Italy, I wouldn't spend much time in a chatroom. Or on SE proper, probably.
@DavidCarlisle That sounds optimistic.
I would probably eat lots of pasta. and pizza. and probably grow fat.
 
@FaheemMitha I'm used to that. I was eating my spaghetti while @DavidCarlisle was tolding lies.
 
@egreg :)
 
7:49 PM
@PauloCereda Of course he was telling lies. But a grammar error is tolerated, when talking about @DavidCarlisle. ;-)
 
@egreg Oh no. :)
 
@egreg :-)
@egreg I can see you are the best of friends. :-) Is it good spaghetti?
 
@FaheemMitha Spaghetti al pomodoro: yummy, of course.
 
@egreg does sound yummy. actually, in italian everything sounds yummy.
I like tomatoes, but only proper ones. Not the crap one gets in supermarkets.
 
@egreg Cool
 
8:00 PM
@FaheemMitha they have to have so much pasta as they have not mastered the art of making Yorkshire pudding.
4
 
@egreg me wantee!
@DavidCarlisle LOL
 
@DavidCarlisle I doubt they want to eat Yorkshire pudding.
 
I got my second fuck the colorblind tshirt as a gift :) Weeeeee
 
@FaheemMitha Here also supermarkets have good tomato sauce.
 
8:05 PM
@percusse Yaaaay!
 
@PauloCereda still can't see it though
:)
 
@percusse The perfect crime. :)
 
@egreg That's nice. Is the food one gets in Italy (raw + in restaurants) good? For example, a friend said one gets good food in Japan.
 
There is also this
 
@FaheemMitha yes, as long as you are not in a hurry:-)
 
8:08 PM
@DavidCarlisle You've been to Italy?
 
@FaheemMitha a few times, one particular memorable meeting at university of Pisa (I think) we went out for "lunch" but it was a sunday and since rushing midday meal is a crime it took about 4 hours for us all to manage to pay and get out, so the afternoon schedule was a bit compromised (food was good though:-)
speaking of which: food ready, bye!
 
@DavidCarlisle Sounds a bit like the meeting I went to in Paris last year
 
@DavidCarlisle it means you were too early :P
 
@DavidCarlisle That does sound relaxed. How does anyone get any work done?
 
8:25 PM
@FaheemMitha Generally yes.
@DavidCarlisle That was a rush, not a real lunch break. :-)
 
8:39 PM
@Johannes_B I answered the thread
@percusse That's just mean. Well, a little bit funny... :) Your friends must like you ;)
 
9:12 PM
@egreg You have killed TeX.SX: After our edit of my answer I now can't open the question anymore: "We apologize for any inconvenience, but an unexpected error occurred while you were browsing our site. It’s not you, it’s us. This is our fault. Detailed information about this error has automatically been recorded and we have been notified."
 
@HeikoOberdiek It's part of my plan for keeping you under 100k. ;-) Sorry, possibly a concurrent edit: I saw \tracingmacros=1 and decided it was better to comment it, because it could worry beginners.
When I submitted the edit, I got a warning, but refreshing the page showed the edit.
 
@egreg Thanks for editing. \tracingmacros was a left-over, I have now even removed it entirely.
 
@HeikoOberdiek Nice idea, by the way.
 
@egreg Thanks.
 
@HeikoOberdiek You didn't use imakeidx, but I forgive you, this time. ;-)
 
9:22 PM
Hi! I need help with an English sentence, please:
Depending on your availability, you would be here as early as June 15 and as late as August 2nd.
(It's information for project volunteers.)
Does it mean I have to arrive between 15.6. and 2.8. or arrive after 15.6. and leave before 2.8. ?
 
What is the extension of the \ifdefined \else \fi syntax to the else if case?
@tohecz More context might be helpful.
 
@egreg i-makeindex without i TeX and i something: i ck ;-)
 
@FaheemMitha I don't have more context, it's for a friend
 
between June 15 and August 2nd is what is sounds like
 
@FaheemMitha that's as confusing as the original message
 
9:26 PM
@FaheemMitha There is no \elseif
 
"as early as June 15th" equiv to >= June 15th
"as late as August 2nd" equiv to <= August 2nd.
@egreg ok, so how do I do it? and why not?
@tohecz Why?
 
@FaheemMitha What do you want to do?
 
@FaheemMitha it means that he has to leave before Aug 2?
 
@egreg if \foo is defined then something otherwise if \bar is defined something else
 
@egreg i-makeindex without i-TeX and not on a i-something: i-ck ;-))
 
9:28 PM
@tohecz Not sure. Like I said, more context would be helpful.
Why not ask whoever wrote it?
 
@FaheemMitha \ifdefined\foo<do foo>\else\ifdefined\bar<do bar>\else<do other>\fi\fi
 
@egreg thanks. why two \fi?
 
@FaheemMitha Because you have two \if...
 
iis that a macro why says "return error", because i could then stick it after the \else.
@egreg ok
 
@FaheemMitha there's no context unfortunately :( All the other stuff treats visa and such.
 
9:31 PM
@tohecz that's a bummer, but yes, it could mean he has to leave August 2nd. But surely there must be some context. what is this about, anyway?
 
@FaheemMitha summer camp voluneering
it's not about me
 
@tohecz yes, i got that
 
9:46 PM
@tohecz it's a bit abbreviated but I would understand it to mean that if you are volunteering you could "work" any days between June 15 and August 2 inclusive
 
10:03 PM
hi everyone, small q
is it possible in tikz to color only a range of values?
say i want to plot data from x=1:20 and the data from x=5:8 should be colored in orange
i want to do this without plotting the plot twice as i already have 25 subplots exported from matlab
 
@DavidCarlisle yeah, I'm afraid that's it
 
10:31 PM
@Dav @Fah So you were correct, he'd have to leave <= Aug 2
 
11:20 PM
yawn
 
@tohecz If you are bored you could work out how many orders of magnitude more lines of code in @egreg's l3 answer than mine :-)
 
@DavidCarlisle It's the quality of the output that counts.
 
@egreg mine's brilliant, how's yours?
 
@DavidCarlisle :P
 
@egreg shame about the center though, I was going to do that but you have to pad the last row in that case so it would have taken more than one line of code, so I decided that flushleft was what was needed
 

« first day (1313 days earlier)      last day (3621 days later) »