« first day (741 days earlier)      last day (4192 days later) » 
00:00 - 17:0017:00 - 00:00

12:00 AM
but as I say above if texcount doesn't expand tex macros before counting words then the numbers it returns are a bit suspect
 
@DavidCarlisle OK, now what do I do to delete all the blank lines and leading/trailing whitespace?
@DavidCarlisle I'm starting with trying to remove blank lines, but this isn't working yet: texcount -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -e '/^$/d' > 'count.txt'
or anybody really?
 
@Gnintendo 1) you can put multiple -e commands to one sed
 
@tohecz It's still not giving the desired output, though? Do you know how to accomplish what I want?
 
2) Aren't you missing s in front of the second commnad? I'm not sure, I've never used sed for line removal, I use grep -v for this
 
@tohecz yes
 
12:13 AM
@DavidCarlisle "yes, he's missing it" or "yes, something else"?
 
@tohecz yes to everything you said, multiple -e missing s and simpler ways to remove blanks:-)
 
@tohecz yes, it's impossible to develop code like this ;-)
 
Meow.
 
how would you guys remove the blanks, then? >.<
 
@Gnintendo grep -v '^$'
@DavidCarlisle and with the "triple check" feeling, I can go to bed now ;-)
 
12:15 AM
@Gnintendo you can't have any blank lines the start of your pipe is grep Section which returns lines that contain Section so they are not blank
 
@Gnintendo Maybe you should start with telling what you're trying to achieve? Where do blank lines come from and why are you trying to remove them? All this seems vaguely unrelated to word counting...
 
@PauloCereda Woof WOOF!!!
 
@tohecz <3
Hi Tom! :)
 
@PauloCereda Hello! How are you?
 
@StephanLehmke its past midnight too late for counting words but not too late for playing with sed regex
 
12:17 AM
@tohecz Fine, thanks. And you? :)
 
@Gnintendo What output are you getting from texcount and what are you trying to extract from it?
 
@PauloCereda I'm okay I think, I had a really good dinner with friends (all being mathematiciens including both my supervisors etc.) in a really good restaurant
and my french exam was ok as well I hope
 
@tohecz :)
 
so I'm "tired" now a bit ;p
 
What time is it now for you?
 
12:20 AM
@PauloCereda 1:20 am
@PauloCereda but "tired" here is a polite way to say "drunk" :D
 
@tohecz Oh my! Go to bed right now! :) It's 10:20 pm here and I'm already sleepy. :P
@tohecz oooh! :D
 
how can I use a backslash as text inside the write18 environment?
 
@PauloCereda I was writing an abstract for a converence, my supervisor has to check it and I need to sumbit it on Saturday
@PauloCereda But I gonna follow your orders :) so good night and sleep tight :D
 
@Gnintendo \@backslashchar
 
@tohecz Good night Tom! :)
 
12:23 AM
@PauloCereda G'night
 
@tohecz @PauloCereda was looking for someone who knew french earlier....
 
@DavidCarlisle ooh good idea! :) We might annoy @tohecz in the morning. :P
 
@PauloCereda no get him to agree now while he's drunk
3
 
@DavidCarlisle LOL
 
if there are no macros in the document then this appear to give the word count for \section{abc} if there are any macros hiding the words texcount doesn't seem to return any useful numbers.
$ texcount -sub=section sec.tex | grep "Section: xyz"| sed -e 's/^ *\([0-9]*\)\+.*/\1/'
2
@Gnintendo ^
\section{xyz}

One two

\section{zzz}
 
12:56 AM
hmph
 
1:15 AM
@DavidCarlisle So \@backslashchar{} can work as a drop-in replacement for \ ?
@DavidCarlisle It doesn't seem to be working
to let me use the backslash character in the write18 environment
I'm trying to do:
\immediate\write18{texcount -sub \jobname.tex | grep 'Section' | cut -d'+' -f1 | paste -s -d' ' - | tr -d ' \@backslashchar{}n' > 'count.txt'}
 
