%springer lecture notes formatting macros
%no citation flag, author, date in paren ():  title, etc.,
%                                          volume, pages, gov't no., other

\def\journalarticleformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
     \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }\fi%
      \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat\Ftrail a\Ftrail\fi\egroup)\def\Comma{: }\fi%
       \if\Ttest\present\Comma\bgroup\Titlefont\Tstr\egroup\def\Comma{\unskip. }\fi%
        \if\etest\present\if\Ttest\present\fi\ (\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
         \if\Jtest\present\Comma\bgroup\Tomefont\Jstr\/\egroup\def\Comma{, }\fi%
          \if\Vtest\present\if\Jtest\present\ \else\Comma\fi\bgroup\Volfont\bf\Vstr\egroup\def\Comma{, }\fi%
           \if\Ptest\present\bgroup, \Pstr\egroup\def\Comma{, }\fi%
                  \if\ttest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
               \bgroup\Titlefont\tstr\egroup\def\Comma{\unskip. }%
                \if\jtest\present\Comma\bgroup\Tomefont\jstr\/\egroup\def\Comma{ }\fi%
                 \if\vtest\present\if\jtest\present\ \else\Comma\fi\bgroup\Volfont\vstr\egroup\def\Comma{ }\fi%
                  \if\ptest\present\bgroup, \pstr\egroup\def\Comma{ }\fi%
                   \if\dtest\present\ (\bgroup\dstr\egroup)\def\Comma{ }\fi]%
                \else\if\jtest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
                \bgroup\Tomefont\jstr\/\egroup\def\Comma{ }%
                 \if\vtest\present\if\jtest\present\ \else\Comma\fi\bgroup\Volfont\vstr\egroup\def\Comma{ }\fi%
                  \if\ptest\present\bgroup, \pstr\egroup\def\Comma{ }\fi%
                   \if\dtest\present\ (\bgroup\dstr\egroup)\def\Comma{ }\fi]\fi\fi%
                 \if\Gtest\present{Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{ }\fi%
                  \if\Otest\present{\unskip. \bgroup\Ostr\egroup}\else\fi%
                   \par}%

\def\conferencereportformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
     \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }\fi%
      \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat a\Ftrail\Ftrail\fi\egroup)\def\Comma{: }\fi%
       \if\Ttest\present\Comma\bgroup\Titlefont\Tstr\egroup\def\Comma{\unskip. }\fi%
        \if\Jtest\present\Comma\bgroup\Tomefont\Jstr\/\egroup\def\Comma{, }\fi%
         \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{ }\fi%
          \if\Otest\present{\unskip. \bgroup\Ostr\egroup}\else\fi%
           \par}%

