« first day (597 days earlier)      last day (4351 days later) » 

12:59 AM
In the year 2525,
LaTeX9 surely had arrived,
everything you need to compile
is in the preamble of a mere .tex file.
2
 
1:24 AM
@PauloCereda Still promoted by listing the advantages over Office 2525 ultimate stable edition?
2
for which there is the regular funky version (not for the faint-hearted)...
 
@percusse LOL Word 2525 reported to have compatibility problems with the older documents in the .docxxxxx format. :)
2
 
@PauloCereda I think it would be advanced enough to report its own compatibility problems.
 
@percusse Or self-destruct. :)
"It seems you are writing a letter. Want me to download TeX Live for you?" :P
 
@PauloCereda I can't now because it's frozen. Do you want to proceed? Are you sure? Are you a little too picky with typography? You know what I'll close myself with an unrecognized error. Kern with your system admin. 0x004560234
2
Great article on arara by the way. All of them are quite interesting!
 
@percusse LOL
@percusse Thanks! :) I like cgnieder's, it makes me want to learn chemistry again. :)
I was terrible with chemistry at school. :( Never understood the basics.
 
1:36 AM
@PauloCereda Oh, I still have headache when someone tells me about it thanks to an idiot high school teacher.
 
@percusse I can relate to that. :)
 
2:31 AM
@percusse I've just moved to a new building and had to take all the jokes off my office door. One of them was (now very dated): Microsoft announced today that the official release date for the new operating system "Windows 2000" will be delayed until the second quarter of 1901.
 
 
2 hours later…
4:49 AM
@PeterGrill Closing in on me I see! :)
 
5:19 AM
Been stuck at unlucky 13 for ever... And its only a matter of time before @DavidCarlisle learns tikz and then I'll be back at 13. I have been trying to tell him that tikz is just a fad. :-)
 
 
1 hour later…
6:25 AM
I have a "tricky" question: Do you think that of custom styles created by TeX.SE members would be of interest?
 
 
2 hours later…
8:40 AM
@egreg you're just sad because Ireland lost some football match.
 
@DavidCarlisle Yes, of course. But also in preview of tonight's match, when England will lose to Ukraine. :)
 
@egreg I'm sure the home crowd will be cheering us on.....
 
8:57 AM
@DavidCarlisle I'm sure too. :P
 
9:16 AM
@lockstep I may agree it is a duplicate, but still the question remains un-answered: Is there such tool? Seems to me it is not...
 
@tohecz No, at present there is not
 
Then another question to @lockstep (or anybody else): Can you be paid by reputation points? And what is your price? :D
 
@tohecz You can set a bounty, if that is what you mean
 
@all anyone knows the font fontdesign that is listed in the answer tex.stackexchange.com/a/59405/243 ?
... probably mathdesign?
 
9:34 AM
@PatrickGundlach Quite certainly.
 
@JosephWright I know I can set a bounty. But making a program like makebbx is not a 7-day work I think. I mean the "price" partly as a joke...
 
@tohecz I thought (having never used biblatex) that the official line was that makebst was needed because the bibtex stack language is somewhat arcane but biblatex customisation was so natural and lovely that such a thing shouldn't be needed?
 
@PatrickGundlach You have a bizarre alphabetic ordering: you corrected mathdesign to be under "m" and not under "f" and I agree, but I don't understand why times is before the tg... packages. :)
 
@DavidCarlisle I might be the "official line", but the truth is, learning makebst took 10 minutes, learning biblatex has already taken 3 hours and counting...
 
@DavidCarlisle The 'official' line is more that writing BibTeX styles is a separate skill from (La)TeX programming, while biblatex styles are programmed using (La)TeX techniques, and moreover can be done within a document
 
9:54 AM
@JosephWright same as I said:-)
 
10:07 AM
@AlanMunn :-) We had Win ME experience and we are still alive. That's the only OS that could crash by itself without user intervention.
 
@egreg the mathdesign is because it was fontdesign before
and the german alphabet has i before g ;-)
 
@PatrickGundlach I knew that Germans are strange people. :)
 
10:23 AM
@PatrickGundlach o.O
Oh my! :)
 
