@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?)
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.
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.
@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?
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?
I'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...
What 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/...
@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
@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. :)
@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...
\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.
@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.
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>}.
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.
@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.
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).
For foreign students, there are some institutions which give scholarships to very gifted students (or they get scholarships from their home countries).
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 ;-)
@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.
@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.
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.
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?
How 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...
You 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...
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)}
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.
@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)
@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?
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 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'`"
@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)