« first day (769 days earlier)      last day (4165 days later) » 
00:00 - 19:0019:00 - 00:00

12:00 AM
@Mohan gotcha! Now I really go
 
Maybe I should read it anyway?
goodnight + thanks tohecz!
 
@Mohan yes but 13 is two tokens (and needs a third say a space to stop the number) that ='s three bytes \char"D saves a bit of time and a bit of space.
 
@DavidCarlisle could you do \chardef\active"D ?
 
@tohecz that is the definition (latex.ltx line 84)
 
@DavidCarlisle oh ok! I should obviously go now, because I thought its \def\active{\char"D}
 
12:03 AM
@tohecz no that wouldn't work, it would waste 2 whole bytes of memory and still scan ahead looking for more digits after the D
 
Is there anyone around who uses mylatex? Well, I guess David does :)
 
@Szabolcs I never use my packages. Unreliable, and I have no one to turn to for software support.
8
 
@David Is there any reason why one would use mylatex in place of mylatexformat? Or does the latter replace the former?
@DavidCarlisle :D
 
@Szabolcs perhaps having an author who can remember what it does might be a useful property of the latter.
 
Anyway, I should head off as well. Thank you, all!
 
12:06 AM
night
@Szabolcs Ive not really looked at mylatexformat but it was mentioned in a couple of answers and its top level description says it updates and extends my original which is quite believable
 
@David I'm sorry, I thought you were the author of both
 
@Szabolcs no, just the old one:-)
 
@David Are the instructions here complete? I have a tex file, tst.tex, as bare as possible, just \documentclass{article} \begin{document} boo \end{document}. Running latex -ini mylatex.ltx tst.tex gives an error.
 
@Szabolcs do you know when I last looked at those instructions:-) It predates latex2e...
 
@DavidCarlisle Wow, it's really old then :-) I won't bug you with this then, I'll try to get it working with mylatexformat first!
I also tend to forget how stuff I write works
 
12:14 AM
@Szabolcs oh just followed your error link \makeatletter isn't defined so you haven't loaded the latex format
@Szabolcs used to need initex &latex mylatex.ltx tst.tex I'd have to check if pdflatex -ini loads &latex?
@Szabolcs yes the instructions are right but you do need to use & like it says, pdflatex -ini &pdflatex mylatex.ltx tst.tex should work
 
I really have to read about LaTeX beyond basic formatting ... after years of use I'm still a complete novice
Thank you @David, got it working. This was the last piece to solve the problem I asked about. You could have made that an answer. I'll write an answer when I get it fully working.
 
12:35 AM
@Szabolcs OK I put something there
@Szabolcs I'm on windows but always use bash as my commandline :-)
 
 
5 hours later…
5:28 AM
Just saw a duplicate for this: tex.stackexchange.com/questions/86067/…. Here it is: tex.stackexchange.com/questions/44510/…. I shall delete my answer to the dupe.
 
5:55 AM
@hpesoj626 Please also vote to close :-)
 
@StephanLehmke I don't have the closing powers yet ;)
 
@hpesoj626 Oops, sorry.
 
@StephanLehmke Oh, I just discovered I do. I don't have reopening vote powers yet lol
@StephanLehmke Nah. I am mixing things up. I don't have close and open voting powers. I can only flag questions as duplicates. :-)
 
6:34 AM
@tohecz Sounds like the title should be typographical editor, not graphical editor. :-)
@DavidCarlisle Funny.
@tohecz I don't think bad typography is a crime. Though the people here might think it is.
 
6:57 AM
@FaheemMitha I think for a journal, publishing bad typography is a crime. If a publication gets "key paper" status (like, say, the Gödel papers), thousands of people will make copies of this same article for hundreds of years. So getting it typographically perfect really pays off.
 
7:29 AM
I finally got the fonts rendering nice on Linux!: gabmedia.org/font.png
 
7:58 AM
@FaheemMitha people have the feeling that "graphic"="pictures", I don't think so. "Graphic" is IMHO a very general word.
Btw, someone has downvoted to my (IMHO good) answers ... :-/
 
8:20 AM
@tohecz is somebody on a downvoting trend? Or are you the only target? Is there a bot that picks up on these trends?
 
@hpesoj626 There is a bot, but 2 downvotes would probably not be enough. Somehow, I don't care so much I think
 
@tohecz I also can't see anything specific in the answers "worth" downvoting... :-(
 
