« first day (740 days earlier)      last day (4197 days later) » 
00:00 - 19:0019:00 - 00:00

7:00 PM
@kan Regular cleaning stuff. :)
 
kan
@PauloCereda Oh..OK.
I was asking if you were around because I wanted to ask for some help from you (for instance, you sorta know the way I have installed TeXLive here).
 
Sure. :)
 
kan
To put .sty file, one has to put it into the local place and make it executable and run mktexlsr... vaguely speaking.
 
No, not make it executable. :)
You need to put into your local tree, run mktexlsr on that tree and done. :)
 
kan
@PauloCereda oh, I see... but I remember from old experience otherwise... just a sec...
Oct 20 at 7:20, by egreg
@kan You probably didn't set permissions that allowed all users to descend in the directory; when you create one in texmf-local always ensure that its permissions are drwxr-xr-x; if they aren't, use that magic command (without -R and the complete path to the directory); so, for example, sudo chmod a+rx /usr/local/texlive/texmf-local/tex/latex/local
But it is something else though. Sorry for misrememebring.
OK. Now, I want to add a .bib file. So, what do I do?
(Find the directory for BibTeX and put the file in there and run what?)
 
7:09 PM
bibtex/bib/local I guess. :)
Inside your tree, of course. :)
 
kan
@PauloCereda Yes... but should I run something over the tree afterwards?
 
Yes. :)
mktexlsr :)
 
kan
Ooh! <3. Thank you.
 
Give it a try and tell me if it works. :)
 
kan
Hm...
It fails. :(
Undefined Citations.
(I ran BibTeX and pdflatex enough number of times.)
Hello @ymar!
 
7:17 PM
@kan hey, how are you doing?
 
kan
It's been really long!
 
It has.
 
kan
@ymar I am doing fine! How are you?
 
I'm OK. Thinking about semigroups instead of manifolds, which I should be doing.
 
kan
(Honestly, I was thinking of you today! It's the time of the year when the whole world does Linear Algebra.)
@ymar Hope you are doing your university courses really well.
 
7:19 PM
:-) I've been looking at m.se today, and there are many questions about la
No, I'm not. :-)
 
@GonzaloMedina then no, now yes
 
kan
@ymar :(
 
how are your courses going?
 
kan
BTW, do you know a cute proof of the uniqueness of RREF?
 
it's your second year, right?
 
kan
7:21 PM
@ymar My courses are on well.
I did the Algebra course well this time (as opposed to the last time).
@ymar Yes. Remember, how I slogged through LA? Still that is a beast.
 
it seems they are having trouble with the flood of questions on m.se. Many questions on the main page are unanswered.
 
Maths! Maths! Run, run, run for the hills! scream followed by explosion
4
 
:-)
 
kan
(Hope we are not spamming this room.)
 
7:25 PM
@kan I'm not sure I have a cute proof. Do you have one?
 
kan
@ymar Well, I looked up on the internet. I found two... I understand one and the other is magical.
 
let me see it then :-)
I want some of that magical reduced echelon goodness
 
kan
Shall we move over to another room if you don't mind?
 
sure
 
@kan yes leave this room clear for cricket questions!
6
 
7:28 PM
@kan: You guys are not spamming here. :)
 
kan
I seem to be unable to create a room.
@PauloCereda If that's the case, shall we continue here?
 
@kan Sure. :)
 
@kan I'm not sure I understand the first one. Why are the matrices either of the first form or the second one?
 
kan
I don't even know what are r' and s'!!
 
7:40 PM
well, they're vectors
 
kan
I can see the I_n part though...
Then, I can explain:
Let's work with the notations in the link. Then, the columns chosen from R for constructing R' are some columns to the left of the column which is "defective" and the "defective" column.
 
oh, I get it now.
 
kan
Hah! OK.
 
sorry, I'm a bit tired. I had to sit through the worst lecture in my life today.
 
kan
@ymar Sad. :(
Well, I would be glad to discuss these things when you're around...
 
7:45 PM
what things?
oh, the proof?
 
kan
Linear Algebra things... the beast. And the proof too.
And, my pet peeve about the magic proof is:
he is using a fact about system of equations which will be a consequence of this theorem I think.
 
we can talk now if you want because I don't think I'm going to do anything sensible with my time otherwise. But then we should probably go some place else. People are nice here, but why strain their patience. The CA room is free.
 
kan
Ok. I succeeded in creating a room. There too is OK.
 
OK, then let's go to yours. Where is it?
 
kan
 
8:06 PM
Hello.
I want to typeset my exercises, it was recommended in an answer on main to install TeXnicCenter.
 
@Gigili hi
 
But I fail to get output from whatever I type there.
What should I do?
 
@Gigili Ive never used that editor but what do you mean by failed to get output? You should have got a log file when latex is run, what error messages did it have?
 
Do you have a TeX distro installed? :)
 
