« first day (608 days earlier)      last day (4318 days later) » 

5:43 AM
@percusse Knowing only Matlab, a tiny bit Python and even less Fortran, I can't answer this myself, but Google can, as expected, find a lot of stuff written about this. For example webonastick.com/php.html (which has links to several other sites).
 
 
1 hour later…
6:56 AM
Joseph Wright has added an event to this room's schedule.
 
 
3 hours later…
10:03 AM
@TorbjørnT I have seen them but they are not like boo, PHP made me loose my data or even something that cannot be worked around with some swearing and cursing. Those pages are full what we call nerd anger (clinging onto a few minor details and exaggerating their effects to something catastrophic ) There were short videos full of nerd anger. One of them was hilarious, let me try to find them
For example in similar vein Ruby vs. Python (I hope) blip.tv/rupy-strongly-dynamic-conference/…
Ah Here it is.
 
10:24 AM
@percusse I didn't look too close, but I'm not surprised by that. (I'll try and remember the video for later though, as I'm in Mozambique these days, with a painfully slow connection.)
 
I must confess, this app helps me keeping track of that info. :P
 
10:52 AM
@egreg: congrats, first user to get the silver badge! :)
 
@PauloCereda I think you should spend less time monitoring other people's rep and more time finishing arara:-)
 
@DavidCarlisle Oh, good idea. :P
 
I don't think this got mentioned yesterday, but Australia lost: news.bbc.co.uk/sport1/hi/cricket/england/latest_scorecard/…
 
11:41 AM
What has the world come to ?
 
11:59 AM
@AndrewStacey, @JosephWright, @AlanMunn, @lockstep and other bloggers: I rewrote my "potatoes" draft. I'd love to hear from you. :)
@N3buchadnezzar Follow-up: subequations in footnotes. :)
 
Subtables inside subequations in footnotes?
I think I actuall read a question about someone who wanted tables in their footnotes..
 
@N3buchadnezzar ooh sounds sexy. :P
@N3buchadnezzar There was one with TOC in footnotes, I guess. :)
 
@PauloCereda Really? I just do not see why that is needed. Except giving your professor a heart attack when reading your thesis.
 
12:17 PM
@N3buchadnezzar people want multipage tables inside multipage footnotes, and are surprised when it doesn't work out of the box (although it can be done with a bit of care)
 
@DavidCarlisle Can we use longtable in footnotes? :)
 
@PauloCereda yes with a bit of care as I say, I think there's an answer on site. You can't have the repeating table head and so you just have to give longtable a bit of help to not try to do that but the main part of the table code just works in footnotes.
@N3buchadnezzar it seems to depend mostly on subject area. Lawyers and Biologists like to have at least three quarters of their document in footnotes if they can manage it.
 
12:34 PM
@DavidCarlisle Yea and for critical editions we absolutely need longtables in marginpars breaking over into footnotes and then to the next page ;-)
 
 
1 hour later…
1:35 PM
Can anyone give me a hint on how to define an "optional" environment?
I'm working on a paper at the moment, and want to use the same files for both the conference and technical report versions. Mostly, I want to include proofs of the lemmas that appear in the output only if a certain flag is set
But my TeX foo isn't strong enough to work this out
 
@AdamWright You want something like
 
@AdamWright look for "comment" or verbaim packages that allow you to define environments that eat their content
 
Thanks - I'll have a look at the comment environment :)
 
Basically you would use something like this
\usepackage{comment}
\includecomment{proof}
\begin{document}
\begin{proof}
Hello
\end{proof}
\end{document}
 
Ah, perfect. Thanks both
That works great
 
2:09 PM
@DavidCarlisle:
:P
Special Thanks section.
 
2:51 PM
@PauloCereda Very heartfelt. :) I made some minor tweaks to the English.
 
@AlanMunn Thanks, Alan. :)
 
 
1 hour later…
4:23 PM
@PauloCereda :-)
 