btw, there's a user with
all time	 	by type
4	up		1	question
5	down		8	answer
and I know that person and this person has a particular reason to hate me I think...
(Remark: 5 of his votes are today)
and @Joseph knows who it is
 
@tohecz oh... all downvotes?
 
@tohecz So if a moderator is aware all is well I think. Not much to gain from starting a discussion in chat.
 
8:26 AM
@hpesoj626 you cannot know which 5 of his votes are downvotes, the system "hides" minus rep points that you get for downvoting others
ok, I gotta go, I'll be late for our choir practice
 
8:58 AM
Cricket update: India 162/8, and require another 45 to avoid an innings defeat
 
@JosephWright <3
 
 
1 hour later…
10:36 AM
Yay, I'm upvoting @DavidCarlisle! :)
 
11:18 AM
:7187407 Close (India leading by 32)

India won the toss and decided to bat
India 1st Innings
316 all out (105.0 overs)

India 2nd Innings
239 for 9 (83.0 overs)
England 1st Innings
523 all out (167.3 overs)
 
11:35 AM
@DavidCarlisle Does this mean that if another India player goes out after x more runs, England has only to do 33 + x runs in order to win?
 
@egreg I think we need to add a cricket module to Psmith, so he can interpret the results for us. :)
 
@PauloCereda I just wanted to test if my feeble understanding of cricket rules has some chances of improvement.
But it seems that @DavidCarlisle and @JosephWright want to keep the secret.
 
@egreg oh! :)
 
12:07 PM
@egreg Yes
 
@JosephWright Wow! I nailed it! But I'm sure there's some hidden trick by which India can overcome the trouble (I guess that 100 runs are not a big problem starting from no out, while they are with nine out).
 
@egreg They will have to bat well, bowl well and pray for rain
 
Hi all! I just submitted my first package to CTAN, but you can already find it at latex-concepts.googlecode.com. I'm eager to receive feedback, if you can spare some time. :-)
 
12:23 PM
@egreg yes but as Joseph hinted, the factor that comes into play now is the time, there is one day left which should be plenty of time especially in India, if playing in England there's always the hope (for the losing side) that it rains al day and so they survive to the end then it is a drawn match.
 
leo
12:58 PM
good morning
 
Hi there.
 
leo
last time I've asked for sources to learn how to program in TeX/LaTeX, one of the recommended references was TeX By Topic. But that is pure TeX. What about LaTeX? What should I know in order to be write (in the right way) a package or class?
 
@leo LaTeX2e is programmed in a mix of TeX primitives and LaTeX internal/'programming' commands
 
@leo you need the texbook or TBT to get a good understanding of the tex programming language, for latex there is the latex companion for a high level view, or the latex sources (source2e for the format, or any package source) to see how to write a package. there is also clsguide.tex in the base distribution
 
@DavidCarlisle Just about to say that ;-)
 
1:07 PM
Or use the longtable sources. :)
 
leo
@DavidCarlisle but I want to understand the csname things, etc (for example in errors).
by the way what is better to program, use TeX primitives or the etoolbox package?
 
@leo csname is a tex primitive, it is described in texbook or TBT there are examples of its use all over the place in the latex sources, so it depends what about it that you want to understand
 
That's a TeX thing, I think. Not specific to LaTeX.
 
leo
I find the second easy
 
@leo never used etoolbox so I can't say
 
1:09 PM
etoolbox is nice, but doesn't provide everything.
Sometimes you'll have to work on the lower level of TeX. No getting around it for sufficiently complex packages.
 
@PauloCereda I wouldn't start from that one if looking for well structured package code...
 
That's what expl3 is for :-)
 
leo
is there any other attempt for a programming front end other that etoolbox?
 
@leo As I said, expl3
 
Hehe. That'll be expl3. ;-)
 
1:10 PM
@leo lots:-) (the latex3 code in particular or any of the pgf stuff or ...)
 
leo
@mhelvens I'll read about it
 
I'm also still using etoolbox and friends. But I've read about expl3 (= LaTeX3, sort of). If you first see the style, you'll be confused. But it's quite well-structured and useful.
Reprogramming my package in expl3 is future work for me.
If you're a beginner, I guess you might as well start with expl3 right away.
 
leo
with etoolbox you can add features to an existing environment, which I find very useful
 
Indeed. But I'd be surprised if LaTeX3 didn't have modules for that. Joseph?
 
leo
@DavidCarlisle I'll do a mix of pgf and etoolbox stuff
 
