« first day (589 days earlier)      last day (4334 days later) » 

1:37 AM
@JosephWright, @egreg, @MarcoDaniel: I need your advice. Consider the following code:
% arara: hello (1)
% arara: hello (2)
%  arara: hello (3)
%    arara: hello (4)
% !arara: hello (5)
%arara: hello (6)
%%%% arara: hello (7)
%%%%        arara: hello (8)
\documentclass{article}

% arara: hello (9)

\begin{document}

% arara: hello (10)

\begin{verbatim}
% arara: hello (11)
% arara: hello (12)
\end{verbatim}

\end{document}
arara reads the whole document looking for directives. This is what happens:
Currently, arara will extract all of those directives, except #5 e #6. I thought of making the strict syntax "% arara: " (% + one space + "arara" + : + one space), so #3, #4 and #8 wouldn't be recognized. I also thought of requiring "% arara: " to be the first substring in the line, so #7 would also be excluded.
I also thought of requiring the directives to be on top of the file. arara would look for directives until a line that is not a comment or empty is found, so only #1 and #2 would be recognized. Is this a good idea? Could this rule be compatible with dtx, tex and ltx files?
The advantages on this approach is that I read only the "header" of the file and I don't need to worry about using the keywords later in the document (so the arara manual could use arara too.)
% random comment

% arara: hello (1)
% arara: hello (2)

\documentclass{article}
...
This would be a valid header for arara. Both directives would be recognized.
\documentclass{article}
% random comment

% arara: hello (1)
% arara: hello (2)
...
No directive would be extracted.
                         % random comment

% arara: hello (1)
% arara: hello (2)
\documentclass{article}
...
Also a valid header. Thoughts? :)
 
 
3 hours later…
4:47 AM
DocScape has a new feature :-)
As with lots of optimizations document generation can take a long time (and I mean really long: user 544m11.570s), to avoid needing two runs for getting references right, for documents which only have toc and index but no page references inside, I'm often using the following scheme: In the first run, generate only the "content pages" and labels, in the second run genrate toc and index, including the content pages as fixes PDF pages.
Now, for a recent project I had the problem that the main part of the document to be included was 3.5GB PDF, which pdftex failed to include as a single file.
So, now you can say <NewPDFFile/> anywhere in a document definition which will (1) end the current run, creating a clean PDF up to this point; (2) save references, current page number and "persistent" variables to a file (3) restart pdftex, restoring the labels, page number and persistent variables from the prevous run; (4) iterate until done; (5) now the toc and index can be generated, including the intermediary files one by one.
Maybe this would also be a possible workflow for arara?
 
 
2 hours later…
7:03 AM
@PauloCereda I wouldn't be strict in requiring % + one space + arara:. Any number of spaces should be allowed (even tabs, if possible), also before the directive. The %! would block. TeXShop and TeXworks use %! for their directives, but this shouldn't be a problem.
 
 
1 hour later…
8:05 AM
I am looking for how to hide the page numbering in TOC, could anyone give me a link or a quick word on how to do this? I tried \pagestyle{empty} \tableofcontent \pagestyle{plain}, but this does only hide the numerals on the first page of the toc.
 
8:17 AM
@N3buchadnezzar Are you using tocloft or titletoc?
 
@egreg Neither.. ?
 
@N3buchadnezzar OK. Here you are:
\makeatletter
\let\oldl@section\l@section
\def\l@section#1#2{\oldl@section{#1}{}}
...
\makeatother
Do similarly for the other section levels you need.
 
I am reading about tocloft at the moment though, thanks for telling me about it =)
 
@N3buchadnezzar But what's the purpose of a TOC without page numbers?
 
Oh, but I meant the number at the bottom of the page, not the entries!
 