@DavidCarlisle I wrote a better thanks. :)
 
@PauloCereda you mis spelled "features" again
 
@DavidCarlisle Oh my bad. :)
@David: \item[David Carlisle] for reminding me to work on \arara, and also encouraging me to write answers about it in our \TeX\ community.
No one gets hurts. :P
 
@PauloCereda the first version was more probably more true:-)
 
@DavidCarlisle :P
 
4:26 PM
palindrome time again (101101) no guesses who
 
I'll hunt that arara gold badge! :)
@DavidCarlisle a 6-digit rep, that's unfair!
It's a subliminal message written in binary. :)
Newbie question!
What's the difference of
\makeatletter
\long\def\theequation{\ifnum \c@chapter > \z@ \thechapter --\fi \@arabic \c@equation}
\makeatother
to
\makeatletter
\renewcommand{\theequation}{\ifnum \c@chapter > \z@ \thechapter --\fi \@arabic \c@equation}
\makeatother
 
the second one is more or less latex and makes an error if \theequation is not already defined, the first one is primitive tex and doesn't check anythjng. The definition is same either way
 
@DavidCarlisle Ah! Thanks. :)
beer["david"]++;
 
@PauloCereda I haven't really looked into arara since I use TeXShop and the standard engines do most of what I would like. But I'm wondering if arara + engines would provide a very simple way for people to make custom engines without needing to know shell scripting?
 
I'm the author, so I'm probably biased. :) The idea behind `arara` is to have a tool to "organize" the compilation process, so
% arara: pdflatex
% arara: makeindex: { style: mystyle }
% arara: biber
% arara: pdflatex
would run all those command in that order, and also expanding the arguments. :)
We can have more complicated stuff, if we have a MetaPost rule, % arara: metapost: { files: [ a, b, c, d, e ] } would run MetaPost 5 times, each one for each file. :)
 
4:44 PM
@PauloCereda So it's really designed to create a build scheme on a per document basis, not a way of making more general purpose builder scripts?
TeXShop engines do a similar thing except for you shell script them and they can be used on any document you like.
One other question. Can I comment out the arara lines with an extra %? (Sometimes you don't always want to run biber or whatever on your document.)
 
Yes, the idea was to have a compilation scheme per document. :) But we can perhaps mimic a builder script by creating a main Makefile.tex (or .dtx or .ltx) and use
% arara: pdflatex: { files: [ mythesis.tex ] }
in the body of the "makefile". :)
@AlanMunn No, it won't work. I thought of removing this "feature", but Marco suggested me to keep things as they are. To "cancel" arara's action, you need to use "% !arara:".
 
0
Q: Demoting/Promoting sections, chapters, etc

RezaConsider following structure: . |_s |_s |_ss |_ss* |_sss |_ss |_s |_s How can I demote a subsection to subsubsection without changing markups ? . |_s |_s |_ss |_sss* |_p |_ss |_s |_s How can I promote a subsection to section without changing markups ? . |_s |_s |_ss |_s* |_ss...

 
@PauloCereda Ok. That syntax is just as simple. Thanks.
 
Am I missing something: if you don't change the mark up, how can the output change?
 
@AlanMunn Would you like to take a look on the new manual? :) It's incomplete, but the "important" parts are already done. :)
@JosephWright I didn't understand the OP's question. :(
 
4:54 PM
@PauloCereda No rush for me right now. I was just thinking out loud. I have one document that might benefit from it, but for most things I do TeXShop engines work fine, and I have replaced my bibtex command with a nice little script that Mark Everitt wrote to choose either biber or bibtex on a per document basis; that's the main thing I need as I have a mixture of natbib and biblatex documents.
@JosephWright Didn't we have a question about context sensitive markup though, that was kind of similar? Maybe that's what he has in mind.
 
@AlanMunn Ooh cool! :) I have an idea of a rule to mimic that behaviour. :)
 
9
Q: Create context sensitive headings