1:14 PM
@mhelvens No
@mhelvens Or at least, not a 'simple' approach
 
@leo there are several patch command versions on ctan apart from etoolbox, or egreg has a patch command based bruno's regex stuff, but I find it's usually simpler just to modify the command using tex primitives you don't really need a package for that
 
@JosephWright I see. So there's still a reason to use both expl3 and etoolbox.
 
@mhelvens Depends
@mhelvens You can patch things using expl3, it's just that we don't want to encourage the poor design decisions that tends to stem from
Patching other people's code tends to indicate the original did not have the correct design
 
@JosephWright Hm... That's debatable. When writing a package with a simple purpose, you can't possibly anticipate how other people will want to use it.
 
@mhelvens No, but the problem with LaTeX2e code is that the interface (say \foo or environment foo) is also the implementation
 
leo
1:18 PM
@JosephWright but we can patch to have another thing that does something similar to the original one plus something more. Perhaps we want to keep the original
 
@JosephWright For example, you may want to track what your 'deepest' document level is (chapter, section, etc.) How can you do that without patching some basic LaTeX commands?
 
leo
perhaps both are usefull
 
@mhelvens At present, you can't, but the point is this is not good design
expl3 is meant to be a platform for the future, whereas some of the stuff in l3packages can deal with 2e-specific problems
What we need here is @frankmittelbach!
 
@JosephWright Of course I agree with you in principle. But things will never have a perfect design. Also, what you're now calling perfect will be found lacking in the future. You need to allow people to hack a bit (at their own risk).
 
@mhelvens Doesn't mean you provide tools which suggest this is the way things should be done
@mhelvens These ideas are still in development, as you can see for example by the fact I need to revise siunitx
 
1:20 PM
@JosephWright Then put the 'wrong but useful' stuff in a module called 'wrong-but-useful'. Still, it should be there, to compensate for the bad design choices of others.
 
@mhelvens Patching arbitrary commands is tricky, which is why @egreg's regex-based code is probably the most flexible method (at the cost of some complexity)
 
@JosephWright I haven't seen @egreg's code, but any complexity can be encapsulated to provide a simple interface for common tasks. Like appending code to an existing macro'.
 
Also there is no patching guarantee. It can fail silently and if your code is based on a previous patch then the fun begins.
 
@mhelvens If there are no arguments to the macro you want to patch, simply \tl_put_right:Nn will do :-)
 
@JosephWright Obviously etoolbox gives us tools that can handle more complex cases (arguments, etc.). Just document the limitations.
@Jose
@JosephWright I'm definitely reading up on that.
 
leo
1:25 PM
what I want to do is for example you have list-by-topic of exercises say limits, continuity, derivation. I want something that takes n random continuity exercises, m random limits exercise and k random derivation exercises and puts all together in an exam
I want to keep track of the dates of the exams, to avoid put the exercise of the past period in the same exam
among other things
but that's basically what I want
 
@leo You can do that, although it depends a bit on the scale of your lists, some would argue that it's better to have such things in a database and do the randomisation and assembly elsewhere and just let TeX worry about the typesetting (wouldn't they @StephanLehmke ?)
 
@mhelvens It would have been much better if Philipp Lehman did not disappear. He was (unfortunately not is but was as we are coming to accept that) indispensable for many important contributions.
 
@DavidCarlisle Certainly. For a couple hundred exercises a TeX-based approach is surely sufficielnt. For a couple thousand exercises or any advanced selection or bookkeeping requirements, a database is better.
 
leo
@DavidCarlisle I'm thinking in do this using the exercise package. My approach is: the list must be a separe .tex. There must be an exercise environment to tag the exercise and so that you can count the exercise and assign to them a number. The count will be performed during the compilation. The randomization can be done with some pgf stuff. For sure is not the better approach, but TeX is able to all this things and I can image how to write something to do them.
That's because I want to learn more, to see what is the better approach
to see what other things can be done
 
@leo You can keep your exercises in a csv or dat file. pgfplotstable is capable of dealing with numbers up to a couple of thousands and that seems sufficient. So querying some random exercises from the dat file and typesetting them via examp class can be separated like that.
 
1:36 PM
@leo sure there are lots of things people write in TeX for those reasons. Some people even write xml parsers even though Tex isn't the best language for that either.
 
leo
@percusse nice
@percusse nice!
Sorry, I mean exercise package
exams no
@DavidCarlisle then they do it for fun!?
 
