Hi-

If I try to import the new OSAmtg.tex template into Lyx
(to make an abstract for the meetings next year), Relyx
will exit with a fatal error. I use version 1.04. The
special OSAmeet.sty file was downloaded into the same
directory as OSAmtg.tex, if this is a relevant issue.
Ordinary Latex is not troubled with these files.

Here is the message:

reLyX, the LaTeX to LyX translator. Revision date 1999/05/02

Reading LaTeX command syntax
(OSAmtg.tex: Splitting Preamble
Creating LyX preamble
Reading layout file
Cleaning... Translating... Can't call method "print" in empty package
"print" at /usr/local/lyx/bin/../share/lyx/reLyX/BasicLyX.pm line 875,
<TeXOpenFile0003> chunk 254.
Exited due to fatal Error! 

I also have the following `feature' requests:


(1) If you have a citation label like {a_b} in a Latex file, Relyx will
occasionally change it to {a_{b}}. But this is not done consistently,
so the result is a broken citation. Really, Relyx should not change
the labels, as they are not syntax.

(2) If you import/export/import/export Latex (for example, to exchange
files with
nonLyxers), then you often build up a lot of unwanted frontmatter.
Eventually
this breaks the Latex compiler. It would be nice if repeated
import/export would
reach an unchanging, steady state!

(3) I find that the convention where typing a space in front of an
equation pops
you into math-mode, is quite unsettling - I usually finish up typing
things in the
equation rather than before it. I would prefer if a cursor movement was
required to
get into or out of math mode, while editing.

(4) You can't select text at all inside fractions, brackets, and square
roots. This is
somewhat frustrating, especially if you have built some fancy symbol in
there, that you want
to reuse elsewhere in the document! Similar problems occur with
text-selection in eqnarrays,
especially with a fraction on the left side.

(5) You can't find/replace symbols in math mode. So, you must
export/import the Latex - but
this often results in Latex errors, as the exported Latex doesn't always
compile. Repeated
export/import is a noisy business, often resulting in corrupted Latex -
see (1), (2). It
would be useful to have math find/replace.

(6) I want to lend my support for those trying to get cut/paste across
multiple Lyx
windows, open simultaneously. This would be very useful - for example,
the editor Nedit
has this feature. It is very handy when trying to handle text in large
documents
like books, or extended technical reports.


Thanks guys - for the terrific program! As you can tell, I use it a lot.
However, it
needs a little fine-tuning before it equals the equation editor in
Scientific Word, 
according to my Windows friends. Yes, you can be friends across those OS
boundaries -
but, will WG serve time for his crime?

yours, Peter Drummond.


          
-- 
Physics Department, University of Queensland, St Lucia 4072, 
Queensland, Australia. Tel:+61-7-3365-3404  Fax:+61-7-3365-1242
[EMAIL PROTECTED]   
www.physics.uq.edu.au/people/drummond
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                   File: OSAmeet.sty                 %
%                   VERSION: 2.01                     %
%                   Date: August 8, 1999              %
%                                                     %
% LaTeX template file for use with OSA OPTICS EXPRESS %
% THIS FILE IS AS CLOSE TO THE MSWORD VERSION AS IS   %
% CONSISTENT WITH TEX COMMANDS AND STANDARD USAGE     %
%                                                     %
% THIS FILE IS A FRESH REBUILD USING ONLY LATEX 2E    %
% RESOURCES 8-5-99                                    %
%                                                     %
%    THIS FILE IS NOT COMPATIBLE WITH LATEX 2.09      %
%                                                     %
% This file requires a substyle file under the LaTeX  %
% Article style, opex2.sty OR USE OF THE FOLLOWING    %
% REVTEX 4.0 OPTIONS.                                 %
%                   FOR LATEX 2E USE                  %
%         \documentclass[10pt]{article}               %
%         \usepackage{opex}                           %
%                                                     %
%                   FOR REVTeX 4.0 USE                %
%         \documentclass[osa,meeting]{revtex4}        %
%                                                     %
% Copyright 1997,1999 The Optical Society of America  %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              Changes from V1.04       8/11/97       %
% 1. Centered title, authors, inst, and abstract      %
% 2. copyright moved out of \abstract, to \ocis       %
% 3. Style guide update                               %
%              Changes from V1.05      12/18/97       %
% 1. Journal abbreviation macros are in italics       %
% 2. final (footers) command in development           %
% 3. Copyright changed to 1998                        %
%              Changes from V1.06        2/2/98       %
% 1. Figure \caption{} definition conforms to         %
%    style: \footnotesize and double indented         %
% 2. \apa, \apb, \cleo, \assl, and \tops  added       %
%              Changes from V1.07        4/2/98       %
% 1. Journal abbreviation italics removed             %
% 2. Style guide update                               %
% 3. References spacing tightened                     %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%              Version 2.0 changes                    %
%                   7/29/99                           %
%       NOTE: THIS VERSION WILL RUN UNDER             %
%   LATEX 2e{article}. INTENDED FOR REVTEX 4.0        %
% 1. COPYRIGHT DATE CHANGED TO \number\year      % \today gives day and month
% 2. paragraph indents 0.20in                    % 0.20 inch in Word, .25 in contract. 
8-3-99 Jennifer says.20 That's it!
% 3. tighten space between affil and e-mail           %
% 4. change Figure to Fig. in captions                %
% 5. default figure package changed from              %
%     epsf.sty to graphics.sty and color.sty          %
% 6. rewrite bibliography to get rid of memory        %
%     problems, and generally simplify and shrink     %
%     the file, using LaTeX 2e's well documented      %
%     source code. DONE 8/8/99                        %
% 7. \homepage{} command.  Document in style guides.  %
% 8. Document new graphics commands and color         %
% 9. \newcommand{\url#1}{\href{#1}{#1}}               %
%     \url{}, \homepage{}, and \hyperimage{} 7-31-99  %
% 10. MARGINS CHANGED TO MEETING SPECS                %
% 11. \author and \address CHANGED TO MEETING SPECS   %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% 
%
%\documentstyle[opex,graphics]{article}  %% LaTeX 2.09 NO LONGER SUPPORTED AS OF 8/1/99
%\documentclass[osa,opex]{revtex4}       %% REVTeX 4.0
%\documentclass{article}                 %% LaTeX 2e
%\usepackage{opex}
%
% The starting point: article.cls . 
% 1) Add only what is needed to make OEstyle.tex run
%
%% OTHER STYLE FILES NEEDED (change to \input{epsf.sty} \input{graphics}
\usepackage{graphics}
\usepackage{color}
\usepackage{epsf}  %% ONLY FOR COMPATABILITY WITH OLDER FILES (CUT?)

%% Page Format (essential) CHANGED FOR MEETINGS, 8-8-99
\textwidth6.5in
\textheight9in

\oddsidemargin0in
\evensidemargin0in
\topmargin0in

\parindent0in
\parskip.6pc
\pagestyle{empty}

%% FOOTERS FOR FINAL PRODUCTION #1=ISBN #2=starting page number
%% #3=issue number #4=Recieved date #5=Pub.Title #6=Volume
\def\final#1#2#3#4#5#6{%
\makeatletter
\global\@specialpagefalse
\def\@oddfoot{\reset@font\rm \footnotesize
\ifnum\c@page=1
  %\llap
  \setcounter{page}{#2}
  {\protect $\vcenter
    {\baselineskip10pt 
    \hbox{\# #1 - \$10.00 US}
    \hbox{\copyright{}~ \number\year ~~ OSA}}$%
\hfill $\vcenter{\baselineskip10pt
    \hbox{Received #4}
    \hbox{#5/ Vol. #6, No. #3/ \number\year  \,\, \@arabic\c@page}
  }$ }%\thepage}%
 \else{\hfill #5/Vol.#6,No. #3/  \number\year \,\, \thepage}
\fi
} \let\@evenfoot\@oddfoot
\makeatother
}
%% HEADERS FOR pages 2 and 3
\def\HeaderAuthorTitleMtg#1#2#3{%
\makeatletter
\global\@specialpagefalse
\def\@oddhead{\reset@font\rm \footnotesize
\ifnum\c@page=1
  %\llap
  {%\protect $\vcenter
   %  {\baselineskip10pt 
   %  \hbox{#3/\number\year }}$% \,\, \@arabic\c@page}}$
   %\hfill $\vcenter{\baselineskip10pt
   %  \hbox{\copyright{}~\number\year ~~ OSA}%
   % }$ 
  }%\thepage}%
 \else{#1, #2\hfill  #3/\number\year ~ Page ~~ \thepage}% #2, #1  Page instead of  #3/ 
\number\year 
\fi
} \let\@evenhead\@oddhead
\makeatother
}

%% REWRITTEN OPEX COMMANDS AND (essential, rewritten 8-6-99)
%% SIMULATED REVTEX COMMANDS (essential, rewritten 8-6-99)
\def\OEtitle#1{\LARGE \bf \begin{center} #1 \end{center}\rm \normalsize \vskip.01in }% 

\def\OEaddress#1{\vskip-.2in\hskip1.1in \parbox{4.25in}{ \noindent% 
   \footnotesize \begin{center}\it #1 \rm\end{center}} \hfil \normalsize \vskip-.2cm 
}%  \it \rm 

\def\OEauthor#1{\vskip-.2in\hskip1.1in \parbox{4.25in}{ \noindent% 
   \normalsize \begin{center}\bf #1 \rm\end{center}} \hfil \vskip-.2cm }%  \it \rm 

\def\OEemail#1{\vskip-.25in \hskip1.1in \footnotesize% 
   \parbox{4.25in}{\begin{center}\it #1 \rm \end{center} } \normalsize  \vskip-.1in}

\def\ocis#1{ \vskip-.2cm %
   \noindent \hskip.35in\parbox{5.75in}{\footnotesize \copyright \hskip.02in 
\number\year % CHANGE IN DATE: 7/29/99 
   \hskip.04in
   Optical Society of America \\ \bf  OCIS codes: \rm #1 \hfil } \\ \normalsize 
\vskip-.1in}

\def\url#1{\textcolor{blue}{\underline{#1}}}

\def\homepage#1{\vskip-.25in \hskip1.1in \footnotesize %% CHANGE 8-3-99
   \parbox{4.25in}{\begin{center}\it \textcolor{blue}{\underline{#1}} \rm \end{center} 
} \normalsize  \vskip-.1in}

\renewenvironment{abstract}%%  
{\noindent \hskip.35in\begin{minipage}{5.75in} \parindent.2in% 
   \noindent \normalsize \bf Abstract: \rm}{\hfil \end{minipage}}

\let\title\OEtitle
\let\author\OEauthor 
\let\affil\OEaddress
\let\address\OEaddress
\let\email\OEemail
\let\pacs\ocis

%% VARIOUS LABELS (new, 8-8-99)
\renewcommand\figurename{Fig.}
\def\fps@table{h}%\def\fps@table{!htbp}

%% NEW CAPTION COMMAND
\newcommand\@MaxCapWidth{5.5in}
\setlength\belowcaptionskip{-.15in}

\long\def\@makecaption#1#2{%
  \footnotesize
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1. #2}%
  \ifdim \wd\@tempboxa >\@MaxCapWidth
    \hskip.5in\parbox{5.5in}{#1. #2} 
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip\normalsize}



%% NEW REFERENCES SECTION (most likely source of memory problems) (appears fixed 
8-8-99)
\renewcommand\refname{\normalsize References \rm} %\renewcommand\refname{\small \bf 
References and links}

\setlength\bibindent{.2in}
\renewenvironment{thebibliography}[1]
     {\vskip-.5in \section*{\refname %% \hrule before \vskip-.5in CUT 8-9-99
        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
      \list{\@arabic\c@enumiv .}%      \list{\@biblabel{\@arabic\c@enumiv .}}%
           {\settowidth\labelwidth{.25in}%
            \leftmargin\labelwidth
  \setlength{\parsep}{-0.05in}
  \setlength{\labelsep}{.5em}
  \setlength{\itemsep}{0.05in}%{-0.06in}
  \setlength{\listparindent}{0in}
  \setlength{\itemindent}{0in}
  \setlength{\leftmargin}{.2in}
  \setlength{\rightmargin}{0in} 
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m \footnotesize}%% \footnotesize
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \vskip.2in}           %% \hrule before \vskip.2in CUT 8-9-99
%\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty

\newcommand\OEReferences{\thebibliography{}}
\newcommand\OEReflinks{\thebibliography{}}
\newcommand\References{\thebibliography{}}
\let\endOEReferences\endthebibliography
\let\endOEReflinks\endthebibliography
\let\endReferences\endthebibliography


%% NEW SECTIONING PARAMETERS (second most likely source of memory problems)
\renewcommand \thesection {\normalsize\bf\@arabic\c@section}
\renewcommand\thesubsection   {\normalsize\it\thesection.\@arabic\c@subsection}
\renewcommand\thesubsubsection{\small\it\thesubsection.\@arabic\c@subsubsection}
\renewcommand\section{\@startsection {section}{1}{\z@}%
                                   {-2.5ex \@plus -1ex \@minus -.2ex}%
                                   {1.3ex \@plus.2ex}%
                                   {\normalfont\normalsize\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
                                     {-2.25ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%
                                     {\normalfont\normalsize\it}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-2.25ex\@plus -1ex \@minus -.2ex}%
                                     {1ex \@plus .2ex}%
                                     {\normalfont\small\it}}



%% OLD REVTEX 3.1 COMMANDS I FELT WERE ESSENTIAL

\frenchspacing

\hyphenation {ac-cord-ing
           allow
           back-scat-ter
           back-scat-te-ring
           back-scat-tered
           scat-te-ring
           Based based
           cases
           cen-tered
           changed
           co-incide
           con-cerning
           con-ven-tional
           de-creased
           de-po-lar-iz-ation
           de-tector de-tectors
           de-vi-ation
           dis-cussion
           dis-tribu-tion
           dis-tribu-tions
           dis-trib-ute
           dis-trib-uted
           Ehhalt
           extinc-tion
           found
           Geest-hacht
           ground
           Hink-ley
           il-lus-trated
           il-lus-trate
           Intro-ducing
           Klap-heck
           lati-tude
           measure-ment
           measure-ments
           meas-ured
           measuring
           mixing
           north-east
           orig-inated
           op-er-ating
           out-flow
           pres-ence
           primary
           rather
           rela-tive
           sig-nal
           sig-nals
           solid
           tem-pera-ture
           Tem-pera-ture
           trans-ported
           tropo-pause
           Tropo-pause
           tropo-sphere
           Tropo-sphere
           tube
           tubes
           Values
           varies
           Weather}

\def\opex{ Opt.\ Express }
\def\ao{ Appl.\  Opt.\ }
\def\ap{ Appl.\  Phys.\ }
\def\apa{ Appl.\  Phys.\ A }
\def\apb{ Appl.\  Phys.\ B }
\def\apl{ Appl.\ Phys.\ Lett.\ }
\def\apj{ Astrophys.\ J.\ }
\def\bell{ Bell Syst.\ Tech.\ J.\ }
\def\jqe{ IEEE J.\ Quantum Electron.\ }
\def\assp{ IEEE Trans.\ Acoust.\ Speech Signal Process.\ }
\def\aprop{ IEEE Trans.\ Antennas Propag.\ }
\def\mtt{ IEEE Trans.\ Microwave Theory Tech.\ }
\def\iovs{ Invest.\ Ophthalmol.\ Vis.\ Sci.\ }
\def\jcp{ J.\ Chem.\ Phys.\ }
\def\jmo{ J.\ Mod.\ Opt.\ }
\def\josa{ J.\ Opt.\ Soc.\ Am.\ }
\def\josaa{ J.\ Opt.\ Soc.\ Am.\ A }
\def\josab{ J.\ Opt.\ Soc.\ Am.\ B }
\def\jpp{ J.\ Phys.\ (Paris) }
\def\nat{ Nature (London) }
\def\oc{ Opt.\ Commun.\ }
\def\ol{ Opt.\ Lett.\ }
\def\pl{ Phys.\ Lett.\ }
\def\pra{ Phys.\ Rev.\ A }
\def\prb{ Phys.\ Rev.\ B }
\def\prc{ Phys.\ Rev.\ C }
\def\prd{ Phys.\ Rev.\ D }
\def\pre{ Phys.\ Rev.\ E }
\def\prl{ Phys.\ Rev.\ Lett.\ }
\def\rmp{ Rev.\ Mod.\ Phys.\ }
\def\pspie{ Proc.\ SPIE\ }
\def\sjqe{ Sov.\ J.\ Quantum Electron.\ }
\def\vr{ Vision Res.\ }

\def\cleo{ {\it Conference on Lasers and Electro-Optics }}
\def\assl{ {\it Advanced Solid State Lasers }}
\def\tops{ Trends in Optics and Photonics }




OSAmtg.tex

Reply via email to