« first day (657 days earlier)      last day (4276 days later) » 

12:24 AM
@percusse Thanks for your answer.
@JasperLoy Yes, you did. Now I knew the reason for my -5 reputation of a removed user :-)
 
@percusse just one more now
 
1:07 AM
29
Q: Comparing typographic traditions for different languages

KurtSometimes students using LaTeX ask me how to do the typesetting of documents in French or Spanish. I'm not able to help them because I never learned to speak or write French or Spanish. Different languages have different typographic rules to typeset documents. For English documents one can read...

 
user19161
@Kurt Removed user? Who?
 
Should I add a remark, "In Brazil, we have our beloved ABNT, the most blasphemous document in typography history!" :)
 
1:27 AM
@JasperLoy I don't know and it is not so important. I was a little bit astonished to see the -5 reputation, because there was no information in faq or meta.tex. Meanwhile I found some infos in meta.stackexchange.com. And the downvote in my profile I can't click.
 
user19161
@Kurt Well, now and then users delete their accounts. Someone lost over 300 rep on another site because I deleted one of my accounts...
 
@FrankMittelbach: I really feel honoured to see the expl3 hummingbird flying so elegantly in the presentations and the website. :) There was no need to put my name in evidence in the slides, it was a humble contribution to the awesome LaTeX3 project, and I'm really glad to help with everything I can. :) Hopefully, Bruno and I might come up with something "new" and interesting for the testing machinery. :) And I have already a suggestion fora name of the testing framework. :P
 
I'm new here and so I have to learn some things ...
 
user19161
@Kurt You can always ask about trivial things in chat.
 
@PauloCereda My English is not so good so I need a little bit time to understand. I think the German DIN is the most blasphemous document in German typography history. Typography and DIN can't really get come together but is often used for letters and some stupid rules how to typeset a thesis.
 
1:36 AM
within a math environment, is there a simple way to stack two elements?
i.e. I want something like \frac, but without the middle ----- ; something like binom, but without the ()
 
@PauloCereda But If you know not only ABNT (I think it could be helpful for Germans not knowing this) please feel free and add an answer. Perhaps in this case we leave "blasphemous"? :-)
 
user19161
@matthew I just looked up the verse and realized I knew it too.
 
@JasperLoy I look to not waste the time of other people. But thanks!
 
@jasp ?
 
user19161
@Matthew7.7 The verse 7.7.
 
1:40 AM
oh, lol
 
 
5 hours later…
6:31 AM
@TorbjørnT. thanks for the help earlier. Can you ask him how to include citations using his template. I tried with \cite{label} but it did not work. may be u can take a look at the template he provided
 
@PauloCereda of course there is. The birds are great (even if the jury is still out on which in the end is going to fly ... both approaches are equally nice)
 
7:32 AM
Can be closed as duplicated
0
Q: Switching between fancy and plain page style

hennesI'm having issues with switching between the fancy and plain page styles. I defined both styles in the preamble but once I have chosen the plain style I don't seem to be able to activate the fancy style at a later point. Below is a minimal working example. I would expect the first chapter to rend...

 
He uses biblatex, so you probably have to run biber , and not bibtex. Other than that, \cite should work just fine. I.e., the compilation sequence should be
pdflatex document
biber document
pdflatex document
 
8:12 AM
Can someone tell me which font is missing here?
pandoc: Error producing PDF from TeX source.
! Font T1/cmr/m/n/10=ecrm1000 at 10.0pt not loadable: Metric (TFM) file not fou
nd.
I'm using texlive on debian unstable.
Looks like texlive-latex-recommended is needed
Hmm, looks like this might be a bug for this issue - bugs.debian.org/598351
 
9:11 AM
@MarcoDaniel Ok, closed with four votes.
 
@StefanKottwitz enough ;-)
Thanks
 
@GonzaloMedina Thanks for the heads-up about dupe accounts (from yesterday). I've done a merge: it seems the user in question keeps using 'throw-away' e-mail addresses to create accounts.
0
Q: Very wide columns with dcolumn package