@PauloCereda Even in school we are taught "g h i" instead of "i h g" so almost no one knows about it. Perhaps I am the only one?
 
brew install lynx and all was right with the world again
 
@PatrickGundlach :)
 
@AndrewStacey Yesterday I removed MacPorts from my machine at the office. I think I'll try brew
 
@PatrickGundlach Out of curiosity, does the umlaut alter the alphabetic ordering of a letter?
@egreg Me too. :)
 
10:31 AM
@PauloCereda It depends on the kind of sorting. I believe that there are different sorting methods. I believe the most common sorting is ä = a
 
@PatrickGundlach Cool. :) The same happens with accented vowels in Portuguese, they are treated like their accentless counterparts. :)
 
@PauloCereda I am not a sorting expert though.
 
@PatrickGundlach Neither am I. :)
You write one simple answer to a SciFi question and earn 14 upvotes in two days. :)
 
10:52 AM
@PauloCereda You forgot the "announce your answer in TeX.SX" part ;-)
 
@egreg Years ago, when I last had a Mac running Mac OSX, I used fink. I've never tried MacPorts, but brew is working just fine for me so far.
@PauloCereda Still a fair way to go to beat my single answer on Programmers.
 
@StephanLehmke Ah yes! :) This is a secret plot for us TeXers to dominate the (SX) world (I've seen you and Martin there too). :)
@AndrewStacey I can't beat that! :) That's surely one of the most precious jewels one will ever find in Programmers. :)
 
@PauloCereda The serial upvoting flash mob :-)
2
 
@StephanLehmke LOL
@StephanLehmke My personal goal is to break the serial voting detection algorithm. :)
3
 
11:07 AM
@AndrewStacey I installed MacPorts mainly for FontForge, but I see that Homebrew has it as well.
Yay! 98006
2
 
@egreg Yay! :D
 
@egreg Missed that one. brew install fontforge. Hmm, says something about linkapps ... must investiage.
Or even investigate
@PauloCereda I hope you're going to spell-check this interview before posting it. Since getting a Mac, my spelling has gone horrendously wrong. It keeps trying to put i in front of every word.
 
@AndrewStacey Don't worry. :) We have a review team, including Alan and lockstep. :)
2
Q: Is it possible to render a PDF in sepia tones?

benregnIs it possible to render a PDF in sepia tones, both the font color and overall document background? Preferably using pdflatex. The final effect could be something like this screenshot of Pocket in sepia mode.

Here's a dirty, dirty, dirty trick:
Behold the power of ImageMagick. :)
 
11:26 AM
@PauloCereda I thought you were going to post "Spill a cup of tea in the printer first"
2
 
@AndrewStacey LOL that would work too. :)
 
@PauloCereda That was how my "Secret Book For Geek Kids" said to fake old documents. Or was it coffee?
 
@AndrewStacey They will never know. :)
A friend of mine manufactured horse bridles. He buried every single piece for at least a month before using it. He said he didn't like the look of new things. :)
 
@PauloCereda That's similar to a strategy I've heard about where someone doesn't like spending money on new things. The others in the family buy stuff then hide them in the cupboard for a bit. Then when the stuff gets used it's "This? Yes, we've had it for ages."
 
@AndrewStacey :)
 
12:11 PM
Is this for citing pop music?
0
Q: Biblatex / Bieber full citation for first occurrence only

SteveI'm in the process of switching from BibTeX to BibLaTeX/biber. I've searched around but can't seem to find/figure out how to style the citations a particular way and I'd appreciate some help. I'm using the tufte-latex package so citations appear in the margins. I'm looking to have the first occu...

 
@egreg Oh my! :) You edit message is priceless. :)
 
@PauloCereda This shows the power of media!
I know there is a young singer called Bieber, though I have never heard him singing. :)
 
@egreg Neither have I, thankfully. :)
 
12:29 PM
sigh. You'd think if it was my own package and only had two letters in its name, I'd be able to type the name accurately.
2
 
@DavidCarlisle You've written too many of them
 
1:08 PM
@MarcoDaniel I have exchanged email with the last author from l2kurz - we can change the license to opencontent license. It is much simpler (and we can get rid of the gfdl pages)
 
Ethics question: can I fail someone for not putting the horizontal line in their fractions?
 