Speldosa This question led to a new package: coseoul Is it possible to create headings in LaTeX where you don't specify what level of the heading you want, but rather if you want to go up, down, stay or start over in the hierarchy that the heading is going to be placed within? That is, instead of ...

Yep. Here it is. Maybe a duplicate then?
 
% falls back to bibtex
% arara: bibliography
% arara: bibliography: { engine: bibtex }
% arara: bibliography: { engine: biber }
 
@PauloCereda Yes, that would be nice. (And a good example to put in the manual, since this is something that many people would appreciate.)
 
@AlanMunn I'll add it. :)
 
4:58 PM
It's a pity that one can't downvote more than once. :(
@egreg, "What kind of verbatim?" The \begin{verbatim}...\end{verbatim} kind. This must have been obvious enough, as David Carlisle below was apparently able to infer it without difficulty. "Where?" In an XY-pic node, as clearly stated in the question. I don't see how the size of the XY-pic package, nor the fact that it provides other features besides nodes, makes this part of my question unclear. — sampablokuper 2 hours ago
 
@egreg then he asked me to generate a MWE in comment to my answer:-)
 
\usepackage{etoolbox}
\patchcmd{\theequation}{.}{--}{}{}
I can't believe this works too! :P
\renewcommand{\theequation}{\thesection.\arabic{equation}}
This works pretty well, except that the equation counter won’t be reset to
zero at the beginning of a new section or chapter, unless you do it yourself using
\setcounter.
 
@DavidCarlisle "As clearly stated in the question": I have some words to describe this attitude, but unfortunately the size of these lines is too short. :)
 
It's in the amsmath manual, but I didn't get why. :(
 
Anyway: four 2000m mountain passes. It was hot also at the top.
 
5:05 PM
@egreg How nice! :)
 
@PauloCereda You have to "count equation within section: \numberwithin{equation}{section}
By the way, my rep now is a nice palindrome: 101101
 
@egreg Ah. :)
 
41 mins ago, by David Carlisle
palindrome time again (101101) no guesses who
You'd better stay in your current 1 mod 5 rut otherwise it might be a while before you get any more palindromes....,
 
@DavidCarlisle Sorry, I haven't checked the chat backlog.
 
@egreg no need to apologise:-)
 
5:14 PM
@PauloCereda Please, add the \numberwithin code to the answer for 1--1. Requires amsmath
 
1
A: How to change equation numbering style

Paulo CeredaI was looking for some hints in the amsmath documentation and found the following trick (adapted, of course): \renewcommand{\theequation}{\thechapter--\arabic{equation}} If we look at the original definition of \theequation, we can find that it's more robust than our first attempt: \long macr...

Friends, do I need to alter something?
@egreg Oops. :)
My bad.
Even for chapter?
 
@PauloCereda Ah! He wants chapter--equation, so it's \numberwithin{equation}{chapter}
 
@egreg Sure! Let me fix it. :)
 
@JosephWright I would like to bother you with a biblatex-ieee question. Have a look at the following images with the same paragraph crop on the left hand side.
 
@egreg Added! Could you take a look if it's better now: tex.stackexchange.com/questions/61756/…
@percusse Another avatar wardrobe. :)
 
5:18 PM
@percusse Yes?
 
@JosephWright I'm using the straight \bibliographystyle{IEEEtran} on the first one
 
@percusse Likely
 
@JosephWright and \usepackage[style=ieee]{biblatex} on the second. Is it intentionally increasing the font size?
 
@PauloCereda Wait a moment! No, \numberwithin is not necessary. Sorry.
 
@egreg hehe don't worry. :)
 
5:20 PM
@percusse The issue for me with these 'formatting' issues is that ideally the 'internal' formatting of a bibliography should be independent of the 'outer' formatting. For me, the focus is on the 'internal' part (I guess I'd prefer it if biblatex did not actually change any margins at all).
 
@egreg: Should I leave amsmath for a greater good? :)
 