Issac MI want the the following table to be perfectly centered within the margin, with an approximately even spacing between each column. \documentclass[a4paper,11pt]{article} \usepackage{color,amsmath,amsfonts,amssymb} \usepackage[english]{babel} \usepackage{colortbl} \usepackage{booktabs,...

Anyone know what is actually wanted here?
 
@JosephWright Not at all. I only know that he wants to hack dcolumn to allow something like (Q....) there, where the correct solution would be to split that into more columns...
 
9:26 AM
@tohecz Quite. I tried hacking down the package list, but the end result was an 'MWE' I still could not follow
@PauloCereda Sorry for the delay in getting back to you about biblatex. I was busy last night (sister in labour: baby delivered this morning)
 
9:46 AM
@PauloCereda Sorry for the delay in getting back to you about biblatex. I was busy last night: will reply today.
 
10:44 AM
@JosephWright Oh don't worry! :) How's your sis and your new nephew/niece? :) Uncle Joseph. :)
 
11:03 AM
@Kurt I'm a bit reticent to include such incisive remark about ABNT. :) Just to extend my comment, ABNT stands for Brazilian National Standards Organization (the acronym is in Portuguese), and it is the normative body which is responsible for technical standards in Brazil. Sadly, everybody in academia has to follow the specs they "impose". IMHO it's a horrible document. I'll come up with some lines trying to be less ballistic while talking about ABNT. :)
 
@PauloCereda Nephew is fine, I believe: I've yet to meet him (visiting hours are this evening)
 
@JosephWright Yay! :) Uncle Joseph! :)
 
11:26 AM
This guy has a lot of Enten: youtube.com/watch?v=K4ml1QRGPEg :P
 
11:39 AM
@PauloCereda Peking Ente ;-)
 
11:54 AM
@MarcoDaniel :)
 
 
2 hours later…
1:47 PM
@MarcoDaniel: I tried to find some Enten here, but I only found two geese hanging out: dl.dropbox.com/u/74558210/geese01.mp4 and dl.dropbox.com/u/74558210/geese02.mp4 :)
 
 
1 hour later…
3:03 PM
@PauloCereda Nice and I see the winter is very cold ;-)
 
@MarcoDaniel LOL I'm freezing here! 20ºC. :)
 
3:16 PM
@PauloCereda That's the upper limit for me (when not on vacation); more than 20ºC and I am useless.
 
@GonzaloMedina Oh I go only a little further: I think I can resist until 27ºC. :) But not too comfortable. :P
 
3:33 PM
Folks, I have a question:
OK I guess I'll post this on the main site.
 
3:50 PM
There.
I asked the question. :)
 
@KannappanSampath i can't see any benefits of such a solution.
 
@MarcoDaniel It would help other people read the TeX code and also help people post their TeX file, say in arXiv. I think this is helpful if you're colloborating for instance. :)
 
@KannappanSampath I'll try to implement something for you. :)
 
@PauloCereda Thank you. :)
On the one hand, you'd like to type fast and on the other hand, you'd like other people to understand our TeX code. So, I guess an answer to the question would serve as a bridge in my humble opinion.
I am not sure the comment there is relevant.
Firstly, yes, it leads to questions of the same flavour (one question is the same as mine) but the answers are not helpful.
 
4:16 PM
@KannappanSampath: well, I have a test script with some regular expressions that work for your MWE, but the script won't "resist" an attack of a more complex (real world) file. TeX is context sensitive, so it will be difficult to achieve something good that works for all cases. :(
 
@PauloCereda Yeah, I agree. But, I'd be happy if the script can change the font families alone.
 
4432
A: RegEx match open tags except XHTML self-contained tags

bobinceYou can't parse [X]HTML with regex. Because HTML can't be parsed by regex. Regex is not a tool that can be used to correctly parse HTML. As I have answered in HTML-and-regex questions here so many times before, the use of regex will not allow you to consume HTML. Regular expressions are a tool th...

:P
 
