summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source')
-rw-r--r--Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx223
1 files changed, 138 insertions, 85 deletions
diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
index 35eb95d50d0..68b41d0e3d6 100644
--- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
+++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx
@@ -23,13 +23,14 @@
%<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01]
%<class>\ProvidesClass{ejpecp}
%<*class>
- [2012/01/09 v0.57721 .dtx ejpecp file]
+ [2012/12/12 v1.0 .dtx ejpecp file]
%</class>
%<class>\ClassInfo{ejpecp}{Copyright (c), 2011, 2012, BURDZY and CHAFAI for EJP-ECP.}
%
%<*driver>
\documentclass[10pt]{ltxdoc}
-\usepackage[pdftex,pdfborder=0]{hyperref}
+\usepackage[pdftex]{hyperref}
+\hypersetup{pdfborder=0 0 0}
\usepackage[a4paper,margin=2.5cm]{geometry}
\EnableCrossrefs
\CodelineIndex
@@ -40,7 +41,7 @@
%</driver>
% \fi
%
-% \CheckSum{651}
+% \CheckSum{736}
%
% \CharacterTable
% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
@@ -63,6 +64,8 @@
% \changes{v0.577}{2011/12/12}{Improvements, see the README file.}
% \changes{v0.5772}{2011/12/24}{Improvements, see the README file.}
% \changes{v0.57721}{2012/01/09}{Improvements, see the README file.}
+% \changes{v0.577215}{2012/01/09}{Improvements, see the README file.}
+% \changes{v1.0}{2012/12/12}{First stable version, see the README file.}
% \GetFileInfo{ejpecp.dtx}
%
% \DoNotIndex{\newcommand,\newenvironment}
@@ -125,6 +128,11 @@
\newcommand{\@URL}{ecp.ejpecp.org}
\makeatother
}
+\DeclareOption{NOAMS}{% prevents the load of AMS packages
+ \makeatletter
+ \newcommand{\@NOAMS}{}
+ \makeatother
+}
\DeclareOption{NODS}{% asks to avoid renaming \mathbb into \mathds
\makeatletter
\newcommand{\@NODS}{}
@@ -147,22 +155,26 @@
\RequirePackage[pdftex]{graphicx}
\DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG}
\RequirePackage{lastpage}
-\RequirePackage{amsmath,amsfonts,amssymb,amsthm,latexsym,dsfont}
+\RequirePackage{latexsym}
+\makeatletter
+\ifx\@NODS\undefined\RequirePackage{dsfont}\fi
+\ifx\@NOAMS\undefined\RequirePackage{amsmath,amsfonts,amssymb,amsthm}\fi
+\makeatother
\RequirePackage{geometry}
-\geometry{a4paper,portrait,left=4.5cm,right=2.5cm,top=3.5cm,bottom=3.5cm}
+\geometry{a4paper,portrait,left=3.5cm,right=3.5cm,top=3.5cm,bottom=3.5cm}
%\RequirePackage{charter} % Ph. Carmona
\RequirePackage{bera} % beware that the logo is sensitive to default font change
+%%\RequirePackage[expert]{lucbmath} % Y&Y's Lucida cf. doc/fonts/bera/bera.txt
+%%\def\DeclareLucidaFontShape#1#2#3#4#5#6{%
+%%\DeclareFontShape{#1}{#2}{#3}{#4}{<->s*[0.90]#5}{#6}}
\RequirePackage[pdftex,pagebackref=false]{hyperref}
-\hypersetup{colorlinks=false}
-\hypersetup{pdfborder=0}
-% Colored borders off due to ugly large rectangle in firt page of ECP
-% (this is due to the \pageref{LastPage} in headings which produces a link)
-%\hypersetup{pdfborder=0 0 0.5}
-%\hypersetup{linkbordercolor=0.0 0.9 0.9}
-%\hypersetup{urlbordercolor =0.0 0.9 0.9}
-%\hypersetup{citebordercolor=0.0 0.9 0.9}
-\hypersetup{pdfcreator=pdflatex engine with ejpecp class}
+%\hypersetup{colorlinks=false} % useless with our zero borders
+\hypersetup{pdfborder=0 0 0}
\hypersetup{pdfstartview={FitH}}
+%% PDF level and compression % it is actually better to do it externally
+%\pdfminorversion=5
+%\pdfcompresslevel=9
+%\pdfobjcompresslevel=3
%%%% Macros et Environments
%% General macros
\makeatletter%
@@ -180,6 +192,7 @@
\newcommand{\@ACCEPTED}{FIXME!}
\newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}}
\newcommand{\SHORTTITLE}[1]{\renewcommand{\@SHORTTITLE}{#1}}
+\newcommand{\DEDICATORY}[1]{\gdef\@DEDICATORY{#1}}
\newcommand{\AUTHORS}[1]{\author{#1}}
\newcommand{\KEYWORDS}[1]{\renewcommand{\@KEYWORDS}{#1}}
\newcommand{\AMSSUBJ}[1]{\renewcommand{\@AMSSUBJ}{#1}}
@@ -194,8 +207,11 @@
\newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}}
\newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}}
\newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}}
+\newcommand{\HALID}[1]{\gdef\@HALID{#1}}
+\newcommand{\ARXIVPASSWORD}[1]{}
\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1}
-\newcommand{\EMAIL}[1]{E-mail:~\texttt{\href{mailto:#1}{#1}}}
+\newcommand{\EMAIL}[1]{E-mail:~\texttt{\href{mailto:#1}{#1}}}
+\newcommand{\BEMAIL}[1]{\newline\hspace*{1.8em}\EMAIL{#1}} % useful in ftnotes
\makeatother
%% Logos
\makeatletter
@@ -270,44 +286,58 @@
\fi} %
\bigskip
\bigskip
- {\Large\bfseries\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi
+ {\Large\bfseries\@TITLE}%
\fi%EJP
\ifx\@ECP\undefined\else%
\parbox[t]{9cm}{%
\@JOURNALA\ \textbf{\@VOLUME} (\@YEAR), %
- no. \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\ %
+ no. \@PAPERNUM, \@PAGESTART--\@PAGEEND.\\%
\ifx\@DOI\undefined\else%
\ DOI: \texttt{\href{http://dx.doi.org/\@DOI}{\@DOI}}%
\fi \\ %
- ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}%
+ ISSN:\ \texttt{\href{http://\@URL/}{\@ISSN}}
}%
\hfill
\@ECPLOGO\\
\bigskip
\bigskip
- {\Large\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi
+ {\Large\@TITLE}%
\fi%ECP
} % end title
- \date{}%
+ \date{%
+ \ifx\@DEDICATORY\undefined%
+ \else%
+ \noindent%
+ \emph{\small\sffamily\@DEDICATORY}
+ \fi%
+}%
\maketitle\thispagestyle{empty}%
\begin{abstract}%
\noindent%
\@ABSTRACT\\[1em]%
- {\footnotesize\newlength{\@DH}\setlength{\@DH}{-.2em}%
- \textbf{Keywords: }%
- \@KEYWORDS.\\[\@DH]%
- \textbf{AMS 2010 Subject Classification: }%
- \ifx\@AMSSUBJSECONDARY\undefined
- \@AMSSUBJ.
- \else
- Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.
- \fi\\[0.5em]
- Submitted to \@JOURNAL\ on \@SUBMITTED, %
- final version accepted on \@ACCEPTED.\\[\@DH]%
- \ifx\@ARXIVID\undefined\else%
- Supersedes %
+ {\footnotesize%
+ \textbf{Keywords: }\@KEYWORDS.\par%
+ \noindent\textbf{AMS MSC 2010: }%
+ \ifx\@AMSSUBJSECONDARY\undefined%
+ \noindent%
+ \@AMSSUBJ.\par%
+ \else%
+ \noindent%
+ Primary \@AMSSUBJ, Secondary \@AMSSUBJSECONDARY.\par%
+ \fi%
+ \noindent%
+ Submitted to \@JOURNAL\ on \@SUBMITTED, %
+ final version accepted on \@ACCEPTED.\par%
+ \ifx\@ARXIVID\undefined\else%
+ \noindent%
+ Supersedes %
\texttt{\href{http://arXiv.org/abs/\@ARXIVID}{arXiv:\@ARXIVID}}.%
- \fi%
+ \fi\par%
+ \ifx\@HALID\undefined\else%
+ \noindent%
+ Supersedes %
+ \texttt{\href{http://hal.archives-ouvertes.fr/\@HALID}{HAL:\@HALID}}.%
+ \fi\par%
}%footnotesize
\end{abstract}
@@ -315,6 +345,19 @@
}%END-FIRSTPAGE
\makeatother
+%% Macro setting the PDF title
+\makeatletter
+\newcommand{\PDFFIELDS}{%
+ \hypersetup{%
+ pdftitle={\@JOURNALA\ \@VOLUME\ (\@YEAR), no. \@PAPERNUM, DOI: \@DOI}}%
+ \hypersetup{pdfkeywords={\@KEYWORDS}}%
+ \hypersetup{pdfproducer={\@JOURNAL\ Managing Editor http://\@URL/}}%
+ \hypersetup{pdfcreator={LaTeX with ejpecp.cls v1.0}}%
+ \hypersetup{pdfsubject={Probability Theory}}%
+ \hypersetup{pdfauthor={Please see http://dx.doi.org/\@DOI}}%
+}%END-PDFFIELDS
+\makeatother
+
%% Bibliography
\makeatletter
\def\@MRExtract#1 #2!{#1} % thanks, Martin!
@@ -327,9 +370,11 @@
\renewenvironment{thebibliography}[1]{%
\section*{\refname
\@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}}%
- \list{\@biblabel{\@arabic\c@enumiv}}{%
+ \phantomsection%
+ \addcontentsline{toc}{section}{\refname}%
+ \list{\@biblabel{\@arabic\c@enumiv}}%
+ {\settowidth\labelwidth{\@biblabel{#1}}%
\small%
- \setlength{\labelwidth}{0em}%
\setlength{\labelsep}{0.4em}%
\setlength{\leftmargin}{\labelwidth}%
\addtolength{\leftmargin}{\labelsep}%
@@ -338,58 +383,70 @@
\usecounter{enumiv}%
\let\p@enumiv\@empty
\renewcommand\theenumiv{\@arabic\c@enumiv}}%
- \sloppy
- \clubpenalty4000
- \@clubpenalty \clubpenalty
- \widowpenalty4000%
+ \sloppy\clubpenalty4000\@clubpenalty\clubpenalty\widowpenalty4000%
\sfcode`\.\@m}{%
\def\@noitemerr{%
\@latex@warning{Empty `thebibliography' environment}}%
\endlist}
\makeatother
%% Theorem styles
-\newtheoremstyle{ejpecpbodyit}% name % cf. thmtest.tex of AMSLaTeX
- {3pt}% Space above
- {3pt}% Space below
- {\itshape}% Body font
- {}% Indent amount (empty = no indent,
- % \parindent = para indent)
- {\bfseries\sffamily}% Thm head font
- {.}% Punctuation after thm head
- { }% Space after thm head: " " = normal interword space;
- % \newline = linebreak
- {}% Thm head spec (can be left empty, meaning `normal')
-\newtheoremstyle{ejpecpbodyrm}% name % cf. thmtest.tex of AMSLaTeX
- {3pt}% Space above
- {3pt}% Space below
- {}% Body font
- {}% Indent amount (empty = no indent,
- % \parindent = para indent)
- {\bfseries\sffamily}% Thm head font
- {.}% Punctuation after thm head
- { }% Space after thm head: " " = normal interword space;
- % \newline = linebreak
- {}% Thm head spec (can be left empty, meaning `normal')
-%%
-\theoremstyle{ejpecpbodyit}
+\makeatletter
+\ifx\@NOAMS\undefined%
+ \newtheoremstyle{ejpecpbodyit}% name % cf. thmtest.tex of AMSLaTeX
+ {3pt}% Space above
+ {3pt}% Space below
+ {\itshape}% Body font
+ {}% Indent amount (empty = no indent,
+ % \parindent = para indent)
+ {\bfseries\sffamily}% Thm head font
+ {.}% Punctuation after thm head
+ { }% Space after thm head: " " = normal interword space;
+ % \newline = linebreak
+ {}% Thm head spec (can be left empty, meaning `normal')
+ \newtheoremstyle{ejpecpbodyrm}% name % cf. thmtest.tex of AMSLaTeX
+ {3pt}% Space above
+ {3pt}% Space below
+ {}% Body font
+ {}% Indent amount (empty = no indent,
+ % \parindent = para indent)
+ {\bfseries\sffamily}% Thm head font
+ {.}% Punctuation after thm head
+ { }% Space after thm head: " " = normal interword space;
+ % \newline = linebreak
+ {}% Thm head spec (can be left empty, meaning `normal')
+\fi
+\makeatother
+%%
+\ifx\@NOAMS\undefined\theoremstyle{ejpecpbodyit}\fi%
\newtheorem{theorem}{Theorem}[section]%
+\newtheorem{assumptions}[theorem]{Assumptions}%
+\newtheorem{assumption}[theorem]{Assumption}%
+\newtheorem{claim}[theorem]{Claim}%
+\newtheorem{condition}[theorem]{Condition}%
+\newtheorem{conjecture}[theorem]{Conjecture}%
\newtheorem{corollary}[theorem]{Corollary}%
-\newtheorem{proposition}[theorem]{Proposition}%
-\newtheorem{lemma}[theorem]{Lemma}%
+\newtheorem{definitions}[theorem]{Definitions}%
\newtheorem{definition}[theorem]{Definition}%
+\newtheorem{facts}[theorem]{Facts}%
\newtheorem{fact}[theorem]{Fact}%
-\newtheorem{notation}[theorem]{Notation}%
-\newtheorem{hypothesis}[theorem]{Hypothesis}%
\newtheorem{heuristics}[theorem]{Heuristics}%
-\newtheorem{conjecture}[theorem]{Conjecture}%
-\theoremstyle{ejpecpbodyrm}%
+\newtheorem{hypothesis}[theorem]{Hypothesis}%
+\newtheorem{hypotheses}[theorem]{Hypotheses}%
+\newtheorem{lemma}[theorem]{Lemma}%
+\newtheorem{notations}[theorem]{Notations}%
+\newtheorem{notation}[theorem]{Notation}%
+\newtheorem{proposition}[theorem]{Proposition}%
+\ifx\@NOAMS\undefined\theoremstyle{ejpecpbodyrm}\fi%
\newtheorem{example}[theorem]{Example}%
\newtheorem{exercise}[theorem]{Exercise}%
\newtheorem{problem}[theorem]{Problem}%
+\newtheorem{question}[theorem]{Question}%
\newtheorem{remark}[theorem]{Remark}%
%%%% Commands to be executed before \begin{document}
%% Numbering
-\numberwithin{equation}{section}
+\makeatletter
+\ifx\@NOAMS\undefined\numberwithin{equation}{section}\fi
+\makeatother
%% Itemize and enumerate for bera
\makeatletter
\newcommand{\@reduceitemsep}{\addtolength{\itemsep}{-0.5\baselineskip}}
@@ -408,18 +465,16 @@
\makeatother
%% Headings
\makeatletter
-\renewcommand{\@evenfoot}
-{\small\normalfont%
- \newcommand{\@ARTICLEBLOB}{\@JOURNALA\normalfont\ %
- \textbf{\@VOLUME}\, (\@YEAR),\ %
- no. \@PAPERNUM, \,\@PAGESTART--\@PAGEEND.}
- \href{http://dx.doi.org/\@DOI}{\@ARTICLEBLOB}\ %
- \hfil\href{http://\@URL}{\@URL}}
+\newcommand{\@HBLOB}{%
+ \href{http://dx.doi.org/\@DOI}%
+ {\@JOURNAL\ \textbf{\@VOLUME}\, (\@YEAR),\ paper \@PAPERNUM.}}%
+\renewcommand{\@evenfoot}%
+{\normalfont\footnotesize\@HBLOB\hfil%
+ \small\raisebox{-1em}{Page \thepage/\@PAGEEND}\hfil%
+ \footnotesize\href{http://\@URL/}{\@URL}}
\renewcommand{\@oddfoot}{\@evenfoot}
-\renewcommand{\@evenhead}
-{\small\upshape {\thepage}\ \hfil\@SHORTTITLE\hfil}
-\renewcommand{\@oddhead}
-{\small\hfil\@SHORTTITLE\hfil \upshape\ \thepage}
+\renewcommand{\@evenhead}{\hfil\@SHORTTITLE\hfil}
+\renewcommand{\@oddhead}{\@evenhead}
\makeatother
%% smaller sections titles
\makeatletter
@@ -441,9 +496,7 @@
\makeatother
%% Macros
%%%% Commands to be executed just after \begin{document}
-\AtBeginDocument{%
- \FIRSTPAGE%
-}
+\AtBeginDocument{\FIRSTPAGE\PDFFIELDS}
%%%% Commands to be executed just before \end{document}
\AtEndDocument{\vfill}
% \end{macrocode}