A question about boxes: are local or global boxes more useful?
 
@JosephWright I see. So which part do you think I should fiddle with for the font size adjustment? The class file or the biblatex-ieee style file?
 
@PauloCereda The OP loads amssymb and amscd, so amsmath seems to be a useful addition.
 
@egreg Agreed. :) Thanks. :)
My cats love boxes. :) /ducks
 
5:23 PM
@percusse biblatex provides some methods to adjust the bibliography layout without redefining it entirely. biblatex-ieee does not alter this at all (if you read the code you'll see I very deliberately do not do anything that can be left to the biblatex kernel).
 
@JosephWright Local. Global boxes are very useful when dismantling them.
 
@PauloCereda I think they are probably global :-)
 
@PauloCereda I've gave up on the system anyway OpenID, myOpenID, gravatar.com bla bla bla. All for a stupid small picture. It says that it hashes my email address and it's constant for a long time :) I don't know why it changes.
 
@egreg I should be clear I mean 'at a document level', not when writing code
 
@percusse Maybe it's some sort of Russian roulette. :)
 
5:27 PM
@JosephWright Ah, excuse my ignorance. Basically you have entered all the stylistic features how to handle repeating author names, how to handle URLs and DOIs, omit the month or not etc. However it's not biblatex-ieee 's job to define the final (or outer look) regarding the font size etc.
Am I right?
 
@JosephWright If the interface is similar to \savebox\usebox I don't have any preference. I don't remember whether the LaTeX manual talks about this (\savebox is local).
 
@percusse Yes, that's my point. To me, a bibliography style is something like 'author(s), journal, year, volume, start page--end page', where things like 'the volume will be given in bold' are included. But how you then lay out the bibliography on the page will depend on the document design. I use the same bibliography style for my own documents and for articles, but the layout of the documents in a 'global' sense varies.
@egreg OK, I guess I should check what Leslie says about this (if anything). The context here is 'coffins' :-)
@FrankMittelbach and @DavidCarlisle should get it, as they'll have received an e-mail from me :-)
 
12
Q: How do I measure my coffin?

Brent.LongboroughI'm experimenting with xcoffins for a cover page (and enjoying myself immensely, BTW, what an ace package). What I'm trying to to at this moment is fit a logo, some horizontal white space, and a coloured horizontal bar nicely into \textwidth In my code, below, although the calculation of the le...

Great question AND title. :)
 
@JosephWright Thank you I got it now. In my humble opinion, it would be great if you include a small sentence in the manual such that people don't turn away from that. I'll try to match to output and let you know if you are interested.
 
@percusse OK, fine with me. As I say, I've tried to 'follow biblatex' in not only the IEEE style but also the others I've written. (The Nature, Science and chemistry ones don't have a 'definitive' version to check against, so the IEEE one is somewhat different.)
 
5:34 PM
@PauloCereda I guess that the xcoffin package will be an endless source for bad jokes.
 
@JosephWright Thanks again. I'll see what I can do.
 
@egreg :)
 
@PauloCereda Is there any xcoffcm for SI units .... meh meh meh
 
@percusse ba dum tss :P
 
@percusse What did I say?
 
5:39 PM
@egreg Ehm.... what? I wasn't listening... /me smears the desk
 
Exact duplicate, based on the OP's last comment:
0
Q: Best way to do referencing with LaTeX? - I use Zotero to manage citations

A TWhat's the best way to add references and a bibliography to a LaTeX document? Note: I'm using Zotero as my citation manager, which has an export to bibtex feature.

 
 
1 hour later…
7:13 PM
New blog post! :)
Paulo Cereda on June 30, 2012

I remember when I wrote my first application. I was young and inexperienced – an unskilled programmer trying to learn the ways of the Force. The code – ah the code! – was a real mess. But hey, the application was up and running. And I was happy to make things work.

