Re: Strange compile error
On 03/09/17 21:20, Paul A. Rubin wrote: On 09/03/2017 04:10 PM, Steve Hnizdur wrote: Hi Thanks for replying. Ctrl-R does pdflatex. Attached is the tex file produced by exporting from lyx, and I get the same error by running pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date. By the way the error still happens if the superscripts are removed, it seems to be the \dots that are causing the problem. Cheers To facilitate others following the thread, it's preferred that we bottom-post. I just ran pdflatex against your TeX, and again it compiled for me with no errors. I'm running Linux Mint 18.2 (based on Ubuntu 16.04), with LyX 2.2.3 and TeXLive 2017. I've attached the pdflatex log file; maybe you can look for differences with yours and find out where yours deviates. It seems to be something on your system, not a LyX error. Paul I can confirm there is a problem with amsmath 2.15a. I have now updated to 2.16a and all is fine. Many thanks for comments and help. -- Steve Hnizdur
Re: Strange compile error
On 2017-09-03, Steve Hnizdur wrote: > Attached is a lyx file which when complied with ctrl-R gives the error > below copied from the error log. It also fails if I try to compile it as > a native .tex file. I tried the example you posted later and it runs without problems here (Debian/stable with pre-packaged TeXLive 2016). > The error goes away if the \dots is removed and it also goes away if the > "Number Equations by Section" Module is removed. > Any thoughts. I know that amsmath re-defines \dots to be context sensitive. It may be that \numberwithin{equation}{section} interferes with this re-definition in some way (in the version used by you) and the bug is solved in current versions. You may try to use \ldots instead of \dots or to update your TeX installation. Günter
Re: Strange compile error
On 09/03/2017 04:10 PM, Steve Hnizdur wrote: Hi Thanks for replying. Ctrl-R does pdflatex. Attached is the tex file produced by exporting from lyx, and I get the same error by running pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date. By the way the error still happens if the superscripts are removed, it seems to be the \dots that are causing the problem. Cheers To facilitate others following the thread, it's preferred that we bottom-post. I just ran pdflatex against your TeX, and again it compiled for me with no errors. I'm running Linux Mint 18.2 (based on Ubuntu 16.04), with LyX 2.2.3 and TeXLive 2017. I've attached the pdflatex log file; maybe you can look for differences with yours and find out where yours deviates. It seems to be something on your system, not a LyX error. Paul This is pdfTeX, Version 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian) (preloaded format=pdflatex 2017.8.2) 3 SEP 2017 16:14 entering extended mode restricted \write18 enabled. %&-line parsing enabled. **test_error.tex (./test_error.tex LaTeX2e <2017-04-15> Babel <3.12> and hyphenation patterns for 3 language(s) loaded. (/usr/share/texlive/texmf-dist/tex/latex/base/article.cls Document Class: article 2014/09/29 v1.4h Standard LaTeX document class (/usr/share/texlive/texmf-dist/tex/latex/base/size10.clo File: size10.clo 2014/09/29 v1.4h Standard LaTeX file (size option) ) \c@part=\count79 \c@section=\count80 \c@subsection=\count81 \c@subsubsection=\count82 \c@paragraph=\count83 \c@subparagraph=\count84 \c@figure=\count85 \c@table=\count86 \abovecaptionskip=\skip41 \belowcaptionskip=\skip42 \bibindent=\dimen102 ) (/usr/share/texlive/texmf-dist/tex/latex/base/fontenc.sty Package: fontenc 2017/04/05 v2.0i Standard LaTeX package (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.def File: t1enc.def 2017/04/05 v2.0i Standard LaTeX file LaTeX Font Info:Redeclaring font encoding T1 on input line 48. )) (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty Package: inputenc 2015/03/17 v1.2c Input encoding file \inpenc@prehook=\toks14 \inpenc@posthook=\toks15 (/usr/share/texlive/texmf-dist/tex/latex/base/latin9.def File: latin9.def 2015/03/17 v1.2c Input encoding file )) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsmath.sty Package: amsmath 2016/11/05 v2.16a AMS math features \@mathmargin=\skip43 For additional information on amsmath, use the `?' option. (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amstext.sty Package: amstext 2000/06/29 v2.01 AMS text (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsgen.sty File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 \ex@=\dimen103 )) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsbsy.sty Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen104 ) (/usr/share/texlive/texmf-dist/tex/latex/amsmath/amsopn.sty Package: amsopn 2016/03/08 v2.02 operator names ) \inf@bad=\count87 LaTeX Info: Redefining \frac on input line 213. \uproot@=\count88 \leftroot@=\count89 LaTeX Info: Redefining \overline on input line 375. \classnum@=\count90 \DOTSCASE@=\count91 LaTeX Info: Redefining \ldots on input line 472. LaTeX Info: Redefining \dots on input line 475. LaTeX Info: Redefining \cdots on input line 596. \Mathstrutbox@=\box26 \strutbox@=\box27 \big@size=\dimen105 LaTeX Font Info:Redeclaring font encoding OML on input line 712. LaTeX Font Info:Redeclaring font encoding OMS on input line 713. \macc@depth=\count92 \c@MaxMatrixCols=\count93 \dotsspace@=\muskip10 \c@parentequation=\count94 \dspbrk@lvl=\count95 \tag@help=\toks17 \row@=\count96 \column@=\count97 \maxfields@=\count98 \andhelp@=\toks18 \eqnshift@=\dimen106 \alignsep@=\dimen107 \tagshift@=\dimen108 \tagwidth@=\dimen109 \totwidth@=\dimen110 \lineht@=\dimen111 \@envbody=\toks19 \multlinegap=\skip44 \multlinetaggap=\skip45 \mathdisplay@stack=\toks20 LaTeX Info: Redefining \[ on input line 2817. LaTeX Info: Redefining \] on input line 2818. ) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty Package: babel 2017/06/29 3.12 The Babel package (/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def File: switch.def 2017/06/29 3.12 Babel switching mechanism ) (/usr/share/texlive/texmf-dist/tex/generic/babel-english/british.ldf Language: british 2017/06/06 v3.3r English support from the babel system (/usr/share/texlive/texmf-dist/tex/generic/babel-english/english.ldf Language: english 2017/06/06 v3.3r English support from the babel system (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def File: babel.def 2017/06/29 3.12 Babel common definitions (/usr/share/texlive/texmf-dist/tex/generic/babel/switch.def File: switch.def 2017/06/29 3.12 Babel switching mechanism ) \babel@savecnt=\count99 \U@D=\dimen112 ) \l@british = a dialect from \language\l@english \l@UKenglish = a dialect from \language\l@english \l@canadian = a dialect from \language\l@american \l@australian = a dialect from \language\l@british \l@newzealand = a
Re: Strange compile error
Hi Thanks for replying. Ctrl-R does pdflatex. Attached is the tex file produced by exporting from lyx, and I get the same error by running pdflatex directly on it. I'm running Ubuntu 16.04 with everything upto date. By the way the error still happens if the superscripts are removed, it seems to be the \dots that are causing the problem. Cheers On 03/09/17 21:00, Paul A. Rubin wrote: On 09/03/2017 01:06 PM, Steve Hnizdur wrote: Hi Attached is a lyx file which when complied with ctrl-R gives the error below copied from the error log. It also fails if I try to compile it as a native .tex file. The error goes away if the \dots is removed and it also goes away if the "Number Equations by Section" Module is removed. Any thoughts. What format does ctrl-R use in your configuration? In mine, it's pdflatex, and the document compiles just fine. Paul -- Steve Hnizdur %% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[british]{article} \usepackage[T1]{fontenc} \usepackage[latin9]{inputenc} \usepackage{amsmath} \makeatletter %% Textclass specific LaTeX commands. \numberwithin{equation}{section} \makeatother \usepackage{babel} \begin{document} aaa \[ \left\Vert P_{1}\right\Vert ^{m_{1}}\dots\left\Vert P_{r}\right\Vert ^{m_{r}} \] xxx \end{document}
Re: Strange compile error
On 09/03/2017 01:06 PM, Steve Hnizdur wrote: Hi Attached is a lyx file which when complied with ctrl-R gives the error below copied from the error log. It also fails if I try to compile it as a native .tex file. The error goes away if the \dots is removed and it also goes away if the "Number Equations by Section" Module is removed. Any thoughts. What format does ctrl-R use in your configuration? In mine, it's pdflatex, and the document compiles just fine. Paul
Strange compile error
Hi Attached is a lyx file which when complied with ctrl-R gives the error below copied from the error log. It also fails if I try to compile it as a native .tex file. The error goes away if the \dots is removed and it also goes away if the "Number Equations by Section" Module is removed. Any thoughts. Error ** ! Argument of \zap@to@space has an extra }. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I've run across a `}' that doesn't seem to match anything. For example, `\def\a#1{...}' and `\a}' would produce this error. If you simply proceed now, the `\par' that I've just inserted will cause me to report a runaway argument that might be the root of the problem. But if your `}' was spurious, just type `2' and it will go away. Runaway argument? \left.. ! Paragraph ended before \zap@to@space was complete. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. Runaway argument? ! Paragraph ended before \macro@ was complete. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. ! Missing $ inserted. $ l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed. ! Display math should end with $$. \par l.20 ...t\Vert P_{1}\right\Vert ^{m_{1}}\dots\left \Vert P_{r}\right\Vert ^{m... The `$' that I just saw supposedly matches a previous `$$'. So I shall assume that you typed `$$' both times. Runaway argument? \meaning@ \not@ \ifgtest@ \gdef \thedots@ {\dotsb@ }\else \@xp \DOTS@ \ETC. ! Paragraph ended before \macro@ was complete. \par l.22 I suspect you've forgotten a `}', causing me to apply this control sequence to too much text. How can we recover? My plan is to forget the whole thing and hope for the best. ! LaTeX Error: \begin{equation*} on input line 19 ended by \end{document}. See the LaTeX manual or LaTeX Companion for explanation. Type H for immediate help. ... l.24 \end{document} Your command was ignored. Type Ito replace it with another command, orto continue without it. [1 {/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./test_error.aux) ) (\end occurred inside a group at level 1) ### semi simple group (level 1) entered at line 19 (\begingroup) ### bottom level (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \iffalse on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) (\end occurred when \ifx on line 20 was incomplete) Here is how much of TeX's memory you used: -- Steve Hnizdur test_error.lyx Description: application/lyx