« first day (402 days earlier)      last day (4532 days later) » 

3:43 AM
@percusse "Can you try \& and let us know?" LOL.
 
3:59 AM
@AlanMunn :) you never know what people can do with LaTeX, s/he might have said no.
 
4:24 AM
@PauloCereda yay!
2
A: Replacement for MikTeX's texify in TeX Live

Jeromy AnglimThere's a nice discussion of rubber on the TeX.SE blog. Quoting the post, which in turn is quoting the man page for rubber: rubber “is a wrapper for LaTeX and companion programs. Its purpose is, given a LaTeX source to process, to compile it enough times to resolve all references, p...

 
5:01 AM
@AlanMunn Yeh, classic...
@Canageek I did the same...!
7
Q: Hunting for the Critic badge

WernerSome features on TeX.SX are time-dependent. For example, voting and comment editing. The bronze critic badge, however, does not fall under such time constraints. It is awarded immediately after you issue your However, reversing this down vote (within the given time limit) does not reverse the ...

 
 
4 hours later…
9:02 AM
Yay, my LaTeX grammar is a success! Kinda.
 
 
1 hour later…
10:29 AM
0
A: How do package authors find the time?

Axel Sommerfeldt\expandafter\spendtimewithwifeandcats\writelatexpackage

*(with apologies to Lennon/McCartney)*
I ain't got nothin' but love TeX
8 days a week, 8 days a week
I write packages
8 days a week is not enough to write my code!
 
10:51 AM
Speaking of Beatles, I want a Hofner bass, please. :)
 
11:35 AM
@PauloCereda I upped that too :).
How are you Paulo?
 
Hey @Bruno! :)
I'm fine, and you? :)
 
Speaking of the above question, I think I am going to write a blog about it. Even if you don't answer the question, could package authors please leave me a message in chat about what their motivation is. Thanks!
 
@PauloCereda Skipped yet another night, and I can't get myself to work on my PhD :-/.
@Seamus I'm interested in the opposite question: how on earth can I stop writing packages (well, LaTeX3)?
 
@BrunoLeFloch Package addiction… Dangerous affliction
 
@Seamus It's been that way for close to a year.
 
11:49 AM
@BrunoLeFloch Oh. Is your PhD deadline close?
 
12:14 PM
@PauloCereda No deadline, but at some point I need to move forward. I haven't moved 1sp in a few weeks.
 
@BrunoLeFloch I see. But I'm sure you'll do fine. :)
@BrunoLeFloch: you are my hero. :)
 
@PauloCereda I definitely don't deserve it :).
zappathustra is my hero.
 
@BrunoLeFloch OMG I thought my PDF viewer was playing tricks on me! :P
 
@PauloCereda Nope :). The technique he used for xesearch is clever, abusing XeTeXinterchartoks. I believe that it could be coupled with l3regex to do full regex search on every word in the file. But that would become very slow.
Ugh, I'm writing two different emails (stopping in the middle of words), plus posting here, and reading some websites. Not gonna work.
 
@BrunoLeFloch Multithreading Bruno FTW. :)
 
1:09 PM
Now I need to get people to think about a syntax for regexes acting on token lists rather than strings.
In TeX that's more natural. But since it's the only language for which tokens are so central, I don't think anyone has devised such a syntax.
 
 
1 hour later…
2:38 PM
@BrunoLeFloch I'm not sure developing an entirely new kind of regex is a good use of time! I'd hope that regexs have a use in areas of TeX programming that are string-like, such as the classic matching-a-number or making simple changes to something which approximates to 'text'.
 
@JosephWright At the implementation level, most of the code would be shared. And at the syntax level, probably most things can be shared as well. Just adding a couple more escape sequences to match tokens with given catcode rather than charcode.
 
YAY, GOT THE TEX SYNTAX PARSER WORKING!!!!!!
 
@BrunoLeFloch I was thinking more that regex use is already complex (at least for me), and adding additional ideas won't necessarily make things more usable
 
(Sorry for the caps)
 
Unrelated: ^^A gives the character number 1 in all engines, ^^^^1234 gives the Unicode character "1234 (hex) in XeTeX and LuaTeX. How do you get values > "FFFF?
@PauloCereda What does it consist in?
@JosephWright Meh... Regexes are easy :). Well, not always, but many programmers are used to using them. I had never used them before coding l3regex, to be honest.
 