@PauloCereda The first sentence is the best: You can't parse [X]HTML with regex. Because HTML can't be parsed by regex
 
@PauloCereda Interesting comments.
BTW, please post your answer and I'll happily accept it. :)
 
@KannappanSampath Let me finish the script, so you can test it. :)
@MarcoDaniel LOL
 
4:58 PM
@KannappanSampath perl is scripting language, which has many uses- in particular, it is ideal for plain text manipulation
 
@cmhughes I have heard of this perl before. I am looking for where to get started.
I am on a win7 machine. So, I should first find an interpreter.
 
@KannappanSampath I'm working on a script for your problem at the moment :) It shouldn't be too complicated (famous last words)
 
@KannappanSampath:
import re
import sys

if len(sys.argv) != 3:
    print('We need two arguments.')
    sys.exit()

inputHandler = open(sys.argv[1], 'r')

mathDictionary = {}
commandDictionary = {}

print('Extracting commands...')
for line in inputHandler:
    mathOperator = re.search('\\\\DeclareMathOperator{\\\\([A-Za-z]*)}{(.*)}', line)
    if mathOperator:
        mathDictionary[mathOperator.group(1)] = mathOperator.group(2)
    newCommand = re.search('\\\\newcommand{\\\\([A-Za-z]*)}{(.*)}', line)
    if newCommand:
 
@cmhughes Thank you. Paulo is also working on one. I'll announce a bounty for this question.
 
Try with python script.py myinput.tex myoutput.tex
 
5:01 PM
@KannappanSampath I think Paulo's is much more likely to be better than mine :)
looks like he's already done it!
 
@cmhughes No, please, do not stop! :) My script is far from acceptable. :)
@KannappanSampath Oops sorry, I thought you were in a Linux box.
 
@PauloCereda ok :) maybe we can both try something so that there are options :)
 
My humble attempt works with \newcommand and \DeclareMathOperator, as long as the new command has no optional arguments, and both definitions end at the very same line. :)
Regex is not suitable to play with TeX.
 
@PauloCereda yeah, mine won't work with that either....
but let's start small and build a monster! :)
2
 
@cmhughes It's quite complicated indeed. :)
 
5:04 PM
@PauloCereda what else would we do on Saturday :)
 
@cmhughes ooh FrankenScript! I like it. :)
@cmhughes LOL
 
@PauloCereda it's alive, alive I tell you! I think we've done this before... :)
 
@cmhughes Oh yeah! :P
 
@Paulo You mean the \newcommand should not take longer than a line?
 
@KannappanSampath Yes. :(
 
5:06 PM
@PauloCereda but that's not a severe restriction IMO.
 
And must have balanced brackets... I mean braces... I mean square... well, this thing here: >> { } << :)
 
But, I request you people to be patient with me as always and help me if I am going to get lost.
(with this installation business.)
@Paulo Can you tell me if I should put your code in a .txt file and save that as a .py file?
 
@KannappanSampath Yep. :)
 
I saved the file as script.py
Now, I click on it and I see it goes off by then! Playing a losing game of Hide and Seek.
 
@KannappanSampath Oh you need to call it from the terminal. :)
 
5:20 PM
@PauloCereda Hmm, seem to be unable to call that. But I am on the command line however...can you please tell me how I'd do it...
 
@KannappanSampath Sure! Are you in the directory with the script?
 
No, I don't think.
:( :(
 
:)
Where did you put your script?
 
On the desktop: More Precisely, C:\Users\KANNAPPAN\Desktop\script
 
OK. Go to the Windows search and type cmd, it will open the command prompt for you. :)
 
5:24 PM
@PauloCereda There...
 
It's appearing: C:\Users\KANNAPPAN>, right?
 
Yeah! Perfect!
 
now type:
cd Desktop\script
and hit ENTER
C:\Users\KANNAPPAN\Desktop\script>
It will appear this, hopefully. :)
 
