summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/osa/optics_letters/OL.sty
blob: 43da5bd025d2fdccf6f8cfa89d24c0e57d26abf5 (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
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                File: OL.sty                         %
%                    VERSION: 1.1                     %
%               Date: May 15, 2004 [sdinee]           %
%                                                     %
%    For assistance, contact Joseph Richardson,       %
%    jricha@osa.org                                   %
%                                                     %
%               LaTeX style file for                  %
%        length check and submission of OSA           %
%              Optics Letters manuscripts             %
%                                                     %
%                                                     %
% \documentclass[10pt,letterpaper,twocolumn]{article} %
% \usepackage{OL}                                     %
%                                                     %
% (c) 2004 Optical Society of America                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{ol}[2004/05/15 LaTeX package for length check of OSA Optics Letters MSS]

\usepackage{overcite}
\usepackage{fix2col}
\usepackage{color}
\usepackage{geometry}

\ifx\pdfoutput\undefined
\usepackage{graphicx}
\else
\usepackage[pdftex]{graphicx}
\fi

\geometry{letterpaper,nohead,margin=1in} %% uses geometry.sty
\parindent1em %% em tied to font
\parskip0pc
\linespread{1.2}
\pagestyle{plain}
\sloppy

%%Title page elements

\newcommand\OSAJNLtitle[1]{\Large \bf \noindent \begin{center} #1 
\end{center}\rm \normalsize \vskip.125in }% 

\newcommand\OSAJNLauthor[1]{\vskip.1in\noindent% 
   \large  \begin{center} \textsf{#1} \end{center}\rm \vskip-.2in}

\newcommand\OSAJNLaddress[1]{\vskip3pt\noindent% 
   \normalsize  \begin{center} \it #1 \end{center}\rm \vskip-.2in}

\newcommand\OSAJNLemail[1]{\vskip3pt\normalsize 
   \begin{center}\it #1 \rm \end{center} \vskip-.25in}

\newcommand\homepage[1]{\vskip12pt\normalsize 
    \begin{center}\it \textcolor{blue}{\underline{#1}} \end{center}\rm \vskip-.2in}

\newcommand\ocis[1]{\vskip-1pc \hskip3pc {\normalsize\it OCIS codes: \rm #1 \hfill}\vskip1pc}

\renewenvironment{abstract}%%  
{\vskip2.75pc\noindent\begin{center}\begin{minipage}{5.5in} \parindent.2in
   \noindent \rm}{\hskip.07in \copyright \hskip.05in \number\year \hskip.05in
   Optical Society of America \\ \hfil \end{minipage}\end{center}}
   
\newenvironment{abstract*}%%  
{\vskip2.75pc\noindent\hskip.3in\begin{minipage}{5.5in} \parindent.2in
   \noindent \rm}{\hfil \end{minipage}\vskip.25in}
   
\let\title\OSAJNLtitle
\let\author\OSAJNLauthor
\let\affil\OSAJNLaddress
\let\address\OSAJNLaddress
\let\email\OSAJNLemail
\let\pacs\ocis



   
\newenvironment{eqnfloat*}%%  
{}{}


\let\title\OSAJNLtitle
\let\author\OSAJNLauthor
\let\affil\OSAJNLaddress
\let\address\OSAJNLaddress
\let\email\OSAJNLemail
\let\pacs\ocis

%%Various customizations

\renewcommand\maketitle{} %%deactivates \maketitle in LaTeX
\def\affiliation{\address}
\def\onlinecite{\citeonline}
%Fig. and Table Labels
\renewcommand\figurename{Fig.}
\def\fps@table{h}%\def\fps@table{!htbp}
\renewcommand\tablename{Table}

% Captions
\long\gdef\@makecaption#1#2{%
  \vskip\abovecaptionskip
  \sbox\@tempboxa{#1. #2}%
  \ifdim \wd\@tempboxa >\hsize
    #1. #2\par
  \else
    \global \@minipagefalse
    \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%
  \fi
  \vskip\belowcaptionskip}

%% New (more liberal than the default) float commands 5/12/2003 sdinee
\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

%%References

\renewcommand\refname{\normalsize References \rm} 
\setlength\bibindent{.2in}
\renewenvironment{thebibliography}[1]
     {\section*{\refname 
        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
      \list{\@arabic\c@enumiv .}
           {\settowidth\labelwidth{.25in}%
            \leftmargin\labelwidth
  \setlength{\parsep}{0pc}
  \setlength{\labelsep}{0.5em}
  \setlength{\itemsep}{0.05pc}%{-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 \normalsize}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \vskip.2in}
\let\@openbib@code\@empty
\newcommand\OSAJNLReferences{\thebibliography{}}
\newcommand\OSAJNLReflinks{\thebibliography{}}
\newcommand\References{\thebibliography{}}
\let\endOSAJNLReferences\endthebibliography
\let\endOSAJNLlinks\endthebibliography
\let\endReferences\endthebibliography

%%Section parameters
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad }
\renewcommand\thesubsection{\Alph{subsection}}
\renewcommand\thesubsubsection{\arabic{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\itshape}}
\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
                                     {-2.25ex plus -1ex minus -.2ex}%
                                     {1ex plus .2ex}%
                                     {\normalfont\small\it}}

\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.\ 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 } 

\DeclareOption{twocolumn}{%
\linespread{1}\twocolumn %%essential for production
\geometry{letterpaper,hcentering,height=55pc,top=3.65pc,bottom=.75in,left=.75in,right=.75in}
\columnsep1.5pc
\parindent1em
\parskip0pc
\flushbottom

\renewcommand\author[1]{\noindent% 
   \normalsize \bf \begin{center} #1 \end{center}\rm \vskip-1pc}

\renewcommand\address[1]{\noindent% 
   \small  \begin{center} \it #1 \end{center}\rm \normalsize \vskip-.3pc}

\renewcommand\email[1]{\vskip-.6pc\noindent% 
   \small  \begin{center} \it #1 \end{center}\rm \normalsize \vskip-.3pc}

\renewcommand\homepage[1]{\noindent% 
   \small  \begin{center} \it #1 \end{center}\rm \normalsize \vskip-.3pc}

\renewcommand\ocis[1]{\vskip-.185in \hskip5pc {\footnotesize\it OCIS codes: \ \rm #1 \hfill} \normalsize\hskip1em\vskip2pc}

\renewenvironment{abstract}%%  
{\noindent\begin{center}{\footnotesize Compiled \today} \vskip4pt \begin{minipage}{34.25pc} \parindent.2in
   \noindent \footnotesize \rm}{\hskip.07in \copyright \hskip6pt \number\year \hskip.05in
   Optical Society of America \\ \hfil \end{minipage}\end{center}}


\renewcommand\refname{\normalsize References \rm} 
\setlength\bibindent{.2in}
\renewenvironment{thebibliography}[1]
     {\section*{\refname 
        \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
      \list{\@arabic\c@enumiv .}
           {\settowidth\labelwidth{.25in}%
            \leftmargin\labelwidth
  \setlength{\parsep}{0pc}
  \setlength{\labelsep}{0.5em}
  \setlength{\itemsep}{0.05pc}%{-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 \small}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist \vskip.2in}
\let\@openbib@code\@empty
\renewcommand\OSAJNLReferences{\thebibliography{}}
\renewcommand\OSAJNLReflinks{\thebibliography{}}
\renewcommand\References{\thebibliography{}}
\let\endOSAJNLReferences\endthebibliography
\let\endOSAJNLlinks\endthebibliography
\let\endReferences\endthebibliography

%% Code for floating math suggested by David Carlisle on comp.text.tex.

%\section{Floating Maths}
%
%  \begin{macro}{\fps@eqnfloat}
% Float to top or a page float. In fact probably only the star form of
% this environment will be used (and that can not do |b| or |h| due to
% a general restriction on double floats.) Also add |!| so that this
% type of float is less likely to float far away, which might cause
% it to be out of sequence with any non-floating numbered equations.
%    \begin{macrocode}
\def\fps@eqnfloat{!tp}
%    \end{macrocode}
%  \end{macro}
%
%  \begin{macro}{\ftype@eqnfloat}
% |figure| and |table| are 1 and 2 respectively, so make this type 4.
%    \begin{macrocode}
\def\ftype@eqnfloat{4}
%    \end{macrocode}
%  \end{macro}
%
%  \begin{environment}{eqnfloat}
%  \begin{environment}{eqnfloat*}
%  Nothing special here, Just call |\@float| or |\@dblfloat| as
%  appropriate.
%    \begin{macrocode}
\newenvironment{eqnfloat}
               {\@float{eqnfloat}}
               {\end@float}
%    \end{macrocode}
%
%    \begin{macrocode}
\renewenvironment{eqnfloat*}
               {\@dblfloat{eqnfloat}}
               {\end@dblfloat}
%    \end{macrocode}
%  \end{environment}
%  \end{environment}
}%

\ProcessOptions\relax
%% end OL.sty