Hi everybody
I want to write an article for the Optics Express journal. The journal is
based on the article.cls with the style file opex2.sty (attached).
I carefully put this file in my tex directory, in the same folder than the
artilce.cls. I did texconfig followed by reconfigure in lyx (I am using lyx
1.2.0).
>From lyx, I then imported the OEtemp.tex (also attached), which is an example
template. When trying to view the dvi, I keep receiving the error:
no \title given
\maketitle...
I tried the tip&tricks and the mail archives, but could not find a solution
myself. Could anybody help please?
Thanks
Etienne Rochat
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: opex2.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 %
% \documentstyle[osa,opex]{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 %
% %
% POSSIBLE OTHER CHANGES
% (don't do without OK from D. Herrin)
% 1. move Reference numbers left to match Word (Don't do - JM)
% 2. Contact Art Ogawa about adding these updates to REVTeX 4.0
% 3. use \homepage{} command. Document in style guides.
% 4. Document new graphics commands and color
% 5. \newcommand{\url#1}{\href{#1}{#1}} % etc. IF
% HYPERREF IS LOADED, or just \underlinetext{#1} if not.
% \url{}, \homepage{}, and \hyperimage{} DONE BUT NOT TESTED 7-31-99
% 6. \ocis{} CAN THIS BE AN ALIAS OF \pacs{} ? DONE
% 7. Make \authors{} bold
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%
%\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)
\textwidth5.25in
\textheight8.5in
\oddsidemargin.625in
\evensidemargin.625in
\topmargin0in
\parindent.2in
\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{%
\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. 1, No. #3/OPTICS EXPRESS \,\, \@arabic\c@page}
}$ }%\thepage}%
\else{\hfill #5/Vol.1,No. #3/ OPTICS EXPRESS \thepage}
\fi
} \let\@evenfoot\@oddfoot
\makeatother
}
%% REWRITTEN OPEX COMMANDS AND (essential, rewritten 8-6-99)
%% SIMULATED REVTEX COMMANDS (essential, rewritten 8-6-99)
\def\OEtitle#1{\LARGE \bf \noindent \begin{center} #1 \end{center}\rm \normalsize \vskip.1in }%
\def\OEauthor#1{\hskip.3in \parbox{4.25in}{ \noindent%
\normalsize \bf \begin{center} #1 \end{center}\rm } \hfil \vskip-.2cm }
\def\OEaddress#1{\hskip.3in \parbox{4.25in}{ \noindent%
\normalsize \it \begin{center} #1 \end{center}\rm } \hfil \vskip-.2cm }
\def\OEemail#1{\vskip-.25cm \parskip0pc\hskip.3in \footnotesize%
\parbox{4.25in}{\begin{center}\it #1 \rm \end{center} } \normalsize \vskip.01cm}
\def\ocis#1{ \vskip.1cm \hskip.3in
\parbox{4.25in}{\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.01cm}
\def\url#1{\textcolor{blue}{\underline{#1}}}
\def\homepage#1{\vskip-.25in \parskip0pc\hskip.3in \footnotesize %% CHANGE 8-3-99
\parbox{4.25in}{\begin{center}\it \textcolor{blue}{\underline{#1}} \rm \end{center} } \normalsize \vskip.01cm}
\renewenvironment{abstract}%% \indent removed
{\hskip.3in \begin{minipage}{4.25in} \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 REFERENCES SECTION (most likely source of memory problems) (appears fixed 8-8-99)
\renewcommand\refname{\normalsize References and links \rm} %\renewcommand\refname{\small \bf References and links}
%% NEW CAPTION COMMAND
\newcommand\@MaxCapWidth{4.25in}
\setlength\belowcaptionskip{-.15in}
\long\def\@makecaption#1#2{%
\footnotesize
\vskip\abovecaptionskip
\sbox\@tempboxa{#1. #2}%
\ifdim \wd\@tempboxa >\@MaxCapWidth
\hskip.5in\parbox{4.25in}{#1. #2}
\else
\global \@minipagefalse
\hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
\fi
\vskip\belowcaptionskip\normalsize}
\setlength\bibindent{.2in}
\renewenvironment{thebibliography}[1]
{\hrule \vskip-.5in \section*{\refname
\@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 \hrule\vskip.2in}
%\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 }
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% File: OEtemp.tex %
% VERSION: 2.0 %
% Date: August 3, 1998 %
% LaTeX template file for use with OSA OPTICS EXPRESS %
% %
% This file requires a substyle file under the LaTeX %
% Article style, opex2.sty . %
% FOR LATEX 2E USE %
% \documentclass[10pt]{article} %
% \usepackage{opex2} %
% %
% FOR REVTeX 4.0 USE %
% \documentstyle[osa,opex2]{revtex4} %
% %
% Copyright 1997, 1999 The Optical Society of America %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentstyle[opex2]{article}
%\documentstyle[osa,opex2]{revtex4}
\documentclass[10pt]{article}
\usepackage{opex2}
\begin{document}
\title{Replace this text with your title}
\author{Frank E. Harris}
\address{Optical Society of America, Washington, DC, USA}
\email{[EMAIL PROTECTED]}
\begin{abstract}Replace this text with your abstract.
This short template demonstrates the basic LaTeX macros
needed for preparing a compuscript (i.e., manuscript in
electronic form) for the journal {\it Optics Express}, using
the opex2.sty style file. Changes in opex2.sty version
2.0 are briefly discussed.
\end{abstract}
\ocis{(999.9999) Fill in OCIS codes and descriptors here}
% The commands, \begin{OEReferences} and \end{OEReferences}
% format the References section according to OpEx standard
% style, showing the title "References and links" with
% opex2.sty version2.0.
%
% The commands, \begin{thebibliography}{} and \end{thebibliography}
% also format the References section according to OpEx standard
% style. With the \bibitem{label} command a reference lable is
% required. With \item it is not. Use \cite{label} to place
% citation numbers in the text.
\begin{thebibliography}{}
\item Author names here, ``title,''
Journal name {\bf volume number bold}, inclusive pages (year).
\bibitem{Trigt97} C. van Trigt, ``Visual system-response
functions and estimating reflectance,'' \josaa
{\bf 14}, 741-755 (1997).
\end{thebibliography}
\noindent
Insert the text of your article here. Equations may be
entered as shown below.
\begin{equation}
H = \frac{1}{2m}(p_x^2 + p_y^2) + \frac{1}{2} M{\Omega}^2
(x^2 + y^2) + \omega (xp_y - yp_x)
\end{equation}
Equation numbers will appear at the right hand margin,
in parenthesis. Summations and integrals that appear
within text such as $\frac{1}{2}{\Sigma }
_{n=1}^{n=\infty} (n^2 - 2n)^{-1}$
should have limits placed to the
right of the symbol to reduce white space.
\begin{figure}[hb]
\centerline{ \includegraphics{OpEx1.EPS}}
\caption{Place figures as close as
possible to where they are mentioned in the text.
Authors should use PostScript or EPS figures.}
\end{figure}
Changes in opex2.sty V 2.0 are intended to make
\emph{Optics Express} commands compatible with
REVTeX 4.0, to the greatest extent possible. Bibliography
and figure commands have been changed to match the
bibliography and figure commands of REVTeX 4.0. Use the commands
\verb+\homepage{}+ in frontmatter, \verb+\begin{thebibliography}{}+,
\verb+\bibitem{label}+, \verb+\url{}+ and \verb+\end{thebibliography}+
in references, % , \verb+\email{}+
and in figures use \verb+\includegraphics{}+. Opex.sty version 1.x
commands will still work but REVTeX 4.0 commands are preferred.
Most other changes with V 2.0 have been to indents and spacing.
Paragraph indents are now 0.2 inches.
Also, the heading {\bf References and links} is now mandatory
for the {\bf References and links} section.
After proofreading the compuscript, authors who wish to
submit LaTeX files should use tar and gzip compression
to combine the manuscript and figures. Postscript generated
from LaTeX using BaKoMa fonts may also be submitted,
but is not encouraged. Video should
always be submitted as separate files.
\end{document}