\NeedsTeXFormat{LaTeX2e} \ProvidesClass{myasmq}[2008/05/03 The ASMQ document class] \DeclareOption{cropmarks}{\AtBeginDocument{\crop[cam]}} \DeclareOption{francais}{\AtBeginDocument{\protect\selectlanguage{francais}}} \DeclareOption{english}{\AtBeginDocument{\protect\selectlanguage{english}}} \DeclareOption{10pt}{\OptionNotUsed} \DeclareOption{12pt}{\OptionNotUsed} \DeclareOption{oneside}{\OptionNotUsed} \DeclareOption*{\PassOptionsToClass{\CurrentOption}{amsproc}} \ExecuteOptions{english} \ProcessOptions\relax \LoadClass[11pt,twoside,leqno]{amsproc} \RequirePackage[francais,english]{babel} \RequirePackage[papersize={7in,10in}, left=0.875in,textwidth=5.25in, top=0.8125in,textheight=8.4375in, foot=0.375in]{geometry} \RequirePackage[dvips,letter,center]{crop} \RequirePackage[T1]{fontenc} \RequirePackage{times} %\RequirePackage{mathptmx} \RequirePackage{amsthm} \RequirePackage[alwaysadjust,newitem,newenum,neverdecrease]{paralist} \newcommand\publname{Ann.\ Sci.\ Math.\ Qu\'ebec} \renewcommand\procart@logo{% \set@logo{\publname \ifx\@empty\volinfo \else\ \volinfo\fi}% } %\copyrightinfo{}{Association math\'ematique du Qu\'ebec} \renewcommand{\andify}{% \nxandlist{\unskip, }{\unskip{} and~}{\unskip{} and~}} \renewcommand{\maketitle}{\par \@topnum\z@ % \@setcopyright \thispagestyle{firstpage} \ifx\@empty\shortauthors \let\shortauthors\shorttitle \else \andify\shortauthors \fi \@maketitle@hook \begingroup \@maketitle \toks@\@xp{\shortauthors}\@temptokena\@xp{\shorttitle}% \toks4{\def\\{ \ignorespaces}} \edef\@tempa{% \@nx\markboth{\the\toks4 \@nx\MakeUppercase{\the\toks@}}{\the\@temptokena}}% \@tempa \endgroup \c@footnote\z@ \@cleartopmattertags } \newbox\resumebox \newenvironment{resume}{% \ifx\maketitle\relax \ClassWarning{\@classname}{Résumé should precede \protect\maketitle\space in ASMQ document class; reported}% \fi \global\setbox\resumebox=\vtop \bgroup\otherlanguage{francais} \normalfont\small \list{}{\labelwidth\z@ \leftmargin\normalparindent \rightmargin\leftmargin \listparindent\normalparindent \itemindent15\p@ \parsep\z@ \@plus\p@ \let\fullwidthdisplay\relax }% \item[\hskip\labelsep\scshape\abstractname.]% }{% \endlist\egroup } \renewenvironment{abstract}{% \ifx\maketitle\relax \ClassWarning{\@classname}{Abstract should precede \protect\maketitle\space in ASMQ document class; reported}% \fi \global\setbox\abstractbox=\vtop \bgroup\otherlanguage{english} \normalfont\small \list{}{\labelwidth\z@ \leftmargin\normalparindent \rightmargin\leftmargin \listparindent\normalparindent \itemindent15\p@ \parsep\z@ \@plus\p@ \let\fullwidthdisplay\relax }% \item[\hskip\labelsep\scshape\abstractname.]% }{% \endlist\egroup \ifx\@setabstract\relax \@setabstracta \fi } \def\@setabstracta{% \ifvoid\resumebox \else \skip@20\p@ \advance\skip@-\lastskip \advance\skip@-\baselineskip \vskip\skip@ \box\resumebox \prevdepth\z@ \fi \ifvoid\abstractbox \else \skip@8\p@ \advance\skip@-\lastskip \advance\skip@-\baselineskip \vskip\skip@ \box\abstractbox \prevdepth\z@ \fi } \newif\ifdefinitif@ \def\reception#1{\gdef\date@{\ignorespaces#1}\global\definitif@false} \def\date@{} \def\definitif#1{\global\definitif@true\gdef\date1@{\ignorespaces#1}} \def\@adminfootnotes{% \let\@makefnmark\relax \let\@thefnmark\relax \ifx\date@\empty@\else \@footnotetext{Re\c{c}u le \date@\ifdefinitif@ ~et, sous forme d\'efinitive, le \date1@.\else.\fi}\fi \ifx\@empty\thankses\else \@footnotetext{% \def\par{\let\par\@par}\@setthanks}% \fi } \parskip=5\p@ \def\@maketitle{% \normalfont\normalsize \@adminfootnotes \@mkboth{\@nx\shortauthors}{\@nx\shorttitle}% \global\topskip2.135cm\relax \@settitle \ifx\@empty\authors \else \@setauthors \fi \ifx\@empty\@dedicatory \else \baselineskip26\p@ \vtop{\centering{\footnotesize\itshape\@dedicatory\@@par}% \global\dimen@i\prevdepth}\prevdepth\dimen@i \fi \@setabstract \normalsize \if@titlepage \newpage \else \dimen@15\p@ \advance\dimen@-\baselineskip \vskip\dimen@\relax \fi } \let\@logofont\small \def\@settitle{\begin{center}% \Large \bfseries \uppercasenonmath\@title \@title \end{center}% } \def\@setauthors{% \begingroup \def\thanks{\protect\thanks@warning}% \trivlist \centering \scshape\normalsize\@topsep0.22in\relax \item\relax \andify\authors \def\\{\protect\linebreak}% \authors \ifx\@empty\contribs \else ,\penalty-3 \space \@setcontribs \@closetoccontribs \fi \endtrivlist \endgroup } \def\@setaddresses{\par \nobreak \begingroup \footnotesize \def\author##1{\nobreak\addvspace\bigskipamount}% \def\\{\unskip, \ignorespaces}% \interlinepenalty\@M \def\address##1##2{\begingroup \par\addvspace\bigskipamount\noindent \@ifnotempty{##1}{(\ignorespaces##1\unskip) }% {\scshape\ignorespaces##2}\newline%\par \endgroup}% \def\curraddr##1##2{\begingroup \@ifnotempty{##2}{\nobreak\noindent\curraddrname \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space ##2\newline%\par }\endgroup}% % Version André Montpetit % \def\email##1##2{\begingroup % \@ifnotempty{##2}{\nobreak\noindent\emailaddrname % \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space\ttfamily##2\par}\endgroup}% \def\email##1##2{\begingroup \@ifnotempty{##2}{\nobreak\noindent\ignorespaces \ttfamily$\mathtt{##2}$\par}\endgroup\goodbreak}% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \def\urladdr##1##2{\begingroup \def~{\char`\~}% \@ifnotempty{##2}{\nobreak\noindent\urladdrname \@ifnotempty{##1}{, \ignorespaces##1\unskip}\/:\space \ttfamily##2\par}\endgroup}% \addresses \endgroup } \headsep=17pt %Contrôle l'espacement entre les entêtes et le texte \def\ps@firstpage{\ps@empty \def\@oddfoot{% \setTrue{runhead}% % \normalfont\small % \hfil \copyright\ \copyrightholder % \def\thanks{\protect\thanks@warning}% }% \def\@oddhead{% \setTrue{runhead}% \normalfont\small\publname\ \volinfo \def\thanks{\protect\thanks@warning}% \hfil}% \let\@evenhead\@oddhead \let\@evenfoot\@oddfoot \let\@mkboth\markboth } \def\ps@headings{\ps@empty \def\@evenhead{% \setTrue{runhead}% \normalfont \small\sffamily\scshape \rlap{\rmfamily\thepage}\hfil \def\thanks{\protect\thanks@warning}% \shorttitle \llap{\hbox{\raisebox{-0.25em}{\vrule depth 0pt height 0.4pt width 5.25in}}} % Ajoute la ligne sous le nom des auteurs }% \def\@oddhead{% \setTrue{runhead}% \normalfont\small\itshape% \hfil \def\thanks{\protect\thanks@warning}% \shortauthors\hfil \llap{\textup\thepage} \llap{\hbox{\raisebox{-0.25em}{\vrule depth 0pt height 0.4pt width 5.25in}}} % Ajoute la ligne sous le nom des auteurs }% \let\@mkboth\markboth } \pagestyle{headings} \def\th@plain{% \thm@preskip\parskip \thm@postskip\thm@preskip \thm@headfont{\bfseries}% heading font is bold \thm@notefont{\bfseries}% \slshape } \def\th@definition{% \thm@preskip\parskip \thm@postskip\thm@preskip \thm@headfont{\bfseries}% heading font is bold \thm@notefont{\bfseries}% \normalfont % body font } \def\th@remark{% \thm@preskip\parskip \thm@postskip\thm@preskip \thm@headfont{\itshape}% heading font is bold \thm@notefont{\itshape}% \normalfont % body font } \if@plflushright \def\enumlabel#1{\hss\upshape #1} \else \def\enumlabel#1{\upshape #1\hfil} \fi \def\@asparaenum@{% \expandafter\list\csname label\@enumctr\endcsname{% \usecounter{\@enumctr}% \labelwidth\z@ \labelsep.5em \leftmargin\z@ \parsep\parskip \itemsep\z@ \topsep\z@ \partopsep\parskip \itemindent\parindent \advance\itemindent\labelsep \def\makelabel##1{\upshape ##1}}} \AtBeginDocument{% \labelsep=5pt\relax \setcounter{enumi}{1}\setcounter{enumii}{1}% \setcounter{enumiii}{1}\setcounter{enumiv}{1}% \settowidth\leftmargini{\labelenumi\hskip\labelsep}% \advance\leftmargini by \normalparindent \settowidth\leftmarginii{\labelenumii\hskip\labelsep}% \settowidth\leftmarginiii{\labelenumiii\hskip\labelsep}% \settowidth\leftmarginiv{\labelenumiv\hskip\labelsep}% \setcounter{enumi}{0}\setcounter{enumii}{0}% \setcounter{enumiii}{0}\setcounter{enumiv}{0}% \leftmarginv=10pt \leftmarginvi=\leftmarginv \leftmargin=\leftmargini \labelwidth=\leftmargini \advance\labelwidth-\labelsep \@listi} \topsep=\z@skip \def\@listii{\leftmargin\leftmarginii \labelwidth\leftmarginii \advance\labelwidth-\labelsep \topsep=-\parskip \parsep\z@skip \partopsep\z@skip \itemsep\z@skip} \renewcommand{\qed}{\quad\ensuremath{\square}} \renewenvironment{proof}[1][\proofname]{% \normalfont \trivlist \itemindent\normalparindent \item[\hskip\labelsep \bfseries #1\@addpunct{.}]\ignorespaces }{% \small\qed\endtrivlist\@endpefalse } %Section spéciale : Bibliographie \def\specialsection{\@startsection{section}{1}% \z@{2\linespacing}{1\linespacing}% {\Large\scshape\centering}} %\section \def\section{\@startsection{section}{1}% \z@{1\linespacing\@plus\linespacing}{.75\linespacing}% {\Large\bfseries\centering}} %\subsection \def\subsection{\@startsection{subsection}{2}% \normalparindent{.5\linespacing\@plus.7\linespacing}{.01\linespacing\vspace{-.17cm}}% {\large\bfseries}} %\def\subsection{\@startsection{subsection}{2}% % \normalparindent{.5\linespacing\@plus.7\linespacing}{.01\linespacing\vspace{-.17cm}}% % {\normalfont\bfseries}} %\subsubsection \def\subsubsection{\@startsection{subsubsection}{3}% \z@\z@{-\fontdimen2\font}% %\normalfont \bfseries} \renewcommand{\bibliofont}{\small} \renewcommand{\@bibtitlestyle}{% \@xp\specialsection\@xp*\@xp{\refname}% } \renewenvironment{thebibliography}[1]{% \@bibtitlestyle \normalfont\bibliofont\labelsep .5em\relax \renewcommand\theenumiv{\arabic{enumiv}}\let\p@enumiv\@empty \list{\@biblabel{\theenumiv}}{\settowidth\labelwidth{\@biblabel{#1}}% \leftmargin\labelwidth \advance\leftmargin\labelsep\itemsep0.1cm \usecounter{enumiv}}% \sloppy \clubpenalty\@M \widowpenalty\clubpenalty \sfcode`\.=\@m }{% \def\@noitemerr{\@latex@warning{Empty `thebibliography' environment}}% \endlist } \def\citeform#1{{#1}} \endinput