mmcp-19-gerstner

Computational Model of Unsteady Hydromechanics of Large Amplitude Gerstner Waves
git clone https://git.igankevich.com/mmcp-19-gerstner.git
Log | Files | Refs

mmcpauth.sty (7637B)


      1 %!TEX root=mmcp_abstract.tex
      2 %%
      3 %% This is file `mmcpauth.sty',
      4 %% created from authblk.sty with changes on saving
      5 %% list of authors and title so that they can be
      6 %% reused later. Special for the MMCP conference.
      7 %%
      8 %% Full documentation can be obtained by LaTeXing that original file.
      9 %% Only a few abbreviated comments remain here to describe the usage.
     10 %% =============================================
     11 %% Original authblk.sty copyright:
     12 %% Copyright 1997-1999 Patrick W Daly
     13 %% Max-Planck-Institut f\"ur Aeronomie
     14 %% Max-Planck-Str. 2
     15 %% D-37191 Katlenburg-Lindau
     16 %% Germany
     17 %% E-mail: daly@linmpi.mpg.de
     18 \NeedsTeXFormat{LaTeX2e}[1995/06/01]
     19 \ProvidesPackage{mmcpauth}
     20           [2019/02/28 1.0]
     21  %-------------------------------------------------------------------
     22  % NOTICE:
     23  % This file may be used for non-profit purposes.
     24  % It may not be distributed in exchange for money,
     25  %   other than distribution costs.
     26  %
     27  % The author provides it `as is' and does not guarantee it in any way.
     28  %
     29  %-----------------------------------------------------------
     30  % Author/Affiliation Blocks
     31  % A LaTeX2e package to redefine the \author command to work as normal or
     32  % to allow a footnote style of author/affiliation input.
     33  %
     34  % Three methods of input:
     35  %  1. Standard LaTeX
     36  %     \author{Name1\\Affil1 /and Name2 and Name3\\Affil2 . . .}
     37  % (use \authorcr, not \\, to force new line within the author text)
     38  %  2. Automatic mode (selects modes 1 or 3 depending on number of affiliations)
     39  %     \author{Name1}
     40  %     \affil{Affil1}
     41  %     \author{Name2}
     42  %     \author{Name3}
     43  %     \affil{Affil2}
     44  %     . . .
     45  %  3. Footnotes explicitly
     46  %     \author[*]{Name1}
     47  %     \author[**]{Name2}
     48  %     \author[**]{Name3}
     49  %     \affil[*]{Affil1}
     50  %     \affil[**]{Affil2}
     51  %     . . .
     52  % See documentation in authblk.dtx for further configuration possibilities.
     53  %-----------------------------------------------------------
     54 \date{}
     55 \newcommand{\printAcknowledgement}{}
     56 \newcommand{\laTitle}{}
     57 \def\refname{{\small References}}
     58 \def\mmcpTitle#1{%
     59   \title{#1}
     60   \renewcommand{\laTitle}{#1}
     61 }
     62 
     63 \def\mmcpAffil#1#2{\affil[#1]{#2}}
     64 \def\mmcpAuthor#1#2{%
     65   \author[#1]{#2}
     66   \laauthor{#2}
     67 }
     68 
     69 \newcommand\Authfont{\normalfont}
     70 \newcommand\Affilfont{\normalfont}
     71 \newcommand\Authsep{, }
     72 \newcommand\Authands{, and }
     73 \newcommand\Authand{ and }
     74 \newlength{\affilsep}\setlength{\affilsep}{1em}
     75 \newlength{\@affilsep}
     76 \newcounter{Maxaffil}
     77 \setcounter{Maxaffil}{2}
     78 \DeclareOption{blocks}{\setcounter{Maxaffil}{\maxdimen}}
     79 \DeclareOption{noblocks}{\setcounter{Maxaffil}{0}}
     80 \DeclareOption{max2}{\setcounter{Maxaffil}{2}}
     81 \DeclareOption{max3}{\setcounter{Maxaffil}{3}}
     82 \DeclareOption{max4}{\setcounter{Maxaffil}{4}}
     83 \DeclareOption{max5}{\setcounter{Maxaffil}{5}}
     84 \DeclareOption{max6}{\setcounter{Maxaffil}{6}}
     85 \DeclareOption{auth-sc}{\renewcommand\Authfont{\scshape}}
     86 \DeclareOption{auth-sc-lg}{\renewcommand\Authfont{\large\scshape}}
     87 \DeclareOption{auth-lg}{\renewcommand\Authfont{\large}}
     88 \DeclareOption{affil-sl}{\renewcommand\Affilfont{\slshape}}
     89 \DeclareOption{affil-it}{\renewcommand\Affilfont{\itshape}}
     90 \DeclareOption{german}{\renewcommand\Authand{, und }%
     91                        \renewcommand\Authands{, und }}
     92 \ProcessOptions
     93 \newcounter{authors}
     94 \newcounter{laauthors}
     95 \setcounter{laauthors}{0}
     96 \newcounter{affil}
     97 \newif\ifnewaffil \newaffiltrue
     98 \newcommand\AB@authnote[1]{\textsuperscript{\normalfont#1}}
     99 \newcommand\AB@affilnote[1]{\textsuperscript{\normalfont#1}}
    100 \providecommand\textsuperscript[1]{$^{#1}$}
    101 \newcommand\AB@blk@and{\protect\Authfont\protect\AB@setsep}
    102 \newcommand\AB@pand{\protect\and \protect\Authfont \protect\AB@setsep}
    103 \@namedef{@sep1}{}
    104 \@namedef{@sep2}{\Authand}
    105 \newcommand\AB@affilsep{\protect\Affilfont}
    106 \newcommand\AB@affilsepx{\protect\\\protect\Affilfont}
    107 \newcommand\AB@setsep{\setlength{\@affilsep}{\affilsep}}
    108 \newcommand\AB@resetsep{\setlength{\@affilsep}{\z@}}
    109 \newcommand\AB@authlist{}
    110 \newcommand\AB@affillist{}
    111 \newcommand\AB@authors{}
    112 \newcommand\AB@empty{}
    113 \xdef\AB@author{\noexpand\AB@blk@and\@author}
    114 \renewcommand\author[2][]%
    115       {\ifnewaffil\addtocounter{affil}{1}%
    116        \edef\AB@thenote{\arabic{affil}}\fi
    117       \if\relax#1\relax\def\AB@note{\AB@thenote}\else\def\AB@note{#1}%
    118         \setcounter{Maxaffil}{0}\fi
    119       \ifnum\value{authors}>1\relax
    120       \@namedef{@sep\number\c@authors}{\Authsep}\fi
    121       \addtocounter{authors}{1}%
    122       \begingroup
    123           \let\protect\@unexpandable@protect \let\and\AB@pand
    124           \def\thanks{\protect\thanks}\def\footnote{\protect\footnote}%
    125          \@temptokena=\expandafter{\AB@authors}%
    126          {\def\\{\protect\\[\@affilsep]\protect\Affilfont
    127               \protect\AB@resetsep}%
    128               \xdef\AB@author{\AB@blk@and#2}%
    129        \ifnewaffil\gdef\AB@las{}\gdef\AB@lasx{\protect\Authand}\gdef\AB@as{}%
    130            \xdef\AB@authors{\the\@temptokena\AB@blk@and}%
    131        \else
    132           \xdef\AB@authors{\the\@temptokena\AB@as\AB@au@str}%
    133           \global\let\AB@las\AB@lasx\gdef\AB@lasx{\protect\Authands}%
    134           \gdef\AB@as{\Authsep}%
    135        \fi
    136        \gdef\AB@au@str{#2}}%
    137          \@temptokena=\expandafter{\AB@authlist}%
    138          \let\\=\authorcr
    139          \xdef\AB@authlist{\the\@temptokena
    140            \protect\@nameuse{@sep\number\c@authors}%
    141            \protect\Authfont#2\AB@authnote{\AB@note}}%
    142       \endgroup
    143       \ifnum\value{authors}>2\relax
    144       \@namedef{@sep\number\c@authors}{\Authands}\fi
    145       \newaffilfalse
    146 }
    147 \newcommand\authorcr{\protect\\ \protect\Authfont \protect\AB@setsep}%
    148 \newcommand\affil[2][]%
    149    {\newaffiltrue\let\AB@blk@and\AB@pand
    150       \if\relax#1\relax\def\AB@note{\AB@thenote}\else\def\AB@note{#1}%
    151         \setcounter{Maxaffil}{0}\fi
    152       \begingroup
    153         \let\protect\@unexpandable@protect
    154         \def\thanks{\protect\thanks}\def\footnote{\protect\footnote}%
    155         \@temptokena=\expandafter{\AB@authors}%
    156         {\def\\{\protect\\\protect\Affilfont}\xdef\AB@temp{#2}}%
    157          \xdef\AB@authors{\the\@temptokena\AB@las\AB@au@str
    158          \protect\\[\affilsep]\protect\Affilfont\AB@temp}%
    159          \gdef\AB@las{}\gdef\AB@au@str{}%
    160         {\def\\{, \ignorespaces}\xdef\AB@temp{#2}}%
    161         \@temptokena=\expandafter{\AB@affillist}%
    162         \xdef\AB@affillist{\the\@temptokena \AB@affilsep
    163           \AB@affilnote{\AB@note}\protect\Affilfont\AB@temp}%
    164       \endgroup
    165        \let\AB@affilsep\AB@affilsepx
    166 }
    167 \def\@author{}
    168 \renewcommand\@author{\ifx\AB@affillist\AB@empty\AB@author\else
    169       \ifnum\value{affil}>\value{Maxaffil}\def\rlap##1{##1}%
    170     \AB@authlist\\[\affilsep]\AB@affillist
    171     \else  \AB@authors\fi\fi}
    172 \let\AB@maketitle=\maketitle
    173 \def\maketitle
    174   {{\renewenvironment{tabular}[2][]{\begin{center}}
    175                                    {\end{center}}
    176   \AB@maketitle}}
    177 \def\laauthor#1{
    178   \ifnum\value{laauthors}<1
    179     \newcommand{\laauthors}{#1}
    180     \addtocounter{laauthors}{1}
    181   \else
    182     \g@addto@macro\laauthors{, #1}
    183     \addtocounter{laauthors}{1}
    184   \fi
    185 }
    186 
    187 \newcommand{\printLiterature}{}
    188 \newcommand{\printMMCPAbstract}{}
    189 \newcommand{\mmcpAbstract}[1]{\renewcommand{\printMMCPAbstract}{#1}}
    190 \newcommand{\mmcpLiterature}[1]{\renewcommand{\printLiterature}{#1}}
    191 
    192 \newcommand{\mmcpDate}[1]{\def\printMMCPDate{#1}}
    193 \newcommand{\mmcpAcknowledgement}[1]{%
    194 \ifx\relax#1\relax
    195   \renewcommand{\printAcknowledgement}{}
    196 \else
    197   \renewcommand{\printAcknowledgement}{\medskip \noindent\textbf{Acknowledgement:} #1}\fi}
    198 
    199 \newcommand{\bibkey}{key}
    200 \newcommand{\mcite}[1]{\cite{\bibkey#1}}
    201 \newcommand{\mbibitem}[1]{\bibitem{\bibkey#1}}
    202 
    203 \def\printAbstract{%
    204 \setcounter{page}{1}
    205 
    206 \maketitle
    207 
    208 \printMMCPAbstract
    209 
    210 \printAcknowledgement
    211 
    212 \printLiterature
    213 }
    214 %% End of file `mmcpauth.sty'.