@AndrewStacey Well, they don't appear on British road signs :-)
 
@AndrewStacey They wanted to spare their ink.
I had someone not putting brackets around their matrices.
 
@JosephWright Let me check the exam again ... Nope, it's Norwegian.
@egreg Yes, I'm none too keen on that either. One that makes me sigh quite often is when they multiply out something like (x-1)(x^2 + 4x + 4) and then try to find the roots of the resulting cubic.
 
1:27 PM
@egreg This is quite common here in the Linear Algebra exams, matrix as a sole table of numbers, no brackets, parentheses or whatever...
 
Botheration - I forgot my power cable this mor <transmission terminated by client>
 
@AndrewStacey In a test for freshmen at an Italian university one of the questions was: "Determine the solutions of the equation (x–1)(x–2)(x–3)(x–4)(x–5)=0". Not a small number of the students did all the multiplications and then determined the roots trying the divisors of the constant term.
@AndrewStacey This looks like an excuse for avoiding the interview.
 
@egreg Doh! But I know what you speak about...
 
1:43 PM
@tohecz One of the students in my last course on Didactics of Math presented a test given to a young boy (high school freshman): "determine the equation having the solutions 1/2 and -1/3". :( The equation! Sob.
So it's not always the students' fault.
3
@tohecz The matrix delimiters are only a graphic expedient, after all. They have no inherent meaning; this is useful when using partitioned matrices: one can put whatever delimiter one wants also inside the matrix just to underline its structure.
 
@egreg I think the sometimes debatable skills of highschool math teachers are one of the major reasons for some students' belief that math is full of unfathomable mysteries they don't have a chance of ever understanding.
 
@StephanLehmke Your words are, more or less, the same as mine when I introduce the course. :)
I recommend to name the people that discovered math facts, putting them in a historical context, so the students can understand that math is something made by men and women, and not a mysterious law written on some inaccessible stones.
 
@egreg Well then you have the explanation for the multiplication thingy: It seems the solution is obvious but there might be something mysterious going on ;-)
 
@StephanLehmke The students grow up with the belief that math can't be easy.
 
1:59 PM
@egreg I find this especially important wrt. proofs. To know that a seemingly simple proof of some basic theorem has gone through hundreds of years of refinement is an important part of coping with ones own percieved inability to prove even the simplest things ;-)
 
@StephanLehmke Examples like this are difficult to find for first or second year high school students, but of course they are very important. Another example I give is that of Apollonius' "Conic sections", which had their first application to "the real world", namely physics, 1700 years or so after having been written (first ballistics in the 16th century, then Kepler in the 17th).
Another one is "number theory", which was just a source of amusement for mathematicians. Now RSA is based on the Euler-Fermat theorem. :)
 
@PatrickGundlach Great. And we have mor space ;-)
Will you change the license?
 
@MarcoDaniel: ^^ :)
Just a test, of course. :)
 
2:17 PM
@MarcoDaniel done
 
Speaking of math, there's a book I read a few years ago which I recommend to every student: livrariacultura.com.br/scripts/resenha/… :)
 
@PauloCereda Unfortunately Portuguese only. :) A very good book is "What is mathematics?", by R. Courant and H. Robbins: it opens the student's minds. It's not easy, of course, but bright students can find much in it.
 
@PauloCereda that's all greek to me
 
2:33 PM
@egreg Indeed. :) I tried to find it in another language, but the publisher (Editora Livraria da Física) seems not to have translated books to English. :( A professor of mine once recommended Courant/Robbins book, but I didn't have the opportunity to buy it yet (it seems the book is available at bookstores around here, no need to import it).
@PatrickGundlach It's easier than Greek, we don't have complicated letters. :P
@egreg: the book I mentioned is my shelf next to a book by two Italians: Umberto Eco and Carlo Maria Martini. You probably know the book. :)
 
@PauloCereda @AndrewStacey I'll even fix your grammar. :-) tex.stackexchange.com/a/57820/2693
 
@PauloCereda I found it in my school's library when I was in my third year (we have five year high school): it gave me the last push to choosing math as my future.
 
@AlanMunn You comment is epic! :)
@egreg How nice! :)
 