@leo Sorry I've misread. I haven't used any of them since the content and style is separated it shouldn't matter (on paper).
 
@leo No, because LaTeX is the only tool package authors can be sure every user will have available.
 
leo
@percusse indeed
 
@leo And for fun. Yes, sure. :-)
 
leo
1:40 PM
=) all is for fun
 
@leo Actually, I find LaTeX's lack of good programming facilities a bit frustrating at times. Having to spend days to get some code working that I can write in C++ in half an hour.
 
leo
I don't enjoy to program very much, but TeX is other thing :-)
@mhelvens yes indeed. But I thing that is part of the fun. I mean, you get problems so have to thing about how to solve it
it's like hacking all the time
 
@leo Fun, maybe. But not productive. That's why there are things like LuaTeX.
 
@leo mostly, but then people use it for real (don't they I'll let the guilty speak up for themselves here)
 
leo
@mhelvens yes that's true. No productive
 
1:44 PM
@mhelvens IMHO the word wouldn't be productive, but intuitive at the first sight.
 
@PauloCereda Hm.. No. Even with the best intuition, there's always a 'right tool for the job'. And when it comes to programming, LaTeX rarely is.
 
leo
@mhelvens If you work for someone and they ask you to make work something and you have deadline and you can't, that's a problem
 
@leo Found it. According to Harish Kumar this one tex.stackexchange.com/questions/64864/… works with a couple of hundred entries on each table. So it shouldn't be a problem to fetch questions in the same manner.
 
@mhelvens I see. So people pay the price of trying to overpower LaTeX for other things than beautiful typesetting. :)
 
@PauloCereda Indeed.
 
leo
1:47 PM
@percusse nice
 
@PauloCereda It's like I'm in a post-apocalyptic wasteland, trying to scrape together QuickSort using only a paperclip and a pack of chewing gum.
 
leo
what do you all thing, should I write a class?
 
@leo: Yep!
 
leo
it'll take me a lot of time. But I'm sure I'll learn a lot from it =)
 
@mhelvens Only two people can succeed, I think: Heiko and MacGyver. And I'm not sure about the latter.
:)
 
leo
1:49 PM
I'm almost in vacations so I can start soon
 
@leo Indeed. I just sent my first package to CTAN. :-) Learned loads.
 
leo
@mhelvens cool, it is about what?
 
@leo I'm writing my PhD thesis, and this package will help to keep track of all my symbols and formal concepts.
 
leo
@percusse thanks (I haven't say you thanks)
@mhelvens thesis in math?
 
@leo Theoretical Computer Science
 
leo
1:52 PM
@mhelvens Coool. So you introduce new symbols
 
@leo The main building block is the 'concept'. Each concept may have multiple symbols associated with it.
@leo The package ensures that you're not giving a symbol two meanings.
 
@leo No problem :)
 
leo
@mhelvens I see
 
@DavidCarlisle raises hand
 
@leo It's still quite basic. But I have big plans with it. Such as integration with the glossaries package.
 
leo
1:56 PM
@mhelvens it would be pretty useful
I want to write some of those one day. (a PhD thesis (in math) and package/class) =)
 
@StephanLehmke I named you originally but couldn't remember the context in which you'd admitted your sins so I thought I'd better anonymise the reference:-)
 
leo
must go
 
@leo Glad you agree. Yep, writing LaTeX packages may be one of the more useful forms of procrastination.
 
leo
see you all, thanks for you advices
 
@PauloCereda Do you have an idea how I can create a LaTeX-like community among MATLAB-haters? :)
 
1:58 PM
@leo Cheers!
 
@leo Bye!
 
@percusse Can I tell you a story? :)
 
@PauloCereda Yay. Where is my milk?
 
@percusse <3
@percusse: Beforehand, I must introduce a Brazilian style of music named pagode, which originated in Salvador, Brazil, and quickly went down to Rio de Janeiro region, as a subgenre of Samba. Personally, I don't like, but there was a fever of this style here a few years ago.
@percusse: that said, there's a famous story about a group of four or five engineers that were still coursing Algebra, Calculus, etc, and were very frustrated.
Since they were not satisfied with the course, they decided to drop the whole thing and start a pagode band. The name of the band is quite curious.
The name of the band was Inimigos da HP, which can be translated to HP enemies. The HP part is a reference to Hewlett Packard, possibly the brand of their calculators. :)
 
@PauloCereda Hahaha I can see the punchline coming......
 