8:24 AM
@PauloCereda Just saw your comment about arara. I'll download the latest version and try it out at the next available opportunity - which might be a little while - thanks for implementing it!
Looking at the linked comments on the side, I see I missed quite a weekend. Sadly Wikipedia doesn't tell me which is the original out of "99 bottles of beer" or "ten green bottles" so I can't make any smart remarks about the Americans yet. But I do like Flanders and Swann's variant on Brent's comment: "Just think of that. Every third person is stark raving bonkers. Fortunately, there's only two of us."
(I'm sure this has been asked on the main site so I'll try here first in case anyone can quickly link it for me) My new work computer is a Mac. What do I do now to ensure the best TeXperience?
 
@AndrewStacey Well, there's this:
14
Q: I want to start using LaTeX on Mac OS X. Where do I start?

LipisI want to write my final thesis using LaTeX, what should I do in order to be able to do that through Eclipse on a Mac OS X? If any another good editor exists, feel free to write your opinion on why using this instead of something else.

Not exactly the same question perhaps, though related.
 
8:41 AM
@TorbjørnT Looks pretty good. The statement that MacTeX contains the latest TeXLive is probably the most important as I want to be sure I'm using the same packages on this computer as my creaking Linux machine. For editor, it'll be Emacs in some guise, and for viewer then it'll be I-don't-care-so-long-as-it-can-change-page-without-changing-viewport.
 
8:53 AM
@DavidCarlisle A simpler plain version
\def\bottles{\x bottle\s of beer}
\def\bottlesw{\bottles~on the wall}
\def\take{Take one down and pass it around\advance\bottle-1,\par}
\newcount\bottle
\def\x{\ifnum\bottle=0No\else\number\bottle\fi~}
\def\s{\ifnum\bottle>1s\fi~}
\bottle=99
\loop\ifnum\bottle>0
\bottlesw,~\bottles,\endgraf\take\bottlesw.\endgraf\medskip
\repeat
\bye
 
@PauloCereda Good morning. Which news?
 
9:15 AM
One more vote needed for this
0
Q: Compilation with PGFPLOTS with 0 Erros and 0 Pages

RicardoI'm trying to use pgfplots package. I wrote a very simple document: \documentclass[a4paper,12pt]{report} \usepackage{pgfplots} \begin{document} aaaaaaaaaaaaa \end{document} When I compile the document, I get 0 Erros, 0 Warnings, and 0 Pages. The log also says that "GUI franework cannot be i...

 
@DavidCarlisle A bit more compact
\def\b{\x bottle\s of beer}  \def\bw{\b~on the wall}
\def\t{Take one down and pass it around\advance\B-1,
^^L}\newcount\B\B=99 \def\ib{\ifnum\B} \def^^L{\par}
\def\x{\ib=0No\else\number\B\fi~} \def\s{\ib>1s\fi~}
\loop\ifnum\B>0 \bw,~\b,^^L\t\bw.^^L \medskip\repeat
Time to buy some more beer\dots\bye
 
@PatrickGundlach: I can't commit to texdoc/l2kurz. I get the following error: help.github.com/articles/…
 
9:46 AM
@egreg just need to make j have catcode 0 and you'll be there:-)
 
@egreg: Same idea ;-)
 
@MarcoDaniel can you try again? I have added the team to the repo
 
@DavidCarlisle As you're British, I'm shocked you're not advocating Ten green bottles instead.
 
10:09 AM
@MarcoDaniel Morning! This one: i.stack.imgur.com/YhYGH.png :P
 
@PauloCereda I have no Windows ;-)
 
@MarcoDaniel :)
@egreg I think this feature would be easy to implement. :) Should I stop looking for directives when a "normal" line is found?
 
10:23 AM
@StephanLehmke Wow! That's a very cool feature! :) I'm not sure if I can write such advanced stuff like this one. :) Specially due to the fact I'm a humble TeX newbie. :)
 
@PauloCereda It's very difficult. If you want to support dtx files you can't do this.
 
@MarcoDaniel I was really afraid of that. :) How does a dtx look like?
 
@PauloCereda At ctan are a lot of examples. regexpatch or take a look into the l3 project ;-)
Maybe a test whether a dtx-file is used can be helpful. In a normal tex-file all settings should be done before \documentclass
 
@AndrewStacey well I just assumed the beer version was a parody on ten green bottles for grown ups. You mean some people think that's actually an original work of art?
 