@PauloCereda The comment thread is quite odd now, since @AndrewStacey has deleted his comments on "I" vs. "me". Have you seen the light now, Andrew? :)
 
@AlanMunn "I" would require a verb, wouldn't it?
@PauloCereda Not really like Gauss, who chose math when he discovered how to construct the 17 side regular polygon with straight rule and compass. :)
 
2:48 PM
@egreg Yes, but Andrew didn't seem to think so. There's an odd prescriptivist idea that these statements are derived from ellipsis of the verb, and so you should get the nominative case there. Similar craziness in things like "He is taller than I" (which linguistically should be (and is for regular speakers) "He is taller than me").
As you note, the simple fact is that ellipsis in English always requires an auxiliary verb, so you can't just strand the subject like that.
 
@egreg :)
 
@AlanMunn We usually get "he is taller than me" right, because in Italian we use an oblique case for the pronoun: "è più alto di me". Personal pronouns are the only words in Italian where remnants of declination survive.
 
@egreg In Portuguese, we don't have this form. :) We say, "Ele é mais alto do que eu." :)
 
Also in Italian we have crazy grammarian: in "la mia casa è più grande della tua" most grammarians say that "tua" is a pronoun. Very strangely, these "possessive pronouns" are exactly the same as "possessive adjectives" and can be used only in coordination.
@PauloCereda In Latin it was "Caius altior est quam ego" or "Caius altior me est". We followed different patterns. :)
 
3:07 PM
@PauloCereda Also, you have the 'que' which makes the structure look much more like a clause. In the Italian example, you just have the 'di', which is a preposition (although it can introduce infinitives, I think.)
@egreg This is a complicated fact. Although they inflect like adjectives, somehow they also have to have the function of pronouns.
 
@AlanMunn Several grammarians disagree.
 
@egreg Disagree about what? That they have to function like pronouns?
 
@AlanMunn They disagree that there actually are "possessive pronouns" as distinguished from "possessive adjectives". Of course, grammatical classifications are always disputable.
 
@egreg Right, I understand the disagreement on the surface, but proponents of the "they're only adjectives" theory still need to account for the fact that semantically they function like other pronouns.
 
3:24 PM
@AlanMunn They require the article. No (other) Italian pronoun does. They don't require it only when used as copula (and so are adjectives): "Il libro è mio".
 
@egreg Right, I agree with the syntactic analysis, since those arguments are very strong. The problem that remains is that in terms of anaphora, they behave like other pronouns, despite the fact that they are adjectives. This is a non-trivial problem.
 
@AlanMunn How would you classify "mine" in "the book is mine"?
 
@egreg I would say that it has a possessive pronoun and a contracted 'one'.
 
If I'm not mistaken, the English possessive pronoun is just the genitive case of the possessive adjective. At least historically.
 
I'm lost. Really lost. :)
 
3:33 PM
@PauloCereda Alan threw an anaphora that could kill.
2
 
@egreg No, it's just the genitive case of the regular pronoun. So if you think of a pronoun as abstractly [Pron: xPerson, yNumber, zGender, rCase] you can then map those into their respective forms in the the paradigm, so [Pron: 3P, Sg, M, Gen] -> his.
 
shutdown -h now
I need to reboot. :)
 
@egreg Since a 5 year-old doesn't know the history of the language, history can never explain synchronic phenomena...
@PauloCereda What are you lost on?
 
@AlanMunn Of course children learn from listening. But there's been a time when "mine" was really a genitive.
 
@AlanMunn Pretty much everything. :) I don't know much things about grammar, morphology and other linguistic subjects. Besides the intellectual barrier, there's also my language limitation which doesn't allow me to follow most of the explanations. :)
 
3:45 PM
@AlanMunn I believe that looking at the history of a subject can often shed light on its present state. It's true for math, at least.
One must talk about why logarithms were introduced, or the student will think that they come from a "revelation".
 
@PauloCereda Don't worry, I'm sure you know as much about english grammar as a native speaker: chat.stackexchange.com/transcript/41?m=4977242#4977242
 
@egreg Perhaps, I don't know. But now it certainly doesn't behave as an adjective.
 
@AlanMunn In English. Languages are different from each other. :)
 