\def\bookarticleformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
     \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }\fi%
      \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat a\Ftrail\Ftrail\fi\egroup)\def\Comma{: }\fi%
       \if\Ttest\present\Comma\bgroup\Titlefont\Tstr\egroup\def\Comma{\unskip. }\fi%
        \if\etest\present\if\Ttest\present\fi\ (\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
         \if\Btest\present\Comma In: %
           \if\Etest\present\bgroup\Estr\egroup\ifnum\Ecnt>1\ (eds.) \else\ (ed.) \fi\fi%
             \bgroup\Tomefont\Bstr\/\egroup. \def\Comma{}\fi%
          \if\otest\present\Comma\bgroup\ostr\egroup\def\Comma{ }\fi%
            \if\Stest\present\unskip\ (\bgroup\Sstr\egroup\def\Comma{ }%
               \if\Vtest\present\bgroup, vol.~\Volfont\Vstr\egroup\def\Comma{ }\fi%
                \if\Ntest\present\bgroup\, no.~\Volfont\Nstr\egroup\unskip.)\def\Comma{ }\fi)\fi%
               \if\Itest\present\Comma\bgroup\Istr\egroup\def\Comma{, }\fi%
                \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
                 \if\Ptest\present\Comma\bgroup\if\Pcnt\present pp.~\else p.~\fi\Pstr\egroup\def\Comma{, }\fi%
                  \if\ttest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
                   \bgroup\Titlefont\tstr\unskip.\egroup%
                   \if\btest\present\Comma In: \bgroup\Tomefont\bstr\egroup\def\Comma{ }%
                    \if\atest\present\Comma\bgroup\astr\egroup\unskip, \if\acnt\present\ (eds.)\else\ (ed.)\fi\def\Comma{ }\fi%
                   \Comma\bgroup\Tomefont\bstr\/\egroup.\def\Comma{ }\fi%
                     \if\stest\present\Comma(\bgroup\sstr\egroup\def\Comma{ }%
                      \if\vtest\present\bgroup, vol.~\Volfont\vstr\egroup\def\Comma{ }\fi%
                       \if\ntest\present\bgroup, no.~\Volfont\nstr\egroup\def\Comma{ }\fi.)\fi%
                        \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
                         \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
                          \if\ptest\present\Comma\pstr\def\Comma{, }\fi%
                          \if\dtest\present\ (\bgroup\dstr\egroup)\def\Comma{ }\fi]\fi%

                            \if\Gtest\present{Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{ }\fi%
                             \if\Otest\present{\unskip. \bgroup\Ostr\egroup}\else\fi%
                              \par}%

\def\bookformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
      \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }%
          \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\ifnum\Ecnt>1\ (eds.)~\else\ (ed.)~\fi\def\Comma{: }%
                \else\if\Itest\present\bgroup\Authfont\Istr\egroup\def\Comma{: }\fi\fi\fi%
        \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat a\Ftrail\Ftrail\fi\egroup)\def\Comma{: }\fi%
         \if\Ttest\present\Comma\bgroup\Tomefont\Tstr\egroup\def\Comma{\unskip. }%
               \else\if\Btest\present\Comma\bgroup\Tomefont\Bstr\/\egroup\def\Comma{\unskip. }\fi\fi%
           \if\otest\present\Comma\bgroup\ostr\egroup\def\Comma{\ }\fi%
            \if\etest\present\ (\bgroup\estr\egroup)\def\Comma{\unskip, }\fi%
             \if\Stest\present\Comma(\bgroup\Sstr\egroup%
              \if\Vtest\present\bgroup, vol.~\Volfont\Vstr\egroup\fi%
               \if\Ntest\present\bgroup, no.~\Volfont\Nstr\egroup\fi) \def\Comma{}\fi%
                \if\Atest\present\if\Itest\present
                        \Comma\bgroup\Istr\egroup\def\Comma{\unskip, }\fi%
                     \else\if\Etest\present\if\Itest\present
                             \Comma\bgroup\Istr\egroup\def\Comma{\unskip, }\fi\fi\fi%
                    \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{, }\fi%
                  \if\ttest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
                       \bgroup\Tomefont\tstr\egroup%
                        \if\stest\present\unskip. (\bgroup\sstr\egroup\def\Comma{ }%
                         \if\vtest\present\bgroup, vol.~\Volfont\vstr\egroup\def\Comma{ }\fi%
                          \if\ntest\present\bgroup, no.~\Volfont\nstr\egroup\def\Comma{ }\fi\unskip.) \fi%
                           \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
                            \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
                             \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{, }\fi]\ %
                           \else\if\btest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
                       \bgroup\Tomefont\bstr\egroup%
                        \if\stest\present\unskip. (\bgroup\sstr\egroup\def\Comma{ }%
                         \if\vtest\present\bgroup, vol.~\Volfont\vstr\egroup\def\Comma{ }\fi%
                          \if\ntest\present\bgroup, no.~\Volfont\nstr\egroup\def\Comma{ }\fi\unskip.) \fi%
                           \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
                            \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
                             \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{ }\fi] \fi\fi%
                              \if\Gtest\present{\unskip. Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{, }\fi%
                               \if\Otest\present{\unskip. \bgroup\Ostr\egroup}\else\fi%
                                \par}%