2:46 PM
@BrunoLeFloch I'm planning a code snippets manager app. I'd love to add syntax highlighting to some languages, including TeX. But I was struggling with the grammar to make it work. :)
 
@PauloCereda Try \catcode65=0 @def@foo{}... Or try syntax-highlighting xii.tex
 
@BrunoLeFloch Well yes, but we are talking about programming TeX, and this is not the same as programming in other languages. (I'm as always worried about getting distracted from the key questions by interesting-but-not-widely-applicable questions)
 
@BrunoLeFloch You are mean. You are definitely mean. :P
 
@JosephWright I guess my worry is that trying to use regexes when the input is really token lists is just wrong. It's one thing that makes passing material back and forth from Lua to TeX quite awkward.
@PauloCereda If your parser is good, it should be able to handle that.
You just need to run TeX on the input with \tracingall, omitting undefined macros, and parse the log. Piece of cake ;-)
 
@BrunoLeFloch Okay, but does not mean you have to allow the regex to match by catcode. It means you want the match to pick out characters in a catcode-insensitive way.
 
2:51 PM
@JosephWright I am indeed very easy to distract.
 
So that if I match \\pm I'll pull out the token \pm in most input
 
@BrunoLeFloch Only \catcode is highlighted. :|
 
@JosephWright I'm thinking of \c{pm} instead, to match the token \pm.
@PauloCereda No surprise :D.
Does it handle various standard catcode settings?
 
@BrunoLeFloch No. /me blushes
 
@BrunoLeFloch I guess that would do, yes
 
2:53 PM
@PauloCereda /me logs a feature request: LaTeX3 syntax highlighting.
 
@BrunoLeFloch Don't you just keep doubling the number of ^?
 
@JosephWright I tried ^^^^^^^^0010ffff, but it didn't seem to work.
 
^^^^^^^^12345
\bye
seems to work for me, for example
 
@BrunoLeFloch The project hasn't even started yet and I already have an entry in the bugtracker. Yay! :P
 
@JosephWright It seems that it's only 5 ^
 
2:55 PM
@BrunoLeFloch It seems to be the correct number to match for five-digit numbers: I guess you double for each additional digit
 
@JosephWright It seems that you have to put as many ^ as digits.
Try \message{^^^^^^^^12345}, three leading ^ remain.
 
I suppose I should add a sidebar with ^ counters.
 
One very simple use of regex would be get an \allcaps declaration to work in the same way that \scshape does. That would be sweet.
 
The thing I was trying to do is to get raw bytes: \message{^^^^^^110000} for instance in LuaTeX gives the byte 0 (distinct from the character 0).
 
@Seamus Bruno's expandable case-change can do that anyway, I think
@BrunoLeFloch That was my conclusion, but it does not seem to be in the LuaTeX manual (XeTeX is poor in this regard anyway - documentation not easy to find)
 
3:01 PM
@JosephWright Then could you or someone who know about that answer this question:
8
Q: setkomafont with uppercase that works robustly