@DavidCarlisle Umm, nothing. I mean, f5 doesn't work at all.
@PauloCereda What is that? =)
 
8:10 PM
@Gigili as @Paulo said, do you have tex installed? F5 presumably is just trying to run the tex processor but if you don't hav e t it won't run
@Gigili tex is not a word processor, it needs a text editor and then an edit-compile-view cycle more like using a programming language and a compiler
 
The answer I was referring to didn't say that I have to install one of those too!
 
@Gigili hang on I'll find a question on site with an introduction to the basic tex setup, unless @PauloCereda knows one already...
 
Could you please tell me what exactly should I do now? I should install a TeX editor now? what is this one that I have installed on my computer? The compiler thingy?
@DavidCarlisle Thank you.
 
there is this but I think there is a better one I have seen
27
Q: What are TeX and LaTeX?

Robert S CiaccioI'm surprised no one else has asked this question. It's not explained very well in the FAQ or site descriptions either. I know many of you will think "LMGTFY", "RTFM", or "ask wikipedia", but I'd rather get the answer straight from the experts. I'm so green I don't even know what to tag th...

@Gigili this review of tex IDEs
159
Q: LaTeX Editors/IDEs

hayalciWhat editors/IDEs are available for easing the process of writing TeX/LaTeX documents? Please state some useful features like code completion, spell checking, building final DVI or PDF files, etc.

but basically you need to get TeX, either miktex or texlive are the usual packaged tex distributions, miktex is specific to windows texlive has variants for mac/linux/windows/...
 
So, I should install Vim with LaTeX-suite, for instance? And that would be enough?
 
kan
8:20 PM
@Gigili Install MikTeX and TeXmaker.
 
@Gigili if you just have texniccenter you just have the source editor with no program to process your source files, no vim is another editor you need to get tex. I haven't used it but the most windows oriented tex setup is probably miktex
 
Ah OK, then I'll have to install MikTeX. Thank you for your time @DavidCarlisle.
@kan I will, thanks.
 
@Gigili: The most important part here is the TeX distribution - TeX Live or MiKTeX. A TeX distribution "has" this TeX thing. :) Then you can use an editor - TeXnic Center or other - as a "frontend" to deal with the TeX thing. :)
 
@PauloCereda Got it, thank you.
 
@PauloCereda you can even use emacs as the editor!
 
8:25 PM
@DavidCarlisle No way! :)
Or arara as automation tool! :)
Does anybody here have a 3DS? :)
 
@PauloCereda does it run emacs?
 
@DavidCarlisle I know my Wii does. :)
 
9:07 PM
@cmhughes: Well I figured out my issue and as expected it was one of those Duh moments. Well, actually a \the moment. I needed to use \the\numexpr instead of \numexpr, and now it all works... Thanks for your help yesterday...
 
Is it true that the university tuition fee is free in Germany?
 
Could you help me to make this look better?
\documentclass{article}

  \usepackage[utf8]{inputenc}
  \usepackage[T1]{fontenc}
  \usepackage{geometry}
  \geometry{a4paper}

  \usepackage[frenchb]{babel}
\begin{document}
Page 77, number 1:
 I think that one is about the fact that for a function there  are many programs . Infinitely many.
 Like you can add the line $Y \leftarrow Y$ (the labeled one, I  guess) to a program without changing what it does.
Each number \textbf{ is} the number of exactly one program, but it's not true the other way around.
The number 2 part!
Does "\\" work as new lines?
 
@Gigili You mean something like Number $2$:?
@Gigili better to use \par, I think.
 
And I don't know why the first line after number 2 does not start where the next line does.
@PeterGrill Thanks.
 
Number $2$:

$Z \leftarrow \Phi(x,x)$\par
$Y \leftarrow Y +1$
 
9:17 PM
@PeterGrill Great, thank you. I need more \par's for more new lines?
 
@GarbageCollector Depends how exactly you define that. In comparison with US or other countries where you basically pay the total cost of tuition, it is practically free.
 
@Gigili Or just leave a blank line. Also you might want to use the align environment...
 
@PeterGrill Leaving blank lines doesn't work or so it seems.
 