\def\technicalreportformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
     \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }%
          \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1\ (eds.)~\else\ (ed.)~\fi\def\Comma{: }%
                \else\if\Itest\present\bgroup\Authfont\Istr\egroup\def\Comma{: }\fi\fi\fi%
        \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat a\Ftrail\Ftrail\fi\egroup)\def\Comma{: }\fi%
         \if\Ttest\present\Comma\bgroup\Titlefont\Tstr\egroup\def\Comma{\unskip. }\fi%
           \if\Atest\present\if\Itest\present
                  \Comma\bgroup\Istr\egroup\def\Comma{, }\fi%
               \else\if\Etest\present\if\Itest\present
                       \Comma\bgroup\Istr\egroup\def\Comma{, }\fi\fi\fi%
            \if\Ctest\present\Comma\bgroup\Cstr\egroup\def\Comma{. }\fi%
             \if\Rtest\present\Comma\bgroup\Rstr\egroup\def\Comma{ }\fi%
                  \if\ttest\present\ [%
                   \if\ltest\present\bgroup\lstr\egroup\ translation: \else Translation: %
                       {\def\egroup{}\def\bgroup{}\def\ { }\def\unskip{}\immediate\write16{Use lfield for language of translation in reference: \Fstr.}}\fi%
                    \bgroup\Tomefont\tstr\egroup%
              \if\rtest\present\Comma\bgroup\rstr\egroup\def\Comma{, }\fi%
               \if\itest\present\Comma\bgroup\istr\egroup\def\Comma{, }\fi%
                \if\ctest\present\Comma\bgroup\cstr\egroup\def\Comma{, }\fi%
                 \if\dtest\present\Comma\bgroup\dstr\egroup\def\Comma{, }\fi] \fi%
                  \if\Gtest\present{\unskip. Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{ }\fi%
                   \if\Otest\present{\unskip. \bgroup\Ostr\egroup}\else\fi%
                    \par}%

\def\otherformat{\Reffont\let\uchyph=1\def\Comma{}%
               \sfcode`\.=1000\sfcode`\?=1000\sfcode`\!=1000\sfcode`\: =1000\sfcode`\;=1000\sfcode`\,=1000%\frenchspacing
               \par\vfil\penalty-200\vfilneg\noindent%\filbreak
                \hangindent=.5\parindent\hangafter=1
     \if\Atest\present\bgroup\Authfont\Astr\egroup\def\Comma{: }%
           \else\if\Etest\present\bgroup\def\Eand{\Aand}\def\Eandd{\Aandd}\Authfont\Estr\egroup\unskip, \ifnum\Ecnt>1\(eds.~ (\else\ (ed.)\fi\def\Comma{: }%
                \else\if\Itest\present\bgroup\authfont\Istr\egroup\def\Comma{: }\fi\fi\fi%
        \if\Dtest\present\unskip\ (\bgroup\Dstr\ifcat a\Ftrail\Ftrail\fi\egroup)\def\Comma{: }\fi%
         \if\Ttest\present\Comma\bgroup\Titlefont\Tstr\egroup\unskip\fi%
          \if\Atest\present\if\Itest\present
                  \Comma\bgroup\Istr\egroup\def\Comma{. }\fi%
               \else\if\Etest\present\if\Itest\present
                       \Comma\bgroup\Istr\egroup\def\Comma{. }\fi\fi\fi%
               \if\Ctest\present, \bgroup\Cstr\egroup\def\Comma{. }\fi%
                \if\Gtest\present\Comma{Gov't ordering no. }\bgroup\Gstr\egroup\def\Comma{. }\fi%
                 \if\Otest\present\Comma\bgroup\Ostr\egroup\else\fi%
                  \par}%