SeamusI know that \setkomafont is supposed to deal with switching fonts but sometimes instead of switching font, I'd like to switch to uppercase. I've not found a way to do this reliably. This breaks: \documentclass{scrartcl} \setkomafont{title}{\normalfont\uppercase} \author{A. Author} \title{The tit...

 
@PauloCereda :). The best would be that you implement all of TeX's category codes. Then the user can specify which catcode table is in use (e.g., iniTeX, usual, usual + @=letter, LaTeX3,...)
@JosephWright Yes, although xetexmain.pdf seems quite good (didn't read carefullly).
 
@Seamus Ah, that's slightly different as it relies on the fact that font changes are scoped
 
@JosephWright No. The problem with case changing is that either you expand the user's text before case changing (as \MakeUppercase does), or you don't (as \uppercase), possibly with some extra mappings, but in both cases you'll make people unhappy. All I did is to provide some expandable case-changing functions for ASCII input only, and they have the good feature that they go through braced groups, preserving them.
 
Oh not, actually I'm wrong
 
If we assume that section headings are ASCII only, would regex offer an advantage over current possibilities?
Either way, is it worth someone writing an answer for it?
 
3:07 PM
@Seamus I doubt it. The main problem you have is that you don't have the title directly as an argument to a macro. It would be much easier to perform transformations on the title if you could grab it reliably.
I'll try to think of a way to hack XeTeXinterchartoks as zappathustra did in xesearch.
 
@BrunoLeFloch Yes, that's a limitation in how KOMA-script sets things up, really
 
Would redefining titles with, say titlesec offer a better way of getting consistently uppercase titles? (that work in tables of contents, marks and so on…)
 
@Seamus I don't know titlesec. Joseph?
 
(I suspect not, by the way)
If it is the case that there's no easy way to do this, it seems a strange lacking. Since this is a kind of typographical signposting that gets used a lot, it's weird that it's so hard to do in LaTeX…
 
@Seamus I've used in before, but would have to look at this in more detail. If it's easy I might come back with something, otherwise I guess I'd rather concentrate on getting a 'real' LaTeX3 solution sorted
@Seamus It comes down to the fact that case is not treated as part of the font
I'd imagine it's easy enough using OpenType features
 
3:17 PM
Yeah true. But a virtual font just to achieve this seems excessive. (which is the current best suggestion)
 
@Seamus I was thinking Lua/XeTeX and fontspec
 
How to massively fail at being productive: "Today I'm writing about probability. I wonder if I could make a section number counter that outputted the number as that number on dice…"
4
Turns out, you can. But now I've not written the paper.
 
I'm actually working on some 'front-matter' ideas at the moment
 
Well, my attempt to use XeTeXinterchartoks failed. I can't get it to work with spaces.
 
3:31 PM
@BrunoLeFloch You jynxed my syntax highlight stuff. Your conscience is heavy. :P
 
@JosephWright Re "\c{pm} to match the token \pm". When you say that "that would do", is it that you think I'm making my life more complicated than needed? I'm open to discussions, as I am conscious that I tend to err in what to implement.
@PauloCereda But I think you can get it to work with arbitrary catcodes :). Beware: some on the XeTeX list proposed to increase the number of available catcodes to 256. Not sure what they'd do with all that space, but it does mean that you need to highlight correctly.
Besides, are you Unicode compliant?
 
@Seamus kantlipsum can help you. :)
 
@BrunoLeFloch I mean that what is useful from a TeX POV is being able to deal with text which contains 'simple' macros, for example accents of the \c{c} form. For pdfTeX this is important, for UTF-8 engines less so although something like a number 1.23 \pm 0.03 seems reasonable as 'string-like' even with one of the latter engines.
It's all about use cases. For me, the most obvious ones are basically string manipulations, but some tokens do need to be allowed
 
@BrunoLeFloch ��������.
I mean, Yes I am. :)
 
3:40 PM
@JosephWright Sorry, I'm not parsing your sentence fully. It seems that my proposed escape sequence would work for the use case you describe, no? Then there is the question of left and right braces, which may be a little tricky.
@PauloCereda With all the RTL&LTR trickery? Normalization? Line-breaking? (Yes, I'm trying to break things.)
@JosephWright I'm partly confused because of your choice of \c{c} which is both a valid escape sequence in what I propose (\c), and a reasonable TeX input (c-cedilla).
 
@BrunoLeFloch Sorry if I was not clear. There are two obvious cases for me (having used l3regex a little). First, you might want to match input where you anticipate a particular token, let's say \pm. Thus it would be useful there to have an easy way to specify the token.
Secondly, you might want to parse 'text' which can contain accents, where detokenization will loose this information and potential introduce 'spaces' into words which will then confuse any attempt to separate things out
 
@BrunoLeFloch Er... no. :(
 
@BrunoLeFloch This was supposed to be TeX input for a cedilla
 
@JosephWright Would regular expressions for the csname itself be useful? (It comes at no cost.)
 
@BrunoLeFloch I'm not actually quite sure at the moment! I can see the use in a case where you're worried that tokenization makes a difference: \pm could be the token \pm or the token \p followed by an m (okay, unlikely but possible).
 
3:47 PM
@JosephWright I'm not thinking of using \detokenize anywhere. Rather, a ted-like analysis of the token list on input, converted to charcode+catcode pairs, and to csnames.
 
What's more of immediate relevance is that the current approach in l3regex detokenizes, adding spaces in as a result, and it's those that are more of an issue when you want to write a regex
 
Then string matching, without needing to worry about spurious spaces: we're working with tokens.
But matching csnames in a special way, e.g., \c{csname}
 
@BrunoLeFloch What happens with that approach when you search for the regex \\p and have input TeX tokens \pm? What catcode does the result have?
 
@JosephWright If input = one token, \pm, and regex = \\p, then there's no match.
 
@BrunoLeFloch Okay, makes sense and in this case you do need \c{name}
 
3:49 PM
To match the single token \pm, you need either \c{pm}, or \c{p.*}, or \c{..}, etc.
@JosephWright Yes. The tricky thing will be to make it interoperate nicely with the rest. E.g., one can reasonably hope for \c{.*}* to match any number of cs tokens.
Also, the conversion token-list => charcode-catcode pair is not trivial to do fast. Is it reasonable to put a hard limit of 32768 characters in one given string?
 
4:39 PM
@BrunoLeFloch I'd say so - we are back with use cases again, and what is really sensible with TeX
So far, cases I've come up with are one or two lines of text. Even if we are talking about data from an external file, I'd expect to deal with it line by line.
 
4:52 PM
Grrr. "I looked at this web page, but it didn't really work". tex.stackexchange.com/q/37470/2693
 
@AlanMunn Yes. See also tex.stackexchange.com/questions/37474/…, which I'm tempted to answer with 'Yes'
@AlanMunn Probably a dupe, I think
 
@JosephWright Good. It allows me to abuse registers some more and achieve linear-time.
 
@BrunoLeFloch There's always the need to remember that just because TeX is Turing complete doesn't mean we have to do everything :-)
5
 
Ok, now I need to stop reading the Unicode standard (it's like 1000 pages, plus tons of annexes). Have a good day, guys.
 
@AlanMunn Oh my! I have a suggestion for a demotivational poster. :)
 
4:59 PM
Very disturbing discussion is going on the the mod-only chat room. 'Tis a scary place. (The topic is disturbing, not the other mods!)
 
@JosephWright Spooky. :)
 