2:04 PM
I think this can be reopened. First I thought it must be a duplicate, but I couldn't find a matching original.
0
Q: Sudden change in paragraph spacing

BandGapThis is almost duplicate to question Random unwanted space between paragraphs but I don't even use \par. I'm using pdflatex to compile a .tex file. As I wrote my text I noticed a sudden change in how the paragraphs of my document were spaced. From being just indented there appeared a huge gap be...

 
@percusse :)
 
@PauloCereda I can only counter that with the second section in abandonmatlab.wordpress.com/2009/07/23/hello-world
 
@percusse The list of symbols is huge; just pointing to it is almost as useful as saying nothing.
 
In other news, I once was using my netbook in a bus travel and noticed that a lot of smartphones from random passengers were acessible to me via Bluetooth. I was tempted to send a pic of a lolcat to each smartphone. :)
@percusse :P
 
@egreg It's generally the case with those questions and that's anyone's first frustration with looking up a symbol no? I found these two just by searching quarter
And you can combine them so if we answer this one then many others should be repoened too.
I only vote if I can find an instance by myself.
 
2:09 PM
@percusse It's not difficult to edit the automatic comment by adding the info.
 
@egreg Yes that's true maybe I should have done that instead of laziness.
 
@mhelvens I don't think it's that bad, especially if you can combine it with a dedicated language to do input preprocessing. The main drawbacks of TeX are the impossibility to realise some data structures efficiently and the difficulties in finding errors. The latter will always haunt you, but because of no bloat in the base engine since the 1980s, if you can defer really complicated data crunching to the preprocessing stage, the former won't be much of a problem.
 
@percusse Never be lazy and procrastinate. :)
 
@egreg Heheh. Just opened a new can of Lavazza. The smell is great, life is good again :)
 
@StephanLehmke Okay, maybe not that bad. ;-) But let's face it, (La)TeX is a domain specific language. The only reason people are trying to program in it, is that they can't be sure their users have any specific tools except LaTeX itself. Of course, it's still amazing how much can be accomplished with a paperclip and a pack of gum.
 
2:13 PM
@percusse Think that we have even better coffees than Lavazza. :) But at home I use it (Qualità Rossa).
 
There are some areas (like data based publishing) where there is almost no alternative to (La)TeX programming, as there are areas where there is no alternative to Java. I don't know much about Java, but from what I DO know, I rather program (La)TeX, so I pulled the longer straw after all ;-)
 
@egreg Ah, I wish I can access them without paying extra 5 euros a package. I'm grinding my own usually but the machine is broken boyend repair. (A gravitational accident) so temporarily I can't use grains.
 
@percusse Gravitation is a nuisance, at times. :)
 
@mhelvens How are you imagining the interaction between the "other" tool and LaTeX? LaTeX calling the other tool or the other way round? Sounds unrealistic for most LaTeX packages even if there was such a tool.
 
@StephanLehmke A thin LaTeX layer around a PL core of programming facilities I think. Doesn't LuaTeX do something similar?
 
2:23 PM
@StephanLehmke Java is good. Ask @percusse. :)
 
@mhelvens That's not "another tool" you're talking about, but a complete redesign of the TeX engine. A lot of people have tried that before, and all these approaches have stalled long before getting to a productive stage. LuaTeX seems to be making it indeed, and I'm certainly investigating that in detail in the near future. But it's still not paradise. You can do a lot in Lua, but it has its limitations.
@PauloCereda Well I'm working together with like 70 guys who think the same ;-)
 
@StephanLehmke :)
 
@StephanLehmke Disclaimer : Numerical Computation in Java is terrible otherwise I don't know much about Java.
 
LaTeX4 will be written in OCaml. Happy ending. :)
 
@StephanLehmke Ok, I could do the same with \write18 and shell-escape. Just run a programming engine in the background.
 
2:25 PM
But most of them never learned another language, and whenever there is an internal talk about some groundbreaking tool like Maven or Spring I can't help thinking that Java is trying hard to solve all the problems we wouldn't have without it...
@mhelvens You're on your way to becoming Jonathan Fine all right ;-)
2
 
@StephanLehmke That's what we do: solve problems that we create ourselves. <3
 
@StephanLehmke Every new language claims Fortran is grandpa stuff but yet to reach is numerical consistency. I guess currently only Python based tools with SciPy and other stuff that can access LaPack can fly
 
@StephanLehmke :-)
 
@percusse Boo! :)
 
