Re: platex as the default latex command?
Koji Yokota wrote: > > I've committed the patch to trunk now. Awaiting Koji's report before I > > backport the fix. > > Sorry for late reply. I tested with several Japanese documents using > the newest svn, and all worked fine. Thanks for testing. I committed the fix to 1.6.8svn. Jürgen
Re: platex as the default latex command?
> I've committed the patch to trunk now. Awaiting Koji's report before I > backport the fix. Sorry for late reply. I tested with several Japanese documents using the newest svn, and all worked fine. Koji
Re: platex as the default latex command?
Jean-Marc Lasgouttes wrote: > > No. "latex" is found and ascribed to the LATEX variable. But later > > (line 215), > > > > is is replaced by "platex" (given that platex was found): > > if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e') != -1: > > # We have the Japanese pLaTeX2e > > addToRC(r'\converter platex dvi "%s" "latex"' > > > > % PLATEX) > > > > LATEX = PLATEX > > > > I suppose this is a remainder of the time when we did not yet > > separate platex > > from latex (and supposed that if platex is installed, it should be > > used). > > OK, then your patch seems fine. I've committed the patch to trunk now. Awaiting Koji's report before I backport the fix. Jürgen
Re: platex as the default latex command?
Le 2 août 10 à 17:58, Jürgen Spitzmüller a écrit : No. "latex" is found and ascribed to the LATEX variable. But later (line 215), is is replaced by "platex" (given that platex was found): if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e') != -1: # We have the Japanese pLaTeX2e addToRC(r'\converter platex dvi "%s" "latex"' % PLATEX) LATEX = PLATEX I suppose this is a remainder of the time when we did not yet separate platex from latex (and supposed that if platex is installed, it should be used). OK, then your patch seems fine. JMarc
Re: platex as the default latex command?
Jean-Marc LASGOUTTES wrote: > > The attached patch strikes me like the correct fix. > > -path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'platex > > $$i', 'latex2e $$i']) +path, LATEX = checkProg('a Latex2e program', > > ['latex $$i', 'latex2e $$i']) > > Does this mean that 'latex' is not found with texlive 2010? No. "latex" is found and ascribed to the LATEX variable. But later (line 215), is is replaced by "platex" (given that platex was found): if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e') != -1: # We have the Japanese pLaTeX2e addToRC(r'\converter platex dvi "%s" "latex"' % PLATEX) LATEX = PLATEX I suppose this is a remainder of the time when we did not yet separate platex from latex (and supposed that if platex is installed, it should be used). Jürgen
Re: platex as the default latex command?
Jürgen Spitzmüller writes: > Jürgen Spitzmüller wrote: >> > First of all, I'd like to mention I'm no Lyx user (just never got to test >> > it), but a maintainer of TeX Live. Recently, we got an report [1] from a >> > Lyx user that some of his documents stopped working after upgrading from >> > TeX Live 2009 to 2010-pretest. >> > >> > >> > >> > [1] http://tug.org/pipermail/tex-live/2010-July/026815.html >> >> Yes, I can confirm this behaviour with TL 2010. And yes, this is of course >> a bug. LyX should only use platex for Japanese documents. >> >> The reason is to be found around line 215 of configure.py. > > The attached patch strikes me like the correct fix. > -path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'platex $$i', > 'latex2e $$i']) > +path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'latex2e > $$i']) Does this mean that 'latex' is not found with texlive 2010? JMarc
Re: platex as the default latex command?
Jürgen Spitzmüller wrote: > > First of all, I'd like to mention I'm no Lyx user (just never got to test > > it), but a maintainer of TeX Live. Recently, we got an report [1] from a > > Lyx user that some of his documents stopped working after upgrading from > > TeX Live 2009 to 2010-pretest. > > > > > > > > [1] http://tug.org/pipermail/tex-live/2010-July/026815.html > > Yes, I can confirm this behaviour with TL 2010. And yes, this is of course > a bug. LyX should only use platex for Japanese documents. > > The reason is to be found around line 215 of configure.py. The attached patch strikes me like the correct fix. Koji, does Japanese still work with this? Jürgen Index: lib/configure.py === --- lib/configure.py (Revision 35038) +++ lib/configure.py (Arbeitskopie) @@ -198,7 +198,7 @@ def checkLatex(dtl_tools): ''' Check latex, return lyx_check_config ''' -path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'platex $$i', 'latex2e $$i']) +path, LATEX = checkProg('a Latex2e program', ['latex $$i', 'latex2e $$i']) path, PPLATEX = checkProg('a DVI postprocessing program', ['pplatex $$i']) #- path, PLATEX = checkProg('pLaTeX, the Japanese LaTeX', ['platex $$i']) @@ -212,7 +212,6 @@ if cmdOutput(PLATEX + ' chklatex.ltx').find('pLaTeX2e') != -1: # We have the Japanese pLaTeX2e addToRC(r'\converter platex dvi "%s" "latex"' % PLATEX) -LATEX = PLATEX else: PLATEX = '' removeFiles(['chklatex.ltx', 'chklatex.log'])
Re: platex as the default latex command?
Manuel Pégourié-Gonnard wrote: > First of all, I'd like to mention I'm no Lyx user (just never got to test > it), but a maintainer of TeX Live. Recently, we got an report [1] from a > Lyx user that some of his documents stopped working after upgrading from > TeX Live 2009 to 2010-pretest. > > [1] http://tug.org/pipermail/tex-live/2010-July/026815.html Yes, I can confirm this behaviour with TL 2010. And yes, this is of course a bug. LyX should only use platex for Japanese documents. The reason is to be found around line 215 of configure.py. Jürgen
platex as the default latex command?
Hi, First of all, I'd like to mention I'm no Lyx user (just never got to test it), but a maintainer of TeX Live. Recently, we got an report [1] from a Lyx user that some of his documents stopped working after upgrading from TeX Live 2009 to 2010-pretest. [1] http://tug.org/pipermail/tex-live/2010-July/026815.html The report (and further discussion) isn't very clear, but the problem seems to be that platex is used to typeset the document, while the user apparently didn't ask for it. It would explain why the same document worked with TL 2009: platex wasn't provided, so Lyx didn't try to use it. Out of curiosity, I installed Lyx (1.6.7) on my box. In ~/.lyx/lyxrc.defaults, I see the following line: \converter latex dvi"platex" "latex" so I'm under the impression that platex is indeed the default command for the latex format. The problem is, platex isn't a drop-in replacement for the "classic" latex command at all. For example, pTeX doesn't have e-TeX extensions (which explains the original problem with Koma-script) provided by pdfTeX (used by the "latex" command) and expected by and increasing number of packages and classes. So, I'd like to strongly suggest you switch back to using the "latex" command (ie pdftex engine) as a default even if platex is available, and use platex only when specifically needed. Otherwise, there may be a lot of problems like the above when people migrate to TeX Live 2010 which provides platex. If I misunderstood something and platex isn't currently the default when available, then keep it this way and please accept my apologies for the noise. Thanks, Manuel. PS: I didn't subscribe to the list, so please keep me cc-ed if you need more details or otherwise want me to follow the discussion.