@DavidCarlisle Oh. :) My first English teacher said to me, "when in doubt, use the phrasal construct that sounds better to you". :)
 
@egreg But that's the history of a field, not the history of a natural phenomenon. What I mean is that a child learning a language must develop an analysis of the phenonemon as it is now, and that analysis cannot possibly require reference to the history. Knowing the history may help explain some things, but the history itself can't be part of the synchronic analysis.
@egreg Sure, we agree on that. Although at the right level of abstraction, all languages must be the same.
@DavidCarlisle Ah, but some of use make it up for a living. :)
 
4:29 PM
9
Q: Rename {mathmode} to {math-mode}

doncherryThe common spelling of math_mode seems to be with a space in between the words: There are 109 questions with math mode in their title, but only 17 with mathmode. Herbert Voß's paper Math mode spells it with two words, too. Hence, I suggest mathmode be normalized to math-mode, just like we have ta...

Do people want to go for this?
 
@JosephWright I'm not sure. Though I think it's a nice standard, I'm so used to see mathmode that the other form seems... wrong... to me. :(
 
@JosephWright Do you want one more vote? I don't have much of an opinion. I agree a bit with Paulo. But the logic is clear. I'm not sure the badge issue is a big deal, but I don't pay much attention to badges any more.
 
@AlanMunn It got flagged, and has 9 upvotes, so I'm minded to do it, but want to see what the feeling is 'now'
 
4:46 PM
@JosephWright I guess mathmode will be retained as a synonym, so people who are used to it can continue to use it.
 
@AlanMunn OK
 
@JosephWright Is math-mode already a synonym of mathmode?
 
@AlanMunn Yes
 
@JosephWright So then this is a solution looking for a problem...
But you probably shouldn't listen to me, since I don't feel strongly either way.
 
5:02 PM
@JosephWright: I'm very happy to see the event in the bulletin. :) Let's see if we have new people in the interview room today. :)
 
5:22 PM
@PauloCereda ;-) and the symlinks ;-)
 
@MarcoDaniel Uh-oh. :)
 
@PatrickGundlach Great. Now we can work without any trouble.
 
Apropos of nothing, I'm having great fun with delimited argument commands. tikz-backgammon is approaching an initial release.
 
@AlanMunn Yay! :)
A blog post could also be written. :)
 
@PauloCereda Yeah, yeah. :)
 
5:31 PM
@AlanMunn :P
I'm a disciple. :)
 
@PauloCereda But you know as much about backgammon as you do linguistics. Talk about faith. :)
 
@MarcoDaniel If you don't agree on anything I've done, just delete/change it.
 
@PatrickGundlach: I noticed you have edit the bib-file. Do you want to use biblatex?
@electronic isn't available with the current style.
 
@MarcoDaniel no. Its just that jabref has changed everything to upper case.
@MarcoDaniel I see. I didn't know I used that.
@MarcoDaniel but it's in the PDF, strange
 
@PatrickGundlach One suggest: I think l2kurz is an online documentation. So we can use \href{}{} instead of \url. I will add something to the biblatex part and I will edit the math part
@PatrickGundlach Not really. unknown entries use @misc
 
5:43 PM
@MarcoDaniel what is the advantage of using href? url works fine
 
@PatrickGundlach \href{<url>}{<displayed text>}
 
@MarcoDaniel I see, but I see (in my mind) enough people that print out the PDF :)
 
@PatrickGundlach In this case we need the command url. What do you think about printing such links as a footnote?
 
@MarcoDaniel good to know!
@MarcoDaniel that's fine with me. One possible drawback: footnotes take up precious space :)
 
@AlanMunn Oops. :) Blind faith? :)
 
5:48 PM
@PatrickGundlach ;-) we will remove the section robust commands.
 
@PauloCereda I'm having dinner at 8, but I'll be back in half an hour
 
@MarcoDaniel that's fine with me
3
A: Latexmk with makeglossaries and auxdir and outdir?