@PauloCereda Emphasis on I guess. Also all the examples I see, use Python so probably Python sucks as a language but good for numerical stuff heheh.
 
2:28 PM
@StephanLehmke Don't really know him. :-) But I'll take it as a compliment.
 
@PauloCereda I'm not so sure about that. My traumatic experience was a student group taking the better part of a year to write a formula parser in Java which would have taken a couple of minutes in PROLOG with definite clause grammars...
 
@mhelvens Safest :-)
 
You know, since David is the person around here with the more witty comments, we could create a badge named carlislian (Star Wars anyone?) which is: have David star one of your comments. :)
@StephanLehmke Some problems are better on some paradigms. Logic has a very broad application, but sadly a few people know how to use.
 
@PauloCereda With a version in C# for windoze.
 
@PauloCereda In semidefinite programming violation of constraints by 1e-8 is important. You can't just say ah that's almost feasible the implications can be terrible. But in Matlab it's sometimes even infeasible when it says it's feasible. Hence fun with Java based tools.
:)
 
2:32 PM
@egreg Yes, for the .net platform. :)
@percusse :)
 
@mhelvens He's certainly achieving amazing things.
 
Oh no, Enya is playing in my iTunes radio! Help!
 
@PauloCereda Usual Example format long g;A=rand(5);A\A*A\A*A\A*A\A*A\A
         0.999999999999668     -7.51302048518186e-13     -6.22816980865899e-13
      2.25482443284603e-12           1.0000000000051      4.22663083825092e-12
     -2.00039433079472e-13     -4.44257207406139e-13         0.999999999999634
     -2.50729435363689e-12     -5.68074734190512e-12     -4.70979754689732e-12
      1.86988313181431e-13      4.24591614889611e-13      3.52395418484454e-13

  Columns 4 through 5

     -6.23884843947921e-13     -5.64844392904195e-13
      4.23763146856429e-12      3.85344048237995e-12
 
@percusse :)
Oh no, now The final countdown is playing! It's too strong... nooooo!
 
@PauloCereda Half of my time goes to numerical cleaning up of functions by guessing the amount of garbage that Matlab would introduce.
 
2:38 PM
/hums solo
 
@StephanLehmke Do you know Jonathan?
 
@percusse I see.
 
Also one of my favorites : addition/subtraction of a scalar and a matrix goes silently OK. 1 - rand(5,4) does not give any warning or error just assumes a matrix with all entries 1.
 
What should I do if I've asked a question and then realised that the answer doesn't quite do what I want it to?
edit the question?
 
@Mohan This is frequently done.
 
3:02 PM
Hi all, I'm looking for something TeXy. I could do the research and write an official 'question', but perhaps one of you just has the answer ready.
In my package documention I frequently typeset some LaTeX code, then immediately run it and display the output for demonstration purposes. Is there a way to get both 'versions' of the code ('verbatim' and 'real') from the same source? I don't like duplicating stuff.
Several initial attempts have failed.
 
@mhelvens I do this using the listings package: see source code for example for notes2bib, siunitx, achemso
 
@JosephWright Great! I'll look into that.
@JosephWright If I'm not mistaken, this is something you 'hacked' together yourself, yes? It's not something the listings package offers?
Feels like something that should be a package.
 
@mhelvens Based on how it's done in the listings manual :-)
 
Aha.
 
There are packages, for example showxmpl (I think)
 
3:12 PM
@JosephWright Hm. The only thing I can find is the example package. That what you mean?
Ah, and there's examplep.
I think I have enough to work with. Thanks! :-)
 
@JosephWright Ah, cool!
 
@JosephWright I once witnessed a talk by him presenting something like a perpetual TeX engine which would run in an event loop, with some user interface much like what @mhelvensseems to imagine. Only dvi though, because you can generate that in chunks.
 
@StephanLehmke Ah, the TeX daemon
 
@Mohan Change the first block (from \begingroup to }}) into
\begingroup
\lccode`\~`\\
\catcode`\!=\active
\lccode`\!=`\^^M
\lowercase{\endgroup
\def\vb{%
\par
\parindent\z@
\parskip1\baselineskip plus 2pt\relax
\let\do\@makeother\dospecials
\let\@xobeysp\ %
\catcode`\ \active
\catcode`\\\active
\catcode`\^^M\active
\def!{\endgraf\leavevmode}
\let~\scanendvb
}}
 
3:18 PM
@StephanLehmke Oh my!
 