At some point, I got interested in opensource. It was way stronger than me. But how would I embrace the cause? I’m not a perfectionist, but I knew my code – at that moment – was bad, and I was afraid of being ridiculed because of it. Reluctantly, I took the first step and published my first code in the wild. …

2
 
@PauloCereda Very motivating post!
 
@StefanKottwitz Thanks. :) I really like this community and all the friends here. <3
@Stefan: it's also an advertisment of a great Brazilian novelist. :P
 
@PauloCereda Great
 
@N3buchadnezzar Thanks! :)
 
7:32 PM
In our company, LaTeX is actually used, one of us writes a thesis about project management in our company. A typical LaTeX user btw. - a friendly and pretty blond young woman who runs marathons in leisure time.
 
@StefanKottwitz Cool! (both descriptions, of course) :) Sadly, there's no TeX tradition in Brazil - noTUG, only a few people in universities use it, never heard of a company that makes use of it. I know there's a mailing list, but there's nothing much to see, only trial-and-error stuff. :(
 
@PauloCereda Perhaps because of few information in Portuguese?
 
7:49 PM
Hmm
I wonder how I could fit the Toc inside a tikzpicture then place it in the footnotes typeset in comic sans.
 
@StefanKottwitz I think so. :)
 
@N3buchadnezzar Perhaps there's a button for this in LyX.
2
 
8:31 PM
Is there any way to center a verbatim enviroment, or is this ill advised?
 
@N3buchadnezzar well it's always full width so centering is a no-op. But that probably isn't the answer you wanted, so put it in a minipage and center that:-)
 
\begin{center}
\begin{varwidth}{\textwidth}
\begin{verbatim}
2.5*e^(-ans/2)
\end{verbatim}
\end{varwidth}
\end{center}
That worked. Blushes
 
'tis a clever thing, varwidth;-)
 
@DavidCarlisle Could you explained why it works, and why minipage does not ? ;)
I found this browsing some naughty German pages, and my German is getting rusty.
 
@N3buchadnezzar minipage would work, but you would have to give a width
 
8:37 PM
@N3buchadnezzar There's also BVerbatim of the fancyvrb package
 
@DavidCarlisle I did, it still does not work
 
yes it would, so there:-)
 
\begin{minipage}{0.5 \textwidth}
\centering
\begin{verbatim}
2.5*ex(-ans/2)
\end{verbatim}
\end{minipage}
 
a width less that textwidth: you can't centre a full width thing (well you can. but as I said, it's a no-op)
no centering before the minipage
 
So e..
 
8:39 PM
you want to center the minipage in the main page
 
The code above is garbage?
oh right
 
well it's not garbage just that the centering does nothing as verbatim makes full with (of the minipage) lines
 
\usepackage{fancyvrb}
\begin{center}
\begin{BVerbatim}
abc
defffs
\end{BVerbatim}
\end{center}
 
:p
{ \hspace*{0.5\textwidth-\phantom(2.5*exp(-ans/2))}
\begin{verbatim}
2.5*exp(-ans/2)
\end{verbatim} }
 
@N3buchadnezzar But isn't it easier \begin{center}\verb|2.5*exp(-ans/2)|\end{center}?
 
8:42 PM
??? you can't put phantom inside the arg of hspace?
 
@egreg Perhaps! Thanks for the suggestions, I have never seen the \verb command before.
 
@egreg or \texttt for that matter
 
@DavidCarlisle Well it compiles..
 
@N3buchadnezzar But the result is "unexpected"
 
@N3buchadnezzar I hate to think what it does. It can only do anything by accident actually I can't guess what you intend it to do. the argument of hspace is a length but phantom is a box
 
8:46 PM
Thanks again =) I am learning more. I forgot \phantom was both length and height, for a moment I hoped that it was pure length.
@egreg Indeed. It is great having you guys around, always reminding me of how little I know. Just give me some toddler toys, and I will go back to play in my corner.
 