@MarcoDaniel did you try again? I'd like to rename the chapters to "symbolic" names (Mathematik, Textsatz, ...)
 
10:28 AM
@MarcoDaniel Maybe I forgot to tell. :) The "normal" line in this case is a line that is not a comment or blank.
 
@PatrickGundlach You can do it. Before I commit I will run status and diff
 
In the dtx example, arara would look for directives until the \RequirePackage{expl3} line.
 
@PauloCereda That's clear. I noticed I took a bad example ;-). Normally a dtx-file generates a txt-file too. See github.com/marcodaniel/mdframed/blob/master/mdframed.dtx
 
Day One in the Mac House and the inmates are restless Five minutes to my first "How the ... do I do X?" moment. In this case, type a tilde.
 
@AndrewStacey ;-)
 
10:32 AM
@MarcoDaniel I still don't get it. :) In your example, arara would look for directives until \iffalse. Could I put the directives before it?
@AndrewStacey I'll be there any day soon. :) My next acquision will be a Mac to replace my workstation. :)
 
@MarcoDaniel Looking at the input sources, I think I'm going to go for Unicode Hex Input. Save time in the long run. Hmm, someone doesn't like those north or south of the border: there are input sources for British, Welsh, Irish but no Scottish or English.
 
@PauloCereda I would suggest the following. Supporting a dtx-file is very useful. However everybody who writes a dtx-file is able to understand the basic idea of LaTeX and so one. So the supporting of a dtx-file is done by an encapsulation of the word {arara}. (You know what I mean)
 
@MarcoDaniel I'll probably leave as it is for now. :) At least, arara is better now. :D
 
@PauloCereda of course
 
New features coming up on version 3.0, to be released next year for Christmas. :P
 
10:38 AM
@PauloCereda This X-mas. An update every 6 month ;-)
 
@MarcoDaniel You are going to break my legs. :D
 
@PauloCereda I am a user with requests ;-)
 
@MarcoDaniel <3
For now, I'm looking for a universal installer which will deploy arara. Easy and painless.
For Windows, I managed to generate a exe wrapper, which still requires the JRE installed, but at least it's easier to be used by Windows users. :)
@egreg: Speaking of Windows, I'm really tempted to write it Win12. :) "12" in Portuguese is "doze". :D
 
@MarcoDaniel done; you can go ahead. Suggestion should we just put comments in there first? Such as \todo{we should really use utf8 here, not latin1} or such? That way we might be quicker spotting the necessary changes. There is a package called todonotes for that (but I am open to other packages for that) - but you can do whatever you want
 
@PatrickGundlach Done.
 
11:35 AM
@MarcoDaniel nice!
 
12:07 PM
Off topic
-1
Q: Change background color for toolbars and menus in Lyx

ENDIn Lyx 2.0, I would like to change the background color for toolbars and menus, make it darker. Anyone could suggest how I could do this?

 
12:40 PM
@PauloCereda I think so
Here's the more compact version:
\let~\catcode~`x12~`y~`x~`z~`y~`j0 jlet~jlet~^^Ljpar
~~jdef~jx{jy bottlejz of beer}~jw{jx on the wall}~jt
{Take one down and pass it aroundjadvancejB -1, ^^L}
jnewcountjBjb99~ji{jifnumjB}~jy{ji=0NojelsejnumberjB
jfi}~jz{ji>1sjfi}jloopjifnumjB>0jw, jx, ^^Ljtjw. ^^L
jmedskipjrepeat Time to buy some more beerjdots \end
 
@egreg Thanks. :) For now, I'll leave arara as it is, since this new version seems a lot better than the older one. :) For the next release, I might add this feature. :)
@egreg Wow it's getting better and better!
 
@egreg Have you really tested this??? jb99 ;-)
 
@StephanLehmke jB
 
Justin Bieber. :)
 
If you made x, z and, say q active instead of other you could save a lot of js.
 