John CollinsThe problem is that the makeglossaries script fails when it is called with a filename with a path component, e.g., makeglossaries out/try. This can be worked around by defining the necessary custom dependency as follows add_cus_dep('glo', 'gls', 0, 'makeglossaries'); sub makeglossaries { my ...

 
@egreg We will wait for you, don't worry. :)
 
> Hellou... anyone there? Why are people upvoting this answer if it does not work??? – drozzy 3
valid comment from the OP, I think
 
@PauloCereda Just don't take my LaTeX code as a good example. Although I think there are some clever things there, I'm sure lots of the code is awful.
 
5:53 PM
@AlanMunn Well, at least we aim at writing better code in the future. :) If you get the first version of my songbook, I'm sure you'd be scared of how many good practices I infringed. :D
19 people in the interview room! :D
 
@PauloCereda That's definitely true. Every so often I open an old document from the time when I was first learning LaTeX and cringe at the code.
 
@PauloCereda The interviewee is missing, though.
 
@egreg :-)
 
@egreg Andrew will appear soon. :)
in TeXtalk - Interviews, 26 secs ago, by Gonzalo Medina
Hmm... a room crowded with mathematicians... Such a dangerous place!
 
@StefanKottwitz Article sent
 
6:01 PM
@JosephWright Got it, thanks!
 
To the Interview Room!

 TeXtalk - Interviews

Interviews for our community blog.
 
6:19 PM
24 people in there!!!!!
 
25 .. jump
 
 
1 hour later…
7:47 PM
What better than enjoying a great interview while Clara Haskil is playing Mozart's n. 20? :)
 
@egreg Sounds great: I have only part of this :-)
 
@egreg How nice! :)
 
@JosephWright We're in the middle of the second movement: great.
It's a 1960 recording, with the Orchestre des Concerts Lamoureux, Igor Markevitch conductor
 
8:04 PM
@JosephWright Did you see my flag on the "Cannot draw commutative diagram" question?
 
@egreg Haven't seen it at the mo
Will look
@egreg Done
 
@JosephWright So I added the text to the other one and the answer. Thanks.
@JosephWright @DavidCarlisle By the way, England scored.
 
yes saw that (well saw it in some updating web page thing) I gather we usefully had a goal of theirs disallowed as well:-)
 
8:20 PM
@DavidCarlisle Really? I'm not looking at the match. The interview is more interesting.
 
yes not watching either but have a blog thing in another tab scrolling past:
21:09 BST

64 min: Replays show that ball was over the line when Terry hooked it clear. The goal-line official couldn't advise the referee to give it, however, because the goal-post was blocking his view.
 
@DavidCarlisle We have it on here: did cross line
@DavidCarlisle My dad is providing commentary :-)
 
8:35 PM
So, if England wins, France is classified?
Even France losing to Sweden?
 
@PauloCereda If england win, they play italy next...
 
@DavidCarlisle ooh that's interesting! :)
 
Yes, next Sunday we have England vs. Italy.
 
@egreg Italy have the better anthem :-)
 
@JosephWright you don't want god to save the queen?
 
8:46 PM
@DavidCarlisle Do Not Ask
 
God Save The Queen was one of the first English songs I learned. :)
15
Q: TeXtalk interviews

Paulo Cereda Introduction As part of the celebrations of our first birthday, we decided to interview great members of our community. Since we received a very positive feedback from our beloved users, the TeXtalk became a regular event in our community blog. Our interviews are also indexed in the TUG's Int...

I added Andrew's interview to the bookmark, and added a TBA for next interviewee. :)
Next step: deploy in our blog. :)
I wonder if they put this in the stadium:
"Goodbye George". :)
 
9:06 PM
@egreg That's a nice thing to say.
 
9:17 PM
@AndrewStacey It was the truth! :)
 
@egreg: I'm not in my Mac, could you do me a favour? which ln. :)
 
@PauloCereda /bin/ln
 
@JosephWright Ah thanks! I'm working on the symlinks. :)
 
9:33 PM
1
Q: Cutting cake into 5 equal pieces

Steven If a cake is cut into $5$ equal pieces, each piece would be $80$ grams heavier than when the cake is cut into $7$ equal pieces. How heavy is the cake? How would I solve this problem? Do I have to try to find an algebraic expression for this? $5x = 7y + 400$?

I want to add a comment there: "I came here for the cake."
 
@PauloCereda Six answers! Admittedly, the most voted one is nice.
 