It says the system cannot find the patch! :(
 
Hold on, script is a directory, or your file?
 
5:26 PM
that is my file.
 
Ah, ok. Go with:
cd Desktop
and hit ENTER
 
@PauloCereda There....
 
We are close! :)
Can you put your test .tex file in your Desktop too?
make sure it does not have spaces, please.
 
@PauloCereda sure...I can.
 
In the name, I mean
How did you save the script? script.py ?
 
5:29 PM
@Paulo Done. Its called test
@PauloCereda yes.
 
@KannappanSampath Cool! Now try to type this:
script.py
and hit ENTER.
 
Done. "It says We need two arguments"
 
Cool! Now type this:
script.py test.tex output.tex
Let see if it works. :)
Fingers crossed.
 
So, it said extracting commands and now it's prompting...
 
See if there's a output file in the desktop. :)
 
5:34 PM
@PauloCereda No... no new file.
 
Did you get a "done" sentence from the script in the command prompt?
 
@PauloCereda No...Is it bad?
 
@KannappanSampath Terribly bad! :) Something wrong happened with my script. :)
C:\paulo\sources>converter.py myinput.tex output.tex
Extracting commands...
Replacing occurrences...
Done.

C:\paulo\sources>
This should be the output. :)
 
Hah! There!
 
ooh! :D
Now lets see if the output is acceptable. :D
 
5:41 PM
So, there's a small discrepancy: \End has been replaced by \operatorname{End}{End} :)
But @Paulo Thank you for helping me!
I know you'll fix this quick. :)
 
@KannappanSampath I'm sorry, but this one was your fault. :) You had to tell me which one to replace. :) \DeclareMathOperator{\Enda}{Endb}, which value you want it to appear? :)
 
@PauloCereda \operatorname{Endb} should replace \Enda
 
@KannappanSampath Ah ok. :)
import re
import sys

if len(sys.argv) != 3:
    print('We need two arguments.')
    sys.exit()

inputHandler = open(sys.argv[1], 'r')

mathDictionary = {}
commandDictionary = {}

print('Extracting commands...')
for line in inputHandler:
    mathOperator = re.search('\\\\DeclareMathOperator{\\\\([A-Za-z]*)}{(.*)}', line)
    if mathOperator:
        mathDictionary[mathOperator.group(1)] = mathOperator.group(2)
    newCommand = re.search('\\\\newcommand{\\\\([A-Za-z]*)}{(.*)}', line)
    if newCommand:
2
@KannappanSampath: try this one, please. :)
 
@PauloCereda Sure...Right away.
Truly Marvelous!
Please post the code!
We are there!
 
@KannappanSampath Let's wait for @cmhughes. :)
 
5:51 PM
@PauloCereda Thanks a lot!
 
@KannappanSampath My pleasure. :)
Sorry for not providing a better code, I suck at Python.
 
@PauloCereda I don't think mine will be very good- I'm struggling with \N in perl at the moment :) I'm looking forward to voting for your answer though :)
 
@cmhughes ooh Perl! Post it, I love Perl. :)
 
@PauloCereda Heh! Please Please Please YOU ARE AWESOME. Most awesome people are humble and you're an example.
 
@PauloCereda me too! Matching \N is proving to be tricky :)
 
5:57 PM
@cmhughes I have no idea how Perl works. :) I want to learn it soon. :)
 
6:44 PM
Answered. That script is so buggy, my God. :)
 
7:07 PM
@PauloCereda +1, looks great! my perl script is coming along- took an embarrassingly long time to escape the \... (hangs head in shame) :)
 
@cmhughes Thanks! :) I'm sure yours will be epic! Sadly, I can only upvote it tomorrow because, well, I'm out of votes again. :P
 
@PauloCereda you're a serial voter :)
 
@cmhughes Me? No way! :P
May 2 at 21:09, by Paulo Cereda
I'm just a harmless serial voter. :P
Oops. :)
 
sorry, can't resist
 
@PauloCereda Bwahahaha, I have two more left!
 
7:18 PM
@PatrickGundlach Gotta love that poster. :D
@percusse o.O
 
saving for david or heiko :)
 
