Hi all, I received a LyX file that when exported to PDF (ps2pdf), has no figures.
I'm using LyX 1.4.3 on Linux. When I open the lyx file and do a "file
export > PDF (ps2pdf)" a get several errors like:
Missing $ inserted where the figures are. Figures are EPS, and since I can usually work with figures, I checked the document's LaTeX preamble. It has \input{mz.sty} at the end. If I remove this line, Figures are exported OK. Looking at the mz.sty file, I can't figure out what breaks the figures, perhaps someone can help me... I have attached the mz.sty file and error details from the log and the temporary tex file (they are attached so that line numbers don't change. -- Bruno Schneider http://www.dcc.ufla.br/~bruno/
% % mz.sty % % Copyright (c) 1995 by Marc Mengel <[EMAIL PROTECTED]> % % Permission is hereby granted for you to use, copy, and modify this file % provided you: % * retain the above copyright notice % * clearly note any changes from the original % * send any good improvements back to me % % A nicely font independent LaTeX style for Z, works with old and new LaTeX % \typeout{Style Option 'mz'. Marc Mengel's Z style. Version 1.0 Oct 13 1995} % % Spacing %\newcommand{\also}{\\[0.5ex]} \newcommand{\also}{\\[0.2ex]} % overrides of existing LaTeX commands \renewcommand{\t}[1]{\hspace*{#1ex}} % note: this breaks accents... \renewcommand{\star}{^*} % overrides plain asterisk... \renewcommand{\div}{{\mathsf{\ div\ }}} % overrides dot over dot symbol \renewcommand{\empty}{\emptyset} % don't know why these need renew \renewcommand{\notin}{\not\in} % \renewcommand{\iff}{\Leftrightarrow} % % \let \mzmesh=\# % make \# a command \renewcommand{\#}{{\mathsf{\mzmesh}}} % (why does this work?) % % Outer Grouping Environments % % These first 3 mean something to ztc, but not to anyone else \newenvironment{spec}{\relax}{\relax} \newenvironment{nocheck}{\relax}{\relax} \newenvironment{comment}{\relax}{\relax} % % General purpose zed box for % zed, schema, etc. % outer layer is an array{l} stack like this % ____________________ <= topline % | % | <= left bracket <= empty right bracket % | guts % |____________________ <= bottom line % % the guts is *another* array this time an array{llll} % so folks can set tabs, etc. % its built with \mztopbox{toplinecommand}{leftbracket} % at the top and \mzbotbox{bottomlinecommand} % at the bottom. \newcommand{\mztopbox}[2]{ \[ \array{l} #1\\[-1ex] \! \left#2 \array{l} \ \\[-1.7ex] % \hspace*{-0.6em} % update by Nelson S. Rosa \hspace*{0.0em} \array{llll} } \newcommand{\mzbotbox}[1]{ \ \\[0ex] \endarray \endarray \right. \\[-1.65ex] #1 \endarray \] } %\newcommand{\mzwidth}{4.2in} \newcommand{\mzwidth}{3.0in} % % horizontal line commands % \newcommand{\where}{ % separator for schemas, axdef, etc. \ \\[-1ex] \hspace*{-0.55em} \overline{\hspace{1in}} \\[0ex] } \newcommand{\mzbotline}{ % bottom of schema box, line above \overline{\makebox[\mzwidth]{\hfill}} } \newcommand{\mznoline}{ % invisible line, same width as others \makebox[\mzwidth]{\hfill} \ \\[-1ex] } \newcommand{\mzsline}[1]{ % schema top line, with name \hspace*{-0.65em} \raisebox{0.05ex}{ \makebox[\mzwidth][l]{ \makebox[1em]{\hrulefill} $#1$ \hrulefill } } } \newcommand{\mzgline}[1]{ % gendef top line, with name \underline{\makebox[\mzwidth][l]{\makebox[1em]{\hrulefill}$#1$\hrulefill}} } % % actual environments built with 'em % \newenvironment{axdef}{ % axiom -- no top or bottom, just left \mztopbox{\mznoline}{|} }{ \mzbotbox{\mznoline} } %\newenvironment{gendef}[1]{ % gendef -- double top w/name & bottom % \mztopbox{\mzgline{#1}}{|} %}{ % \mzbotbox{\mzbotline} %} \def \gendef[#1] {\mztopbox{\mzgline{[#1]}}{|}} \def \endgendef {\mzbotbox{\mzbotline}} \newenvironment{schema}[1]{ % schema -- single top w/name & bottom \mztopbox{\mzsline{#1}}{|} }{ \mzbotbox{\mzbotline} } \newenvironment{syntax}{ % synatax -- no top,bottom,or left \mztopbox{\mznoline}{.} }{ \mzbotbox{\mznoline} } \newenvironment{zed}{ % zed -- same as syntax \mztopbox{\mznoline}{.} }{ \mzbotbox{\mznoline} } % % handy macros for various things % \newcommand{\mzovr}[2]{ % overlay two symbols \makebox[0pt][l]{$#1$}#2 } \newcommand{\mzhsmr}[1]{ % "smear" a character horizantally \makebox[0pt][l]{$#1$}\,#1 } \newcommand{\mzvsmr}[1]{ % "smear" a character vertically \makebox[0pt][l]{\lower.3ex\hbox{$#1$}}\raisebox{.3ex}{$#1$} } \newcommand{\mzp}[1]{\mathrel{\ooalign{\hfil $\mapstochar\mkern 5mu$\hfil\cr$#1$}}} \newcommand{\mzf}[1]{\mathrel{\ooalign{\hfil $\mapstochar\mkern 3mu\mapstochar\mkern 5mu$\hfil\cr$#1$}}} % % Basic symbols and operators % \newcommand{\lblot}{\langle\!|} \newcommand{\rblot}{|\!\rangle} \newcommand{\defs}{\widehat{=}} \newcommand{\power}{\mzhsmr{\mathrm{P}} } \newcommand{\cross}{\times} %newcommand{\lambda}{\lambda} %newcommand{\mu}{\mu} \newcommand{\lbag}{[\![} \newcommand{\rbag}{]\!]} \newcommand{\emtpybag}{\lbag\:\rbag} \newcommand{\implies}{\Rightarrow} %newcommand{\forall}{\forall} %newcommand{\exists}{\forall} \newcommand{\spot}{\dot} \newcommand{\hide}{\backslash} \newcommand{\project}{\filter} %\newcommand{\pre}{{\mathsf{\ pre\ }}} \newcommand{\semi}{\mathop{\lower.2ex\hbox{$\ _9^0$}}} \newcommand{\ldata}{\langle\!\langle} \newcommand{\rdata}{\rangle\!\rangle} %\newcommand{\dom}{{\mathsf{\ dom\ }}} \newcommand{\dom}{ {\mathsf{\ {\ dom}\ }}} \newcommand{\ran}{{\mathsf{\ ran\ }}} \newcommand{\id}{{\mathsf{\ id\ }}} \newcommand{\comp}{\semi} \newcommand{\dres}{\lhd} \newcommand{\rres}{\rhd} \newcommand{\ndres}{\mathop{ \mzovr{\dres}{-} }} \newcommand{\nrres}{\mathop{ \mzovr{\rres}{-} }} \newcommand{\inv}{^\sim} \newcommand{\limg}{(\!|} \newcommand{\rimg}{|\!)} \newcommand{\map}{\mapsto} \newcommand{\rel}{\leftrightarrow} \newcommand{\fun}{\rightarrow} \newcommand{\tfun}{\rightarrow} \newcommand{\tinj}{>\!\rightarrow} \newcommand{\tsur}{\mathrel{\ooalign{$\tfun$\hfil\cr$\mkern4mu\tfun$}}} \newcommand{\pfun}{\mzp{\tfun}} \newcommand{\pinj}{\mzp{\tinj}} \newcommand{\psur}{\mzp{\tsur}} \newcommand{\ffun}{\mzf{\tfun}} \newcommand{\finj}{\mzf{\tinj}} \newcommand{\bij}{\mathrel{\ooalign{$\tinj$\hfil\cr$\mkern5mu\tfun$}}} \newcommand{\nat}{\mzvsmr{\mathsf{N}} } \newcommand{\num}{\mzhsmr{\mathsf{Z}} } %\newcommand{\mod}{{\mathsf{\ mod\ }}} \newcommand{\upto}{\ldots} \newcommand{\plus}{^+} \newcommand{\finset}{{\mzhsmr{F}}} \newcommand{\seq}{{\mathsf{\ seq\ }}} \newcommand{\iseq}{{\mathsf{\ iseq\ }}} \newcommand{\cat}{\raisebox{1ex}{$\frown$}} \newcommand{\filter}{\mzovr{\hbox{\ \`\ }}{|} } \newcommand{\extract}{\mzovr{\hbox{\'\ }}{|} } \newcommand{\dcat}{\cat\!/} \newcommand{\bag}{{\mathsf{\ bag\ }}} \newcommand{\disjoint}{{\mathsf{\ disjoint\ }}} \newcommand{\partition}{{\mathsf{\ partition\ }}} % operators \newcommand{\subseq}{\mathrel{\sf in}} \newcommand{\bagdiff}{\mathbin{\rlap{$\cup$}\kern0.4ex\raisebox{0.3ex}{-}\kern0.3ex}} \newcommand{\subbag}{\sqsubseteq} \newcommand{\inbag}{\mathrel{\rlap{$-$}\kern-0.67ex\sqsubset}} \newcommand{\pipe}{\gg} \newcommand{\bagscale}{\otimes} \newcommand{\bagcount}{\sharp} \newcommand{\prefix}{\mathsf{\ prefix\ }} \newcommand{\suffix}{\mathsf{\ suffix\ }} % keywords \newcommand{\zlet}{\mbox{\bf let~}} \newcommand{\zif}{\mbox{\bf if~}} \newcommand{\zthen}{\mbox{\bf ~then~}} \newcommand{\zelse}{\mbox{\bf ~else~}} % comments \newcommand{\comm}[1]{\quad\hbox{#1}\quad} %\newcommand{\remark}[1]{\quad\hbox{#1}\quad} \newcommand{\typeof}[1]{#1} \newcommand{\zedcompatible}{\relax} % % ugly hacks so ;, @, |, etc. work in Z specs in math mode % [EMAIL PROTECTED] \mathcode`|=\mid \mathcode`\;="8000 % Makes ; active in math mode {\catcode`\;=\active \gdef;{\semicolon\;}} \mathchardef\semicolon="603B
Error details: === begin log file error details === ! Missing $ inserted. <inserted text> $ l.575 ...ome_shared_tmp_tex_chapter04-constraints} \par\end{centering} I've inserted a begin-math/end-math symbol since I think you left one out. Proceed, with fingers crossed. File: 0_home_shared_tmp_tex_chapter04-constraints.eps Graphic file (type eps) <0_home_shared_tmp_tex_chapter04-constraints.eps> ! Missing $ inserted. <inserted text> $ l.575 ...ome_shared_tmp_tex_chapter04-constraints} \par\end{centering} I've inserted something that you may have forgotten. (See the <inserted text> above.) With luck, this will get me unwedged. But if you really didn't forget anything, try typing `2' now; then my insertion and my current dilemma will both disappear. === end log file error details === === begin temporary LaTeX file (line numbers at left) === 574 \begin{figure} 575 \begin{centering}\includegraphics[width=9cm,height=7cm]{0_home_shared_tmp_tex_chapter04-constraints}\par\end{centering} 576 577 578 \caption{\label{cha04-fig-con}Constraints imposed by NF-Statements and their 579 consequence on the selection of NF-Actions} 580 \end{figure} === end temporary LaTeX file ===