summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/osa/journals/osajnl.sty
blob: 406e98ea6e20e204e7f3ab319b7c174a997beb75 (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
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%                   File: osajnl.sty                  %
%                     VERSION: 2.0                    %
%                  Date: May 28, 2004                 %
%                                                     %
%                                                     %
%                                                     %
%              LaTeX style file for use with          %
%        the following OSA Journals: JOSA A, JOSA B,  %
%              Applied Optics, Optics Letters         %
%                                                     %
%    THIS FILE REPLACES osa2.sty and predecessors     %
%                                                     %
%     THIS FILE IS NOT COMPATIBLE WITH LATEX 2.09     %
%                                                     %
%                                                     %
%                   FOR LATEX 2E USE                  %
%         \documentclass[12pt]{article}               %
%         \usepackage{osajnl}                         %
%                                                     %
% (c) 2004 Optical Society of America                 %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%\documentclass[osajnl,preprint,showpacs]{revtex4} %% REVTeX 4.0
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%\documentclass[12pt,letterpaper]{article}                  %% LaTeX 2e
%\usepackage{osajnl}

\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{osajnl}[2004/05/28 LaTeX package for submission to OSA's print journals]

%% packages
\RequirePackage{overcite}
\RequirePackage{geometry}
\usepackage{color}

\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



%%Various customizations

\renewcommand\maketitle{\vskip0pt} %%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}

%% New caption command
\newcommand\@MaxCapWidth{5.5in}
\setlength\belowcaptionskip{.2in}
\setlength\abovecaptionskip{.4in}
\long\def\@makecaption#1#2{%
  \normalsize
  \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}

%%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{}}
\newcommand\references{\thebibliography{}}
\let\endOSAJNLReferences\endthebibliography
\let\endOSAJNLlinks\endthebibliography
\let\endReferences\endthebibliography

%%Section parameters
\renewcommand\@seccntformat[1]{\csname the#1\endcsname.\quad }
\renewcommand\thesubsection{\thesection.\Alph{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}

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

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Option: copyedit
%% Adds space in between lines and in margins
%% for traditional copyediting
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\DeclareOption{copyedit}{%
\linespread{2.2}
\geometry{letterpaper,hcentering,nohead,right=1.25in,left=1.25in} %% uses geometry.sty
}%
\ProcessOptions\relax

%% end osajnl.sty