Also, it depends on the german federal state you're studying in. In a lot of states it's actually free (you pay only an administrative fee for which you get, for instance, free access to public transport).
 
@Gigili If you are trying to leave some space between the lines, multiple \pars (or multiple blank lines) won't help. I'd use something like \par\medskip, or \smallskip, or \bigskip. There is always \vspace{<length>}.
 
9:20 PM
@StephanLehmke It is very interesting. Thank you.
 
In some states you pay a tuition fee of approx. 1000€ per year. Sometimes only after you have been inscribed for longer than the "normal" period for this subject.
 
@PeterGrill Right, \par\medskip works. Thank you.
 
@StephanLehmke Are there also scholarships that cover not only tuition fees but also the accomodations?
 
@PeterGrill How should I use \begin {aligned}?
 
kan
9:23 PM
\begin{align}
 
I mean, I got an error using it there.
 
@GarbageCollector This is probably not as organized as it is in a country like the US where a lot of people are practically excluded from studying if they have no scholarship.
 
@kan Umm, got the same error.
 
kan
Are you using amsmath?
 
@Gigili Include amsmath package:
Number $2$:
\begin{align*}
Z &\leftarrow \Phi(x,x) \\
Y &\leftarrow Y +1
\end{align*}
 
kan
9:25 PM
include it as: \usepackage{amsmath}
 
Numerous examples on this site.
 
Ah right, I think the package is missing.
 
For german residents, there is "BAFöG", which is a credit given to people who (and whose parents) can't pay for their sustainance during studies. Depending on your case, you have a lot of time for paying back (and you don't always have to pay back everything).
 
Thank you @PeterGrill, @Kan.
Good night, everyone.
 
For foreign students, there are some institutions which give scholarships to very gifted students (or they get scholarships from their home countries).
 
9:29 PM
@StephanLehmke Is living in Munich cheaper than others?
 
But in practice, with student's housing and a lot of tax incentives for students (plus free health insurance &c.), the cost of living isn't that high. 500-800€ per month should suffice in most places, and usually (if you are allowed to work) it's easy to earn this with a part-time job.
@GarbageCollector Unfortunately, in Munich it's exceptionally expensive. So if you want to study there you better have some savings ;-)
 
@PeterGrill you're welcome, glad you got it sorted :)
 
But that's not really neccessary. In Berlin for example the situation is completely different.
 
@cmhughes The basic problem is sorted (using \the\numexpr), but now I am reverting to your solution as it seems that there is some issue with using \let in .fmt, even though I know I have used it elsewhere, am having issue with just this ONE thing. If the counter does not work, I'll post a question.
 
@StephanLehmke: Thank you for your information. I got shocked to know that living cost in Munich is expensive. :-)
 
@PeterGrill you can do pretty much anything in code dumped to a format file except ship out pages.
 
@DavidCarlisle Yeah, something else is going on... Luckily I am way re-capped so have another few hours that I can devote to this...
 
@StephanLehmke It has been bookmarked in my profile. :-)
@StephanLehmke: Is it necessary to learn German to enter a university?
 
@GarbageCollector I think so. Germany is unfortunateyl quite provincial in this respect. In fact, even in computer science (which I studied some 20 years ago) it has become common to have all material in german, so that sometimes students get their master's without any exposition to english inbetween.
 
@StephanLehmke Last question: Is there a German language school providing relatively low tuition fee?
 
9:45 PM
I think there are universities which offer special "international studies" which are also a bit more oriented towards international scoring systems, but then you won't really meet germans there.
Well for German there is the "Goethe Institut" which should exist in a lot of countries.
But I don't know much more, especially not about fees.
Btw., you don't have to star everything I write ;-)
7
 
@StephanLehmke OK. Because there is no upvote button. :-)
 