@JosephWright The trick here seems to be to output the code to a file first with filecontents. And I think the rest of that package is about nicely printing it side by side.
 
@mhelvens Broadly sounds right
 
@JosephWright That's the insight I was missing. Thanks for the pointer!
 
@JosephWright I do think I heard about some commotion in UK-TUG in which he took part, but I don't know any details (not even "who against whom" or when).
 
3:35 PM
@StephanLehmke Ah, that was some time ago now
 
@JosephWright I also think I maybe once attended a talk by him about ActiveTeX - maybe 1992 or 1993?
 
@StephanLehmke Ah right
 
egreg: thank you very much!!
 
Hi again! I just need one more insight to make my code-example code nicer. It's a problem I've run into on more than one occasion. I'd like to embed a verbatim-like environment (filecontents, in this case) into my own environment. But if I do that the correct terminating string is no longer used literally, and the scanner runs into the end of the file. Is there a trick to fix this?
A trick to change the terminating string that the environment is looking for, essentially.
 
funny that you ask that question now...
which talks about partial solutions
 
3:46 PM
@Mohan Aha. Yes, to be honest I didn't pay particular attention to your discussion before. ;-) Thanks!
@Mohan Hmz... It just happens that none of those solutions will work for me, since I'd like to have the content between my own environment delimiters to be considered verbatim. Also, they assume I want to typeset something verbatim, but I really want to give it as input to another command that parses verbatim stuff. Tricky...
I could take filecontents.sty and change it to work for me. But I'd rather use a simple fix or patch.
 
4:03 PM
Sometimes you have to run bibtex a few times for citations to "catch", some times latex or pdftex must be run a couple of times to get all references fixed, etc. Is there a consistent summary somewhere stating in what situations one has to run these programs more than one time? Or am I stupid and each really needs to run only once?
 
@HenningKlevjer Usual recipe: latex, bibtex, latex, latex, assuming no edits during the cycle :-)
 