@N3buchadnezzar You can do something like that with the calc package, but using \widthof instead of \phantom: \hspace*{0.5(\textwidth-\widthof{\texttt{2.5*exp(-ans/2)}}}
But it's overkill. Use \verb or \texttt; for longer verbatim use fancyvrb.
 
@N3buchadnezzar but even if it was a length it would be \hspace{that length) and you can't put hspace in hspace either. Also you can't do infix expressions on lengths unless you have calc loaded. Actually it doesn't matter what length you put there as the only effect of an \hspace* before verbatim is to make a paragraph with a blank line. verbatim is a display environment you can't change its left margin by putting hspace in front of it
the thing about it compiling is essentially that latex is a macro expansion language and in 1985 or whenever hardly any tpkens could be spared for error checking. so \hspace{2cm any old thing it doesn't matter} expands to \hskip 2cm any old thing it doesn't matter\relax so makes a 2cm skip, typesets the text and the \relax that was supposed to end the length is ignored. It's latex's little secret that most of its commands do this.
 
@egreg I know it is overkill, I am just trying to learn some "grown up" stuff here =)
@DavidCarlisle That clears it up.
Thanks
So basically latex is saying, well there you sure messed up! Let me try to ignore that and compile this mess anyway.
 
@N3buchadnezzar That would be a kind way of describing what is happening, it's more accurate to say it hasn't the faintest clue what just happened and just executed the tokens on some order and did something. LaTeX is doing no checks at all here, stuff is just falling through.
 
9:07 PM
0
Q: Biblatex reference manager?

drozzyWould be nice to have a GUI for biblatex files. There are plenty of bibtex only, but does anyone know if there are any biblatex-specific reference managers?

Hasn't this come up before?
 
@JosephWright I can write one. :) What should it do? :)
 
@PauloCereda I think you'd be better employed elsewhere :-)
@PauloCereda There is an open feature request for JabRef about this. Broadly, all that is needed is a different set of entry types/fields for standard BibTeX style and for biblatex
 
@JosephWright hmmmm :)
 
@PauloCereda For example, journal is the field for BibTeX, journaltitle is the 'correct' one for biblatex
Oh, I may be behind the times here: I'll update my JabRef to check this!
 
@JosephWright I might write a biblatex plugin for JabRef. :)
 
9:22 PM
 
Oh. :(
 
@PauloCereda Looks good to me: testing now, blog post (my blog) tomorrow :-)
 
@JosephWright Yay! :)
 
@PauloCereda so no excuse for not working on arara then
 
JabRef 2.8?
@DavidCarlisle Oh no! :P The funny thing is that arara - the software - is ready at least from two weeks ago, but arara - the manual - is still incomplete. :P I'm terrible at writing documentation. :D
 
9:26 PM
@PauloCereda if producing documentation wasn't harder than producing code my job would be .... different:-)
 
@JosephWright I just posted the link.
 
@AlanMunn Yup, I've closed as a dupe
 
user image
2
Get ready for a 10-page book. Foreword by @DavidCarlisle. :)
At least O'Reilly won't have a problem to find which animal to put on cover. :D
 
@PauloCereda Good luck to him, forewords are hard :-)
 
user19161
@PauloCereda Is this for real?
 
9:36 PM
@JosephWright Uh-oh. :) I've seen a foreword you wrote, it was very nice! :)
@JasperLoy I wish. :) I still have the manual to finish. :)
 
@PauloCereda their lawyers are already bearing down on you.....
 
@DavidCarlisle Oh no! Can I blame the foreword writer? :D
 
@PauloCereda no I'm too busy helping their lawyers list all the copyright infringements in a multipage table in a footnote
2
 
Some chatroom classics:
 
10:18 PM
@PauloCereda O'really? wtf?
Don't mess with the floats
3
 
@percusse Oh! :)
 
@percusse Le KITYY!!
SO QUtE
/want
 
10:53 PM
@AlanMunn: I wrote about your suggestions, manual sent. :)
 

« first day (608 days earlier)      last day (4318 days later) »