12:49 PM
@egreg looks more like classical plain TeX now, apart from that strange \end at the end which I think you intended to be jend. But it doesn't actually work, just typesets "99Time for more beer"
 
@DavidCarlisle Replace jb99 by jB99 I suppose.
 
Excuse my manners but can somebody remind me how to reference to sections compactly with \ref such that Section~\ref{sec1,sec2,sec3} would give Section III.A-D? Preferably with not breaking down cite package...
 
@DavidCarlisle That's TeX code for you - write 42 times over, never read ;-)
 
1:06 PM
\let~\catcode~`x12~`y~`x~`z~`y~`j0 jlet~jlet
~^^Ljpar~jBjmscount ~~jdef~jx{jy bottlejz of
beer}~jw{jx on the wall.}~jt{Take one down %
and pass it aroundjadvancejB-1, ^^L}jB99~ji%
{jifnumjB}~jy{ji=0NojelsejnumberjBjfi}~jz{ji
>1sjfi}jloopjifnumjB>0 jw, jx,^^Ljtjwjvskip%
8.0ptjrepeat Time to buy some more beerjdots

\end
 
1:30 PM
@egreg change \end to jend and it will be lovely. Maybe we should have a special ctan section for files with justified source code and catcode 0 j?
 
@DavidCarlisle I like \end, why should it be jend?
 
@egreg I thought that was the plain TeX way, never have more than 2 backslash. (I spent quite a while trying to think of how to have no backslashes in xii, but finally gave up and accepted 2)
 
1:46 PM
@DavidCarlisle I'm not able to put it together with the rest, so I guess it's nicer as \end at the end. I'll try putting it inline.
 
@percusse cleverref package?
 
@egreg OK I'll let you off just this once:-)
 
2:04 PM
@tohecz Thanks, I also decided not to use any since they didn't play nicely with IEEEtran. I don't get IEEE at all. There is so much room for improvement anyway.
I hope they don't ask for the .pdf files for TikZ and PGFPlots. It will break down all the pagination tweaks.
 
@percusse they won't need the pdf files. They will scan the documents to get the plots as bitmaps, and re-enter all the text into word to typeset the rest.
 
@DavidCarlisle and possibly charge me for the extra work.
 
2:29 PM
Hi @AlanMunn! We miss you. :)
 
@AlanMunn Hi! Too much work or holidays?
 
208
Q: What software programming languages were used by the Soviet Union's space program?

shamp00I got interested in the Soviet space program and was interested to discover that the software on the Buran spacecraft circa 1988 was written in Prolog. Does anyone know what languages might have been used in earlier missions, especially the Mars PrOP-M rover missions of the early 1970s which w...

Gotta love Prolog. <3
 
2:58 PM
9
Q: Meaning of “give a pony”

GiorgiomastròI came across this phrase while reading an article by Paul Krugman on the New York Times website. Here's the quotation (boldface added): . . . non-GIPSI [the group of Eurozone nations—Greece, Italy, Portugal, Spain, Ireland—that are grappling with the debt crisis, my note] European leaders sh...

Nice idea for commit and issue messages. :)
 
@egreg @PauloCereda A bit of both. I'm teaching a summer course, and our department has just moved to a new building so things are a bit of a mess. We have nice new lab space, and new offices, which is great, but moving is a bit of a pain. And I've just come back from Toronto having seen Einstein on the Beach for the second time now (the first time in January in Ann Arbor).
 