@HenningKlevjer If you add new citations, a run of bibtex after the latex run is needed. Then other two latex runs` for syncing the cross references. However, during document preparation I usually don't bother too much with correctness of cross references.
 
@JosephWright Alright, so that's 1. get some dvi's 2. find \cite and build bibliography 3. append \cites and 4. wrap all of it together?
 
@HenningKlevjer Huh?
@egreg True
 
@JosephWright Trying to figure out what each step does. Obviously mistaken!
aren't the .dvi's the "recipe" for the later postscript output?
 
4:08 PM
@HenningKlevjer First LaTeX run uses \cite information to write to .aux file. BibTeX reads .aux file, finds citations in .bib file and writes a .bbl. Second LaTeX run uses .bbl as bibliography, third LaTeX run deals with numerical cross-references
 
I ment .aux, of course!
 
@HenningKlevjer .dvi is a TeX output format, but many people now use direct PDF output
 
@JosephWright Ah, I see!
 
@HenningKlevjer When LaTeX runs, it takes note of what citations you make; BibTeX reads the notes, and compares them to the bib database, extracting the data and preparing the bibliography; at the next run LaTeX can know the order of the references, so at the next it will assign the correct numbers to the citations.
 
@egreg That's what I said :-)
 
4:10 PM
@JosephWright Maybe different words can help.
 
@egreg @JosephWright Leaves me double-certain!
Thanks guys
 
4:35 PM
@egreg do I recognise that code?
 
TUG nominees looking almost sorted
 
@DavidCarlisle Yes, it's yours (with a small change)
 
@PauloCereda of F#
 
How's the cricket match going?
 
@egreg It's night in India, so we resume tomorrow
 
4:36 PM
@DavidCarlisle Indeed. I've been playing a little with it, the language is very interesting.
@JosephWright "PAUSE" :)
 
@DavidCarlisle How nice! I'll take a look at the articles later on.
 
What's F#?
 
@JosephWright it's microsoft's take on OCaml which is an object oriented version of caml which is a french version of SML which is the standardised version of ML which was the meta language for a theorem prover once. Banks mess up your pensions with it.
 
@JosephWright A language for the CLR inspired on OCaml. :)
 
4:41 PM
@DavidCarlisle And in English?
 
@JosephWright it's a functional-ish programming language for .NET
 
@JosephWright A functional programming language. :)
Think Lambda Calculus. :)
 
@PauloCereda Think lambda calculus (so language purists take notice) with added hooks to access the full .NET system libraries (so you can get stuff done:-)
 
@DavidCarlisle LOL pretty much it.
What happens on a monad, stays on a monad.
 
@egreg ah just saw the comment on site. line ends, I see, thanks.
 
4:49 PM
@DavidCarlisle The old trick of adding \leavevmode. :)
 
18
Q: How can we draw a Hannukah Menorah with decorations, using TikZ?

RaphaelIn the spirit of the festive season and How can we draw a Christmas tree with decorations, using TikZ?, I would like to use TikZ for drawing a Hannukah Menorah. There are many different styles of Menorah including and amongst others. Of course only the most greedy person would also ask for ...

:-)
 
@DavidCarlisle: games.adultswim.com/… What's your top score? :)
@JosephWright Cool!
 
@PauloCereda 0 I assume?
 
@DavidCarlisle Play it! :)
 
@DavidCarlisle Or perhaps 'undefined' or NaN?
 
4:59 PM
@JosephWright You play it too. :)
@DavidCarlisle, @JosephWright: I got 43,799
Yay! 63,271!
 
5:47 PM
What does '^^M' do?
insert a newline?
[it's rather hard to search for!]
 
@Mohan well it is the character control-M ie character13, which TeX normally puts at the end of each line, by making it active and giving it a definition you can make the end of line in the source have arbitrary affects on the processing
 
so \lccode`\!=`\^^M
is equivalent to
\lccode`\!=13
?
I'm trying to understand the change that egreg made to your fantastic vb environment for me...
He added
\catcode`\!=\active
\lccode`\!=`\^^M
 
@Mohan yes the backtick just gets a number so it's actually \lccode33=13
 
and 33 is some internal TeX way of denoting \n ?
 
@Mohan no 13 is newline 33 is ! (standard ascii codes)
 
5:52 PM
Ah, I missed the
\def!{\endgraf\leavevmode}
 
@Mohan egreg used ! just as an available unused character it's a standard trick when you need to refer to a character in its normal and active form, you write it using two different characters but use lowercase to convert one to the other so although that says \def! in the source it has been "lowercased" to \def^^M
 
i see
thanks
could I replace that with
\def!{\\}
 
@Mohan The lccode is a lookup table that gives the associated letter so teh llcode setting just (locally) says the lowercase of ! is ^^M
 
so that it caused a single line break rather than a
new paragraph?
 
5:55 PM
thanks!
 
@Mohan well actually you may need to fiddle with it as \\ at the end of a para would cause a spurious line.
@Mohan but basically you can make it anythimg,. best might be to leave it as par as egreg did but set parskip to 0pt rather than the baselineskip I used
 
got it -- thanks
 
6:15 PM
What are other sensible 'spare' characters to use with this lccode trick?
can you use anything that doesn't occur inside the \lowercase{...}
or are there any hidden risks?
 
@Mohan It's just a local setting of the lccode translation table, so any character that is not otherwise used before the } that ends the group
 
thank you.
by the way, what you said above about lccode has been incredibly helpful -- I think that's exactly the kind of thing that makes a lot of macros inscrutable to people at my level.
 
@Mohan no lowercase simply does a pass over all the tokens without expanding or executing anything but replaces every character with a non zero lccode by the character with the specified code, then TeX starts again at the start of teh expression evaluating the transformed token list.
@Mohan If you know the unix shell, think of tr
 
I rather feel it might be worth my writing some of this up as a question and answer, in case other people (at my level) are having similar problems...
would you mind if I tried that? Or would it be ' too subjective'?
 
@Mohan no harm in making a qn.
 
6:20 PM
Right...
should I make it ' community wiki'?
 
6:35 PM
@Mohan You can't, but I can ;-) Should I?
 
@Mohan lets see how it goes, although you should probably let @JosephWright make it a community wiki (which means as it's a kind of general question the rep count is not associated with the question or answer, and people can be encouraged to make multiple answers or edit existing ones)
 
@Mohan, @DavidCarlisle I've made the question CW as it does not sound like it can have one 'correct' answer
I have a feeling there will be no further change to the TUG voting: too late for any new candidates to get sufficient votes
 
6:54 PM
thanks!
Hmmm... why can't I type \makeatletter into interactive TeX? I just get " undefined control sequence"
 
@Mohan Did you run tex or latex?
@Mohan tex is plain TeX, so no \makeatletter
 
thanks!
 
@Mohan latex is pretty obvious, I hope
 
00:00 - 19:0019:00 - 00:00

« first day (769 days earlier)      last day (4165 days later) »