@PauloCereda It just reminds me that TeX.sx is a good place to be a moderator - I don't fancy the abuse people get in other places
 
Suggestion for an answer to the "I looked at this web page, but it didn't really work":
 
Oh drat, the 'nearly out of votes' warning is at me
 
@JosephWright I get that warning every day. :)
@Joseph: BTW you are chasing lockstep. :)
 
5:05 PM
@PauloCereda But it's the same as with rep: he hits the cap most days, and so do I, so I can't catch him on votes.
 
@JosephWright True. :)
 
5:19 PM
@JosephWright Please don't say that!
I mean, the part about Moderators being abused in other places!
 
@GonzaloMedina It may of course be a misunderstanding on my part
 
@JosephWright I hope so; otherwise I could reconsider my nomination in Spanish.SE!
 
@GonzaloMedina My impression is that most of the network sites are fine
It's where there is a higher level of moderation needed that issues seem to arise: probably to be expected as no-one likes to be told they are wrong
 
@JosephWright I guess those sites must be every Moderator's nightmare! Since Spanish.EX is a newly born site, I wouldn't expect too much problems ;-) (Well, if I really become a pro-tem.)
@JosephWright Loved you're phase about the difference between Turing-complete and omnipotent, by the way.
 
5:40 PM
@PauloCereda Probably! he had problems with flushing left and right anyway when cornering, too.
 
@JosephWright I've already added the links to some duplicates. We can probably start to vote to close even.
 
@percusse True! :)
 
@JosephWright Can you elaborate on the scary topic, or are you just being a tease?
 
@AlanMunn Have you seen the last comment from Javier Bezos in the \renewpagestyle question?
 
@GonzaloMedina Yes, thanks I did. I hadn't thought of that, but it makes perfect sense in hindsight.
 
5:43 PM
@AlanMunn The topic was the various criticisms some moderators had had, some of which was deeply unpleasant
 
@JosephWright Something like the CHAOS action here?
 
@PauloCereda No, much worse
 
@PauloCereda Which CHAOS action?
 
@GonzaloMedina It was not actually CHAOS
There was something of a misunderstanding between the network-wide mods and how we handle 'moderator attention' flags
 
5:47 PM
@JosephWright Ah true, my bad.
 
@PauloCereda Ah, yes... I got confused beacause you mentioned CHAOS!
 
@JosephWright I think that there are two things that make this an easy site to moderate. Almost all of us a academics of some sort or other and in principle we have better things to do. Secondly, there are almost always very objective means of evaluating answers. On many other sites, one or both of those conditions aren't met.
3
 
@AlanMunn I think it's mainly the second point, actually. We have a pretty clear scope, and so there is not too much issue with where the 'edge' is
 
@GonzaloMedina Nice answer on ser and estar, by the way. I think I mentioned to you before that our lab is looking into how kids acquire this distinction.
 