@egreg Indeed. :)
 
9:58 PM
I'm trying to come up with a renewenvironment for question tex.stackexchange.com/q/60434/3235 and I 've tried the following can someone tell me where I did wrong or even answer the question directly ?
\documentclass{article}
\usepackage{pgfplots}
\def\DoNothin[1]{}

\renewenvironment{tikzpicture}[1][]{\begin{pgfpicture}\pgfpathrectanglecorners{\pgfpointorigin}{\pgfpoint{3cm}{3cm}}\end{pgfpicture}\DoNothin\bgroup}{\egroup}

\begin{document}

\begin{tikzpicture}[remember picture,some other options]
  \begin{axis}
    \addplot[thick] {x^2};
  \end{axis}
\end{tikzpicture}

\end{document}
pgfpicture is missing a \pgfusepath{stroke} at the end
 
@percusse glad it's not trivial :)
 
@cmhughes Well maybe it is but I'm not good at these grouping stuff :)
If we can manage to do it, it will surely come in handy
 
@percusse I had the same idea (to renew the environment) but failed
yes, I hope so
I was hoping that it could be switched on by using \documentclass[draft]{article}
(similar to hyperref and graphicx)
 
@cmhughes I think the problem is that the commands are still read by the parser which we should have hid it from it by DoNothin. I tried some ideas from the question 308 but no avail.
 
@percusse You can use environ:
\documentclass[draft]{article}
\usepackage{pgfplots}

\ifdim\overfullrule>0pt
  \usepackage{environ}
  \let\tikzpicture\relax
  \let\endtikzpicture\relax
  \NewEnviron{tikzpicture}
    {\begin{pgfpicture}\pgfpathrectanglecorners{\pgfpointorigin}{\pgfpoint{3cm}{3cm}}
  \pgfusepath{stroke}\end{pgfpicture}}
\fi

\begin{document}

\begin{tikzpicture}[remember picture]
  \begin{axis}
    \addplot[thick] {x^2};
  \end{axis}
\end{tikzpicture}

\end{document}
Unfortunately there's no conditional telling whether the draft option has been set.
 
10:07 PM
@egreg Black magic again... Can you explain What you tested with overfullrule?
That should not be a problem a user can switch externally for that...
 
@JosephWright Oh but now I Just Have To. Closet republican?
 
@egreg not sure of the context but there's always \@ifclasswith{draft}
 
@DavidCarlisle That's a good idea.
 
@AlanMunn No, quite open
 
@JosephWright I see. Ok. So I won't ask. :)
 
10:10 PM
more longtable bugs avoided:-(
 
@egreg Mind writing an answer with David's hook? I surely didn't understand that hint.
 
@DavidCarlisle However you have to know what the class is.
 
@DavidCarlisle Isn't this a good thing? :)
 
@PauloCereda avoiding them is better than not avoiding them but them not being there would be better
 
@percusse A good answer would use a box as wide as the picture if it were typeset.
 
10:16 PM
@DavidCarlisle Ah. :)
 
But I don't know if the data is somehow recoverable from the aux file.
 
@egreg But we can't possibly know without actually processing the contents since the bounding box is created along the way.
I agree it's not the ideal solution but better than nothing if we just have a centered 5x5 rectangle.
 
@egreg well not really it's just looking in \@classoptionslist :-)
 
Ouch, if you have an inline \tikz {} drawing they also get enlarged to a big rectangle :)
But I think that's an acceptable feature
 
@DavidCarlisle It's \@ifclasswith{<classname>}{draft}{YES}{NO}. But I did it looking directly into \@classoptionslist.
@percusse Really?
 
10:30 PM
@egreg Even more surprising, it gobbles the trailing text for some reason.
\documentclass[draft]{article}
\usepackage{pgfplots}

\ifdim\overfullrule>0pt
  \usepackage{environ}
  \let\tikzpicture\relax
  \let\endtikzpicture\relax
  \NewEnviron{tikzpicture}
    {\begin{pgfpicture}\pgfpathrectanglecorners{\pgfpointorigin}{\pgfpoint{3cm}{3cm}}
		\pgfusepath{stroke}\end{pgfpicture}}