LOL
Hopefully, one of David's TikZ answers. :)
 
@PauloCereda I think I have something in perl- want to test it?
 
@cmhughes Sure! :)
 
haven't posted code in chat before- here goes nothing....
#!/usr/bin/perl

use strict;
use warnings;

# for newcommands
my @newcommandmacro=();
my %newcommandcontent=();

# for DeclareMathoperator
my @declaremathoperator=();
my %declaremathoperatorcontent=();

# to store the new file
my @newlines=();
my $macro;

open(TEST,"test.tex") or die "Can't open test.tex";

# loop through the lines in the TEMPLATE file
while(<TEST>)
{
# loop through the preamble of test.tex file

# check for
# \newcommand...
# and make sure not to match
# %\newcommand
# which is commented
need to make it interface as nicely as @PauloCereda code
 
7:21 PM
Perl regexps look much like LaTeX 3 code
 
@PatrickGundlach or vice versa? :)
 
"WORN" (write once, read never)
3
 
I need to tidy that code up, but I think it works
 
@cmhughes: FANTASTIC!
 
@PauloCereda did it work then?
 
7:23 PM
It works marvelously!
@cmhughes Yes it did! :D
 
@PauloCereda sweet, thanks! I'll tidy it up so that it works in the same way yours does :)
 
@cmhughes Yay! :)
Wait Herbert to write a solution in plain PostScript. :P
 
@PauloCereda lol :)
 
7:43 PM
@PauloCereda Congratulations for your 10k!
 
@egreg Thanks! I feel honoured to be part of the 10k+ guys. :) How's your vacation going? :)
 
@PauloCereda I'm doing nothing. So it's going very well. :)
2
Just some peeks to TeX.SX now and then.
 
Vacation?
 
@egreg Still, you manage to hit rep cap most of the days. :)
 
@PauloCereda Some new answers and some old ones.
 
7:46 PM
@PauloCereda posted! That was a fun project :)
 
@egreg I always wondered how much rep you get as "interest rate" of your 100k rep of answers...
 
@egreg @percusse and I love to revisit your old questions. :)
@PatrickGundlach I love to code in my spare time. :)
 
@tohecz 80 out of 165 today.
 
@PauloCereda I am glad I made my hobby to my profession, now i get paid in my spare time (well, sort of :)
 
8:02 PM
@egreg it seems that from some moment, you'll get just and exactly 200 + 15*(number of new accepted answers) a day, no matter how much you participate
 
8:35 PM
@Paulo I'll set a bounty for the question in 2 days. @cmhughes Thanks to you too.
 
@KannappanSampath Bounty?! Well, I think you should award it to @cmhughes then. :)
 
But sad that @cmhughes has not garnered up votes.
I have upvoted it!
 
I'm out of votes now, but soon his amazing answer will be upvoted. :)
 
My computer is dying... BBL.
 
@KannappanSampath you're welcome- it's pretty limited, but it's a start
 
8:48 PM
@PauloCereda Nice bit of Python... Troubled by the regexen, though
 
@Brent.Longborough Indeed. :) Regex always gives me headaches (not the mathematical model, thankfully), I'll try to "fix" the code as you suggest. I'm still a Python grasshopper. :)
 
@PauloCereda I think the Python re library implements full PCRE, including the non-greedy option. There are a number of interactive regex debuggers available - I use The Regex Coach
 
@Brent.Longborough ooh sweet, thanks! You are a Python Yoda. Or should I say Pyoda? :P
@Brent: It seems the new regex gobbles a } for me.
 
9:29 PM
@GonzaloMedina Tell me which question you are working on so I can cut in :P I don't know how we synced but sorry for the inconvenience.
 
10:06 PM
@percusse No inconvenience at all :-) What surprises me is that we effectively synced today.
@percusse Just in case, I just answered this one: tex.stackexchange.com/a/67740/3954 ;-)
 
 
2 hours later…
11:59 PM
I want to suggest a tag <joke> to mark funny questions like this.
 

« first day (657 days earlier)      last day (4276 days later) »