[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LaTeX/Emacs problem
From: |
Pierre Lorenzon |
Subject: |
Re: LaTeX/Emacs problem |
Date: |
Fri, 11 Jan 2013 05:24:07 +0100 (CET) |
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Subject: Re: LaTeX/Emacs problem
Date: Fri, 11 Jan 2013 00:13:22 +0100
>
> Am 10.01.2013 um 23:20 schrieb Fred Krogh:
>
>> Here is an example
>>
>> \documentclass{article}
>> %\usepackage{hyperref}
>> \begin{document}
>> \Nothing to see here folks.
>> \end{document}
>>
>> Run latex from inside emacs and this will flag the "\Nothing" and position
>> the cursor on that line. Remove the % at the start of the second line,
>> delete the *TeX Help buffer, do the same, and you will get "Error occured
>> after last TeX file closed" and nothing else.
>
> Not using GNU Emacs I get in the console:
>
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> entering extended mode
> (./Krogh.tex
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang,
> nohyphenation, german-x-2012-05-30, ngerman-x-2012-05-30, ukenglish,
> usenglishmax, french, friulan, german, ngerman, swissgerman, romansh, loaded.
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))
> (./Krogh.aux)
> ! Undefined control sequence.
> l.4 \Nothing
> to see here folks.
> ?
> ! Emergency stop.
> l.4 \Nothing
> to see here folks.
> ! ==> Fatal error occurred, no output PDF file produced!
> Transcript written on Krogh.log.
>
> And this is the output from AUCTeX 11.86 from inside GNU Emacs 24.3.50:
>
> Running `LaTeX' on `Krogh' with ``pdflatex -interaction=nonstopmode
> "\input" Krogh.tex''
> This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012)
> restricted \write18 enabled.
> entering extended mode
> LaTeX2e <2011/06/27>
> Babel <v3.8m> and hyphenation patterns for english, dumylang,
> nohyphenation, german-x-2012-05-30, ngerman-x-2012-05-30, ukenglish,
> usenglishmax, french, friulan, german, ngerman, swissgerman, romansh, loaded.
> (./Krogh.tex
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/article.cls
> Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
> (/usr/local/texlive/2012/texmf-dist/tex/latex/base/size10.clo))
> (./Krogh.aux)
> ! Undefined control sequence.
> l.4 \Nothing
> to see here folks.
>
> [1{/usr/local/texlive/2012/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
> (./Krogh.aux) )
> (see the transcript file for additional
> information)</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
> Output written on Krogh.pdf (1 page, 12041 bytes).
> Transcript written on Krogh.log.
>
> LaTeX exited abnormally with code 1 at Thu Jan 10 23:39:58
>
> Quite similar behaviour. (I do need to update my hyphenations configuration!
> I'll never use Friulan or Rumansh!) When I then choose from AUCTeX's Commands
> menu the item "Next Error" it shows me that error and open a buffer with that
> contents:
>
> ERROR: Undefined control sequence.
>
> --- TeX said ---
> l.4 \Nothing
> to see here folks.
> --- HELP ---
> TeX encountered an unknown command name. You probably misspelled the
> name. If this message occurs when a LaTeX command is being processed,
> the command is probably in the wrong place---for example, the error
> can be produced by an \item command that's not inside a list-making
> environment. The error can also be caused by a missing \documentclass
> command.
>
> When I then remove the comment sign, save, and run LaTeX again, I get the
> same error. When I then choose the same command, AUCTeX asks me for the
> master file. When I give the correct answer, it opens *TeX Help* buffer with
> the same contents – and buries the buffer with the TeX file with an empty
> "TeX Live 2012" buffer. This latter effect certainly is not needed.
>
>
> When I open an empty TeX file under the control of AUCTeX, it asks me for the
> master file. I show it the master file by pressing the RETURN key. I insert
> your example and get as buffer and file contents:
>
> \documentclass{article}
> %\usepackage{hyperref}
> \begin{document}
> \Nothing to see here folks.
> \end{document}
>
> %%% Local Variables:
> %%% TeX-master: t
> %%% End:
>
> With the commented line the behaviour is as before: OK. With the uncommented
> line, the behaviour is as before: not OK!
>
> This is a bug in AUCTeX. I think so as I already said in my
previous message. Maybe not in auctex in fact but in this
emacs librairy designed to parse process output. Maybe not
really a bug but a non suitable configuration (almost the
same !)
> It's even two bugs: why does it ask
> me for the master file? The opened file in the buffer is
> *obviously*
Not for auctex until the local variable TeX-master has not
being correctly set. But auctex behavior can be customized at
this point I think.
P.
> the master. To report it, choose "Report Bug"
> from the Preview menu!
>
> Similar behaviour in GNU Emacs 24.2 launched with -Q. I consider reporting
> mine tomorrow. I'll have to read the documentation to be sure that it's not
> me who is buggy.
>
> --
> Greetings
>
> Pete
>
>
> "Evolution" o __o _o _
> °\___o /0~ -\<, ^\___ /=\\_/-%
> oo~_______ /\ /\______/ \_________O/ O_______________o===>-->O--o____
>
>
- Re: LaTeX/Emacs problem, (continued)
- Re: LaTeX/Emacs problem, Peter Dyballa, 2013/01/06
- Re: LaTeX/Emacs problem, Fred Krogh, 2013/01/07
- Re: LaTeX/Emacs problem, Fred Krogh, 2013/01/07
- Re: LaTeX/Emacs problem, Fred Krogh, 2013/01/07
- Re: LaTeX/Emacs problem, Pierre Lorenzon, 2013/01/07
- Re: LaTeX/Emacs problem, Peter Dyballa, 2013/01/07
- Message not available
- Re: LaTeX/Emacs problem, Fred Krogh, 2013/01/07
- Re: LaTeX/Emacs problem, Peter Dyballa, 2013/01/07
- Message not available
- Message not available
- Re: LaTeX/Emacs problem, Fred Krogh, 2013/01/10
- Re: LaTeX/Emacs problem, Peter Dyballa, 2013/01/10
- Re: LaTeX/Emacs problem,
Pierre Lorenzon <=