\fi

\begin{document}

\begin{tikzpicture}[remember picture]
  \begin{axis}
    \addplot[thick] {x^2};
  \end{axis}
\end{tikzpicture}

Some text \tikz[baseline] {\node{A};} continued here.
\end{document}
 
@percusse It seems that \tikz calls \tikzpicture internally. :(
This should be something to add to TikZ directly.
 
@egreg Indeed, maybe \tikz@picture should be relaxed too.
 
leo
hi there
I want to plot (sin x)/x, so I did \draw[domain=-5:5,samples=100] plot(\x, {sin(\x r)/\x});
but this didn't work because the function doesn't makes sense at 0
 
@egreg Here is the part for the inline picture from tikz.code.tex
\def\tikz{\pgfutil@ifnextchar[{\tikz@opt}{\tikz@opt[]}}
\def\tikz@opt[#1]{\tikzpicture[#1]\pgfutil@ifnextchar\bgroup{\tikz@}{\tikz@@}}
\def\tikz@#1{#1\endtikzpicture}
\def\tikz@@{%
  \let\tikz@next=\tikz@collectnormalsemicolon%
  \ifnum\the\catcode`\;=\active\relax%
    \let\tikz@next=\tikz@collectactivesemicolon%
  \fi%
  \tikz@next}
\def\tikz@collectnormalsemicolon#1;{#1;\endtikzpicture}
{
  \catcode`\;=\active
  \gdef\tikz@collectactivesemicolon#1;{#1;\endtikzpicture}
}
 
leo
is there a way to avoid Tikz choose 0 as sample in the given domain?
 
10:40 PM
@egreg (@percusse) thanks for the answer! +1 your remark at the end of the answer summarizes my only follow-up
@leo how about break it into 2 branches \draw[domain=-5:-0.01,samples=100] plot(\x, {sin(\x r)/\x}); and \draw[domain=0.01:5,samples=100] plot(\x, {sin(\x r)/\x});
 
leo
@cmhughes yes :-)
 
@cmhughes The problem is that also inline \tikz will be replaced by rectangles.
 
leo
I have curiosity if there is a way to say to TikZ: take any point in the domain except 0
 
@egreg do you mean in line images? if so, that's not a concern
@egreg @percusse one of the keys to the axis environment is width=.... Could one read the key before renewing the environment? (another key is height, which defaults to the same as width)
 
@cmhughes But then we have to read into it which we skipped by a new environment. Then it gets more complicated to read the options etc.
 
10:49 PM
@percusse of course, my bad :)
@egreg @percusse would it be quicker to use savebox and usebox for the rectangle?
 
@leo For such plots I would directly use pgfplots instead of TikZ.
 
leo
@percusse In that case just \addplotworks, right?
 
@cmhughes I really don't know but since pgf is loaded I am not really sure. you can also use pgfuseqpath or something with q in it :P
 
leo
\addplot {sin(x)/(x)};
 
@leo Yep. but numerical conditioning is always a matter. there is a unbounded coords=discard option in pgfplots too.
 
10:54 PM
@cmhughes I should have more details about the dimensions. If they are specified in the options, then it should be possible to grab them.
 
leo
@percusse Nice!
 
@cmhughes You wouldn't save time: with \savebox the contents is typeset.
 
@egreg oh ok. here's an example of the width
\begin{tikzpicture}
\begin{axis}[width=.5\textwidth]
\addplot[thick] {x^2};
\end{axis}
\end{tikzpicture}
 
leo
this online compilator is pretty bad :-(
 
@cmhughes Do all of your tikzpictures have this structure?
I can think about this. But not now: it's bed time, I'm afraid. :)
 
10:57 PM
@egreg pretty much all of them specify the width in a way similar to this (e.g width=.33\textwidth). the width is not the only key though- there's usually an xmin, xmax, etc
@egreg thanks so much for your time :)
 
leo
@egreg sleep well!
 
@egreg Such a nice edit for finishing off the day :)
 
leo
@egreg by the way, how goes Italy in the euro?
 
@leo We'll play England next Sunday.
@percusse A 275 day, not bad. :)
 
leo
so England wins today
 

« first day (597 days earlier)      last day (4351 days later) »