@StephanLehmke That one (the one I'm quoting right now) was me. :P
 
10:11 PM
Is there some way I can dynamically count the number of words in a certain expanded section of a document and include that count in another part of the document?
 
15
Q: Environment that counts words inside

DmitryHow can I create the environment that could count words inside itself? More specifically, I want to write an enviroment called "assignment" such that the code \begin{assignment} Some words here. \end{assignment} will result in "Some words here." in the text and, say, "3 words" in a margin para...

5
A: Dynamically count and return number of words in a section

MarcoYou asked for a LaTeX solution, but for completion I'll provide a ConTeXt solution as well, it might be helpful for someone. It does not rely on external programs. \startluacode userdata = userdata or { } function userdata.wordcount(listname) filename = file.addsuffix(tex.jobnam...

 
10:30 PM
I can't for the life of me get " \immediate\write18{texlive -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -n \thesection p > 'count.txt'}" to output to count.txt
err
texcount*
\newcommand\wordcount{
  \immediate\write18{texcount -sub=section \jobname.tex  | grep "Section" | sed -e 's/+.*//' | sed -n \thesection p > 'count.txt'}
(\input{count.txt}words)}
it doesn't output to count.txt
I'm compiling with:
% arara: lualatex: { synctex: true, shell: yes }
% arara: biber
% arara: lualatex: { synctex: true, shell: yes }
% arara: lualatex: { synctex: true, shell: yes }
so write18 should be working fine
@PauloCereda Right? shell: yes should enable write18? I'm using RC3
 
@Gnintendo Maybe try prefixing echo so you see what the result of expanding your string really is...
 
@Gnintendo Perfect. :)
 
Or replace \immediate\write18 by \typeout and look in the log file.
 
@Gnintendo: I'm flattered. :)
 
:P
 
10:35 PM
@Gnintendo Furthermore, note that the space will vanish in \thesection p, dunno whether this is intended.
 
I'm just trying to get the example working before I tweak it for my needs
@StephanLehmke It doesn't appear to output...anything, look:
{c:/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}] [2] [3] [4]
Overfull \hbox (10.89897pt too wide) in paragraph at lines 87--87
[][]\EU2/LinuxLibertineO(0)/m/n/10.95 Cur-abitur tel-lus magna, port-ti-tor a,
com-modo a, com-modo in, tor-tor. Donec in-ter-dum. Prae-sent scelerisque.
 []

texcount -sub=section artpaper.tex | grep "Section" | sed -e 's/+.*//' | sed -n
 1p > 'count.txt'

! LaTeX Error: File `count.txt' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: txt)
that's with using \typeout
If I manually create a blank count.txt file, I get this:
texcount -sub=section artpaper.tex | grep "Section" | sed -e 's/+.*//' | sed -n
 1p > 'count.txt'
(./count.txt)
Package atveryend Info: Empty hook `BeforeClearDocument' on input line 92.
 [5]
Package atveryend Info: Empty hook `AfterLastShipout' on input line 92.
 (./artpaper.aux)
Package atveryend Info: Executing hook `AtVeryEndDocument' on input line 92.
Package atveryend Info: Executing hook `AtEndAfterFileList' on input line 92.
Package rerunfilecheck Info: File `artpaper.out' has not changed.
Does anybody have any ideas? D;
 
@Gnintendo No, sorry. The command string looks OK AFAICT.
 
right
do you know how I can specify the file path without LaTeX flipping shit over a backslash?
 
@Gnintendo use a proper directory separator like / not this DOS abomination of using \ (almost all windows apis accept / certainly all tex one but most microsoft ones as well)
 
and that will work fine?
 
10:43 PM
@Gnintendo yes
 
well, presumably
 
@Gnintendo gladly, / works in all OSX, Linux and Win@#$%ws
 
@Gnintendo Uh, are you on Windows? Does the command string work at all? Did you try pasting texcount -sub=section artpaper.tex | grep "Section" | sed -e 's/+.*//' | sed -n 1p > 'count.txt' into a command shell? What happens?
 
one sec, I think my grep isn't pathed
I hate Windows :s
 
11:04 PM
@PauloCereda Not so simple. One needs pictures with a good distinction between brightness and darkness of fore- and background. This one worked nice:
               :+32DQBNNNNNEQDec):`'
           `+0NMWWWWWWWWWWWWWWWWWWWWND3!`      ';!lIccr)<^'
        'iBMMMMMMMMMMMWMWMMMMMMMWWMWMMMMWNl'!2NMMMWWMWMWMMMR3;
      'JMMMMMMMMMNSqBNqk2wNMMMMMWWMWMMME);YMWWMMMMWWMWMWMMMWWMEi
     'EMMSMEwrc7.          '!2MMWWMWMM?'JMWMWWMMBet)!!)cZMMWWMWMN)
     ';.; ^:^I^!')2i' ';'      cUueZL;'RWMWMWNv'          ;2MMWMWM2
     5Z!l  : !' ^3Cc^'. ';;;^':!JNME^'BMWMWM2               `QWMWMM2
    >MMMNc' '' ``.;)!^+;  '5Z0dExrNJ aMMWMWJ                 'pMWMMM;
    2MMMMMMpo?+;>!));`^;;;;;;;;lNM2^ NMMWMN                   ;MWMMM2
 
@Speravir Oh my! <3
 
texcount -sub=section artpaper.tex | grep "Section" | sed -e 's/+.*//' | sed -n is just outputting what just running "sed" outputs
lesigh
then it tells me it couldn't flush stdout :|
There has to be something wrong with that
it won't even run in cygwin :s
ops, texcount -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -n \thesection p > 'count.txt'
lolol
cool, now it's just mad because "sed: can't find label for jump to `hesection'"
we're making progress :D
 