@GonzaloMedina I got confused. If I'm not mistaken, she was indicated for CHAOS almost at the same time we had this incident. :)
 
5:49 PM
Even in cases where it's not clear, we've not got contentious closed questions. For example, some Emacs stuff is borderline, but the questioners for these do seem to realise this
 
@AlanMunn: Do the term model verb exist in English? (With the meaning of a verb whose conjugation is used as a model for the conjugation of similar verbs).
 
@JosephWright Yes, that's true. That's why I have no interest in the Linguistics beta site. Too many amateurs and no good sense of the scope.
 
@GonzaloMedina I guess I know this as "terminação verbal", is it?
 
@AlanMunn Thanks! Didn't know that you visited Spanish.SE. Perhaps you did explain your lab research, but I can't remember.
 
@GonzaloMedina Not really, since we really only have 1 very type and a bunch of irregulars. There are some sub-regularities, but there's no equivalent of the -ar/-ir/-er classes.
 
5:53 PM
@AlanMunn That's also a problem in Spanish.SE; we need professional linguists.
 
@AlanMunn Ah, are we talking about the way some verbs are used as examples 'for the general case'? (Seems to be 'to play' in languages I've studies)
 
@PauloCereda A verbo modelo (model verb) is a verb used as a model for the different cases of "terminciones verbales".
 
@GonzaloMedina Ah I see! :)
 
@AlanMunn The same as in Latin?
 
@GonzaloMedina I think I just was looking at the popular questions list for the overall site when I saw the ser and estar question and I looked at it since I know quite a bit about it. I won't generally look at it. Everything I know about Spanish is actually filtered through Portuguese.
@GonzaloMedina Yes, but the problem is that when it comes to language, everyone thinks they're an expert, and then the professionals just get frustrated and leave (or in my case never even arrive.)
 
6:02 PM
@AlanMunn It's really a shame. We really need professionals over there.
 
@JosephWright Yep. At least for the Romance languages (French, Spanish, Italian, Portuguese, Catalan, Romanian)
 
@AlanMunn: I remember a conversation we had about cardinals sometimes having two different meanings... but I can't remember exactly the details... (well, perhaps I don't even remember if that was the actual topic). Do you remember that conversation and the precise topic?
 
6:20 PM
@GonzaloMedina Yes, we definitely talked about that. Maybe I didn't mention the ser and estar stuff. It's really hard to test, since neither verb is a subset of the other and the choice is very dependent on context.
 
6:44 PM
End of first act of Don Giovanni. Very nice: they stole idea for Don Giovanni's list from the documentation of gmp! :)
 
@egreg Cool! :)
 
@PauloCereda It's just the same! I'll file a protest for the copyright! :)
 
@egreg Oh my! :)
 
@AlanMunn Did you see the discussion about ligatures on english.sx?
 
7:38 PM
@egreg I glanced at it briefly. Is there something I should pay attention to or comment on (to us here, I mean).
 
 
1 hour later…
8:49 PM
@AlanMunn I just wanted to know your opinion about ligatures.
Sorry to answer only now, but Don Giovanni ended just a couple of minutes ago.
That's more important than TeX, to me. :)
 
@egreg Was it nice? RAI international didn't broadcast it. :(
 
@egreg: did you ever hear back from the ucharclass maintainer?
 
@BrunoLeFloch Not recently
@PauloCereda Very good singers, very good orchestra and superb Barenboim, although I didn't like all his choices of tempo.
 
9:13 PM
@egreg If I'm not mistaken, he's famous for choosing the tempo not based on the composer markers, but on his own insight. :)
 
@PauloCereda I like him. While I don't agree with all of its choices, he's a fine musician and has his own ideas. A famous Italian journalist said: "Better a bad temper that no temper at all".
 
@egreg I like him too. :) Good times of piano recitals. My professors got scared because I always changed the tempo of the songs. :P
 
 
2 hours later…
11:34 PM
@BrunoLeFloch: I decided to take another approach for the (La)TeX syntax highlight, since the editor should support several languages. Now you gave me an interesting idea of a "smart" (La)TeX editor. I'll inspect my automata and try to come up with an adaptive grammar to support catcodes and other tricks. :)
Think of a editor which can change its own behaviour based on the user code. I'm also thinking of a safe checking of names, commands, expansions, even possible traps. :)
 

« first day (402 days earlier)      last day (4532 days later) »