diff options
author | Karl Berry <karl@freefriends.org> | 2011-12-15 02:02:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2011-12-15 02:02:01 +0000 |
commit | b554526dd34e1597e4fd49148ace4a911c6dc9e3 (patch) | |
tree | da9f09bd18604e2aed9337afdec398102bd45017 | |
parent | 45b9ab369ae1508758c6596c963db163fbb9700a (diff) |
ejpecp (13dec11)
git-svn-id: svn://tug.org/texlive/trunk@24846 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/ejpecp/README | 19 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf | bin | 137370 -> 136749 bytes | |||
-rwxr-xr-x | Master/texmf-dist/doc/latex/ejpecp/mgetmref.py | 401 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/ejpecp/sample.pdf | bin | 192442 -> 208679 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/ejpecp/sample.tex | 153 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx | 29 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls | 23 |
7 files changed, 542 insertions, 83 deletions
diff --git a/Master/texmf-dist/doc/latex/ejpecp/README b/Master/texmf-dist/doc/latex/ejpecp/README index 449df22c858..30fb5aca7e1 100644 --- a/Master/texmf-dist/doc/latex/ejpecp/README +++ b/Master/texmf-dist/doc/latex/ejpecp/README @@ -7,6 +7,9 @@ COPYRIGHT Copyright (c) 2011 by Krzysztof BURDZY and Djalil CHAFAI for EJP-ECP. The EJP logo was designed by KB. The ECP logo was designed when Ren\'e CARMONA was in charge of ECP. + The \MR macro was provided by Martin HAIRER + The mgetmref.py script is Copyright (c) 2004 S. TOLUSIS and J. PITMAN. + The mgetmref.py script is free software licensed under the GPL. FILE LIST ejpecp.cls ejpecp class (LaTeX2e) @@ -17,6 +20,7 @@ FILE LIST sample.pdf sample article for EJP or ECP (PDF compiled) LPPL a copy of the LaTeX Project Public License. README this file itself! + mgetref.py Python script to add MR URLs in bibliographies INSTRUCTIONS FOR EJP-ECP AUTHORS You only need the three files ejpecp.cls, sample.tex, and sample.pdf @@ -30,7 +34,7 @@ INSTRUCTIONS FOR EJP-ECP AUTHORS DEPENDENCIES ejpecp is a LaTeX2e document class which works only with a pdflatex engine. ejpecp relies on the following packages: amsmath, amsfonts, amssymb, amsthm, - bera, dsfont, hyperref, geometry, graphicx, latexsym, xstring. + bera, dsfont, hyperref, geometry, graphicx, latexsym. HOW TO REBUILD pdflatex ejpecp.ins % generates the class file ejpecp.cls from ejpecp.dtx @@ -39,12 +43,19 @@ HOW TO REBUILD LATEST VERSION The latest version of ejpecp is available on the CTAN at - http://ctan.org/tex-archive/macros/latex/contrib/ejpecp/ + Package description: http://www.ctan.org/pkg/ejpecp + Package files: http://ctan.org/tex-archive/macros/latex/contrib/ejpecp/ -TODO - Remove xstring and replace with simpler short code in the \MR macro +TODO + Mention the Python script to add MR in a tex-file. Web robot support? CHANGELOG + 2012/12/12 v0.577 + Added macro \ACKNO + Added script mgetmref.py + Modified \MR macro (thanks, Martin!) and removal of xstring dependency + Modified sample.tex with more comments + Removed \THANKS in favor of the standard \thanks 2011/12/01 v0.57 Added ISSN and support for DOI and for arXiv Added new class options "draft" and "final" (passed to the article class) diff --git a/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf Binary files differindex e58860c8f5e..143d201ea3f 100644 --- a/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf +++ b/Master/texmf-dist/doc/latex/ejpecp/ejpecp.pdf diff --git a/Master/texmf-dist/doc/latex/ejpecp/mgetmref.py b/Master/texmf-dist/doc/latex/ejpecp/mgetmref.py new file mode 100755 index 00000000000..8910556c829 --- /dev/null +++ b/Master/texmf-dist/doc/latex/ejpecp/mgetmref.py @@ -0,0 +1,401 @@ +#! /usr/bin/env python +################################################################################## +# +# getmref.py - gets the references links to MathSciNet throught the BatchMRef: +# http://www.ams.org/batchref?qdata=xmldocument +# +# Copyright (C) 2004 Sigitas Tolusis, VTeX Ltd. and Jim Pitman, Dept. Statistics, +# U.C. Berkeley +# E-mail: sigitas@vtex.let +# http://www.stat.berkeley.edu/users/pitman +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# Requires python ver. 2.2 +# +# Usage: +# getmref.py <bbl or tex file> +# +# Program (description): +# - makes inputfile copy to <inputfilename>.getmref.bak; +# - for each successful bibitem reference search adds line \MR{<mrid>}, +# where <mrid> is data from XML tag <mrid> without front symbols "MR"; +# - writes all adds to <inputfilename>; +# - generates log file <inputfilename>.getmref.log; +# - writes to stdout log info +# +# Changes: +# 2004/04/26 - \bibitem line removed from the query +# +# +################################################################################### +SVNinfo = "$Id: getmref.py 46 2006-03-30 07:02:14Z sigitas $" + +import sys, urllib, re, os.path, time, string +from xml.dom.minidom import parseString +import xml.parsers.expat as par + +starttime = time.time() +res = re.search(r'\S+:\s\S+\s+(.*?)\s.*\$', SVNinfo) +if res: + ver = res.group(1) +else: + ver = '0.0' +print "# getmref, v. %s #" % ver + +# +# bbl file parsing /begin +# + +def escapetex(instr): + res = reduce(lambda a,b: string.replace(a, b[0], b[1]), (instr, ("\\&", '&'), ("<", '<'), (">", '>'))) + return res + +def query(instring, bibID, address = 'http://www.ams.org/batchmref'): + domas = None; res = None; err = 0 + escapetexstring = escapetex(instring) + querystring = r'''<?xml version = "1.0" encoding = "UTF-8"?> +<mref_batch> +<mref_item outtype="tex"> +<inref> +%s +</inref> +<myid>%s</myid> +</mref_item> +</mref_batch>''' % (escapetexstring, bibID) + try: + indom = parseString(querystring) + except par.ExpatError, err: + print >>sys.stderr,"[parse query]: %s" % querystring + print >>sys.stderr,sys.exc_info() + pass + else: + queryinfo = {} + queryinfo['qdata'] = querystring + queryval = urllib.urlencode(queryinfo) + try: + batchmref = urllib.urlopen(address, queryval) + res = batchmref.read() + domas = parseString(res) + except err: + print >>sys.stderr,"[parse res]: %s" % res + print >>sys.stderr,sys.exc_info() + pass + return domas, res, err + +def remcomm(line): + "Removes TeX comments" + bibre = re.compile(r'\s*(.*?)(?<!\\)%.*\n$') + fmtline = re.sub('^%.*\n$','', line) + if fmtline: + matchobj = bibre.search(fmtline) + if matchobj: + return matchobj.groups(1)[0] + else: + return fmtline + else: + return fmtline + +def formatbibitem(bibID, domas): + errstring = None; outtype = None; mrid = None; myid = bibID; outref = None; err = 0 + try: + mref = domas.getElementsByTagName("mref_batch")[0] + mref_errors = mref.getElementsByTagName("batch_error") + if len(mref_errors): + errlist = [ mref_error.childNodes[0].nodeValue() for mref_error in mref_errors ] + errstring = ''.join(errlist) + err = -2 + else: + mref_items = [item for item in mref.getElementsByTagName("mref_item")] + matches = mref_items[0].getElementsByTagName("matches")[0].childNodes[0]._get_nodeValue() + if matches == '1': + for item in mref_items: + outtype = dict(item.attributes.items())["outtype"] + mrid = item.getElementsByTagName("mrid")[0].childNodes[0]._get_nodeValue() + err = 0 + if mrid[:2] == "MR": + mrid = mrid[2:] + myids = item.getElementsByTagName("myid") + if len(myids): + myid = myids[0].childNodes[0]._get_nodeValue() + else: + myid = bibID + outref = string.strip(item.getElementsByTagName("outref")[0].childNodes[0]._get_nodeValue()) + else: + err = -1 + except: + err = -3 + print >>sys.stderr,"[formatbibitem]: %s" % bibID + print >>sys.stderr,sys.exc_info() + pass + return mrid, outref, err + + +def handlebibitem(lines, bibID, biblabel=None): + res = 0; err = None; outref = None + outstring = string.strip(''.join(lines)) + lines[:] = [re.sub(r'\\MR\{.*?\}', '', a) for a in lines] + biblines = [x for x in [remcomm(a) for a in lines] if x] + bibstring = re.sub(r'\n', ' ', ''.join(biblines)) + match = re.search(r'\\bibitem\s*?(?:\[.*?\])?\s?\{(?:.*?)\}(.*)(\\endbibitem)?$',bibstring.strip()) + if match: + querystring = match.group(1).strip() + else: + querystring = bibstring + domas = None + try: + domas, xmlres, err = query(querystring, bibID) + except: + res = -2 + print >>sys.stderr,"[parse query]: %s" % querystring + print >>sys.stderr,sys.exc_info() + print 'Error', + else: + mrid, outref, err = formatbibitem(bibID, domas) + if not mrid: + print 'Not Found', + res = -1 + else: + print mrid, + if mrid[:2] == "MR": + outstring = bibstring + '\\MR{%s}' % mrid[2:].rjust(7,'0') + else: + outstring = bibstring + '\\MR{%s}' % mrid.rjust(7,'0') + outstrip, nsub = re.subn(r'\\endbibitem',r'',outstring) + if nsub: + outstrip += '\n\\endbibitem' + outstring = re.sub(r' ', r' ', outstrip) + if not outref: + outref = "Not found!" + else: + outref = re.sub(r'(?<!\\)#',r'\#', outref) + if biblabel: + print >>datafile, '\\bibitem%s{%s}\n%s\n' % (biblabel, bibID, outref) + else: + print >>datafile, '\\bibitem{%s}\n%s\n' % (bibID, outref) + return '%s\n' % outstring, res + +def handleextra(extralines): + if len(extralines): + print >>outputfile, ''.join(extralines), + +def handlebbl(inputfile, out=sys.stdout, data=sys.stdout): + print "Job started:", + total = 0; successful = 0; errors = 0; state = 0; pseudobibID = 0; readbib = '' + bibl_begin = re.compile(r'\s*\\begin\s*\{thebibliography\}.*$') + bibre = re.compile(r'^\s*\\bibitem.*') + bibreF = re.compile(r'\s*\\bibitem\s*(\[.*?\])*?\s?\{(.*?)\}.*$',re.S) + comments = re.compile(r'\s*%.*$') + bibl_end = re.compile(r'\s*\\end\s*\{thebibliography\}.*$') + for line in inputfile: + if len(readbib): + readbib += line + matchobj = bibreF.search(readbib) + if matchobj: + line = "%s" % readbib + readbib = '' + else: + continue + if line: + if state == 0: + matchobj = bibl_begin.search(line) + if matchobj: + print >>data,matchobj.group(0) + print >>data,"\\csname bibmessage\\endcsname\n" + state = 1 + print >>out, line, + continue + elif state == 1: + matchobj = bibre.search(line) + if matchobj: + matchobj = bibreF.search(line) + if matchobj: + biblabel, bibID = matchobj.groups() + if not len(bibID): + pseudobibID += 1 + bibID = '%s' % pseudobibID + state = 2 + lines = [line] + extralines = [] + continue + else: + readbib = line + continue + else: + print >>out, line, + continue + elif state == 2: + matchobj = bibre.search(line) + if matchobj: + matchobj = bibreF.search(line) + if matchobj: + total += 1 + print >>data,line + outstring, sres = handlebibitem(lines, bibID, biblabel) + if not sres: + successful += 1 + else: + errors += 1 + print >>out, outstring, + handleextra(extralines) + lines = [line] + extralines = [] + biblabel, bibID = matchobj.groups() + if not len(bibID): + pseudobibID += 1 + bibID = '%s' % pseudobibID + continue + else: + readbib = line + continue + else: + matchobj = bibl_end.search(line) + if matchobj: + state = 0 + total += 1 + outstring, sres = handlebibitem(lines, bibID, biblabel) + if not sres: + successful += 1 + else: + errors += 1 + print >>out, outstring, + handleextra(extralines) + print >>out, line, + print >>data,matchobj.group(0) + continue + else: + if line[:-1] == '': + state = 3 + extralines = [line] + continue + matchobj = comments.search(line) + if matchobj: + state = 3 + extralines = [line] + continue + lines.append(line) + continue + elif state == 3: + matchobj = bibre.search(line) + if matchobj: + matchobj = bibreF.search(line) + if matchobj: + state = 2 + total += 1 + outstring, sres = handlebibitem(lines, bibID, biblabel) + if not sres: + successful += 1 + else: + errors += 1 + print >>out, outstring, + handleextra(extralines) + lines = [line] + extralines = [] + biblabel, bibID = matchobj.groups() + if not len(bibID): + pseudobibID += 1 + bibID = '%s' % pseudobibID + continue + else: + readbib = line + continue + else: + matchobj = bibl_end.search(line) + if matchobj: + state = 0 + total += 1 + outstring, sres = handlebibitem(lines, bibID, biblabel) + if not sres: + successful += 1 + else: + errors += 1 + print >>out, outstring, + handleextra(extralines) + print >>out, line, + print >>data,matchobj.group(0) + continue + else: + if line[:-1] == '': + extralines.append(line) + continue + matchobj = comments.search(line) + if matchobj: + extralines.append(line) + continue + state = 2 + lines.extend(extralines) + lines.append(line) + extralines = [] + continue + else: + break + print "Job ended" + print "Total: %s, found: %s, errors: %s" % (total, successful, errors) + return (total, successful, errors) + +# +# bbl file parsing /end +# + +if len(sys.argv) < 2: + progname = os.path.basename(sys.argv[0]) + print "Usage:\n %s <bbl or tex file>" % progname + sys.exit(1) +infilename = sys.argv[1] +filebase = os.path.splitext(infilename)[0] +outfilename = "%s.getmref.tmp" % filebase +datafilename = "%s.getmref.data" % filebase +logfilename = "%s.getmref.log" % filebase + +inputfile = file(infilename, 'r') +outputfile = file(outfilename, 'w') +datafile = file(datafilename, 'w') +logfile = file(logfilename, 'w') +if os.path.isfile("%s.getmref.bak" % filebase): + os.unlink("%s.getmref.bak" % filebase) + +sys.stderr = file("%s.getmref.err" % filebase, 'w') +total = 0; successful = 0; errors = 0 +print >>logfile, "File: %s" % infilename +try: + total, successful, errors = handlebbl(inputfile, outputfile, datafile) +except: + print >>sys.stderr,"[handlebbl]" + print >>sys.stderr,sys.exc_info() +print >>logfile, " total: %s, found: %s, errors: %s, time: %ss" % (total, successful, + errors, int(round(time.time()-starttime))) + +inputfile.close() +outputfile.close() +datafile.close() +logfile.close() +sys.stderr.close() +sys.stderr = sys.__stderr__ +if os.path.isfile("%s.getmref.err" % filebase): + if not os.stat("%s.getmref.err" % filebase)[6]: + os.unlink("%s.getmref.err" % filebase) +if os.path.isfile("%s.getmref.bak" % filebase): + os.unlink("%s.getmref.bak" % filebase) +os.rename(infilename, "%s.getmref.bak" % filebase) + +#mes modif +#os.rename(outfilename, infilename) +f=open(outfilename,"r") +g=open(infilename,"w") +x=f.read() +g.write(re.sub(r"\r"," ",x)) + +#fin de la modif + +print 'Job completed in %ss' % int(round(time.time()-starttime)) + + + diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf Binary files differindex 9226cd32423..cb96879e015 100644 --- a/Master/texmf-dist/doc/latex/ejpecp/sample.pdf +++ b/Master/texmf-dist/doc/latex/ejpecp/sample.pdf diff --git a/Master/texmf-dist/doc/latex/ejpecp/sample.tex b/Master/texmf-dist/doc/latex/ejpecp/sample.tex index c01435f85da..7a7b9723bd3 100644 --- a/Master/texmf-dist/doc/latex/ejpecp/sample.tex +++ b/Master/texmf-dist/doc/latex/ejpecp/sample.tex @@ -1,7 +1,7 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% This is the sample.tex file for the ejpecp document class. %% -%% This file is for ejpecp version 0.57 %% +%% This file is for ejpecp version 0.577 %% %% Please be sure that you are using the lastest version: %% %% http://ctan.org/tex-archive/macros/latex/contrib/ejpecp/ %% %% %% @@ -56,15 +56,21 @@ Djalil~Chafa\"{\i}\footnote{Universit\'e Paris-Est Marne-la-Vall\'ee, France. E-mail: djalil@chafai.net} }%AUTHORS +% here is a compact example with two authors with same affiliation +%\AUTHORS{% +% Michael~First\footnote{Some University. E-mail: {mf,js}@uni.edu} +% \and +% John~Second\footnotemark[2]}%AUTHORS + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% %% Please edit and customize the following items: %% %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\TITLE{Introduction to the \emph{ejpecp} Class Version 0.57\THANKS{Supported +\TITLE{Introduction to the \emph{ejpecp} Class Version 0.577\thanks{Supported by the Institute of Mathematical Statistics (IMS) and the Bernoulli - Society.}} %\THANKS is optional + Society.}} %\thanks is optional \SHORTTITLE{Introduction to the \emph{ejpecp} Class} @@ -91,10 +97,10 @@ %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \VOLUME{0} -\YEAR{0000} +\YEAR{2012} \PAPERNUM{0} -\PAGESTART{0} -\PAGEEND{0} +\PAGESTART{1} +\PAGEEND{5} \DOI{NA} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -143,22 +149,25 @@ %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -The $\LaTeXe$ class \emph{ecpecp} is designed for typesetting of articles for +The $\LaTeXe$ class \emph{ejpecp} is designed for typesetting of articles for the Electronic Journal of Probability (EJP) and Electronic Communications in -Probability (ECP). The \emph{ecpecp} class comes with a commented sample file -called \texttt{sample.tex}. You are probably reading the pdf version of this -sample file, compiled with a pdflatex engine. +Probability (ECP). Please check on \url{http://www.ctan.org/pkg/ejpecp} that +your are using the latest version of \emph{ejpecp}. The \emph{ejpecp} class +comes with a commented sample file called \texttt{sample.tex}. You are +probably reading the pdf version of this sample file, compiled with a pdflatex +engine. \textbf{An easy way to prepare an article for publication in EJP/ECP is to edit the source file \texttt{sample.tex} for this document. Replace the main body of the file with the main body of your article. Supply all metadata - (title, authors, abstract, etc) that are requested in the latex file.} - -The \emph{ecpecp} class works only with the pdflatex engine, generating pdf -files. You need a copy of the \texttt{ecpecp.cls} file in your -directory\footnote{Or in any directory scanned for \texttt{cls} files by your - pdflatex engine.}in order to compile documents based on the \emph{ecpecp} -class, such as \texttt{sample.tex}. To configure the \emph{ecpecp} class for + (title, authors, abstract, keywords, etc) that are requested in the latex + file.} + +The \emph{ejpecp} class works only with the pdflatex engine, generating pdf +files. You need a copy of the \texttt{ejpecp.cls} file in your +directory\footnote{Or in any location scanned for \texttt{cls} files by your + pdflatex engine.}in order to compile documents based on the \emph{ejpecp} +class, such as \texttt{sample.tex}. To configure the \emph{ejpecp} class for ECP, use \begin{verbatim} \documentclass[ECP]{ejpecp} @@ -167,23 +176,23 @@ while for EJP, use \begin{verbatim} \documentclass[EJP]{ejpecp} \end{verbatim} -The \emph{ecpecp} document class loads automatically the following standard -packages\footnote{For your information, the following packages are also - loaded: bera, geometry, hyperref, xstring.}: +The \emph{ejpecp} document class loads automatically the following packages: \begin{center} - amsmath, amsthm, amsfonts, amssymb, latexsym, dsfont, graphicx + \ttfamily + amsmath, amsthm, amsfonts, amssymb, bera, dsfont, \\ + hyperref, geometry, graphicx, latexsym. \end{center} It is therefore not necessary to add \verb+\usepackage+ load commands for these packages to your latex file. However, you may want to load additional -packages, such as the enumerate package, by using \verb+\usepackage+ commands. -The precise location of these extra load commands is clearly mentioned in the -\texttt{sample.tex} file. The \emph{ecpecp} class provides various -environments, and also important commands such as \verb+\AUTHORS+, +packages, such as the \emph{enumerate} package by using a \verb+\usepackage+ +command. The precise location of these extra load commands is clearly +mentioned in the \texttt{sample.tex} file. The \emph{ejpecp} class provides +various environments, and also important commands such as \verb+\AUTHORS+, \verb+\TITLE+, etc. \section{Standard predefined environments} -One of the main features of the \emph{ecpecp} class is its predefined +One of the main features of the \emph{ejpecp} class is its predefined environments. \begin{theorem}[My theorem]\label{th:1} @@ -212,7 +221,7 @@ environments. \end{proof} Note that a square box $\square$ is automatically added at the end of the - proof by the environment ``proof.'' The \emph{ecpecp} class provides several + proof by the environment ``proof.'' The \emph{ejpecp} class provides several default environments: theorem, proof, lemma, proposition, definition, corollary, remark, example, problem, conjecture. @@ -269,10 +278,23 @@ Here are some more examples of predefined environments: recommended at all! -- to define additional environments based on the theorem environment. +\section{Fonts} + +The default font used by the \emph{ejpecp} class is \emph{bera}\footnote{This + is the name of the \LaTeX\ package for \emph{bitstream} fonts}. This font +looks good but does not come with ``small capitals'' shape, making the command +\verb+\textsc{...}+ ineffective. The \emph{ejpecp} class uses the \emph{double + stroke font} as a replacement for \verb+\mathbb+. For instance +\verb+\mathbb{B}+ will produce $\mathbb{B}$ instead of $\realmathbb{B}$. +However, the original \verb+\mathbb+ command is still available via the +command \verb+\realmathbb{...}+ (please avoid using it if possible). Note that +\verb+\mathbb{1}+ produces $\mathbb{1}$, which is particularly attractive for +indicators of sets. + \section{Section headings and equation numbering}\label{se:mysection} The default size for section titles in \LaTeX\ is a bit large. As you might have -noticed, the \emph{ecpecp} class provides smaller section titles. Here are some +noticed, the \emph{ejpecp} class provides smaller section titles. Here are some sub-sections: \subsection{A sub-section} @@ -303,7 +325,7 @@ produces \eqref{eq:myequation}. Here is another numbered displayed equation = \zeta(2) = \frac{\pi^2}{6}, \end{equation} -and yet another one, just for fun: +and yet another one, just for fun! \begin{equation} \int_{-\infty}^{+\infty}\!(t-\gamma)^3e^{-t-e^{-t}}\,dt = 2\zeta(3). @@ -331,22 +353,21 @@ for their meaning) and with the options of the \verb+\includegraphics+ command \section{About your source file for EJP and ECP} -Papers using the \LaTeXe\ class \emph{ecpecp} are quickly published (usually -within a month). Some authors prefer \TeX\ instead of \LaTeX. We believe that -\TeX\ is a good program. However EJP and ECP need a standardized layout for -all papers, and this is easier done with \LaTeX\ than with \TeX. For that -reason, you are encouraged to use \LaTeX. This is quite easy since \LaTeX\ is -based on \TeX. The latest major version of \LaTeX\ is called \LaTeXe. - -The aim of EJP and ECP is to publish excellent mathematical articles. Since -every author has his own preferences and habits, we emphasize that the -Managing Editor of EJP and ECP accepts any paper written in \TeX\ or in -\LaTeX\ if the author is unable to convert it to \LaTeXe\ with the -\emph{ecpecp} class. Papers not written with \LaTeXe\ and the \emph{ecpecp} -class are manually converted by the Managing Editor, and this delays the -publication, unfortunately. EJP and ECP are free access journals. Nobody is -paid for typesetting EJP and ECP papers. The Managing Editor handles -typesetting for free. +\textbf{Papers using the \LaTeXe\ class \emph{ejpecp} are quickly published} +(usually within a month). Some authors prefer \TeX\ instead of \LaTeX. We +believe that \TeX\ is a good program. However EJP and ECP need a standardized +layout for all papers, and this is easier done with \LaTeX\ than with \TeX. +For that reason, you are encouraged to use \LaTeX. This is quite easy since +\LaTeX\ is based on \TeX. The latest major version of \LaTeX\ is called +\LaTeXe. The aim of EJP and ECP is to publish excellent mathematical articles. +Since every author has his own preferences and habits, we emphasize that the +Managing Editor of EJP and ECP accepts any paper written in \LaTeX\ if the +author is unable to convert it to \LaTeXe\ with the \emph{ejpecp} class. +Papers not written with \LaTeXe\ and the \emph{ejpecp} class are manually +converted by the Managing Editor, and this delays the publication, +unfortunately. EJP and ECP are free access journals. Nobody is paid for +typesetting EJP and ECP papers. The Managing Editor handles typesetting for +free. All mathematicians believe that the mathematical results are the most important elements of an article. Many of them believe that the aesthetic @@ -367,7 +388,7 @@ suggestions: \verb+{\bf }+, \verb+{\it }+, and \verb+{\em }+ \item never use one letter names for macros or for environments \item never use strange names for macros and environments -\item use the environment proof provided by amsmath (as in \emph{ecpecp}) +\item use the environment proof provided by amsmath (as in \emph{ejpecp}) \item use \verb+\newenvironment+ to define new environments \item use \verb+\binom{n}{k}+ instead of \verb+n \choose k+ \item use \verb+\frac{a}{b}+ instead of a \verb+\over b+ @@ -384,7 +405,7 @@ suggestions: \section{Version number} -The version number of the \emph{ecpecp} class converges to +The version number of the \emph{ejpecp} class converges to the Euler-Mascheroni constant \[ \gamma @@ -406,18 +427,27 @@ We will be happy to receive comments and suggestions for improvement \section{How to include bibliography} The bibliography should be included in your document (not a separate file), -inside the standard environment \verb+\thebibliography+. If you use bibtex, +inside the standard environment \verb+thebibliography+. If you use bibtex, this can be accomplished by including the \texttt{bbl} file inside your document (after preliminary compilation with latex and bibtex). The bibliography should be sorted alphabetically according to authors names, and -the records should be labeled by numbers. Math Reviews numbers should be -included as in the sample below. If you use bibtex, use -\verb+\bibliographystyle{amsplain}+. As you can see, you may also provide the -arXiv identifier for preprints or unpublished papers\footnote{It is your - author responsability to check if the preprint is actually published and - referenced in the Mathematical Reviews (in that case, you should provide the - MR number instead of the arXiv identifier).}. Here is an example of -bibliography: +the records should be labeled by numbers. See the example below. + +Links to the Math Reviews should be included as in the sample below. The +simplest way to get automatically these Math Reviews links is to get all your +bibtex entries from MathSciNet, and to use +\verb+\bibliographystyle{amsplain}+. This produces automatically the necessary +\verb+\MR+ commands in your \verb+\bibitem+s, allowing \emph{ejpecp} to +automatically produce the links as in the sample below. Alternatively, if you +are not using MathSciNet and bibtex, you may simply produce the Math Reviews +links by using the \verb+mgetmref.py+ Python script provided by the +\emph{ejpecp} package at \url{http://www.ctan.org/pkg/ejpecp}. + +At your option, you may also manually provide the arXiv identifier for +preprints or unpublished papers. It is your author responsability to check if +the preprint is actually published and referenced in the Mathematical Reviews, +and in that case, you should provide the MR number instead of the arXiv +identifier. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% @@ -456,6 +486,15 @@ bibliography: percolation, \ARXIV{1101.5820} \end{thebibliography} + +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% %% +%% You may add acknowledgments (optional). %% +%% %% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +\ACKNO{We thank Martin Hairer who provided a nice \texttt{MR} macro.} + %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %% %% @@ -471,4 +510,4 @@ bibliography: %% %% %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -%% EOF
\ No newline at end of file +%% EOF diff --git a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx index fb60a2de718..7fb1a043297 100644 --- a/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx +++ b/Master/texmf-dist/source/latex/ejpecp/ejpecp.dtx @@ -23,7 +23,7 @@ %<class>\NeedsTeXFormat{LaTeX2e}[1999/12/01] %<class>\ProvidesClass{ejpecp} %<*class> - [2011/12/01 v0.57 .dtx ejpecp file] + [2011/12/12 v0.57 .dtx ejpecp file] %</class> %<class>\ClassInfo{ejpecp}{Copyright (c) BURDZY and CHAFAI for EJP-ECP, 2011.} % @@ -40,7 +40,7 @@ %</driver> % \fi % -% \CheckSum{616} +% \CheckSum{622} % % \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 @@ -59,7 +59,8 @@ % Right brace \} Tilde \~} % % \changes{v0.5}{2011/11/26}{Initial version.} -% \changes{v0.57}{2011/12/01}{Minor improvements, see the README file.} +% \changes{v0.57}{2011/12/01}{Improvements, see the README file.} +% \changes{v0.577}{2011/12/12}{Improvements, see the README file.} % \GetFileInfo{ejpecp.dtx} % % \DoNotIndex{\newcommand,\newenvironment} @@ -104,18 +105,18 @@ %% We declare and handle our class options \DeclareOption{EJP}{% \makeatletter + \newcommand{\@EJP}{} \newcommand{\@JOURNAL}{EJP} \newcommand{\@JOURNALL}{Electronic Journal of Probability} - \newcommand{\@EJP}{} \newcommand{\@ISSN}{1083-6489} \newcommand{\@URL}{ejp.ejpecp.org} \makeatother } \DeclareOption{ECP}{% \makeatletter + \newcommand{\@ECP}{} \newcommand{\@JOURNAL}{ECP} \newcommand{\@JOURNALL}{Electronic Communications in Probability} - \newcommand{\@ECP}{} \newcommand{\@ISSN}{1083-589X} \newcommand{\@URL}{ecp.ejpecp.org} \makeatother @@ -139,7 +140,6 @@ %% We use the standard article class \LoadClass[a4paper,10pt,twoside]{article} %% Packages and their options -\RequirePackage{xstring} \RequirePackage[pdftex]{graphicx} \DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG} \RequirePackage{amsmath,amsfonts,amssymb,amsthm,latexsym,dsfont} @@ -166,7 +166,7 @@ \newcommand{\@SUBMITTED}{FIXME!} \newcommand{\@ACCEPTED}{FIXME!} \newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}} -\newcommand{\THANKS}[1]{\gdef\@THANKS{#1}} +%\newcommand{\THANKS}[1]{\gdef\@THANKS{#1}} \newcommand{\SHORTTITLE}[1]{\renewcommand{\@SHORTTITLE}{#1}} \newcommand{\AUTHORS}[1]{\author{#1}} \newcommand{\KEYWORDS}[1]{\renewcommand{\@KEYWORDS}{#1}} @@ -182,6 +182,7 @@ \newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}} \newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}} \newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}} +\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1} \makeatother %% Logos \makeatletter @@ -252,7 +253,7 @@ Paper no. \@PAPERNUM, pages \,\@PAGESTART--\@PAGEEND.} \bigskip \bigskip - {\Large\bfseries\@TITLE}\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi + {\Large\bfseries\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi \fi%EJP \ifx\@ECP\undefined\else% \emph{Elect. Comm. in Probab.} @@ -261,7 +262,7 @@ \@ECPLOGO\\ \bigskip \bigskip - {\Large\@TITLE\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi} + {\Large\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi \fi%ECP } % end title \date{}% @@ -298,9 +299,9 @@ \makeatother %% Bibliography \makeatletter +\def\@MRExtract#1 #2!{#1} % thanks, Martin! \newcommand{\MR}[1]{% we need to strip the "(...)" - \def\@MRBLOB{#1(} % add fake "(" to force presence of "(" - \StrBefore{\@MRBLOB}{(}[\@MRSTRIP] % do the strip with xstring package! + \xdef\@MRSTRIP{\@MRExtract#1 !}% \href{http://www.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR-\@MRSTRIP}} \makeatother \newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}} @@ -379,7 +380,11 @@ \makeatother %% Replace \mathbb by \mathds except if we require the contrary \makeatletter -\ifx\@NODS\undefined\let\mathbb=\mathds\else\fi +\ifx\@NODS\undefined% +\let\realmathbb=\mathbb +\let\mathbb=\mathds +\else% +\fi \makeatother %% Headings \makeatletter diff --git a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls index 49b5a077ae9..eae0fd8a7df 100644 --- a/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls +++ b/Master/texmf-dist/tex/latex/ejpecp/ejpecp.cls @@ -22,23 +22,23 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesClass{ejpecp} - [2011/12/01 v0.57 .dtx ejpecp file] + [2011/12/12 v0.57 .dtx ejpecp file] \ClassInfo{ejpecp}{Copyright (c) BURDZY and CHAFAI for EJP-ECP, 2011.} %% We declare and handle our class options \DeclareOption{EJP}{% \makeatletter + \newcommand{\@EJP}{} \newcommand{\@JOURNAL}{EJP} \newcommand{\@JOURNALL}{Electronic Journal of Probability} - \newcommand{\@EJP}{} \newcommand{\@ISSN}{1083-6489} \newcommand{\@URL}{ejp.ejpecp.org} \makeatother } \DeclareOption{ECP}{% \makeatletter + \newcommand{\@ECP}{} \newcommand{\@JOURNAL}{ECP} \newcommand{\@JOURNALL}{Electronic Communications in Probability} - \newcommand{\@ECP}{} \newcommand{\@ISSN}{1083-589X} \newcommand{\@URL}{ecp.ejpecp.org} \makeatother @@ -61,7 +61,6 @@ %% We use the standard article class \LoadClass[a4paper,10pt,twoside]{article} %% Packages and their options -\RequirePackage{xstring} \RequirePackage[pdftex]{graphicx} \DeclareGraphicsExtensions{.pdf,.PDF,.eps,.EPS,.png,.PNG,.jpg,.JPG,.jpeg,.JPEG} \RequirePackage{amsmath,amsfonts,amssymb,amsthm,latexsym,dsfont} @@ -87,7 +86,6 @@ \newcommand{\@SUBMITTED}{FIXME!} \newcommand{\@ACCEPTED}{FIXME!} \newcommand{\TITLE}[1]{\renewcommand{\@TITLE}{#1}} -\newcommand{\THANKS}[1]{\gdef\@THANKS{#1}} \newcommand{\SHORTTITLE}[1]{\renewcommand{\@SHORTTITLE}{#1}} \newcommand{\AUTHORS}[1]{\author{#1}} \newcommand{\KEYWORDS}[1]{\renewcommand{\@KEYWORDS}{#1}} @@ -103,6 +101,7 @@ \newcommand{\ACCEPTED}[1]{\renewcommand{\@ACCEPTED}{#1}} \newcommand{\DOI}[1]{\gdef\@DOI{10.1214/\@JOURNAL.#1}} \newcommand{\ARXIVID}[1]{\gdef\@ARXIVID{#1}} +\newcommand{\ACKNO}[1]{\noindent\textbf{Acknowledgments.} #1} \makeatother %% Logos \makeatletter @@ -173,7 +172,7 @@ Paper no. \@PAPERNUM, pages \,\@PAGESTART--\@PAGEEND.} \bigskip \bigskip - {\Large\bfseries\@TITLE}\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi + {\Large\bfseries\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi \fi%EJP \ifx\@ECP\undefined\else% \emph{Elect. Comm. in Probab.} @@ -182,7 +181,7 @@ \@ECPLOGO\\ \bigskip \bigskip - {\Large\@TITLE\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi} + {\Large\@TITLE}%\ifx\@THANKS\undefined\else\thanks{\@THANKS}\fi \fi%ECP } % end title \date{}% @@ -219,9 +218,9 @@ \makeatother %% Bibliography \makeatletter +\def\@MRExtract#1 #2!{#1} % thanks, Martin! \newcommand{\MR}[1]{% we need to strip the "(...)" - \def\@MRBLOB{#1(} % add fake "(" to force presence of "(" - \StrBefore{\@MRBLOB}{(}[\@MRSTRIP] % do the strip with xstring package! + \xdef\@MRSTRIP{\@MRExtract#1 !}% \href{http://www.ams.org/mathscinet-getitem?mr=\@MRSTRIP}{MR-\@MRSTRIP}} \makeatother \newcommand{\ARXIV}[1]{\href{http://arXiv.org/abs/#1}{arXiv:#1}} @@ -300,7 +299,11 @@ \makeatother %% Replace \mathbb by \mathds except if we require the contrary \makeatletter -\ifx\@NODS\undefined\let\mathbb=\mathds\else\fi +\ifx\@NODS\undefined% +\let\realmathbb=\mathbb +\let\mathbb=\mathds +\else% +\fi \makeatother %% Headings \makeatletter |