@DavidCarlisle Mixing centered equations with aligned ones: where shall we arrive at?
 
@egreg Word
 
@DavidCarlisle :-)
 
11:15 PM
@DavidCarlisle It could be the correct answer for that XY question.
 
awefjweiopfawipejf: sed: can't find label for jump to hesection'`
 
@egreg xy qn
 
Are there known issues using TeXworks and -fmt option? Works fine in TeXShop? Both are executing pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012), but with TeXworks I get "/usr/texbin/pdflatex: unrecognized option `-fmt <filename>". Is this one of those options that require a double dash? Or do these options have to be in a certain order?
 
@Gnintendo that's because you didn't hide the backslash from the shell
 
d'oh
how am I going to
what is this I don't even
lesigh
/me adds 's
 
11:19 PM
@Gnintendo well I lost the context but if you want sed to see the \ you'll need \\ or the whole string in ` quotes to prevent the shell taking it as an escape char, then of course if it's in a regex you'll need to further double it as it's a regex escape char
 
@DavidCarlisle Are you saying I should be doing texcount -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -n '\\thesection p' > 'count.txt'
?
or 'texcount -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -n ''\thesection p'' > 'count.txt''
those still give me the " sed: can't find label for jump to hesection'`"
 
@PeterGrill Use --fmt=MyPreamble
 
facedesk facedesk facedesk
 
@PeterGrill In the "program" box write pdflatex, in the arguments lines write --fmt=MyPreamble as the first line and $fullname as the second line
 
@egreg Hmmm.. How come the equal sign was not needed with TeXShop?
Now I get:
 
11:32 PM
@PeterGrill I suspect they have different ways of passing the command line to the OS
 
kpathsea: Running mktexfmt ../../../Templates/MyPreamble.fmt
I can't find the format file `../../../Templates/MyPreamble.fmt'!
 
@DavidCarlisle Do you know why that command isn't behaving as expected?
 
so must have some other problem... Works fine with TeXShop though!!
 
@PeterGrill Of course the .fmt file should exist. I didn't check what happens if it lives in another directory.
Let me try.
 
@egreg never mind. Got it working... Thanks (again).
 
11:35 PM
@PeterGrill The test worked with --fmt=../MyP/MyPreamble
 
@egreg Yeah (embarrasing), but I was at the wrong hierarchy level for the earlier TeXworks test... The equal sign was the key...
 
@Gnintendo oh hangon that \thesection was supposed to have been expanded by TeX un tthe write18? so ignore my comment about the shell
 
ok
I was like lolwhat
 
@Gnintendo so I never heard of texcount but ran it on some document
and got
texcount -sub=section ts3.tex | grep Section
0+4+0 (1/0/0/0) Section: First section with\\linebreak
0+1+0 (1/0/0/0) Section: Unnumbered
0+1+0 (1/0/0/0) Section: Three
which number are you trying to extract?
 
11:55 PM
@DavidCarlisle I'm getting closer
 
does texcount not expand macros in the source file? using a document using blindtext it returns 0 for most word counts, what's the point in that?
 
the first problem was there was no words to count so it freaked
now I'm manually defining a break and stuff
and so far I have this:
texcount -sub=section \jobname.tex | grep "Section" | sed -e 's/+.*//' | sed -n \thesection p > 'count.txt'
except
I removed the second sed part
I'm not sure what it was supposed to be doing in the first place, do you know?
@DavidCarlisle I'm not familiar enough with sed...could you explain what the sed -n was supposed to be doing?
also, to make the output useful to me I just need to figure out how to trim the leading/trailing spaces and linebreaks
 
@Gnintendo looks like a syntax error to me, if it were sed -n /\thesection/p with no space then the bit between / / woul dbe taken as a regex identifying a line to be printed with p so it's essentially grep \thesection (ie printinting the line with the desired section number)
 
00:00 - 19:0019:00 - 00:00

« first day (740 days earlier)      last day (4197 days later) »