summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/osa/optics_express/opex3.sty
blob: 2c21f8456af71bffc415f71c51252efd58bc0cb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                   File: opex3.sty                   %
%                   Version: 1.0                      %
%                   Date: 15 June 2003                %
%                                                     %
%     This style file requires the LaTeX2e article    %
%     class and is provided for authors submitting    %
%     to the Optical Society of America's             %
%     Optics Express, http://www.opticsexpress.org    %
%                                                     %
%     opex3.sty invokes the following standard        %
%     package files: geometry, color, graphicx        %
%                                                     %
%     The following document preamble is appropriate  %
%     with this style file:                           %
%                                                     %
%         \documentclass[10pt]{article}               %
%         \usepackage{opex3}                          %
%                                                     %
%     Copyright 2003 Optical Society of America       %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{opex3}[2003/06/10 LaTeX package for OSA Optics Express]

%% Packages
\RequirePackage[letterpaper]{geometry}
\RequirePackage{color}
\usepackage{graphicx}

%% fonts
\usepackage{mathptmx,courier,textcomp}
\usepackage[scaled=.92]{helvet}

%% Page-layout commands
%% 12 pt = 1 pc; 6 pc = 1 in.
\geometry{nohead,height=50pc,width=31.5pc,left=9.9pc,top=6.5pc,bottom=10pc} %% uses geometry.sty
\parindent1em %% em tied to font
\parskip0pc
\linespread{1}
\pagestyle{empty}

\newcommand\OEtitle[1]{\LARGE \bf \hskip2.25pc \parbox{.8\textwidth}{ \noindent% 
   \LARGE \bf \begin{center} #1 \end{center}\rm } \vskip.1in \rm\normalsize }
     
\newcommand\OEauthor[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent% 
   \normalsize \bf \begin{center} #1 \end{center}\rm } \vskip-1pc }

\newcommand\OEaddress[1]{\hskip2.25pc \parbox{.8\textwidth}{ \noindent% 
   \footnotesize \it \begin{center} #1 \end{center}\rm }  \normalsize \vskip-.2cm }

\newcommand\OEemail[1]{\vskip-.3cm \parskip0pc\hskip2.25pc \footnotesize% 
   \parbox{.8\textwidth}{\begin{center}\it \textcolor{blue}{\underline{#1}} \rm \end{center} } \normalsize  \vskip-.2cm}

\newcommand\url[1]{\textcolor{blue}{\underline{#1}}}

\newcommand\homepage[1]{\vskip-1pt \parskip0pc\hskip2.25pc \footnotesize %% CHANGE 8-3-99
   \parbox{.8\textwidth}{\begin{center}\it \textcolor{blue}{\underline{#1}} \rm \end{center} } \normalsize\vskip-.2cm}

\newcommand\ocis[1]{\vskip-2.75pc \begin{center}\parbox{.8\textwidth}{\footnotesize\bf OCIS codes: \rm #1 \hfill} \end{center}\vskip3pt}%

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

\renewenvironment{abstract}%%  
{\vskip1pc\noindent\begin{center} \begin{minipage}{.8\textwidth} {\bf Abstract: \ } }
{ \\ \vskip-.5pc \noindent \small \copyright \, \number\year \hskip.05in
   Optical Society of America \\ \hfil \end{minipage}\end{center}\normalsize\vskip-1.5pc}%
   
%% abstract* for papers exempt from copyright
\newenvironment{abstract*}%%  
{\vskip1pc\noindent\begin{center} \begin{minipage}{.8\textwidth} {\bf Abstract: \ } }
{\end{minipage}\end{center}\normalsize\vskip-1.2pc}%


%\newenvironment{abstract*}%%  
%{\vskip.9pc\noindent\begin{center} \begin{minipage}{.8\textwidth}{\bf Abstract: \ %}}{\end{minipage}\end{center}\vskip-1.2pc}%

%% Various customizations
\renewcommand\figurename{Fig.}
\def\fps@table{h}%\def\fps@table{!htb} 
\renewcommand\refname{\normalsize References and links \rm}

%% New caption commands
\newcommand\@MaxCapWidth{4.25in}
\setlength\belowcaptionskip{1pt}
\long\def\@makecaption#1#2{%
  \small
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1. #2}%
  \ifdim \wd\@tempboxa >\@MaxCapWidth
    \hskip2.25pc\parbox{4.5in}{#1. #2} 
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip\normalsize}

%% New (more liberal than the default) float commands
\renewcommand{\topfraction}{.85}
\renewcommand{\bottomfraction}{.7}
\renewcommand{\textfraction}{.15}
\renewcommand{\floatpagefraction}{.66}
\renewcommand{\dbltopfraction}{.66}
\renewcommand{\dblfloatpagefraction}{.66}
\setcounter{topnumber}{9}
\setcounter{bottomnumber}{9}
\setcounter{totalnumber}{20}
\setcounter{dbltopnumber}{9}
\sloppy


%% Bibliography commands
\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}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \hrule\vskip.2in}
%\newcommand\newblock{\hskip .11em\@plus.33em\@minus.07em}
\let\@openbib@code\@empty
\newcommand\OEReflinks{\thebibliography{}}
\newcommand\References{\thebibliography{}}
\let\endOEReferences\endthebibliography
\let\endOEReflinks\endthebibliography
\let\endReferences\endthebibliography

%% New section parameters 4/28/2003 sdinee
%% Authors may now use \cite \ref for section numbers

\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad }
\renewcommand\thesubsection{\thesection.\arabic{subsection}}
\renewcommand\thesubsubsection{\thesubsection.\arabic{subsubsection}}

\renewcommand\section{\@startsection {section}{1}{0pt}%
                                     {-2.5ex plus -1ex minus -.2ex}%
                                     {1.3ex plus .2ex}%
                                     {\normalsize\bfseries}}
\renewcommand\subsection{\@startsection{subsection}{2}{0pt}%
                                     {-2.25ex plus -1ex minus -.2ex}%
                                     {1ex plus .2ex}%
                                     {\normalsize\itshape}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{0pt}%
                                     {-2.25ex plus -1ex minus -.2ex}%
                                     {1ex plus .2ex}%
                                     {\small\upshape}}
\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
           re}
           
%% Journal abbreviation macros
\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.\ Visual\ Sci.\ }
\def\jcp{ J.\ Chem.\ Phys.\ }
\def\jmo{ J.\ Mod.\ Opt.\ }
\def\jon{J.\ Opt.\ Netw.\ }
\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 } 

%% end opex3.sty