1:52 AM
the bad thing about texcount
is it won't count expanded things like \lipsum stuff
:(
 
@Gnintendo Maybe you could use something like this
5
A: Problem copying text from pdf - spaces being stripped

Lev BishopThe original purpose of PDF was to represent printed documents, and there was no explicit way of showing a space character. With modern developments around PDF, people are interested in things like automatic reflow for small screens and structural information for document processing or interfacin...

and then count the space characters?
 
2:13 AM
:s
ctan.org/pkg/xesearch This package description is a lie! D;
"Undefined control sequence. [\XeTeXinterchartoks]"
how do I make something expand before stuff is done to it? like, force it to?
let me just cut straight to the chase
if I do
\begingroup
\lccode`\~=`\ %
\lowercase{%
  \gdef\assignment{\setcounter{word}{0}%
    \catcode`~=\active
    \def~{\space\stepcounter{word}}}}%
\endgroup
\newcounter{word}
\def\endassignment{\stepcounter{word}%
  \marginpar{\arabic{word} words}}
Then it evaluates the number of words before the document is expanded
I want to have it so if I have \lipsum[1] in the assignment environment, then it will still count all the words of the lipsum text generated
how do I fix this?
this would work great if I could just get it to evaluate the expanded text :s
@StephanLehmke Do you know how I can do this? I'm trying to count the space characters
garpoiawjefopaiwghawp;eofjiaw facedesk
cries
Since that solution doesn't use expanded text, the only thing that works is:
\usepackage{xesearch}
\newcounter{words}
\newenvironment{counted}{%
  \setcounter{words}{0}
  \SearchList!{wordcount}{\stepcounter{words}}
    {a?,b?,c?,d?,e?,f?,g?,h?,i?,j?,k?,l?,m?,
    n?,o?,p?,q?,r?,s?,t?,u?,v?,w?,x?,y?,z?}
  \UndoBoundary{'}
  \SearchOrder{p;}}{%
  \StopSearching}
and that means I HAVE to use xelatex, which doesn't fully support microtype, which means ugly typeset documents
:(
there should really be a package for this >.>
 
 
4 hours later…
7:05 AM
@DavidCarlisle Here I am sir!
 
7:33 AM
@Gnintendo The problem is that all the spaces in \lipsum are already set as non-active characters when the package is loaded. You'd have to rescan the tokens to convert them to active characters.
 
8:27 AM
@percusse: youtube.com/watch?v=NXbducqxAG0 We should definitely get the bassoon. :)
 
 
1 hour later…
9:46 AM
@PauloCereda Hahah, that's awesome.
 
 
1 hour later…
10:55 AM
It looks like foreach is a PGF/TikZ thing. However, I cannot find any documention on it in the manual. Can someone help me out?
 
@FaheemMitha It's available by loading pgffor
 
@egreg What is pgffor?
 
@FaheemMitha It's a package in the PGF suite: \usepackage{pgffor} provides \foreach
 
@egreg I see.
 
@FaheemMitha There are many examples of \foreach in the PGF/TikZ manual
 
10:58 AM
Ok, it is on pg 504.
For some reason searching for foreach did not work.
@egreg: Thanks for the tip.
 
11:16 AM
Soundtrack for today. :)
 
11:33 AM
@DavidCarlisle Depending on what the agreement is about, I might not need to be drunk to sign ;)
 
11:57 AM
23 hours ago, by Paulo Cereda
Does anybody here want to help a bird and translate arara messages to French? <3
 
@DavidCarlisle No way! :D The result would be a unique mixture of Czech, French, English and tohecz's language ;]
 
12:24 PM
Can we throw a party here today? :)
OMG someone forked arara! What should I do?
:P
 
12:45 PM
@PauloCereda what?
 
@tohecz The repository was forked. :)
 
@PauloCereda Oh I thought that someone stung a fork into its flank!
 
Hello.
 
@Gigili Hello
 
@Gigili Hiya!
 
12:47 PM
@tohecz I'd call PETA. :)
@Gigili Yo. :)
 
@PauloCereda you should I think :D
 
I got this error, do you know what might be wrong with my document?
  ! Paragraph ended before \align* was complete.
    <to be read again>
                       \par
    l.37

    ?
 
"Hello, it's PETA there? Someone injured my bird!" "What bird?" "An arara!" "And where's it?" "On the internet!"
2
 
@Gigili Probably you have a blank line in your align
 
@JosephWright Ha! Thank you.
 
12:49 PM
@Gigili or you start by align* and end by align, but that should throw different error I think.
@Gigili \par is something like a "nickname" for an empty line, and it's forbidden at some places, e.g. inside displayed math ;)
 
@tohecz Right, I didn't know that. Thanks. The problem is, I only want to write a simple document for my exercises so it looks quite neat, or better than Word documents. But there is a lot to learn about LaTeX!
 
@Gigili Yes, everybody (even @egreg) can learn more about LaTeX ;)
3
 
@tohecz I always say that every day on this site I learn new things
 
@egreg Oh you're here /surprised Hello!
 
@tohecz Just ended my lunch.
 
12:55 PM
@egreg and you sent me four gongs by that message ;)
 
@tohecz Oh sorry, I think I sent you two or three of them as well!
 
@egreg Well, and I'm leaving. I'm gonna try the swimming pool that is 5 minutes walk from here
 
@tohecz Have a good swim!
 
@Gigili pas de probleme
@egreg thanks. I hope that I can buy the ticket and get to know how it works, with my bad French
 
@tohecz Usually one jumps in the water and swims. ;-)
 
12:59 PM
@egreg Yes, but first he has to get the ticket, find out where to change, how to lock the locker, etc. ;)
 
@tohecz Details left as an easy exercise to the interested reader. :P
5
 
kan
@egreg Well! If that is not Linear Algebra, you're allowed to do that. :)
 
@egreg " 'problem has a solution' and he goes to bed"
 
@tohecz <3
 
ok, I go, so see you later!
 
1:34 PM
@tohecz That's why we should have got you to agree last night
 
\begin{align*}
IF x &\in A    GOTO E\\
Z &\leftarrow \Phi(x,x) \\
Y &\leftarrow Y +1
\end{align*}
Why those spaces between A and GOTO E have no effect?
 
@Gigili Spaces are ignored in math mode. You may want to look at the algorithm package for that.
 
@egreg You mean I should use that package to get the desired output for that line?
 
@Gigili That package (there are other similar ones) facilitates inputting pseudocode.
 
@Gigili No, egreg means that algorithm is a package suitable for writing... well, algorithms in general. :) Math mode should not be used for that purpose. :)
 
1:42 PM
Umm, I don't quite understand but OK. thanks.
 
27
Q: What is a good package for displaying algorithms?

badaI found this page with some examples: http://en.wikibooks.org/wiki/LaTeX/Algorithms_and_Pseudocode I'm wondering which one to use. Any suggestions? I'm using other packages too so whichever is less likely to interfere with them is better for me.

 
I think I should Google the package for more information.
@PauloCereda Thank you. That looks a bit complicated.
Are you sure all that is needed to get spaces work?
Or \begin{algorithm, \end{algorithm} would be enough?
 
@PauloCereda: I got the parts of my new PC yesterday and finished assembling it. Now I just have to install Ubuntu (yeah!) and Windows 8 ....
 
Appearance is not that important, now that I think more carefully about it...
 
2:06 PM
@PauloCereda I don't know why but I just got notified of this comment of yours in my inbox and needed to refresh my browser to see it here. Sorry if I sounded impolite.
@PauloCereda Well, I used {amsmath}, should I use {algorithm} instead to get better outputs?
I better ask this question on main.
 
@MartinScharrer Cool! I'm thinking of trying Win8. :) And no Ubuntu for me. :P
@Martin: you have the Slackware profile, I must say. :)
@Gigili Don't worry. :)
 
@PauloCereda Slackware?
 
@MartinScharrer Yep, lots of tweaks. :)
 
kan
2:38 PM
@egreg: I did sudo chmod a+rx /usr/local/texlive/texmf-local/tex/bibtex/bib/local to change the permission as you had asked me to. But, nothing seems to have changed.
 
@kan You should change all the directory permissions along the path.
 
kan
So, is there a way to do this by a single command?
 
-R :)
 
kan
Hmm..., now, even with Sudo, it says there is no such path or directory....
just a sec....
Worked out! Thank you @Paulo for that -R and @egreg for deciphering the problem...
OK. I have now successfully also compiled a file. pdflatex pdflatex bibtex pdflatex pdflatex viewpdf(TeXmakerish).
 
3:04 PM
@kan Or arara. :)
 
kan
@PauloCereda I am setting it up just now...
 
ooh. :)
 
kan
Honestly, I watched that 5 min video on vimeo... it did not look very scary.
 
kan
Do you recommend 3 or 2?
 
3:07 PM
Well, go with 3.0 . :)
 
kan
(given that that is due for release and the rules are not compatible)
 
Go with 3, we are just finishing the manual, so it will be the default version soon. :)
 
kan
OK... I have just finished downloading...
 
kan
3:26 PM
@Paulo ^^ :)
 
3:40 PM
@kan Oh my! <3
You don't need sudo though. :)
 
kan
I could not run arara, making me doubt if I did it right...
Still figuring out...
 
Does just $ java -jar arara.jar work?
 
kan
Yes, it does too...
 
Ah ok. :) My suggestion: choose a folder to hold arara and friends. :)
 
kan
I am still running from the place I downloaded the jar file to. I mean, I'd like to keep that elsewhere...
 
3:50 PM
I see. :)
 
kan
Like in /usr/local/ or something...
 
@kan Well, personally, I prefer /opt, but it's up to you. :)
 
kan
@PauloCereda There too... Like the TeXLive installation... I am OK.
 
I'd put the arara folder inside /opt, that is, /opt/arara.
Move the arara3.0RC3 folder to /opt and rename it arara, for easier updates later. :)
Then, in the terminal, do
echo 'export PATH=/opt/arara:${PATH}' > ararasetup.sh
sudo cp ararasetup.sh /etc/profile.d/
Then download this file github.com/downloads/cereda/arara/arara (named arara) and put inside /opt/arara. To finish the job, do:
sudo chmod +x /opt/arara/arara
 
kan
Still in Step 1...
 
3:55 PM
And we are done. :)
oops. :)
 
kan
Let me figure out how to do things over terminal... I don't enough permission for the /opt/
 
sudo cp arara3.0RC3.zip /opt/
cd /opt
sudo unzip arara3.0RC3.zip
sudo rm arara3.0RC3.zip
sudo mv arara3.0RC3 arara
sudo echo 'export PATH=/opt/arara:${PATH}' > ararasetup.sh
sudo mv ararasetup.sh /etc/profile.d/
cd arara
sudo wget github.com/downloads/cereda/arara/arara
sudo chmod +x arara
Logout, login. :)
 
kan
How sweet of you...
Please add this into the manual... "Steps to do if you are a newbie..."
 
No, I'm evil. <3
 
kan
@Paulo I am always getting an error: Omitting Directory... (I unzipped into my downloads folder and got rid of the zip file...)
 
4:06 PM
@kan Could you redownload the ZIP file and try to unzip it via CLI?
Ok, try this:
 
kan
@PauloCereda Sure....
 
cd /opt
sudo wget github.com/downloads/cereda/arara/arara3.0RC3.zip
sudo unzip arara3.0RC3.zip
sudo rm arara3.0RC3.zip
sudo mv arara3.0RC3 arara
sudo echo 'export PATH=/opt/arara:${PATH}' > ararasetup.sh
sudo mv ararasetup.sh /etc/profile.d/
cd arara
sudo wget github.com/downloads/cereda/arara/arara
sudo chmod +x arara
@kan: ^^
 
kan
Arara is now born into my computer.
 
ooh!
logout and login, then open your terminal and type arara. :)
When 3.0 final is released, just replace the old arara.jar file in /opt/arara by the new one I'll provide. :)
Better, remove /opt/arara and /etc/profile.d/ararasetup.sh because arara will be on TeX Live and available via tlmgr! \o/
(^^ don't do this now) :P
 
kan
@PauloCereda OK! :-)
 
4:13 PM
Did it work? :)
 
kan
Just a second...
ararasetup.sh: Permission Denied... What?!!
 
hm?!
what did you do?
 
kan
sudo echo 'export PATH=/opt/arara:${PATH}' > ararasetup.sh --- I think this is the step that is erring....
 
ok, let's do the boring way. :)
Open a second terminal tab.
Preferably in your ~ folder
then
echo 'export PATH=/opt/arara:${PATH}' > ararasetup.sh
sudo mv ararasetup.sh /etc/profile.d/
Then go back to the other steps. :)
 
kan
Should the shell script just contain this line?
export PATH=/opt/arara:${PATH}
 
4:19 PM
Yes. :)
 
kan
Oh the whole process has been insightful...
 
kan
Now, I understand that we have just created a script which when I type arara will be able to recognise what I am telling. Is this right?
 
Actually, no. :) We simply added the /opt/arara folder to the path. :)
sudo wget github.com/downloads/cereda/arara/arara
sudo chmod +x arara
These two lines inside /opt/arara do this. :)
 
Why here "we have" is also in bold? Am I doing it right?
Since $g(x_1,\dots,x_n)$ is primitive recursive like $r(z)$, by \bf{Normal Form theorem} we have:
 
kan
4:31 PM
@Gigili You would put {\bf Normal Form Theorem} so that the modifier applies only to those in the paranthesis. Actually use: \bfseries.
 
Let me see.
@kan Yeah, that works. Thanks.
 
kan
@PauloCereda Oh, I see. My bad. I did not follow then. I am just back.
Let me experiment.
 
@Gigili \bf is a declaration, opposed to \textbf, which is a command, that's why everything is set to bold after it. You can group it inside braces, or use \textbf. And \bf is a deprecated obsolete declaration, prefer \bfseries instead, or its command equivalent \textbf{my bold text here}. :)
 
@PauloCereda New album from Hiromi Uehara
 
@percusse Awesome (weird hairdo though)! :)
 
4:41 PM
@PauloCereda Got it, thank you.
 
@PauloCereda Leave some room for personal twist :)
 
@percusse haha the drummer is a genius. :)
 
@PauloCereda No he is Simon Philips (famous for Toto and The Who) :P
 
@percusse ooooh!
 
@PauloCereda Well, not Keith Moon anyways but I think it was in the 80s
 
4:46 PM
@percusse I'll confess. I have a CD from Hiromi Uehara. :)
 
@PauloCereda Is it the Voices?
or Voice? something like that
@PauloCereda You are too good. I'll borrow your HDD for a day :P
 
@PauloCereda Ah OK.
 
I need to be in the mood for jazz fusion. :P
 
@PauloCereda It's my debug mode music
 
4:50 PM
@percusse Oh my! :)
 
Umm, sorry. I have another question!
\begin{align*}
\text{\[A\]  IF } HALT(x,x) \text{ GOTO } A\\
&\Downarrow (counter(x))\\
\text{\[A\]  IF } HALT(counter(x),counter(x)) \text{ GOTO } A\\
\end{align*}
I got this error:
! LaTeX Error: Bad math environment delimiter.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.84 \end{align*}

?
 
@Gigili Sorry you have filled your quota today :) Please buy the premium version :P
 
@percusse Hih. Luckily we don't have to pay on SE.
 
@Gigili Are you trying to make a pseudo-code? Because many of these won't work in mathmode.
 
@Gigili When you use \[ in text mode, you are entering math again. :)
Remove the escapes for [ and ].
 
4:52 PM
But I had the same piece of quote a few lines before this one and they worked:
 
lets take a break
 
\begin{align*}
\text{IF } x &\in A \text{ GOTO } E\\
Z &\longleftarrow \Phi(x,x) \\
Y &\longleftarrow Y +1
\end{align*}
What's the difference?
 
@PauloCereda Yes.
 
@Gigili \[ ... \] means make a displaystyle math equation. and your second example it's only IF
 
4:54 PM
Sorry, but my eyes hurt when I see an algorithm being written in math mode. :)
 
@PauloCereda Still the same error.
 
@GarbageCollector Very nice. :)
 
@PauloCereda :-)
 
@percusse Uhum.
Umm, then I'll ask on main!
 
\begin{align*}
\text{[A]  IF } HALT(x,x) \text{ GOTO } A\\
&\Downarrow (counter(x))\\
\text{[A]  IF } HALT(counter(x),counter(x)) \text{ GOTO } A\\
\end{align*}
This works.
My turn!
Damn you Youtube, your preview image ruined everything!!!!!!
 
4:57 PM
hehehehehehe
not clicking that
 
Do it.
I know you want.
 
I've been rickrolled enough by you
 
@PauloCereda Yay! Thank you, thank you.
 
:D
 
4:58 PM
@percusse Not this time. :) You can be banana-phoned instead. :)
 
Umm, those '['s are hardly recognizable!
 
00:00 - 17:0017:00 - 00:00

« first day (741 days earlier)      last day (4192 days later) »