Now the \end is gone. :)
\let~\catcode~`x13~`q~`x~`z~`q~`H~`q~`B~`H~`j0~`jA009
jlet~jlet~Hjpar ~Bjmscount~~jdef~x{q bottlez of beer}
~jw{x on the wall}~jt{jadvanceAB-1ATake one down Aand
pass it around,H}B99~ji{jifnumB}~q{ji=0Nojelsejnumber
Bjfi}~z{ji>1sjfiA }jloop jifnumB>0 jw, x,Hjtjw.jvskip
8ptplus1ptjrepeat Time to buy some more beerjdotsjend
 
@AlanMunn How nice! :)
@egreg ooh nice!
 
@PauloCereda I like the bottlez :)
 
@egreg Epic part! :)
 
3:07 PM
I've cheated a bit with the A
 
@PauloCereda Of course Einstein on the Beach is right up there with "watching paint dry" for @egreg :)
 
@AlanMunn I guess so, and I trust you. Somebody saw it and it's more than sufficient. :)
 
3:24 PM
I chose a new song for my new arara 2.0 video demonstration. I mentioned it to a friend of mine and he said, "ah, it's from that Coca-Cola ad!". I was like, "What?! You should apologize for being the Coke generation." :(
 
@egreg I wonder how far this "implement anything David suggests" mood of yours can be exploited.....
3
 
@PauloCereda What's the song? "I'd like to teach the world to sing"? Is the Coke generation old or young?
 
@AlanMunn I was thinking of "Whatever" from Oasis. :) It's a recent ad from Coca-Cola I guess. I think the Coke generation is probably younger than that song. :)
 
I thought the young'uns all drink Red Bull.
 
@AlanMunn Probably a mix of Coke and RB. :)
 
3:32 PM
@PauloCereda Go with the Loud Pipes from Ratatat. It's repetitive enough.
:)
 
@percusse Good choice! I added to my list, which currently includes "The payback" from James Brown and "Sword Of Damocles" from Lou Reed. :)
Speaking of Damocles, another nice reference:
 
@PauloCereda And for the bug tracker: youtube.com/watch?v=npjOSLCR2hE
 
@AlanMunn LOL YEAH! Pretty Polly! :D
 
4:18 PM
@PatrickGundlach Should I remove the CW from the question? That status means, that answers automatically become CW. Otherwise not.
@PatrickGundlach No problem to roll back.
 
@StefanKottwitz I'd say yes, because the question should not be edited. But I don't want to make more work than I already did
 
@PatrickGundlach No problem, wiki status and comment removed
you already made the answer CW, so editable, fine
 
@StefanKottwitz I've removed my comment as well.
Thanks!
 
just possibly following answers would not be CW for a non-CW question
but no problem for sure - who would add an answer, as there's already a comprehensive CW answer
 
I finally found the small green elves who keep stealing the lower half of my tikzpictures =)
 
4:35 PM
@DavidCarlisle Ask, and ye shall receive. :)
 
@PatrickGundlach: Want we use modern packages like showexpl?
 
@MarcoDaniel I think so. I have never used that package. I like the appearance of the code samples in l2kurz, so the new env should not change too much.
 
@PatrickGundlach I will make an example.
 
@MarcoDaniel I had an idea to use arara to build the arara manual! :) For LaTeX listings, we space the arara directive by one or two spaces then gobble=n. :)
 
I'll push my changes to github in a second
 
4:44 PM
@PauloCereda Nice trick ;-)
 
@MarcoDaniel Dirty dirty trick. <3
 
@MarcoDaniel I have inserted a \cs{...} command for typesetting commands. // I really like how easy git-merging works so far.
 
@PatrickGundlach ;-)
@PatrickGundlach I added an example of showexpl in the file eingabefile.tex
@PatrickGundlach @PauloCereda and I are using github too. It's great
Whereby @PauloCereda is a little bit lazy with his commits ;-)
 
4:59 PM
@MarcoDaniel I am not sure I like the numbers, but I guess this can be configured. Other than that it is much nicer
 
@MarcoDaniel Ah yes, he's a little bit... oh wait!
 
@MarcoDaniel found out about the numbered comments
 
@PatrickGundlach The line numbers are removed now.
 
I have created a file showexpl.cfg, but your solution is better.
@Marco I'll add columns=flexible if you don't mind. I think otherwise the code is ugly
 
@PatrickGundlach The complete modification is in progress ;-)
 
5:10 PM
@Marco Great. I'll wait and see :)
 
@MarcoDaniel Make sure to include lots of framed environments from mdframed. :)
TeX Trivia #84: mdframed stands for marco daniel's framed implementation. :)
3
 
@PauloCereda This package is too new ;-)
 
@MarcoDaniel So does the document. :)
 
@PauloCereda I had no better name. As I wrote the package it was only for my local texmf tree ;-)
 
@MarcoDaniel I'm just kidding. :) I was amazed by the fact that the package starts with your initials. :)
 
5:15 PM
@PauloCereda It's like hvfloat -- Herbert Voss float
 
@MarcoDaniel or KOMA-script
@Paulo don't disturb Marco, he's working on an important project :)
 
@PatrickGundlach Oh. :)
 
5:28 PM
@PatrickGundlach Done. I added some listings configurations. The colour is really optional.
@PauloCereda back
;-)
The next days I will be on a seminar without internet ;-(
 
@MarcoDaniel Noooo!
 
5:45 PM
@Marco that LTXexample as it is now doesn't seem to work with Umlaute (äß). even with the modification from tex.stackexchange.com/a/39642
\begin{LTXexample}
Ein\-gabe\-file,
\LaTeX-Eingabe\-file,
Häss\-lich\-keit
\end{LTXexample}
that drops the ä
 
@PatrickGundlach listings is well known for not liking UTF-8. Look for the literate option.
 
@egreg That is what I've tried
perhaps not properly
I know that @Marco has magic hands, so I wait for him :)
 
@egreg I was looking at an old question which you have edited I misclicked and saw this:
When was your planned holiday again? :P
 
6:01 PM
@percusse August. :) Unfortunately the weather is bad and the bike tours must wait. :)
 
@egreg How do you know already? Another L3 package, maybe?
\ifnextcloud@cumulus....
 
6:32 PM
\expandafter ...
 
@PatrickGundlach My wife forced my to drive to McDonalds
I am back
 
6:46 PM
@MarcoDaniel I want the happy meal. :)
 
@PauloCereda Too late ;-)
@PatrickGundlach fixed
 
7:00 PM
@N3buchadnezzar \expandafter\friday\forecast
3
 
@egreg Surely \afterassignment\forecast\let\today=\friday
5
 
@MarcoDaniel still doesn't work (textsatz.tex around l. 150) - but I'll do other things now
 
@PauloCereda I need a name for my new computer! You know my methods ... any suggestions?
 
@PatrickGundlach I run pdflatex l2kurz.tex without any errors. Odd
 
@Marco No errors, but no ä appears
(... when I use LTXexample)
 
7:16 PM
@PatrickGundlach I see.
 
@AndrewStacey May I suggest one of my computer names? Alexandria. It's by far my favorite one. The old intellectual capital of the world. :)
 
Pompeii
 
@PauloCereda I'd use an abbreviation: "Ale". :)
 
@egreg :) One of my computers (my netbook) is named Hamunaptra. It's a reference to the fictional "city of the dead" from the movie "The Mummy" (with Brendan Fraser). Or a real city in India. :)
My MacBook is named Herakompolis. :)
(some Egyptian stuff going on) :P
 
@PauloCereda Doesn't fit in with my current scheme. Spot the odd one out (and guess who chose the name): Thargelion, Nargothrond, Anduin, Ithilien, Ratatouille
 
7:27 PM
@AndrewStacey Uh-oh. :) It's a cute name, though it's too French. :P
@Andrew: how about Vinyamar or Nogrod? :)
 
@PatrickGundlach The normal listings works well. I must figure out the problem with showexpl.
 
@PauloCereda Now that's scary. I went for Vinyamar.
@PauloCereda Incidentally, next Tuesday (19th) looks a possible. Would 8pm my time be okay?
 
@AndrewStacey Sounds great! :)
@AndrewStacey Sorry, I can't remember most of the cities. :)
 
@MarcoDaniel This is a bad hack, but it seems to work
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1,utf8]{inputenc}
\usepackage[]{listings}
\usepackage{showexpl}
\usepackage{textcomp}

\makeatletter
\lstnewenvironment{ULTXexample}[1][]
{%
  \@temptokena{#1}%
  \begingroup
    \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
    \expandafter\lstset\expandafter{\SX@explpreset,#1}%
    \edef\x{\endgroup
      \def\noexpand\SX@codefile{\SX@codefile}%
      \def\noexpand\SX@graphicname{\SX@graphicname}%
      \def\noexpand\SX@graphicparam{\SX@graphicparam}}%
Of course you have to populate the \lstset{literate=...} declaration.
 
@egreg The literate-method is used ;-)
 
7:37 PM
@JosephWright: newbie question: are the community bulletin entries manually set?
 
I tried patching the command too but with \lst@AlsoBeginWriteFile
 
@PauloCereda Have to be done by a mod, manually, with a link to a page within the SE 'universe'
 
@MarcoDaniel It can be set also outside the definition of ULTXexample
 
@egreg The default setting is \lstset{extendedchars=true,inputencoding=utf8}%
 
@MarcoDaniel I basically cheat telling LaTeX that the environment is 8bit and not UTF-8.
 
7:39 PM
@JosephWright Hm interesting. :)
 
@egreg Hack!! ;-) but nice -- Did you try regexpatch ;-)
 
@MarcoDaniel Now it doesn't work any more! :( No, it works. But the extendedchars declaration is dangerous.
 
@egreg That's my problem.
For the simple example it works.
 
@MarcoDaniel Here's the trick, I believe it works well
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[latin1,utf8]{inputenc}
\usepackage[]{listings}
\usepackage{showexpl}
\usepackage{textcomp}

\makeatletter
\lstnewenvironment{ULTXexample}[1][]
{%
  \@temptokena{#1}%
  \begingroup
    \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
    \expandafter\lstset\expandafter{\SX@explpreset,#1}%
    \edef\x{\endgroup
      \def\noexpand\SX@codefile{\SX@codefile}%
      \def\noexpand\SX@graphicname{\SX@graphicname}%
      \def\noexpand\SX@graphicparam{\SX@graphicparam}}%
I remove the literate list before reading the environment (as latin1) for writing. Thus listings doesn't get confused.
 
@egreg I think this is the best way.
@egreg I will use
\makeatletter
\let\LTXexample\@undefined
\let\endLTXexample\@undefined
\let\LTXexample@\@undefined

\lstnewenvironment{LTXexample}[1][]
{%
  \@temptokena{#1}%
  \begingroup
    \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
    \expandafter\lstset\expandafter{\SX@explpreset,#1}%
    \edef\x{\endgroup
      \def\noexpand\SX@codefile{\SX@codefile}%
      \def\noexpand\SX@graphicname{\SX@graphicname}%
      \def\noexpand\SX@graphicparam{\SX@graphicparam}}%
  \x
  \xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,
 
7:55 PM
@MarcoDaniel It's a pain having to compose all the literate list, but it's made once and for all
 
Thanks
 
@MarcoDaniel I didn't want to change the old environment. But this is a natural thing to do.
 
@egreg I think the original definition isn't very useful for a German manual ;-)
 
@MarcoDaniel Unless you use {Xe|Lua}LaTeX
Which might be an idea.
 
@egreg The manual is only for "pdflatex/latex" -- Of course I would use LuaLaTeX ;-) but is this really helpful for l2short?
 
8:06 PM
Wow, 48 notifications, all the same :-)
 
@JosephWright which one? :)
 
@PauloCereda SE mod election :-)
 
@JosephWright ooooh. :)
 
@PauloCereda Now I have 99!
 
@JosephWright wow. :)
 
8:13 PM
 
@JosephWright There should be a badge for that! :D
 
@JosephWright Makes the "vote early, vote often" maxim seem all the more real.
Day One Conclusion: Have found tilde lurking on the "British PC" keyboard (why coppers get their own is a mystery to me), though still no sign of it on the Norwegian one. Also learnt the importance of power cables, so experimenting over for tonight.
 
user19161
@JosephWright Oh luckily I'm not on SO! But I did get the Constituent badges that day for voting.
 
@JasperLoy I'm not really, either: I used to visit a bit before TeX-sx was set up, to look out for TeX questions. So I have enough rep there to vote :-)
 
@MarcoDaniel The manual for (pdf)LaTeX needn't be compiled with pdflatex. :)
 
8:24 PM
I also got the 99 bottles of beer - no, sorry -- notifications
Luckily they are not sent via email ;-)
 
@JosephWright I tried unsuccessfully to click on "close"...facepalm
 
113
Q: What's with all these election notifications?

kevingessner Yes, I promise, I will vote -- but 72 notifications seems like overkill.

"We wanted to make sure" :)
 
9:00 PM
@AndrewStacey \tikzbox
 
@StefanKottwitz Any entries yet for the competition?
 
9:27 PM
@AndrewStacey Apparently, Alt + ^ (ie. the key above the @) -- see mac1.no/forum/viewtopic.php?t=275341. There's an on screen keyboard somewhere, if you open that you can see which key has which symbol, when holding down various combinations of the modifier keys.
 
@GonzaloMedina You can put everything in a single command
\documentclass{article}
\makeatletter
\newcommand\specialcaption[1]{%
  \@namedef{the\@captype}{#1}%
  \addtocounter{\@captype}{-1}\caption}
\makeatother
\begin{document}

\begin{figure}
\specialcaption{$\dag$}{Figure dag}
\label{fig:dag}
\end{figure}

\begin{figure}
\specialcaption{$\ddag$}{Figure ddag}
\label{fig:ddag}
\end{figure}

Figures~\ref{fig:dag}, and~\ref{fig:ddag}...

\begin{figure}
\caption{Regular figure}
\label{fig:fig}
\end{figure}

\end{document}
Limitation (but it holds also for your solution): no \caption command in an environment where there's also \specialcaption
With \@captype this can be used also for table environments. But one has to pay attention to the symbols one puts there. Something like \specialcaption{\textbf{A}} would be disastrous
 
9:50 PM
@egreg Yes; I was thinking about this also; do you mind if I add your code to my answer?
 
@GonzaloMedina Not at all, I put it here just for that! :) It's only a refinement, after all.
Notice that one can also use the optional argument: \specialcaption{$\dag$}[short]{long}
 
@egreg why would this be disastrous? I did a test and everything seems to go OK.
 
10:09 PM
@GonzaloMedina Indeed. One has to beware of fragile commands! So \(\dag\) would be the disastrous bit (unless fixltx2e is loaded).
 
@egreg: I've watched the new Sherlock Holmes movie. :) Don't worry, they didn't explode the theater during Don Giovanni, the hotel blew up instead. :)
 
@PauloCereda That would have been appalling. Did they sing "Madamina, il catalogo è questo" or "Là ci darem la mano"?
 
@egreg Code added. Thank you!
 
I often pose this "logic-cultural" question: what unique number can possibly follow in the sequence "640, 231, 100, 91"? And the next is "5, 10, 20, 30, 36": what number follows?
@GonzaloMedina You're welcome!
 
@egreg It's been a while, but I'm pretty sure it was near the end. :( Probably "A cenar teco m'invitasti". :)
 
10:21 PM
@PauloCereda "Pentiti, scellerato!" "No, vecchio infatuato!"
 
@egreg That one. :)
 
The two sequences are oeis.org/A027885 and oeis.org/A027884 in the The On-Line Encyclopedia of Integer Sequences™ (OEIS™) :) But looking there is cheating.
 
10:50 PM
@egreg :)
 
@egreg Wow, had to look, but even after looking it requires knowledge beyond what I have to understand it (trying not give out any hints in case someone else is trying to solve it).
@MarcoDaniel: Since you did some work on tex.stackexchange.com/questions/56435/… I think you should post it as an answer. I tried to come up with an alternate solution using tex.stackexchange.com/questions/45912/… but keep heading towards too similar of a solution..
 
@PeterGrill The hint was the discussion above about Don Giovanni, of course. :)
 
11:11 PM
@egreg I didn't see that, but not that it would have helped
 
11:54 PM
@JosephWright: could you please make my "question" CW? :)
0
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...

 

« first day (589 days earlier)      last day (4334 days later) »