diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-06-10 21:17:35 +0200 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2025-06-10 21:17:35 +0200 |
commit | e4948270cfc867e7b7feb86af36ab6c97f133563 (patch) | |
tree | 7cd09f32975193e3e66b70d64464a737b2466549 | |
parent | d49ce5a19f5af5a88f5bff54dd3d44d105a77b5e (diff) |
Maneage'd A&A (Astronomy and Astrophysics) journal style
Until this commit, the LaTeX style and settings of the core Maneage branch
were very generic and customizing for each separate journal required some
time to prepare the LaTeX style.
With this commit, a first attempt at customization of Maneage for the LaTeX
styles of the A&A journal. Note that EDP Science (the publisher of A&A) has
only claimed copyright in their style files, but hasn't actually specified
a license. Given that they have no objection to arXiv or Overleaf freely
distributing their style files, there is no problem is releasing these
files within this branch of Maneage also (only for people who want to use
their style to publish in their journal).
-rw-r--r-- | paper.tex | 82 | ||||
-rw-r--r-- | reproduce/analysis/make/paper.mk | 13 | ||||
-rw-r--r-- | reproduce/software/config/texlive-packages.conf | 31 | ||||
-rw-r--r-- | reproduce/software/make/high-level.mk | 7 | ||||
-rw-r--r-- | tex/src/journal/aa.bst | 1695 | ||||
-rw-r--r-- | tex/src/journal/aa.cls | 2054 | ||||
-rw-r--r-- | tex/src/journal/linenoaa.sty | 144 | ||||
-rw-r--r-- | tex/src/preamble-project.tex | 11 | ||||
-rw-r--r-- | tex/src/references.tex | 4 |
9 files changed, 3974 insertions, 67 deletions
@@ -1,6 +1,6 @@ %% Copyright (C) 2018-2025 Mohammad Akhlaghi <mohammad@akhlaghi.org> %% See the end of the file for license conditions. -\documentclass[10pt, twocolumn]{article} +\documentclass{tex/src/journal/aa} %% (OPTIONAL) CONVENIENCE VARIABLE: Only relevant when you use Maneage's %% '\includetikz' macro to build plots/figures within LaTeX using TikZ or @@ -43,22 +43,10 @@ %% title. If you later use a different LaTeX style, please use the same %% '\projectitle' in it (after importing 'tex/build/macros/project.tex' %% like above), don't type it by hand. -\title{\large \uppercase{\projecttitle}} +\title{\projecttitle} +\subtitle{} + -%% AUTHOR INFORMATION: For a more fine-grained control of the headers -%% including author name, or paper info, see -%% 'tex/src/preamble-header.tex'. Note that if you plan to use a journal's -%% LaTeX style file, you will probably set the authors in a different way, -%% feel free to change them here, this is just basic style and varies from -%% project to project. -\author[1]{Your name} -\author[2]{Coauthor one} -\author[1,3]{Coauthor two} -\affil[1]{The first affiliation in the list.; \url{your@email.address}} -\affil[2]{Another affilation can be put here.} -\affil[3]{And generally as many affiliations as you like. -\par \emph{Received YYYY MM DD; accepted YYYY MM DD; published YYYY MM DD}} -\date{} @@ -72,26 +60,51 @@ %% Start creating the paper. \begin{document} -%% Project abstract and keywords. -\includeabstract{ - Welcome to Maneage (\emph{Man}aging data lin\emph{eage}) and reproducible papers/projects, for a review of the basics of this system, please see \citet{maneage}. - You are now ready to configure Maneage and implement your own research in this framework. - Maneage contains almost all the elements that you will need in a research project, and adding any missing parts is very easy once you become familiar with it. - For example it already has steps to downloading of raw data and necessary software (while verifying them with their checksums), building the software, and processing the data with the software in a highly-controlled environment. - But Maneage is not just for the analysis of your project, you will also write your paper in it (by replacing this text in \texttt{paper.tex}): including this abstract, figures and bibliography. - If you design your project with Maneage's infra-structure, don't forget to add a notice and clearly let the readers know that your work is reproducible, we should spread the word and show the world how useful reproducible research is for the sciences, also don't forget to cite and acknowledge it so we can continue developing it. - This PDF was made with Maneage, commit \projectversion{}. +%% AUTHOR INFORMATION following the A&A journal style. +\author{ + Your name\inst{1} + \and Coauthor one\inst{2} + \and Coauthor two\inst{1,3} +} + +\institute{ + The first affiliation in the list.\\ + \email{your@email.address} + \thanks{From A\&A: shows the usage of elements in the author field} + \and The next affilation can be put here. + \and This is the third affiliation in the list. +} + +\date{Received September 30, 20XX} + +\abstract + { % Context heading (optional: leave it empty if necessary) + Welcome to Maneage (\emph{Man}aging data lin\emph{eage}) and reproducible papers/projects, for a review of the basics of this system, please see \citet{maneage}. + You are now ready to configure Maneage and implement your own research in this framework. + } + { % Aims heading (mandatory) + Maneage contains almost all the elements that you will need in a research project, and adding any missing parts is very easy once you become familiar with it. + For example it already has steps to downloading of raw data and necessary software (while verifying them with their checksums), building the software, and processing the data with the software in a highly-controlled environment. + } + { % Methods heading (mandatory) + But Maneage is not just for the analysis of your project, you will also write your paper in it (by replacing this text in \texttt{paper.tex}): including this abstract, figures and bibliography. + } + { % Results heading (mandatory) + If you design your project with Maneage's infra-structure, don't forget to add a notice and clearly let the readers know that your work is reproducible, we should spread the word and show the world how useful reproducible research is for the sciences, also don't forget to cite and acknowledge it so we can continue developing it. + } + { % Conclusions heading (optional: leave it empty if necessary + This PDF was made with Maneage, commit \projectversion{}. + } - \vspace{0.25cm} - \textsl{Keywords}: Add some keywords for your research here. +\keywords{ + Good -- + Keywords -- + For this project +} - \textsl{Reproducible paper}: All quantitave results (numbers and plots) - in this paper are exactly reproducible with Maneage - (\url{https://maneage.org}). } +\maketitle -%% To add the first page's headers. -\thispagestyle{firststyle} @@ -193,8 +206,9 @@ The European Union (EU) Horizon 2020 (H2020) research and innovation programmes The State Research Agency (AEI) of the Spanish Ministry of Science, Innovation and Universities (MCIU) and the European Regional Development Fund (ERDF) under the grant AYA2016-76219-P. The IAC project P/300724, financed by the MCIU, through the Canary Islands Department of Economy, Knowledge and Employment. -%% Tell BibLaTeX to put the bibliography list here. -\printbibliography +%% Tell BibTeX to put the bibliography list here. +\bibliographystyle{aa} +\bibliography{references} %% Start appendix. \appendix diff --git a/reproduce/analysis/make/paper.mk b/reproduce/analysis/make/paper.mk index b1b794c..e6a91de 100644 --- a/reproduce/analysis/make/paper.mk +++ b/reproduce/analysis/make/paper.mk @@ -156,6 +156,16 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies.tex \ # will be built anyway once this rule is done. rm -f $@ +# Copy the A&A BibTeX style. + ln -sf $$p/tex/src/journal/aa.bst \ + $$p/tex/src/journal/linenoaa.sty ./ + +# Fill the 'references.bib' (in Maneage, the software dependencies +# are in 'tex/build/macros/dependencies-bib.tex' + cat $$p/tex/src/references.tex \ + $$p/tex/build/macros/dependencies-bib.tex > references.bib + + # The pdflatex option '-shell-escape' is "normally disallowed for # security reasons" according to the 'info pdflatex' manual, but is # enabled here in order to allow the use of PGFPlots. If you do not @@ -168,7 +178,8 @@ $(texbdir)/paper.bbl: tex/src/references.tex $(mtexdir)/dependencies.tex \ # possible system-wide things). export LD_LIBRARY_PATH="$(sys_library_sh_path):$$LD_LIBRARY_PATH" pdflatex -shell-escape -halt-on-error "$$p"/paper.tex - biber paper + bibtex paper + pdflatex -shell-escape -halt-on-error "$$p"/paper.tex fi diff --git a/reproduce/software/config/texlive-packages.conf b/reproduce/software/config/texlive-packages.conf index e68a771..d25309a 100644 --- a/reproduce/software/config/texlive-packages.conf +++ b/reproduce/software/config/texlive-packages.conf @@ -26,32 +26,13 @@ # their versions. # # - fancyvrb: needed by R. -texlive-packages = biber \ - biblatex \ - caption \ - courier \ - csquotes \ - datetime \ - fancyvrb \ - fmtcount \ - fontaxes \ - footmisc \ - fp \ - kastrup \ - logreq \ - mweights \ - newtx \ +texlive-packages = caption \ + helvetic \ + lineno \ pgf \ pgfplots \ - preprint \ setspace \ - tex-gyre \ + sttools \ + tex \ times \ - titlesec \ - trimspaces \ - txfonts \ - ulem \ - xcolor \ - xkeyval \ - xpatch \ - xstring + txfonts diff --git a/reproduce/software/make/high-level.mk b/reproduce/software/make/high-level.mk index 67ca8b6..ecb60de 100644 --- a/reproduce/software/make/high-level.mk +++ b/reproduce/software/make/high-level.mk @@ -444,6 +444,7 @@ $(ibidir)/cfitsio-$(cfitsio-version): # # Note that older versions of CFITSIO (before 4.4.0) require a # specific 'shared' target for the building of the shared libraries. + export CFLAGS="-std=gnu17 $$CFLAGS" export gbuild_tar=$(ddir)/$$customtar $(call gbuild, cfitsio-$(cfitsio-version), , \ --enable-sse2 --enable-reentrant \ @@ -1198,8 +1199,8 @@ $(ibidir)/ghostscript-$(ghostscript-version): \ --enable-dynamic \ --disable-compile-inits \ --disable-hidden-visibility \ - CFLAGS="-DPNG_ARM_NEON_OPT=0" \ - LDFLAGS=-Wl,--copy-dt-needed-entries + LDFLAGS=-Wl,--copy-dt-needed-entries \ + CFLAGS="-DPNG_ARM_NEON_OPT=0 -std=gnu17" # Build and install the program and the shared libraries. make V=1 -j$(numthreads) @@ -1229,7 +1230,6 @@ $(ibidir)/gnuastro-$(gnuastro-version): \ $(ibidir)/wcslib-$(wcslib-version) \ $(ibidir)/libjpeg-$(libjpeg-version) \ $(ibidir)/libtiff-$(libtiff-version) \ - $(ibidir)/libgit2-$(libgit2-version) \ $(ibidir)/ghostscript-$(ghostscript-version) tarball=gnuastro-$(gnuastro-version).tar.lz $(call import-source, $(gnuastro-url), $(gnuastro-checksum)) @@ -1865,7 +1865,6 @@ $(ibidir)/zip-$(zip-version): $(ibidir)/gzip-$(gzip-version) # NY on the internet infrastructure). texlive-url=http://mirrors.rit.edu/CTAN/systems/texlive/tlnet $(itidir)/texlive-ready-tlmgr: reproduce/software/config/texlive.conf - tarball=install-tl-unx.tar.gz $(call import-source, $(texlive-url), NO-CHECK-SUM) diff --git a/tex/src/journal/aa.bst b/tex/src/journal/aa.bst new file mode 100644 index 0000000..4abd9a5 --- /dev/null +++ b/tex/src/journal/aa.bst @@ -0,0 +1,1695 @@ +%% 2001/06/10 EDP Sciences +%% APJ, corrected by hand to get results for A&A, using Natbib + +%% 1998/08/12 J Baker +%% Tweaked by hand to get correct results for ApJ. Added functions from +%% astrobib. + +%% $Log: apj.bst,v $ +%% Revision 1.3 2000/04/20 22:17:50 jbaker +%% Fixed INBOOK bug, now works essentially like BOOK. +%% +%% Revision 1.2 1998/08/30 22:35:45 jbaker +%% Added RCS keywords. +%% + +%% +%% This is file `apj.bst', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% merlin.mbs (with options: `,ay,nat,nm-rev,nmdash,dt-beg,yr-per,note-yr,atit-u,jtit-x,jttl-rm,thtit-a,vnum-x,volp-com,jpg-1,pp-last,btit-rm,add-pub,pub-par,pre-edn,edby,edbyx,blk-com,fin-bare,ppx,ed,abr,ord,jabr,eprint,amper,em-x') +%% ---------------------------------------- +%% *** Bibliographic Style for ApJ *** +%% + %------------------------------------------------------------------- + % The original source file contains the following version information: + % \ProvidesFile{merlin.mbs}[1998/02/25 3.85a (PWD)] + % + % NOTICE: + % This file may be used for non-profit purposes. + % It may not be distributed in exchange for money, + % other than distribution costs. + % + % The author provides it `as is' and does not guarantee it in any way. + % + % Copyright (C) 1994-98 Patrick W. Daly + %------------------------------------------------------------------- + % For use with BibTeX version 0.99a or later + %------------------------------------------------------------------- + % This bibliography style file is intended for texts in ENGLISH + % This is an author-year citation style bibliography. As such, it is + % non-standard LaTeX, and requires a special package file to function properly. + % Such a package is natbib.sty by Patrick W. Daly + % The form of the \bibitem entries is + % \bibitem[Jones et al.(1990)]{key}... + % \bibitem[Jones et al.(1990)Jones, Baker, and Smith]{key}... + % The essential feature is that the label (the part in brackets) consists + % of the author names, as they should appear in the citation, with the year + % in parentheses following. There must be no space before the opening + % parenthesis! + % With natbib v5.3, a full list of authors may also follow the year. + % In natbib.sty, it is possible to define the type of enclosures that is + % really wanted (brackets or parentheses), but in either case, there must + % be parentheses in the label. + % The \cite command functions as follows: + % \citet{key} ==>> Jones et al. (1990) + % \citet*{key} ==>> Jones, Baker, and Smith (1990) + % \citep{key} ==>> (Jones et al., 1990) + % \citep*{key} ==>> (Jones, Baker, and Smith, 1990) + % \citep[chap. 2]{key} ==>> (Jones et al., 1990, chap. 2) + % \citep[e.g.][]{key} ==>> (e.g. Jones et al., 1990) + % \citep[e.g.][p. 32]{key} ==>> (e.g. Jones et al., p. 32) + % \citeauthor{key} ==>> Jones et al. + % \citeauthor*{key} ==>> Jones, Baker, and Smith + % \citeyear{key} ==>> 1990 + %--------------------------------------------------------------------- + +ENTRY + { address + archiveprefix %EDP Sciences le 30/11/2014 + author + booktitle + chapter + edition + editor + howpublished + institution + eprint %EDP Sciences le 30/11/2014 + journal + key + month + note + number + organization + pages + publisher + school + series + title + type + volume + year + } + {} + { label extra.label sort.label short.list } + +INTEGERS { output.state before.all mid.sentence after.sentence after.block } + +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := +} + +STRINGS { s t } + +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { ", " * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} + +%EDP Sciences le 30/11/2014 +FUNCTION {output.eprint} +{ 's := + output.state mid.sentence = + { " " * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} + +%EDP Sciences le 30/11/2014 +FUNCTION {outputeprint} +{ duplicate$ empty$ + 'pop$ + 'output.eprint + if$ +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} + +FUNCTION {fin.entry} +{ duplicate$ empty$ + 'pop$ + 'write$ + if$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { after.block 'output.state := } + if$ +} + +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ +} + +FUNCTION {add.blank} +{ " " * before.all 'output.state := +} + +FUNCTION {date.block} +{ + skip$ +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} + +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} + +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} + +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} + +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} + +FUNCTION {emphasize} +{ skip$ } + +FUNCTION {capitalize} +{ "u" change.case$ "t" change.case$ } + +FUNCTION {space.word} +{ " " swap$ * " " * } + + % Here are the language-specific definitions for explicit words. + % Each function has a name bbl.xxx where xxx is the English word. + % The language selected here is ENGLISH +FUNCTION {bbl.and} +{ "and"} + +FUNCTION {bbl.editors} +{ "eds." } + +FUNCTION {bbl.editor} +{ "ed." } + +FUNCTION {bbl.edby} +{ "edited by" } + +FUNCTION {bbl.edition} +{ "edn." } + +FUNCTION {bbl.volume} +{ "Vol." } + +FUNCTION {bbl.of} +{ "of" } + +FUNCTION {bbl.number} +{ "no." } + +FUNCTION {bbl.nr} +{ "no." } + +FUNCTION {bbl.in} +{ "in" } + +FUNCTION {bbl.pages} +{ "" } + +FUNCTION {bbl.page} +{ "" } + +FUNCTION {bbl.chapter} +{ "Ch." } +%{ "chap." } + +FUNCTION {bbl.techrep} +{ "Tech. Rep." } + +FUNCTION {bbl.mthesis} +{ "Master's thesis" } + +FUNCTION {bbl.phdthesis} +{ "PhD thesis" } + +FUNCTION {bbl.first} +{ "1st" } + +FUNCTION {bbl.second} +{ "2nd" } + +FUNCTION {bbl.third} +{ "3rd" } + +FUNCTION {bbl.fourth} +{ "4th" } + +FUNCTION {bbl.fifth} +{ "5th" } + +FUNCTION {bbl.st} +{ "st" } + +FUNCTION {bbl.nd} +{ "nd" } + +FUNCTION {bbl.rd} +{ "rd" } + +FUNCTION {bbl.th} +{ "th" } + +MACRO {jan} {"Jan."} + +MACRO {feb} {"Feb."} + +MACRO {mar} {"Mar."} + +MACRO {apr} {"Apr."} + +MACRO {may} {"May"} + +MACRO {jun} {"Jun."} + +MACRO {jul} {"Jul."} + +MACRO {aug} {"Aug."} + +MACRO {sep} {"Sep."} + +MACRO {oct} {"Oct."} + +MACRO {nov} {"Nov."} + +MACRO {dec} {"Dec."} + +FUNCTION {eng.ord} +{ duplicate$ "1" swap$ * + #-2 #1 substring$ "1" = + { bbl.th * } + { duplicate$ #-1 #1 substring$ + duplicate$ "1" = + { pop$ bbl.st * } + { duplicate$ "2" = + { pop$ bbl.nd * } + { "3" = + { bbl.rd * } + { bbl.th * } + if$ + } + if$ + } + if$ + } + if$ +} + +MACRO {acmcs} {"ACM Comput. Surv."} + +MACRO {acta} {"Acta Inf."} + +MACRO {cacm} {"Commun. ACM"} + +MACRO {ibmjrd} {"IBM J. Res. Dev."} + +MACRO {ibmsj} {"IBM Syst.~J."} + +MACRO {ieeese} {"IEEE Trans. Softw. Eng."} + +MACRO {ieeetc} {"IEEE Trans. Comput."} + +MACRO {ieeetcad} + {"IEEE Trans. Comput.-Aided Design Integrated Circuits"} + +MACRO {ipl} {"Inf. Process. Lett."} + +MACRO {jacm} {"J.~ACM"} + +MACRO {jcss} {"J.~Comput. Syst. Sci."} + +MACRO {scp} {"Sci. Comput. Programming"} + +MACRO {sicomp} {"SIAM J. Comput."} + +MACRO {tocs} {"ACM Trans. Comput. Syst."} + +MACRO {tods} {"ACM Trans. Database Syst."} + +MACRO {tog} {"ACM Trans. Gr."} + +MACRO {toms} {"ACM Trans. Math. Softw."} + +MACRO {toois} {"ACM Trans. Office Inf. Syst."} + +MACRO {toplas} {"ACM Trans. Prog. Lang. Syst."} + +MACRO {tcs} {"Theoretical Comput. Sci."} + +INTEGERS { nameptr namesleft numnames } + +FUNCTION {format.names} +{ 's := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}{, jj}{, f.}" format.name$ + 't := + +numnames #5 > + { + nameptr #1 > + { + nameptr #4 = + { + ", {et~al.}" * + } + { + nameptr #4 > + { "" * } + { ", " * t * } + if$ + } + if$ + + } + 't + if$ + } + { + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + numnames #2 > + { "," * } + 'skip$ + if$ + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + " {et~al.}" * + } + { " \& " * t * } + if$ + } + if$ + } + 't + if$ + } if$ + + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {format.names.ed} +{ 's := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{f.~}{vv~}{ll}{, jj}" + format.name$ + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + numnames #2 > + { "," * } + 'skip$ + if$ + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + " {et~al.}" * + } + { " \& " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {format.key} +{ empty$ + { key field.or.null } + { "" } + if$ +} + +FUNCTION {format.authors} +{ author empty$ + { "" } + { author format.names } + if$ +} + +FUNCTION {format.editors} +{ editor empty$ + { "" } + { editor format.names + editor num.names$ #1 > + { ", " * bbl.editors * } + { ", " * bbl.editor * } + if$ + } + if$ +} + +FUNCTION {format.in.editors} +{ editor empty$ + { "" } + { editor format.names.ed + } + if$ +} + +FUNCTION {format.note} +{ note empty$ + { "" } + { note #1 #1 substring$ + duplicate$ "{" = + 'skip$ + { output.state mid.sentence = + { "l" } + { "u" } + if$ + change.case$ + } + if$ + note #2 global.max$ substring$ * + } + if$ +} + +%EDP Sciences le 30/11/2014 +FUNCTION {format.eprint} +{ eprint duplicate$ empty$ + 'skip$ + { "[\eprint" + archiveprefix empty$ + 'skip$ + { "[" * archiveprefix * "]" * } + if$ + "{" * swap$ * "}]" * + } + if$ +} +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + +FUNCTION {format.title} +{ title empty$ + { "" } + { title + } + if$ +} + +FUNCTION {format.full.names} +{'s := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}" format.name$ + 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + numnames #2 > + { "," * } + 'skip$ + if$ + s nameptr "{ll}" format.name$ duplicate$ "others" = + { 't := } + { pop$ } + if$ + t "others" = + { + " {et~al.}" * + } + { " \& " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {author.editor.key.full} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.full.names } + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {author.key.full} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {editor.key.full} +{ editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.full.names } + if$ +} + +FUNCTION {make.full.names} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.full + { type$ "proceedings" = + 'editor.key.full + 'author.key.full + if$ + } + if$ +} + +FUNCTION {output.bibitem} +{ newline$ + "\bibitem[{" write$ + label write$ + ")" make.full.names duplicate$ short.list = + { pop$ } + { * } + if$ + "}]{" * write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {n.dashify} +{ + 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { t #1 #2 substring$ "--" = not + { "--" * + t #2 global.max$ substring$ 't := + } + { { t #1 #1 substring$ "-" = } + { "-" * + t #2 global.max$ substring$ 't := + } + while$ + } + if$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {word.in} +{ bbl.in + " " * } + +FUNCTION {format.date} +{ year duplicate$ empty$ + { "empty year in " cite$ * "; set to ????" * warning$ + pop$ "????" } + 'skip$ + if$ + extra.label * + before.all 'output.state := + after.sentence 'output.state := +} + +FUNCTION {format.btitle} +{ title +} + +FUNCTION {tie.or.space.connect} +{ duplicate$ text.length$ #3 < + { "~" } + { " " } + if$ + swap$ * * +} + +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} + +FUNCTION {format.bvolume} +{ volume empty$ + { "" } + { bbl.volume volume tie.or.space.connect + series empty$ + 'skip$ + { bbl.of space.word * series emphasize * } + if$ + "volume and number" number either.or.check + } + if$ +} + +FUNCTION {format.number.series} +{ volume empty$ + { number empty$ + { series field.or.null } + { output.state mid.sentence = + { bbl.number } + { bbl.number capitalize } + if$ + number tie.or.space.connect + series empty$ + { "there's a number but no series in " cite$ * warning$ } + { bbl.in space.word * series * } + if$ + } + if$ + } + { "" } + if$ +} + +FUNCTION {is.num} +{ chr.to.int$ + duplicate$ "0" chr.to.int$ < not + swap$ "9" chr.to.int$ > not and +} + +FUNCTION {extract.num} +{ duplicate$ 't := + "" 's := + { t empty$ not } + { t #1 #1 substring$ + t #2 global.max$ substring$ 't := + duplicate$ is.num + { s swap$ * 's := } + { pop$ "" 't := } + if$ + } + while$ + s empty$ + 'skip$ + { pop$ s } + if$ +} + +FUNCTION {convert.edition} +{ edition extract.num "l" change.case$ 's := + s "first" = s "1" = or + { bbl.first 't := } + { s "second" = s "2" = or + { bbl.second 't := } + { s "third" = s "3" = or + { bbl.third 't := } + { s "fourth" = s "4" = or + { bbl.fourth 't := } + { s "fifth" = s "5" = or + { bbl.fifth 't := } + { s #1 #1 substring$ is.num + { s eng.ord 't := } + { edition 't := } + if$ + } + if$ + } + if$ + } + if$ + } + if$ + } + if$ + t +} + +FUNCTION {format.edition} +{ edition empty$ + { "" } + { output.state mid.sentence = + { convert.edition "l" change.case$ " " * bbl.edition * } + { convert.edition "t" change.case$ " " * bbl.edition * } + if$ + } + if$ +} + +INTEGERS { multiresult } + +FUNCTION {multi.page.check} +{ 't := + #0 'multiresult := + { multiresult not + t empty$ not + and + } + { t #1 #1 substring$ + duplicate$ "-" = + swap$ duplicate$ "," = + swap$ "+" = + or or + { #1 'multiresult := } + { t #2 global.max$ substring$ 't := } + if$ + } + while$ + multiresult +} + +FUNCTION {format.pages} +{ pages empty$ + { "" } + { pages multi.page.check +% { bbl.pages pages n.dashify tie.or.space.connect } +% { bbl.page pages tie.or.space.connect } + { pages n.dashify } + { pages } + if$ + } + if$ +} + +FUNCTION {first.page} +{ 't := + "" + { t empty$ not t #1 #1 substring$ "-" = not and } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + while$ +} + +FUNCTION {format.journal.pages} +{ pages empty$ + { format.eprint outputeprint %EDP Sciences le 30/11/2014 + } + { duplicate$ empty$ + { pop$ format.pages } + { + ", " * + pages first.page * + } + if$ + } + if$ +} + +FUNCTION {format.vol.num.pages} +{ volume field.or.null +} + +FUNCTION {format.chapter.pages} +{ chapter empty$ + { "" } + { type empty$ + { bbl.chapter } + { type "l" change.case$ } + if$ + chapter tie.or.space.connect + } + if$ +} + +FUNCTION {format.in.ed.booktitle} +{ booktitle empty$ + { "" } + { editor empty$ + { word.in booktitle emphasize * } + { word.in booktitle emphasize * + ", " * + editor num.names$ #1 > + { bbl.editors } + { bbl.editor } + if$ + * " " * + format.in.editors * + } + if$ + } + if$ +} + +FUNCTION {format.thesis.type} +{ type empty$ + 'skip$ + { pop$ + type "t" change.case$ + } + if$ +} + +FUNCTION {format.tr.number} +{ type empty$ + { bbl.techrep } + 'type + if$ + number empty$ + { "t" change.case$ } + { number tie.or.space.connect } + if$ +} + +FUNCTION {format.article.crossref} +{ + word.in + " \cite{" * crossref * "}" * +} + +FUNCTION {format.book.crossref} +{ volume empty$ + { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ + word.in + } + { bbl.volume volume tie.or.space.connect + bbl.of space.word * + } + if$ + " \cite{" * crossref * "}" * +} + +FUNCTION {format.incoll.inproc.crossref} +{ + word.in + " \cite{" * crossref * "}" * +} + +FUNCTION {format.publisher} +{ publisher empty$ + { "empty publisher in " cite$ * warning$ } + 'skip$ + if$ + "" + address empty$ publisher empty$ and + 'skip$ + { + add.blank "(" * + address empty$ + 'skip$ + { address * } + if$ + publisher empty$ + 'skip$ + { address empty$ + 'skip$ + { ": " * } + if$ + publisher * + } + if$ + ")" * + } + if$ + output +} + +STRINGS {oldname} + +%%%%%%%% To repeat the same authors + +%FUNCTION {name.or.dash} +%{ 's := +% oldname empty$ +% { s 'oldname := s } +% { s oldname = +% { "---" } +% { s 'oldname := s } +% if$ +% } +% if$ +%} + +%%%%%%%% Functions added from astrobib + +FUNCTION {format.edn.btitle} % Title should be on stack. +{ duplicate$ empty$ edition empty$ or + 'skip$ + { ", " * format.edition * } + if$ +} + +FUNCTION {format.ed.booktitle} % The title should be on the stack. +{ duplicate$ empty$ + { "no book title in " cite$ * warning$ "" pop$ } + { editor empty$ + author empty$ or % Empty author means editor already given. + 'format.edn.btitle + { format.edn.btitle ", " * bbl.editor * " " * format.in.editors * } + if$ + } + if$ +} + +FUNCTION {format.full.book.spec} % The title should be on the stack. +{ series empty$ + { format.ed.booktitle + volume empty$ + { number empty$ + 'skip$ + { " there's a number but no series in " cite$ * warning$ + " No." number tie.or.space.connect * } + if$ + } + { ", Vol." volume tie.or.space.connect * + number empty$ + 'skip$ + {"Both volume and number fields in " * cite$ * warning$ } + if$ + } + if$ + } + { volume empty$ + { format.ed.booktitle ", " * series * + number empty$ + 'skip$ + { " No." number tie.or.space.connect * } + if$ + } + { series ", Vol." volume tie.or.space.connect * + ", " * swap$ format.ed.booktitle * + number empty$ + 'skip$ + {"Both volume and number fields in " * cite$ * warning$ } + if$ + } + if$ + } + if$ +} + +%%%%%%% End of functions from astrobib + +FUNCTION {article} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + crossref missing$ + { journal + "journal" output.check + format.vol.num.pages output + } + { format.article.crossref output.nonnull + format.pages output + } + if$ + format.journal.pages + format.note output + %format.eprint outputeprint %EDP Sciences le 30/11/2014 + fin.entry +} + +FUNCTION {book} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output +%%%%% name.or.dash + } + { format.authors output.nonnull +%%%%% name.or.dash + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + format.date "year" output.check + date.block + title format.full.book.spec output +% format.btitle "title" output.check +% crossref missing$ +% { format.bvolume output +% format.number.series output +% format.edition output + format.publisher +% } +% { +% format.book.crossref output.nonnull +% } +% if$ + format.pages output + format.note output + fin.entry +} + +FUNCTION {booklet} +{ output.bibitem + format.authors output + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + format.title "title" output.check + howpublished output + address output + format.note output + fin.entry +} + +FUNCTION {inbook} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output +%%%%% name.or.dash + } + { format.authors output.nonnull +%%%%% name.or.dash + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + format.date "year" output.check + date.block + title format.full.book.spec output +% format.btitle "title" output.check +% crossref missing$ +% { +% format.bvolume output +% format.chapter.pages "chapter and pages" output.check +% format.number.series output +% format.edition output + format.publisher +% } +% { +% format.chapter.pages "chapter and pages" output.check +% format.book.crossref output.nonnull +% } +% if$ + format.pages "pages" output.check + format.note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%%% name.or.dash + format.date "year" output.check + date.block + bbl.in " " * booktitle format.full.book.spec * output +% crossref missing$ +% { format.in.ed.booktitle "booktitle" output.check +% format.bvolume output +% format.number.series output +% format.edition output +% format.chapter.pages output + format.publisher +% } +% { format.incoll.inproc.crossref output.nonnull +% format.chapter.pages output +% } +% if$ + format.pages "pages" output.check + format.note output + fin.entry +} + +FUNCTION {inproceedings} +{ output.bibitem + format.authors "author" output.check + author format.key output % added + format.date "year" output.check + date.block + bbl.in " " * booktitle format.full.book.spec * output +% crossref missing$ +% { format.in.ed.booktitle "booktitle" output.check +% format.bvolume output +% format.number.series output + publisher empty$ + { organization output + address output + } + { organization output + format.publisher + } + if$ +% } +% { format.incoll.inproc.crossref output.nonnull +% } +% if$ + format.pages output + format.note output + fin.entry +} + +FUNCTION {conference} { inproceedings } + +FUNCTION {manual} +{ output.bibitem + format.authors output + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + format.btitle "title" output.check + format.edition output + organization output + address output + format.note output + fin.entry +} + +FUNCTION {mastersthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block +% format.title "title" output.check + bbl.mthesis format.thesis.type output.nonnull + school "school" output.check + address output + format.note output + fin.entry +} + +FUNCTION {misc} +{ output.bibitem + format.authors output + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + format.title output + howpublished output + format.note output + fin.entry +} + +FUNCTION {phdthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block +% format.title "title" output.check + bbl.phdthesis format.thesis.type output.nonnull + school "school" output.check + address output + format.note output + fin.entry +} + +FUNCTION {proceedings} +{ output.bibitem + editor empty$ + { organization output + organization format.key output } + { format.editors output } + if$ +% format.editors output +% editor format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + title format.full.book.spec output +% format.btitle "title" output.check +% format.bvolume output +% format.number.series output + publisher empty$ not % No need for warning if no pub. + { format.publisher } + { editor empty$ % For empty editor, organization was already given. + 'skip$ + { organization output } + if$ + address output + } + if$ +% address output +% organization output +% publisher output + format.pages output + format.note output + fin.entry +} + +FUNCTION {techreport} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block + format.title "title" output.check + format.tr.number output.nonnull + institution "institution" output.check + address output + format.note output + fin.entry +} + +FUNCTION {unpublished} +{ output.bibitem + format.authors "author" output.check + author format.key output +%%%%% name.or.dash + format.date "year" output.check + date.block +% format.title "title" output.check + format.note "note" output.check + fin.entry +} + +FUNCTION {default.type} { misc } + +READ + +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} + +INTEGERS { len } + +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} + +FUNCTION {format.lab.names} +{ 's := + s #1 "{vv~}{ll}" format.name$ + s num.names$ duplicate$ + #2 > + { pop$ + " {et~al.}" * + } + { #2 < + 'skip$ + { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = + { + " {et~al.}" * + } + { " \& " * s #2 "{vv~}{ll}" format.name$ + * } + if$ + } + if$ + } + if$ +} + +FUNCTION {author.key.label} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.editor.key.label} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {editor.key.label} +{ editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ +} + +FUNCTION {calc.short.authors} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.label + { type$ "proceedings" = + 'editor.key.label + 'author.key.label + if$ + } + if$ + 'short.list := +} + +FUNCTION {calc.label} +{ calc.short.authors + short.list + "(" + * + year duplicate$ empty$ + { pop$ "????" } + 'skip$ + if$ + * + 'label := +} + +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv{ } }{ll{ }}{ f{ }}{ jj{ }}" + format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { t sortify * } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} + +FUNCTION {author.sort} +{ author empty$ + { key empty$ + { "to sort, need author or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { author sort.format.names } + if$ +} + +FUNCTION {author.editor.sort} +{ author empty$ + { editor empty$ + { key empty$ + { "to sort, need author, editor, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ +} + +FUNCTION {editor.sort} +{ editor empty$ + { key empty$ + { "to sort, need editor or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ +} + +FUNCTION {presort} +{ calc.label + label sortify + " " + * + type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "proceedings" = + 'editor.sort + 'author.sort + if$ + } + if$ + #1 entry.max$ substring$ + 'sort.label := + sort.label + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} + +ITERATE {presort} + +SORT + +STRINGS { last.label next.extra } + +INTEGERS { last.extra.num number.label } + +FUNCTION {initialize.extra.label.stuff} +{ #0 int.to.chr$ 'last.label := + "" 'next.extra := + #0 'last.extra.num := + #0 'number.label := +} + +FUNCTION {forward.pass} +{ last.label label = + { last.extra.num #1 + 'last.extra.num := + last.extra.num int.to.chr$ 'extra.label := + } + { "a" chr.to.int$ 'last.extra.num := + "" 'extra.label := + label 'last.label := + } + if$ + number.label #1 + 'number.label := +} + +FUNCTION {reverse.pass} +{ next.extra "b" = + { "a" 'extra.label := } + 'skip$ + if$ + extra.label 'next.extra := + extra.label + duplicate$ empty$ + 'skip$ + { "{\natexlab{" swap$ * "}}" * } + if$ + 'extra.label := + label extra.label * 'label := +} + +EXECUTE {initialize.extra.label.stuff} + +ITERATE {forward.pass} + +REVERSE {reverse.pass} + +FUNCTION {bib.sort.order} +{ sort.label + " " + * + year field.or.null sortify + * + " " + * + title field.or.null + sort.format.title + * + #1 entry.max$ substring$ + 'sort.key$ := +} + +ITERATE {bib.sort.order} + +SORT + +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" number.label int.to.str$ * "}" * + write$ newline$ + "\expandafter\ifx\csname natexlab\endcsname\relax\def\natexlab#1{#1}\fi" + write$ newline$ +} + +EXECUTE {begin.bib} + +EXECUTE {init.state.consts} + +ITERATE {call.type$} + +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} + +EXECUTE {end.bib} +%% End of customized bst file +%% +%% End of file `apj.bst'. + diff --git a/tex/src/journal/aa.cls b/tex/src/journal/aa.cls new file mode 100644 index 0000000..c178d7d --- /dev/null +++ b/tex/src/journal/aa.cls @@ -0,0 +1,2054 @@ +%% +%% This is file `aa.cls', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% aa.dtx (with options: `aa') +%% +%% aa.dtx +%% Copyright EDP Sciences (2024), J.-C. Charpentier (2010), all rights reserved. +%% Class `aa' to use with LaTeX 2e +%% \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 +%% Lower-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 +%% Digits \0\1\2\3\4\5\6\7\8\9 +%% Exclamation \! Double quote \" Hash (number) \# +%% Dollar \$ Percent \% Ampersand \& +%% Acute accent \' Left paren \( Right paren \) +%% Asterisk \* Plus \+ Comma \, +%% Minus \- Point \. Solidus \/ +%% Colon \: Semicolon \; Less than \< +%% Equals \= Greater than \> Question mark \? +%% Commercial at \@ Left bracket \[ Backslash \\ +%% Right bracket \] Circumflex \^ Underscore \_ +%% Grave accent \` Left brace \{ Vertical bar \| +%% Right brace \} Tilde \~} +%% +\def\filedate{2024/08/08} +\let\aafiledate\filedate +\def\fileversion{9.2} +\let\aafileversion\fileversion +\NeedsTeXFormat{LaTeX2e}[1995/06/01] +\ProvidesClass{aa} + [\filedate{} v\fileversion{} Class for AA journal] +\LoadClass[fleqn]{article} +\newif\ifaa@letter +\DeclareOption{letter}{\aa@lettertrue} +\newif\ifaa@onlletter +\DeclareOption{onlletter}{\aa@onllettertrue} +\newif\ifaa@online +\DeclareOption{online}{\aa@onlinetrue} +\newif\ifaa@referee +\DeclareOption{referee}{\aa@refereetrue} +\newif\ifaa@contents +\DeclareOption{contents}{\aa@contentstrue} +\newif\ifaa@contentsAut +\DeclareOption{contentsAut}{\aa@contentsAuttrue} +\newlength\aa@fullwidth +\newlength\aa@fullheight +\DeclareOption{a4paper}{% + \renewcommand*\aa@paper{a4paper}% + \setlength\aa@fullwidth{184mm}% + \renewcommand*\aa@leftmarginpaper{(21cm-\aa@fullwidth)/2}% + \setlength\aa@fullheight{705pt}% +} +\DeclareOption{letterpaper}{% + \renewcommand*\aa@paper{letterpaper} + \setlength\aa@fullwidth{184mm}% + \renewcommand*\aa@leftmarginpaper{(8.5in-\aa@fullwidth)/2}% + \setlength\aa@fullheight{705pt-1.76cm}% +} +\DeclareOption{legalpaper}{% + \renewcommand*\aa@paper{legalpaper}% + \setlength\aa@fullwidth{184mm}% + \renewcommand*\aa@leftmarginpaper{(8.5in-\aa@fullwidth)/2}% + \setlength\aa@fullheight{705pt}% +} +\newcommand*\aa@paper{} +\newcommand*\aa@leftmarginpaper{} +\newif\ifaa@twocolumn +\DeclareOption{onecolumn}{% + \aa@twocolumnfalse + \renewcommand*\aa@column{onecolumn}% +} +\DeclareOption{twocolumn}{% + \aa@twocolumntrue + \renewcommand*\aa@column{twocolumn}% +} +\newcommand*\aa@column{} +\newif\if@wideboxfn +\@wideboxfnfalse +\DeclareOption{wideboxfn}{\@wideboxfntrue} +% +\newif\ifaa@longfn +\DeclareOption{longfn}{\aa@longfntrue} +\newif\ifaa@longauth +\DeclareOption{longauth}{\aa@longauthtrue} +\let\if@myobjects\iffalse +\DeclareOption{ascii}{% + \def\aa@inputenc{\RequirePackage[ascii]{inputenc}}% +} +\DeclareOption{latin1}{% + \def\aa@inputenc{\RequirePackage[latin1]{inputenc}}% +} +\DeclareOption{latin9}{% + \def\aa@inputenc{\RequirePackage[latin9]{inputenc}}% +} +\DeclareOption{ansinews}{% + \def\aa@inputenc{\RequirePackage[ansinews]{inputenc}}% +} +\DeclareOption{applemac}{% + \def\aa@inputenc{\RequirePackage[applemac]{inputenc}}% +} +\DeclareOption{utf8}{% + \def\aa@inputenc{\RequirePackage[utf8]{inputenc}}% +} +\newcommand*\aa@font{} +\DeclareOption{cm}{% + \def\aa@font{% + \RequirePackage{textcomp}% + }% +} +\DeclareOption{showoverfull}{\setlength\overfullrule{5\p@}} +\DeclareOption{hideoverfull}{\setlength\overfullrule{\z@}} +\DeclareOption{openbib}{% + \AtEndOfPackage{% + \renewcommand\@openbib@code{% + \advance\leftmargin\bibindent + \itemindent -\bibindent + \listparindent \itemindent + \parsep \z@ + }% + \renewcommand\newblock{\par}}% +} +\newif\ifaa@bibnumber +\DeclareOption{bibnumber}{\aa@bibnumbertrue% + \def\aa@biblio{% + \RequirePackage[sort&compress]{natbib} + \bibpunct{[}{]}{,}{n}{}{,}% + \def\@biblabel##1{##1.}% + \bibliographystyle{plainnat}% + \def\bibfont{\aa@bibliographyfont}% + \setlength{\bibsep}{\z@}% + } +} +\DeclareOption{bibauthoryear}{% + \def\aa@biblio{% + \RequirePackage[nonamebreak]{natbib} + \bibpunct{(}{)}{;}{a}{}{,}% + \def\bibfont{\aa@bibliographyfont}% + \setlength{\bibsep}{\z@}% + }% +} +\DeclareOption{bibyear}{% + \def\aa@biblio{% + \def\@biblabel##1{}% + \def\@cite##1##2{{##1\if@tempswa , ##2\fi}}% + } +} +\ExecuteOptions{a4paper,twocolumn,utf8,hideoverfull,bibauthoryear} +\ProcessOptions +\RequirePackage{calc} +\RequirePackage{etex} +\RequirePackage[T1]{fontenc} +\aa@inputenc +\aa@font +\ifaa@referee +\RequirePackage{xcolor} +\RequirePackage{marginnote} +\AtEndOfClass{ +\setlength{\marginparwidth}{50mm} +\setlength{\marginparsep}{5mm} +} +% +\newcounter{lenote} +\AtBeginDocument{% +\@ifpackageloaded{hyperref}% +{\newcommand{\LEm}[1]{\texorpdfstring{\protect\stepcounter{lenote}{\normalfont\textbf{\color{red}[Note \arabic{lenote}] }} +\protect\marginnote{\baselineskip3ex{\normalsize{\normalfont\textbf{\color{red}[Note \arabic{lenote}: #1]}}}}}{}} +\newcommand{\LEt}[1]{\texorpdfstring{\protect\stepcounter{lenote}{\normalfont\textbf{\color{red}[Note \arabic{lenote}: #1] }}}{}}}% +{\newcommand{\LEm}[1]{\protect\stepcounter{lenote}{\normalfont\textbf{\color{red}[Note \arabic{lenote}] }} +\protect\marginnote{\baselineskip3ex{\normalsize{\normalfont\textbf{\color{red}[Note \arabic{lenote}: #1]}}}}} +\newcommand{\LEt}[1]{\protect\stepcounter{lenote}{\normalfont\textbf{\color{red}[Note \arabic{lenote}: #1] }}}}% +} + \renewcommand*\aa@column{onecolumn} + \aa@twocolumnfalse + \setlength{\aa@fullwidth}{0.75\aa@fullwidth} + \renewcommand*\aa@leftmarginpaper{15mm} + \if!\csname appendix\endcsname!\AtEndDocument{\listofobjects}\fi +\fi +\ifx\pdfoutput\undefined + \newcount\pdfoutput +\fi +\ifnum\pdfoutput=\z@ + \newcommand\aa@driver{dvips} +\else + \newcommand\aa@driver{pdftex} +\fi +\RequirePackage[\aa@driver, \aa@paper, left=\aa@leftmarginpaper, + \ifaa@twocolumn\aa@column\fi, \ifaa@referee\else twoside,\fi + textheight=\aa@fullheight,headheight=12pt,headsep=12pt, + footskip=20pt, + textwidth=\aa@fullwidth, columnsep=4mm, + marginpar=0in, marginparsep=0in]{geometry} +\RequirePackage{setspace} +\ifaa@referee + \doublespacing +\fi +\RequirePackage{fancyhdr} +\RequirePackage{cuted} +\RequirePackage[tbtags,fleqn]{amsmath} +\RequirePackage{amssymb} +\setlength{\mathindent}{\z@} +\ifaa@letter + \RequirePackage{xcolor} +\fi +\RequirePackage{url, enumerate} +\RequirePackage{longtable} +\renewcommand*\LT@makecaption[3]{% + \LT@mcol\LT@cols + c{\hbox to\z@{% + \hss\parbox[t]\LTcapwidth{% + \aa@longtablecaptionfont + \sbox\@tempboxa{% + #1{{\aa@longtableheadcaptionfont#2.} }#3% + }% + \ifdim\wd\@tempboxa>\hsize + #1{{\aa@longtableheadcaptionfont#2.} }#3% + \else + \hbox to\hsize{\box\@tempboxa\hfil}% + \fi + \endgraf\vskip\baselineskip + }% + \hss + }% + }% +} +\aa@biblio +\RequirePackage{xspace} +\RequirePackage[english]{babel} +\def\aatolm#1{\gdef\@aatolm{#1}} +\def\@aatolm{} +\renewenvironment{appendix}{\par\clearpage\aatolm{1} +\def\@hangfrom##1{\setbox\@tempboxa\hbox{{##1}}% + \hangindent \parindent\noindent\box\@tempboxa} +\def\sectcounterend{:} +\def\@seccntformat##1{\csname theap##1\endcsname% + \hskip\betweenumberspace} + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \setcounter{figure}{0}% + \setcounter{table}{0}% + \newcommand\theapsection{\appendixname\ \@Alph\c@section\sectcounterend}% + \newcommand\theapsubsection{\@Alph\c@section.\@arabic\c@subsection.}% + \newcommand\theapsubsubsection{\theapsubsection\@arabic\c@subsubsection.}% + \renewcommand\thesection{\@Alph\c@section}% + \renewcommand\thesubsection{\@Alph\c@section.\@arabic\c@subsection}% + \renewcommand\thesubsubsection{\thesubsection.\@arabic\c@subsubsection}% + \renewcommand\theequation{\@Alph\c@section.\@arabic\c@equation}% + \renewcommand\thefigure{\@Alph\c@section.\@arabic\c@figure}% + \renewcommand\thetable{\@Alph\c@section.\@arabic\c@table}% + \@addtoreset{equation}{section}% + \@addtoreset{figure}{section}% + \@addtoreset{table}{section}} +{ + \setcounter{section}{0}% + \setcounter{subsection}{0}% + \setcounter{figure}{0}% + \setcounter{table}{0}% + \renewcommand\thesection{\@arabic\c@section}% + \renewcommand\thesubsection{\@arabic\c@subsection}% + \renewcommand\thesubsubsection{\@arabic\c@subsubsection}% + \renewcommand\theequation{\@arabic\c@equation}% + \renewcommand\thefigure{\@arabic\c@figure}% + \renewcommand\thetable{\@arabic\c@table}% +} +\RequirePackage[figuresright]{rotating} +\newcount\aa@cnta +\newcount\aa@cntb +\newcount\aa@nbwords +\newcount\aa@nbauthors +\newcount\aa@nbinstitutes +\newcommand*\aa@traditabstractmax{300} +\newcommand*\aa@structabstractmax{300} +\newcommand*\aa@keywordsmax{6} +\newcounter{aa@institutecnt} +\newcount\aa@savecounter +\newlength{\aa@dima} +\newlength{\aa@dimb} +\newlength{\aa@dimc} +\newcommand*\aa@removefootnoteindentspace{-1.5em} +\newcommand*\aa@removefootnotewbindentspace{-2.25em} +\newcommand*\aa@logoruleindent{8\p@} +\newcommand*\aa@logoruleraise{4\p@} +\newcommand*\aa@logorulelength{78\p@} +\newcommand*\aa@logorulethick{1\p@} +\newcommand*\aa@logoraise{25\p@} +\newcommand*\aa@logoraiserest{14.5\p@} +\newlength{\VSpaceBeforeTheorem} +\setlength{\VSpaceBeforeTheorem}{8\p@ \@plus 2\p@ \@minus 2\p@} +\newlength{\VSpaceAfterTheorem} +\setlength{\VSpaceAfterTheorem}{8\p@ \@plus 2\p@ \@minus 2\p@} +\newlength{\HSpaceIndentTheorem} +\setlength{\HSpaceIndentTheorem}{\z@} +\newlength{\HVSpaceSepTheorem} +\setlength{\HVSpaceSepTheorem}{0.25em} +\newlength{\aa@securityheadmargin} +\setlength{\aa@securityheadmargin}{2cm} +\newlength{\aa@bleedmargin} +\setlength{\aa@bleedmargin}{5mm} +\newlength{\aa@voffsetlettername} +\setlength{\aa@voffsetlettername}{2.55cm} +\newlength{\aa@hoffsetlettername} +\setlength{\aa@hoffsetlettername}{2mm} +\newlength{\aa@hoffsetgray} +\setlength{\aa@hoffsetgray}{3mm} +\newlength{\aa@aftercontentsnameskip} +\setlength{\aa@aftercontentsnameskip}{12\p@} +\newlength{\aa@aftercontentsAutnameskip} +\setlength{\aa@aftercontentsAutnameskip}{12\p@} +\newlength{\aa@beforeheadboxskip} +\setlength{\aa@beforeheadboxskip}{-20\p@} +\newlength{\aa@afterheadboxskip} +\setlength{\aa@afterheadboxskip}{49\p@} +\newlength{\aa@beforetopicsskip} +\setlength{\aa@beforetopicsskip}{18\p@} +\newlength{\aa@aftertopicsskip} +\setlength{\aa@aftertopicsskip}{32\p@} +\newlength{\aa@afterletternameskip} +\setlength{\aa@afterletternameskip}{6mm} +\newlength{\aa@beforeletternameskip} +\setlength{\aa@beforeletternameskip}{-4.8mm} +\newlength{\aa@beforeheadnoteskip} +\setlength{\aa@beforeheadnoteskip}{-12\p@} +\newlength{\aa@afterheadnoteskip} +\setlength{\aa@afterheadnoteskip}{3.5mm} +\newlength{\aa@aftertitleskip} +\setlength{\aa@aftertitleskip}{10\p@} +\newlength{\aa@beforesubtitleskip} +\setlength{\aa@beforesubtitleskip}{7\p@} +\newlength{\aa@aftersubtitleskip} +\setlength{\aa@aftersubtitleskip}{10\p@} +\newlength{\aa@afterauthorskip} +\setlength{\aa@afterauthorskip}{16.5\p@} +\newlength{\aa@beforedefaultheadnoteskip} +\setlength{\aa@beforedefaultheadnoteskip}{2pt} +\newlength{\aa@headingleftmargin} +\setlength{\aa@headingleftmargin}{8mm} +\newlength{\aa@headingrightmargin} +\setlength{\aa@headingrightmargin}{8mm} +\newlength{\aa@afterinstituteskip} +\setlength{\aa@afterinstituteskip}{8\p@} +\newlength{\aa@instituteindent} +\newlength{\aa@afterdateskip} +\setlength{\aa@afterdateskip}{16.5\p@} +\newlength{\aa@afterdedicationskip} +\setlength{\aa@afterdedicationskip}{16.5\p@} +\newlength{\aa@afterabstractnameskip} +\setlength{\aa@afterabstractnameskip}{9\p@} +\newlength{\aa@afterabstractskip} +\setlength{\aa@afterabstractskip}{6\p@} +\newlength{\aa@aftersubabstractskip} +\setlength{\aa@aftersubabstractskip}{\z@} +\newlength{\aa@afterkeywordsskip} +\setlength{\aa@afterkeywordsskip}{24\p@} +\newlength{\aa@beforeacknowledgementsskip} +\setlength{\aa@beforeacknowledgementsskip}{6pt} +\newlength{\aa@afteracknowledgementsskip} +\setlength{\aa@afteracknowledgementsskip}{6pt} +\newlength{\aa@figgap} +\setlength{\aa@figgap}{12pt} +\newlength{\aa@sidecaptionminwidth} +\setlength{\aa@sidecaptionminwidth}{5cm} +\newlength{\aa@sidecaptionwidth} +\newlength{\VSpaceBeforeFigCaption} +\setlength{\VSpaceBeforeFigCaption}{5pt} +\newlength{\VSpaceAfterTabCaption} +\setlength{\VSpaceAfterTabCaption}{10pt} +\newlength{\VSpaceBeforeTabBib} +\setlength{\VSpaceBeforeTabBib}{2ex} +\newlength{\VSpaceBeforeTabFoot} +\setlength{\VSpaceBeforeTabFoot}{2ex} +\newlength{\aftertext} +\setlength{\aftertext}{5pt} +\newlength{\aa@entryboxwidth} +\setlength{\aa@entryboxwidth}{8mm} +\newlength{\betweenumberspace} +\setlength{\betweenumberspace}{3.33pt} +\newif\ifaa@structabstract +\newif\ifaa@numberedtheorem +\newif\ifaa@firstonline +\aa@firstonlinetrue +\newcommand*\journalname[1]{\renewcommand*\aa@journalname{#1}} +\newcommand*\aa@journalname{Astronomy \& Astrophysics} +\newcommand*\aa@manuscriptname{% + manuscript no. \jobname + \hspace{\stretch{1}}% + \copyright ESO \the\year +} +\def\Num{1} +\def\Vol{1} +\def\Month{JANUARY~I} +\newcommand*\AANum[1]{\renewcommand*\aa@numarticle{#1}% +\gdef\@AANum{#1}} +\newcommand*\@AANum{} +\newcommand*\aa@numarticle{Article number} +\newcommand*\doi[1]{% + \renewcommand*\aa@doi{DOI: #1}% + \renewcommand*\aa@doifig{#1}% +} +\newcommand*\aa@doi{(DOI: will be inserted by hand later)} +\newcommand*\aa@doifig{(to add)} +\newcommand*\AALogo{% + \settowidth{\aa@dima}{\aa@logo@astrophysicsfont Astrophysics}% + \setbox0=\hbox{% + \begin{minipage}{\aa@dima} + \aa@logo@astronomyfont Astronomy\\ + \raisebox{\aa@logoraise}{% + \parbox[c][0pt]{\z@}{% + \rlap{% + \hspace*{\aa@logoruleindent}% + \aa@logo@andfont \&% + \rule[\aa@logoruleraise]{\aa@logorulelength}{\aa@logorulethick}% + }% + }% + }% + \raisebox{\aa@logoraiserest}{\aa@logo@astrophysicsfont Astrophysics} + \end{minipage}% + }% + \copy0% +} +\newcommand*\aa@pageof{, page \thepage{}} +\newcommand*{\aa@publishlink}{\hfil% + Article published by EDP Sciences% + \hfil} +\newcommand*\aa@topicsname{Special feature} +\newcommand*\aa@offprintsname{Send offprint requests to\/} +\newcommand*\listobjectname{List of Objects} +\addto\captionsenglish{\renewcommand*\figurename{Fig.}} +\newcommand*\aa@figtype{figure} +\newcommand*\aa@tabtype{table} +\newcommand*\lettername{Letter to the Editor} +\newcommand*\noteaddname{Note added in proof.} +\def\noteadd{\par\addvspace{17pt}\rm +\trivlist\item[\hskip\labelsep +{\it\noteaddname}]} +\def\endnoteadd{\endtrivlist\addvspace{6pt}} +\newcommand*\andname{\unskip, } +\newcommand*\andlastname{\unskip, and } +\newcommand*\andtwoname{\unskip\ and } +\newcommand*\etalname{et al.} +\newcommand*\aa@contentsname{Contents sorted by section} +\newcommand*\aa@contentsAutname{Contents sorted by first author} +\newcommand*\aa@pagename{page} +\newcommand*\aa@AAname{A\&A} +\newcommand*\aa@copyrightname{\copyright~ESO} +\newcommand*\aa@subabstractiname{Context} +\newcommand*\aa@subabstractiiname{Aims} +\newcommand*\aa@subabstractiiiname{Methods} +\newcommand*\aa@subabstractivname{Results} +\newcommand*\aa@subabstractvname{Conclusions} +\newcommand*\aa@keywordname{Key words} +\newcommand*\aa@acknowledgementsname{Acknowledgements} +\newcommand*\aa@floatcounterend{.~} +\newcommand*\aa@tablebibname{References} +\newcommand*\aa@tablefootname{Notes} +\renewcommand\normalsize{% + \@setfontsize\normalsize\@xpt{11}% + \abovedisplayskip 8.55\p@ \@plus4\p@ \@minus5\p@ + \abovedisplayshortskip \z@ \@plus3\p@ + \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@ + \belowdisplayskip \abovedisplayskip + \let\@listi\@listI} +\normalsize +\renewcommand\small{% + \@setfontsize\small\@ixpt{10}% + \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@ + \abovedisplayshortskip \z@ \@plus2\p@ + \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@ + \def\@listi{\leftmargin\leftmargini + \parsep 0\p@ \@plus1\p@ \@minus1\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep0\p@}% + \belowdisplayskip \abovedisplayskip +} +\let\footnotesize\small +\renewcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt} +\renewcommand\tiny{\@setfontsize\tiny\@viiipt\@ixpt} +\renewcommand\large{\@setfontsize\large\@xipt{13}} +\renewcommand\Large{\@setfontsize\Large\@xivpt{16}} +\renewcommand\LARGE{\@setfontsize\LARGE\@xviipt{20}} +\renewcommand\huge{\@setfontsize\huge\@xxpt{24}} +\renewcommand\Huge{\@setfontsize\Huge\@xxvpt{30}} +\newcommand*\aa@headfont{\small} +\newcommand*\aa@footfont{\small} +\newcommand*\aa@subabstractfont{\small\sffamily\itshape} +\newcommand*\aa@abstractfont{\small} +\newcommand*\aa@offprintsnamefont{\itshape} +\newcommand*\aa@logo@astronomyfont{\fontsize{18}{21}\sffamily\bfseries} +\newcommand*\aa@logo@andfont{\fontsize{16}{12}\sffamily\mdseries} +\newcommand*\aa@logo@astrophysicsfont{\fontsize{18}{21}\sffamily\bfseries} +\newcommand*\aa@letternamefont{\sffamily\fontsize{19.2\p@}{21\p@}\bfseries} +\newcommand*\aa@headletternamefont{\large\scshape} +\newcommand*\aa@contentsnamefont{\Large\sffamily\bfseries} +\newcommand*\aa@contentsAutnamefont{\Large\sffamily\bfseries} +\newcommand*\aa@journalnamefont{\slshape} +\newcommand*\aa@manuscriptnamefont{} +\newcommand*\aa@todayheadboxfont{} +\newcommand*\aa@msnrheadboxfont{\LARGE\bfseries\smash} +\newcommand*\aa@textidlineempty{{\slshape A\&A proofs:}\ manuscript no.~\jobname} +\newcommand*\aa@idlinefont{} +\newcommand*\aa@doifont{} +\newcommand*\aa@copyrightfont{\small} +\ifaa@letter + \definecolor{aa@colorletter}{gray}{0.6} +\fi +\newcommand*\aa@topicsfont{\fontsize{12}{14}\sffamily\itshape} +\newcommand*\aa@topicsnamefont{\fontsize{17}{20}\sffamily} +\newcommand*\aa@headnotefont{\LARGE\itshape} +\newcommand*\aa@defaultheadnotefont{\LARGE\sffamily\bfseries\itshape} +\newcommand*\aa@titlefont{\LARGE \sffamily\bfseries\boldmath} +\newcommand*\aa@subtitlefont{\Large \sffamily\bfseries\boldmath} +\newcommand*\aa@authorfont{\large} +\newcommand*\aa@institutefont{\small} +\newcommand*\aa@datefont{\small} +\newcommand*\aa@dedicationfont{\itshape} +\newcommand*\aa@abstractnamefont{\small\sffamily\bfseries\MakeUppercase} +\newcommand*\aa@keywordnamefont{\small\sffamily\bfseries} +\newcommand*\aa@keywordfont{\small} +\newcommand*\aa@longauthfont{\centering\small\itshape} +\newcommand*\aa@longauthname{Affiliations can be found after the references} +\newcommand*\aa@longauthopen{(} +\newcommand*\aa@longauthclose{)} +\newcommand*\aa@acknowledgementsfont{\tiny} +\newcommand*\aa@acknowledgementsnamefont{\itshape} +\newcommand*\aa@bibliographyfont{\tiny} +\newcommand*\aa@captionfont{\normalfont\small} +\newcommand*\aa@headcaptionfont{\bfseries} +\newcommand*\aa@tablebibfont{\small} +\newcommand*\aa@tablebibnamefont{\small\bfseries} +\newcommand*\aa@tablefootfont{\small} +\newcommand*\aa@tablefootnamefont{\small\bfseries} +\newcommand*\aa@descriptionlabelfont{} +\newcommand\aa@longtablecaptionfont{\small} +\newcommand\aa@longtableheadcaptionfont{\small\bfseries} +\newcommand*\aa@emailfont{\ttfamily} +\newcommand*\aa@entryifont{\itshape} +\newcommand*\aa@entryiifont{\bfseries} +\newtoks\authorlink +\newtoks\yearCop +\newbox\aa@stripbox +\newbox\aa@outputbox +\newenvironment{aa@strip} +{% + \onecolumn\parindent0mm + \setbox\aa@stripbox=\vbox\bgroup +} +{% + \egroup + \aa@@strip +} +\def\aa@@strip{% + \ifdim\ht\aa@stripbox>\textheight + \global\setbox\aa@outputbox=\vsplit\aa@stripbox to \textheight + \dp\aa@outputbox \z@ + \box\aa@outputbox\clearpage + \expandafter\aa@@strip + \else + \dp\aa@stripbox \z@ + \twocolumn[\box\aa@stripbox] + \fi +} +\newcommand{\ErratumOf}[3][]{} +\newcommand{\NoteFor}[3][]{} +\renewcommand*\@fnsymbol[1]{% + \ensuremath{% + \ifcase#1 + \or\star + \or{\star}{\star} + \or{\star}{\star}{\star}% + \or{\star}{\star}{\star}{\star} + \or \dagger + \or \ddagger + \or \mathsection + \or \mathparagraph + \or \| + \or ** + \or \dagger\dagger + \or \ddagger\ddagger + \else \@ctrerr + \fi + }% +} +\newcommand\longempty{} +\newcommand*\aa@cntwords[1]{% + \protected@edef\aa@cntwords@arg{#1\space\noexpand\aa@nil\space}% + \aa@nbwords \z@ + \let\@@protect\protect + \let\protect\@unexpandable@protect + \expandafter\aa@@cntwords\aa@cntwords@arg + \restore@protect +} +\newcommand*\aa@nnil{\aa@nil} +\long\def\aa@@cntwords#1 {% + \def\aa@arg{#1}% + \ifx\aa@arg\aa@nnil + \else + \advance\aa@nbwords \@ne + \expandafter\aa@@cntwords + \fi +} +\newcommand*\aa@roheadletter{% + \setlength{\aa@dima} + {1in + \topmargin + \headheight - \dp\strutbox + + 2\aa@bleedmargin}% + \setlength{\aa@dimb} + {\paperwidth - (1in + \oddsidemargin + \textwidth) + + \aa@bleedmargin - \aa@hoffsetgray}% + \setbox0=\hbox{\aa@letternamefont \lettername}% + \setlength{\aa@dimc} + {\paperheight - \aa@dima - \wd0 + 2\aa@bleedmargin}% + \addtolength{\aa@voffsetlettername}{0.5cm} + \leavevmode + \hbox to0pt{% + \hspace*{\aa@hoffsetgray}% + \vbox to0pt{% + \hsize=\aa@dimb + \vskip-\aa@dima + \colorbox{aa@colorletter}{% + \vtop{% + \vspace*{\aa@voffsetlettername}% + \hspace*{\aa@hoffsetlettername}% + \rotatebox{90}{\aa@letternamefont \lettername}% + \hfill\null + \vspace*{\aa@dimc}% + }% + }% + \vss + }% + \hss + }% +} +\newcommand*\aa@leheadletter{% + \setlength{\aa@dima} + {1in + \topmargin + \headheight - \dp\strutbox + + 2\aa@bleedmargin}% + \setlength{\aa@dimb} + {1in + \oddsidemargin + \aa@bleedmargin - \aa@hoffsetgray}% + \setbox0=\hbox{\aa@letternamefont \lettername}% + \setlength{\aa@dimc} + {\paperheight-\aa@dima-\wd0+2\aa@bleedmargin}% + \addtolength{\aa@voffsetlettername}{0.5cm} + \leavevmode + \hspace*{-2\fboxsep}% + \hbox to0pt{% + \hss + \vbox to0pt{% + \hsize=\aa@dimb + \vskip-\aa@dima + \colorbox{aa@colorletter}{% + \vtop{% + \vspace*{\aa@voffsetlettername}% + \hfill + \rotatebox{90}{\aa@letternamefont \lettername}% + \hspace*{\aa@hoffsetlettername}% + \vspace*{\aa@dimc}% + }% + }% + \vss + }% + \hspace*{\aa@hoffsetgray}% + }% +} +\ifaa@online + \fancypagestyle{firstpage}{% + \fancyhf{}% + \renewcommand*{\headrulewidth}{\z@}% + \renewcommand*{\footrulewidth}{\z@}% + \fancyfoot[RO]{\aa@footfont\aa@publishlink\aa@numarticle\aa@pageof}% + \fancyfoot[LE]{\aa@footfont\aa@numarticle\aa@pageof\qquad\aa@publishlink}% + } +\else + \fancypagestyle{firstpage}{% + \fancyhf{}% + \renewcommand*{\headrulewidth}{\z@}% + \renewcommand*{\footrulewidth}{\z@}% + \fancyfoot[RO]{\aa@footfont \aa@numarticle\aa@pageof}% + \fancyfoot[LE]{\aa@footfont \aa@numarticle\aa@pageof}% + } +\fi +\ifaa@contents + \fancypagestyle{otherpage}{% + \fancyhf{}% + \fancyhead[C]{\aa@AAname}% + \fancyfoot[C]{\aa@contentsname, \aa@pagename\space \thepage}% + \renewcommand*{\headrulewidth}{\z@}% + \renewcommand*{\footrulewidth}{\z@}% + } +\else\ifaa@contentsAut + \fancypagestyle{otherpage}{% + \fancyhf{}% + \fancyhead[C]{\aa@AAname}% + \fancyfoot[C]{\aa@contentsAutname, \aa@pagename\space \thepage}% + \renewcommand*{\headrulewidth}{\z@}% + \renewcommand*{\footrulewidth}{\z@}% + } +\else + \fancypagestyle{otherpage}{% + \fancyhf{}% + \fancyhead[CO]{\aa@headfont \aa@headings}% + \fancyhead[CE]{\aa@headfont \ifx\aa@idline\empty\aa@textidlineempty\else\aa@idline\fi}% + \fancyfoot[RO]{\aa@footfont \aa@numarticle\aa@pageof}% + \fancyfoot[LE]{\aa@footfont \aa@numarticle\aa@pageof}% + \renewcommand*{\headrulewidth}{\z@}% + \renewcommand*{\footrulewidth}{\z@}% + } +\fi\fi +\pagestyle{otherpage} +\newcommand*\aa@headings{} +\renewcommand*\date[1]{\renewcommand*\aa@date{#1}}% +\newcommand*\aa@date{\today} +\renewcommand*\title[1]{\renewcommand*\aa@title{#1}}% +\newcommand*\aa@title{} +\newcommand*\subtitle[1]{\renewcommand*\aa@subtitle{#1}} +\newcommand*\aa@subtitle{} +\renewcommand*\author[1]{% + \renewcommand*\aa@author{#1}% + \begingroup + \let\and\relax + \renewcommand*\inst[1]{}% + \renewcommand*\thanks[1]{}% + \renewcommand*\email[1]{}% + \let\@@protect\protect + \let\protect\@unexpandable@protect + \global\aa@nbauthors \z@ + \expandafter\aa@cntauthors\aa@author\and\aa@nil\and + \restore@protect + \endgroup +}% +\newcommand*\aa@author{} +\def\aa@cntauthors#1\and{% + \def\aa@arg{#1}% + \ifx\aa@arg\aa@nnil + \else + \global\advance\aa@nbauthors \@ne + \expandafter\aa@cntauthors + \fi +} +\newcommand*\institute[1]{% + \renewcommand*\aa@institute{#1} + \begingroup + \let\and\relax + \renewcommand*\inst[1]{}% + \renewcommand*\thanks[1]{}% + \renewcommand*\email[1]{}% + \let\@@protect\protect + \let\protect\@unexpandable@protect + \global\aa@nbinstitutes \z@ + \expandafter\aa@cntinstitutes\aa@institute\and\aa@nil\and + \restore@protect + \endgroup +}% +\newcommand*\aa@institute{} +\def\aa@cntinstitutes#1\and{% + \def\aa@arg{#1}% + \ifx\aa@arg\aa@nnil + \else + \global\advance\aa@nbinstitutes \@ne + \expandafter\aa@cntinstitutes + \fi +} +\newcommand*\inst[1]{\unskip\hbox{\@textsuperscript{\normalfont$#1$}}} +\newcommand*\fnmsep{\unskip\hbox{\@textsuperscript{\normalfont,}}} +\newcommand*\email[1]{e-mail: {\aa@emailfont #1}} +\let\endabstract\relax +\renewcommand\abstract[1]{% + \renewcommand\aa@abstract@i{#1}% + \@ifnextchar\bgroup{\aa@abstract@next}{\aa@abstract@one} +} +\newcommand\aa@abstract@next[4]{% + \aa@structabstracttrue + \renewcommand\aa@abstract@ii{#1}% + \renewcommand\aa@abstract@iii{#2}% + \renewcommand\aa@abstract@iv{#3}% + \renewcommand\aa@abstract@v{#4}% + \begingroup + \renewcommand\thanks[1]{}% + \protected@xdef\aa@abstractwords{% + \aa@abstract@i \space + \aa@abstract@ii \space + \aa@abstract@iii \space + \aa@abstract@iv \space + \aa@abstract@v \space + }% + \endgroup + \aa@cnta \z@ + \aa@cntb \aa@structabstractmax + \aa@abstract@cnt +} +\newcommand*\aa@abstract@one{% + \protected@xdef\aa@abstractwords{\aa@abstract@i}% + \aa@cnta \z@ + \aa@cntb \aa@traditabstractmax + \aa@abstract@cnt +} +\def\aa@abstract@cnt{% + \aa@cntwords\aa@abstractwords + \advance\aa@nbwords \aa@cnta\relax + \ifnum\aa@nbwords>\aa@cntb + \typeout{^^J^^JIMPORTANT} + \ClassWarning{aa} + {Around \the\aa@nbwords\space words in the abstract instead + of \the\aa@cntb\space (max). You should rewrite your abstract} + \typeout{IMPORTANT + ^^J} + \fi +} +\newcommand\aa@abstract@i{} +\newcommand\aa@abstract@ii{} +\newcommand\aa@abstract@iii{} +\newcommand\aa@abstract@iv{} +\newcommand\aa@abstract@v{} +\newcommand*\keywords[1]{% + \renewcommand*\aa@keywords{#1}% + \aa@keywords@cnt + \ifnum\aa@nbwords>\aa@keywordsmax + \ClassWarning{aa} + {\the\aa@nbwords\space keywords instead of a maximum of + \aa@keywordsmax\space} + \fi +} +\newcommand*\aa@keywords{} +\newcommand*\aa@doublehyphen{--} +\newcommand*\aa@keywords@cnt{% + \protected@edef\aa@@keywords{\aa@keywords--\noexpand\aa@nil--}% + \aa@nbwords \z@ + \let\@@protect\protect + \let\protect\@unexpandable@protect + \expandafter\aa@@keywords@cnt\aa@@keywords + \restore@protect +} +\def\aa@@keywords@cnt#1--{% + \def\aa@arg{#1}% + \ifx\aa@arg\aa@nnil + \else + \advance\aa@nbwords \@ne + \expandafter\aa@@keywords@cnt + \fi +} +\newcommand*\topics[1]{\renewcommand*\aa@topics{#1}} +\newcommand*\aa@topics{} +\newcommand*\titlerunning[1]{% + \renewcommand*\aa@titlerunning{#1} +} +\newcommand*\aa@titlerunning{} +\newcommand*\authorrunning[1]{% + \renewcommand*\aa@authorrunning{#1} +} +\newcommand*\aa@authorrunning{} +\newcommand*\offprints[1]{% + \protected@edef\@thanks{% + \@thanks + \protect\footnotetext[0]{% + \unskip% + \if@wideboxfn% + \hspace{\aa@removefootnotewbindentspace}% + \else% + \hspace{\aa@removefootnoteindentspace}% + \fi + {% + \aa@offprintsnamefont + \aa@offprintsname + }: \ignorespaces#1% + }% + }% +} +\def\aainstitutename{\par + \begingroup + \renewcommand*\and{% + \ifaa@longauth\\\else\par\fi% + \refstepcounter{aa@institutecnt}% + \hangindent\aa@instituteindent + \noindent + \ifaa@longauth\hbox to-0.001\aa@instituteindent\else% + \hbox to\aa@instituteindent\fi% + {% + \hss + \hbox{\@textsuperscript{\normalfont\theaa@institutecnt}}% + \enspace + }% + \ignorespaces + }% + \ifnum\aa@nbinstitutes>99 + \setbox0=\hbox{\hbox{\@textsuperscript{\normalfont888}}\enspace}% + \else\ifnum\aa@nbinstitutes>9 + \setbox0=\hbox{\hbox{\@textsuperscript{\normalfont88}}\enspace}% + \else + \setbox0=\hbox{\hbox{\@textsuperscript{\normalfont8}}\enspace}% + \fi\fi + \aa@instituteindent \wd0 + {% + \aa@institutefont + \par\refstepcounter{aa@institutecnt}% + \ifnum\aa@nbinstitutes=1\relax + \noindent\ignorespaces + \else + \hangindent\aa@instituteindent + \noindent + \hbox to\aa@instituteindent{% + \hss + \hbox{\@textsuperscript{\normalfont\theaa@institutecnt}}% + \enspace + }\ignorespaces% + \fi% + \aa@institute\par + } + \endgroup} +\newcommand*\mail[1]{\renewcommand*\aa@mail{#1}} +\newcommand*\aa@mail{} +\newcommand*\msnr[1]{\renewcommand*\aa@msnr{#1}} +\newcommand*\aa@msnr{} +\newcommand*\idline[1]{\renewcommand*\aa@idline{#1}} +\newcommand*\aa@idline{} +\newcommand*\headnote[1]{\renewcommand*\aa@headnote{#1}} +\newcommand*\aa@headnote{} +\newcommand*\aa@defaultheadnote{Corrigendum} +\newcommand*\dedication[1]{\renewcommand*\aa@dedication{#1}} +\newcommand*\aa@dedication{} +\renewcommand*\maketitle{% + \thispagestyle{firstpage} +\begingroup + \if@wideboxfn + \setlength\bibindent{1.4\parindent} + \else + \setlength\bibindent{\parindent} + \fi + \renewcommand*\thefootnote{\@fnsymbol\c@footnote}% + \renewcommand\@makefntext[1]{% + \ifaa@longfn\hsize\textwidth\fi + \noindent + \hb@xt@\bibindent{\hss\@makefnmark\enspace}##1} + \ifaa@twocolumn + \begingroup + \twocolumn[\aa@maketitle] + \@thanks + \endgroup + \else + \begingroup + \let\thanks\footnote + \aa@maketitle + \endgroup + \fi +\endgroup + \setcounter{footnote}{0}% +} +\newcommand*\aa@maketitle{% + \ifaa@contents + {\aa@contentsnamefont \aa@contentsname\par} + \addvspace{\aa@aftercontentsnameskip} + \else\ifaa@contentsAut + {\aa@contentsAutnamefont \aa@contentsAutname\par} + \addvspace{\aa@aftercontentsAutnameskip} + \else + \vbox to0pt{\vskip\aa@beforeheadboxskip + \nointerlineskip + \ifx\aa@idline\empty + \noindent + \fbox{% + \begin{minipage}{\linewidth-2\fboxsep-2\fboxrule} + \strut + {\aa@journalnamefont \aa@journalname} + {\aa@manuscriptnamefont \aa@manuscriptname}\\ + \ifx\aa@msnr\empty + {\strut\aa@todayheadboxfont \today}% + \else + \makebox[0.75\linewidth][r]{% + \strut + {\aa@msnrheadboxfont \aa@msnr}% + }% + \fi + \end{minipage}% + }% + \else + \begin{tabular}[b]{@{}l@{}} + \aa@idlinefont \aa@idline\\ + \aa@doifont \aa@doi\\ + \aa@copyrightfont \aa@copyrightname~\if!\the\yearCop!\the\year\else\the\yearCop\fi + \end{tabular} + \hfill\AALogo + \fi\vss} + \par + \ifx\aa@topics\empty% + \addvspace{\aa@afterheadboxskip} + \else + \addvspace{\aa@beforetopicsskip} + {\noindent\aa@topicsfont \aa@topics}% + \hfill + {\aa@topicsnamefont \aa@topicsname\par} + \addvspace{\aa@aftertopicsskip} + \fi + \begingroup + \centering + \ifaa@letter + \ifx\aa@topics\empty + \addvspace{1.8\aa@beforeletternameskip} + \else + \addvspace{\aa@beforeletternameskip} + \fi + {\aa@headletternamefont \lettername\par} + \addvspace{\aa@afterletternameskip} + \fi + \ifx\aa@headnote\empty\else + \ifx\aa@headnote\aa@defaultheadnote\else + {\aa@headnotefont \aa@headnote\par} + \addvspace{\aa@afterheadnoteskip} + \fi + \fi + {\aa@titlefont \aa@title\par} + \ifx\aa@subtitle\empty% + \ifx\aa@headnote\aa@defaultheadnote + {\aa@defaultheadnotefont (\aa@headnote)\par} + \fi + \addvspace{\aa@aftertitleskip} + \else + \addvspace{\aa@aftertitleskip} + {\aa@subtitlefont \aa@subtitle\par} + \ifx\aa@headnote\aa@defaultheadnote + \addvspace{\aa@beforedefaultheadnoteskip} + {\aa@defaultheadnotefont (\aa@headnote)\par} + \fi + \addvspace{\aa@aftersubtitleskip} + \fi + \ifnum\aa@nbauthors=\tw@ + \let\and\andtwoname + \else + \renewcommand\and{% + \advance\aa@cnta \@ne + \ifnum\aa@cnta=\aa@nbauthors + \andlastname + \else + \andname + \fi + } + \fi + \aa@cnta \@ne + {\aa@authorfont \aa@author\par} + \addvspace{\aa@afterauthorskip} + \endgroup + \begingroup + \ifaa@longauth\addvspace{-10pt} + {\noindent\aa@longauthfont% + \aa@longauthopen\aa@longauthname\aa@longauthclose\par} + \else + \leftskip \aa@headingleftmargin + \rightskip \aa@headingrightmargin + \aainstitutename + \fi + \vspace{\aa@afterinstituteskip} + {\noindent\aa@datefont\ifaa@longauth\centering\fi \aa@date\par} + \ifx\aa@dedication\empty + \vspace{\aa@afterdateskip} + \else + \addvspace\baselineskip + {\noindent\aa@dedicationfont \aa@dedication\par} + \vspace{\aa@afterdedicationskip} + \fi + {\centering\aa@abstractnamefont \abstractname\par} + \vspace{\aa@afterabstractnameskip} + \ifaa@structabstract + \ifx\aa@abstract@i\longempty\else + {\noindent\aa@subabstractfont \aa@subabstractiname. }% + {\aa@abstractfont \ignorespaces\aa@abstract@i\par} + \vspace{\aa@aftersubabstractskip} + \fi + {\noindent\aa@subabstractfont \aa@subabstractiiname. }% + {\aa@abstractfont \ignorespaces\aa@abstract@ii\par} + \vspace{\aa@aftersubabstractskip} + {\noindent\aa@subabstractfont \aa@subabstractiiiname. }% + {\aa@abstractfont \ignorespaces\aa@abstract@iii\par} + \vspace{\aa@aftersubabstractskip} + {\noindent\aa@subabstractfont \aa@subabstractivname. }% + {\aa@abstractfont \ignorespaces\aa@abstract@iv\par} + \vspace{\aa@aftersubabstractskip} + \ifx\aa@abstract@v\longempty\else + {\noindent\aa@subabstractfont \aa@subabstractvname. }% + {\aa@abstractfont \ignorespaces\aa@abstract@v\par} + \fi + \else + {\noindent\aa@abstractfont \ignorespaces\aa@abstract@i\par} + \fi + \vspace{\aa@afterabstractskip} + \ifx\aa@keywords\empty\else + \noindent + {\aa@keywordnamefont \aa@keywordname. } + {\aa@keywordfont \ignorespaces\aa@keywords\par} + \vspace{\aa@afterkeywordsskip} + \fi + \endgroup + \renewcommand*\thanks[1]{}% + \renewcommand*\inst[1]{}% + \renewcommand*\fnmsep{}% + \renewcommand*\and{, }% + \renewcommand*\\{ }% + \renewcommand*\vspace[1]{}% + \renewcommand*\offprints[1]{}% + \protected@xdef\aa@PDFauthor{\if!\the\authorlink!\aa@author\else\the\authorlink\fi}% + \protected@xdef\aa@PDFtitle{\noexpand\protect\noexpand\aa@title}% + \def\object##1{##1}% + \ifx\aa@authorrunning\empty + \let\and\relax + \renewcommand*\\{\unskip\space\ignorespaces}% + \ifnum\aa@nbauthors=1 + \expandafter\aa@extractoneauthor\aa@author\and\aa@nil + \else\ifnum\aa@nbauthors=2 + \expandafter\aa@extracttwoauthor\aa@author\and\aa@nil + \else + \expandafter\aa@extractoneauthor\aa@author\and\aa@nil + \protected@xdef\aa@headings{\aa@headings\unskip\space\etalname\space}% + \fi\fi + \else + \xdef\aa@headings{\aa@authorrunning}% + \fi + \ifx\aa@titlerunning\empty + \protected@xdef\aa@headings{\aa@headings\unskip: \aa@title}% + \else + \protected@xdef\aa@headings{\aa@headings\unskip: \aa@titlerunning}% + \fi + \setbox0=\hbox{% + \hspace*{\aa@securityheadmargin}% + \aa@headfont \aa@headings + }% + \ifdim\wd0>\aa@fullwidth + \typeout{^^J^^JIMPORTANT} + \ClassWarning{aa} + {The running head built automatically + from \string\author\space and \string\title + exceeds the pagewidth, please supply a shorter form + with \string\authorrunning\space and/or + \string\titlerunning\space prior to \string\maketitle} + {Use \string\titlerunning\space to supply a shorter + title and/or \string\authorrunning\space to supply a + shorter list of authors.}% + \typeout{IMPORTANT + ^^J} + \fi + \fi\fi +} +\def\aa@extractoneauthor#1\and#2\aa@nil{% + \gdef\aa@headings{#1}% +} +\def\aa@extracttwoauthor#1\and#2\and#3\aa@nil{% + \gdef\aa@headings{#1\andtwoname#2}% +} +\def\sectcounterend{.} +\def\@seccntformat#1{\csname the#1\endcsname\sectcounterend +\hskip\betweenumberspace} +\def\@sect#1#2#3#4#5#6[#7]#8{% + \ifnum #2>\c@secnumdepth + \let\@svsec\@empty + \else + \refstepcounter{#1}% + \protected@edef\@svsec{\@seccntformat{#1}\relax}% + \fi + \@tempskipa #5\relax + \ifdim \@tempskipa>\z@ + \begingroup + #6{% + \@hangfrom{\hskip #3\relax\@svsec}% + \raggedright + \hyphenpenalty \@M% + \interlinepenalty \@M #8\@@par}% + \endgroup + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}% + \else + \def\@svsechd{% + #6{\hskip #3\relax + \@svsec #8\hskip\aftertext}% + \csname #1mark\endcsname{#7}% + \addcontentsline{toc}{#1}{% + \ifnum #2>\c@secnumdepth \else + \protect\numberline{\csname the#1\endcsname}% + \fi + #7}}% + \fi + \@xsect{#5}} +\ifaa@contentsAut + \renewcommand\section{% + \@startsection{section} + {1} + {\z@} + {-16dd \@plus-4\p@ \@minus-4\p@} + {6dd} + {\large\bfseries\boldmath\MakeUppercase}% + } +\else\ifaa@contents + \renewcommand\section{% + \@startsection{section} + {1} + {\z@} + {-16dd \@plus-4\p@ \@minus-4\p@} + {6dd} + {\large\bfseries\boldmath\MakeUppercase}% + } +\else + \renewcommand\section{% + \@startsection{section} + {1} + {\z@} + {-16dd\@plus-4\p@ \@minus-4\p@} + {6dd} + {\large\sffamily\bfseries\boldmath}% + } +\fi\fi +\renewcommand\subsection{% + \@startsection{subsection} + {2} + {\z@} + {-16dd} + {6dd} + {\normalsize\sffamily\itshape}% +} +\renewcommand\subsubsection{% + \@startsection{subsubsection} + {3} + {\z@} + {-16dd} + {6dd} + {\normalsize\sffamily}% +} +\renewcommand\paragraph{% + \@startsection{paragraph} + {4} + {\z@} + {-16dd} + {-\fontdimen2\font + \@plus-\fontdimen3\font + \@minus-\fontdimen4\font} + {\normalsize\sffamily}% +} +\renewcommand\subparagraph{% + \ClassError{aa}{Command \string\subparagrap\space isn't allowed} + {Only commands from \string\section\space to + \string\paragraph\space are allowed.} +} +\renewcommand\part{% + \ClassError{aa}{Command \string\part\space isn't allowed} + {Only commands from \string\section\space to + \string\paragraph\space are allowed.} +} +\frenchspacing +\clubpenalty=10000 +\widowpenalty=10000 +\flushbottom +\ifaa@twocolumn + \sloppy +\fi +\newenvironment{nopar} + {\let\par\relax% + \aa@acknowledgementsfont + {% + \noindent\aa@acknowledgementsnamefont + \aa@acknowledgementsname.% + }% + \hskip.5em + }{} +\newenvironment{acknowledgements} + {% + \par\addvspace{\aa@beforeacknowledgementsskip} + \begin{spacing}{0.81} + \begin{nopar} + } + {% + \end{nopar} + \end{spacing} + \addvspace{\aa@afteracknowledgementsskip} + } +\let\acknowledgement\acknowledgements +\let\endacknowledgement\endacknowledgements +\renewcommand\@makefntext[1]{% + \noindent + \hb@xt@\bibindent{\hss\@makefnmark\enspace}#1} +\newcommand\listofobjects{\if@myobjects% + \section*{\listobjectname} + \@starttoc{obj}\fi% +} +\newcommand*\l@obj[2]{\noindent`#1' on page #2\par} +\DeclareRobustCommand{\object}[1]{% + #1\global\let\if@myobjects\iftrue% + \addcontentsline{obj}{obj}{#1}% +} +\newcommand\longtab[2][]{% +\if!\@aatolm! + \aalongfloat{table}{#2}% +\else + \aalongfloat[#1]{section}{#2}% +\fi +} +\newcommand\aalongfloat[3][]{% + \AtEndDocument{% + \aa@savecounter \csname c@#2\endcsname \relax + \csname c@#2\endcsname + }% + \edef\aa@nombre{\number\csname c@#2\endcsname}% +\if!\@aatolm! + \expandafter\AtEndDocument\expandafter{% + \aa@nombre\relax + \setlength{\LTcapwidth}{\textwidth} + \onecolumn + #3% + \twocolumn + \csname c@#2\endcsname \aa@savecounter \relax + }% + \stepcounter{#2}% +\else + \expandafter\AtEndDocument\expandafter{% + \aa@nombre\relax + \setlength{\LTcapwidth}{\textwidth} + \onecolumn +\setcounter{table}{#1}\addtocounter{table}{-1} +\renewcommand\thesection{\Alph{section}}% +\renewcommand\thetable{\thesection.\arabic{table}} + #3% + \twocolumn + \csname c@#2\endcsname \aa@savecounter \relax + }% + \setcounter{table}{#1} +\fi +} +\newcommand*\aa@defineentry{% + \newcommand{\entry}[3]{% + \par\noindent + {\aa@entryiifont ##2}% + \par + {% + \noindent + \raggedright + {\aa@entryifont ##1}% + \hfill + \rlap{\makebox[\aa@entryboxwidth][l]{\hfill##3}}% + \par + }% + \vspace{\aftertext} + } +} +\ifaa@contents \aa@defineentry \fi +\ifaa@contentsAut \aa@defineentry \fi +\renewcommand\@listi{% + \leftmargin \leftmargini + \parsep \z@ \@plus\p@ \@minus\p@ + \topsep 8\p@ \@plus2\p@ \@minus4\p@ + \itemsep \parsep +} +\let\listI\@listi +\@listi +\AtBeginDocument{% + \let\@listi\listI + \@listi +} +\renewcommand\@listii{% + \leftmargin \leftmarginii + \labelwidth \leftmarginii + \advance\labelwidth -\labelsep + \topsep \z@ + \parsep \z@ + \itemsep \z@ +} +\renewcommand\@listiii{% + \leftmargin \leftmarginiii + \labelwidth \leftmarginiii + \advance\labelwidth -\labelsep + \topsep \z@ + \parsep \z@ + \itemsep \z@ + \partopsep \p@ \@minus\p@ + } +\newcommand*\aa@setitemindent[1]{% + \settowidth{\labelwidth}{\aa@descriptionlabelfont #1}% + \leftmargini \labelwidth + \advance\leftmargini \labelsep + \renewcommand*\@listi{% + \leftmargin \leftmargini + \labelwidth \leftmargini + \advance\labelwidth -\labelsep + \parsep \parskip + \topsep \medskipamount + \itemsep \parskip + \advance\itemsep -\parsep + }% +} +\newcommand*\aa@setitemitemindent[1]{% + \settowidth{\labelwidth}{\aa@descriptionlabelfont #1}% + \leftmarginii \labelwidth + \advance\leftmarginii \labelsep + \renewcommand*\@listii{% + \leftmargin \leftmarginii + \labelwidth \leftmarginii + \advance\labelwidth -\labelsep + \parsep \parskip + \topsep \z@ + \itemsep \parskip + \advance\itemsep -\parsep + }% +} +\renewcommand*\descriptionlabel[1]{\hspace\labelsep #1\hfil} +\renewcommand*\description{% + \@ifnextchar[{\aa@description} % ] (pour Emacs) + {% + \list{}{% + \labelwidth\z@ + \itemindent -\leftmargin + \let\makelabel\descriptionlabel + }% + }% +} +\newcommand\aa@description[1][]{% + \relax\ifnum\@listdepth=0 + \aa@setitemindent{#1}% + \else\ifnum\@listdepth=1 + \aa@setitemitemindent{#1}% + \fi\fi + \list{--}{\let\makelabel\aa@descriptionlabel}% +} +\newcommand*\aa@descriptionlabel[1]{% + \aa@descriptionlabelfont + #1% + \hfil +} +\newcommand*\aa@theorem@aftercount{.} +\newcommand*\aa@theorem@aftertitle{.} +\renewcommand*\newtheorem{% + \@ifstar{\aa@theorem@withstar}{\aa@theorem@nostar}% +} +\newcommand*\aa@theorem@nostar{% + \aa@numberedtheoremtrue + \aa@newtheorem +} +\newcommand*\aa@theorem@withstar{% + \aa@numberedtheoremfalse + \aa@newtheorem +} +\newcommand*\aa@newtheorem[1]{% + \def\aa@theorem@name{#1}% + \expandafter\newif\csname ifaa@theorem@#1@numbered\endcsname + \ifaa@numberedtheorem + \csname aa@theorem@#1@numberedtrue\endcsname + \fi + \aa@@newtheorem +} +\newif\ifaa@newcounter +\newcommand*\aa@@newtheorem[2][]{% + \def\aa@arg{#1}% + \ifx\aa@arg\empty + \expandafter\edef + \csname aa@theorem@\aa@theorem@name @counter\endcsname + {AA\aa@theorem@name}% + \aa@newcountertrue + \else + \expandafter\ifx + \csname aa@theorem@#1@title\endcsname + \relax + \ClassError{aa} + {#1 isn't a theorem-like environment} + {You have to create #1 with \string\newtheorem\space + before use its counter.}% + \expandafter\edef + \csname aa@theorem@\aa@theorem@name @counter\endcsname + {AA\aa@theorem@name}% + \aa@newcountertrue + \else + \expandafter\def + \csname aa@theorem@\aa@theorem@name @counter\endcsname + {AA#1}% + \aa@newcounterfalse + \fi + \fi + \expandafter\newcommand + \csname aa@theorem@\aa@theorem@name @title\endcsname + {#2}% + \aa@@@newtheorem +} +\newcommand*\aa@@@newtheorem[3][]{% + \ifaa@newcounter + \def\aa@arg{#1}% + \ifx\aa@arg\empty + \newcounter{\csname aa@theorem@\aa@theorem@name @counter\endcsname}% + \else + \newcounter{\csname aa@theorem@\aa@theorem@name @counter\endcsname}[#1]% + \expandafter\xdef + \csname theaa@theorem@\aa@theorem@name @counter\endcsname{% + \expandafter\noexpand\csname the#1\endcsname.% + \noexpand\arabic{aa@theorem@\aa@theorem@name @counter}% + }% + \fi + \fi + \expandafter\newcommand + \csname aa@theorem@\aa@theorem@name @titlefont\endcsname{#2}% + \expandafter\newcommand + \csname aa@theorem@\aa@theorem@name @bodyfont\endcsname{#3}% + \newenvironment{\aa@theorem@name}[1][]{% + \def\aa@theorem@optionnal{##1}% + \par\addvspace{\VSpaceBeforeTheorem}% + \noindent\hspace*{\HSpaceIndentTheorem}% + \begingroup + \csname aa@theorem@\@currenvir @titlefont\endcsname + \csname aa@theorem@\@currenvir @title\endcsname + \csname ifaa@theorem@\@currenvir @numbered\endcsname + \refstepcounter{\csname aa@theorem@\@currenvir @counter\endcsname}% + \space + \csname the\csname aa@theorem@\@currenvir @counter\endcsname\endcsname + \fi + \ifx\aa@theorem@optionnal\empty + \aa@theorem@aftercount + \else + \space(\aa@theorem@optionnal)% + \aa@theorem@aftertitle + \fi + \endgroup + \ifdim\HVSpaceSepTheorem<\z@ + \par\nobreak + \vspace{-\HVSpaceSepTheorem}% + \noindent\hspace*{\HSpaceIndentTheorem}% + \else + \hspace*{\HVSpaceSepTheorem}% + \fi + \csname aa@theorem@\@currenvir @bodyfont\endcsname + }% + {% + \par\addvspace{\VSpaceAfterTheorem} + }% +} +\newtheorem*{proof}{Proof}{\itshape}{\rmfamily} +\newtheorem{theorem}{Theorem}[section]{\bfseries}{\itshape} +\newtheorem{corollary}[theorem]{Corollary}{\bfseries}{\itshape} +\newtheorem{definition}[theorem]{Definition}{\bfseries}{\rmfamily} +\newtheorem{example}[theorem]{Example}{\itshape}{\rmfamily} +\newtheorem{exercise}[theorem]{Exercise}{\itshape}{\rmfamily} +\newtheorem{lemma}[theorem]{Lemma}{\bfseries}{\itshape} +\newtheorem{note}[theorem]{Note}{\itshape}{\rmfamily} +\newtheorem{problem}[theorem]{Problem}{\itshape}{\rmfamily} +\newtheorem{proposition}[theorem]{Proposition}{\bfseries}{\itshape} +\newtheorem{question}[theorem]{Question}{\itshape}{\rmfamily} +\newtheorem{remark}[theorem]{Remark}{\itshape}{\rmfamily} +\newtheorem{solution}[theorem]{Solution}{\itshape}{\rmfamily} +\setlength{\textfloatsep}{18\p@ \@plus 2\p@ \@minus 4\p@} +\setlength{\dbltextfloatsep}{18\p@ \@plus 2\p@ \@minus 4\p@} +\setlength{\@fptop}{\z@} +\setlength{\@fpsep}{12\p@} +\setlength{\@dblfptop}{\z@} +\setlength{\@dblfpsep}{12\p@} +\setcounter{topnumber}{4} +\renewcommand*\topfraction{.9} +\setcounter{bottomnumber}{2} +\renewcommand*\bottomfraction{.5} +\setcounter{totalnumber}{6} +\renewcommand*\textfraction{.05} +\renewcommand*\floatpagefraction{.95} +\setcounter{dbltopnumber}{3} +\renewcommand*\dbltopfraction{.9} +\renewcommand*\dblfloatpagefraction{.95} +\renewcommand*\fps@figure{tbp} +\renewcommand*\fps@table{tbp} +\def\sidecaption#1\caption{% + \setbox0=\hbox{\ignorespaces#1\unskip}% + \aa@sidecaptionwidth=\linewidth + \advance\aa@sidecaptionwidth -\wd0 + \advance\aa@sidecaptionwidth -\aa@figgap + \ifdim\aa@sidecaptionwidth<\aa@sidecaptionminwidth + \ClassWarning{aa}{% + No sufficient room for the legend; + using normal \string\caption.% + }% + \let\aa@caption\@caption + \unhbox0 + \else + \let\aa@caption\aa@sidecaption + \dimen0 \dp0 + \advance\dimen0 \ht0 + \dp0 \dp\strutbox + \advance\dimen0-\dp0 + \ht0 \dimen0 + \unhbox0\hspace{\aa@figgap}% + \fi + \refstepcounter\@captype + \@dblarg{\aa@caption\@captype}% +} +\long\def\aa@sidecaption#1[#2]#3{% + \addcontentsline + {\csname ext@#1\endcsname} + {#1} + {\protect\numberline{\csname the#1\endcsname}{\ignorespaces #2}}% + \begingroup + \@parboxrestore + \aa@makesidecaption{\csname fnum@#1\endcsname}{\ignorespaces #3}% + \par + \endgroup +} +\newcommand*\aa@capstrut{% + \leavevmode + \vrule \@width\z@ \@height\ht\strutbox \@depth\z@ +} +\def\aa@@makecaption#1{% + {\aa@headcaptionfont #1\aa@floatcounterend}% +} +\long\def\aa@makesidecaption#1#2{% + \parbox[b]{\aa@sidecaptionwidth}{% + \aa@captionfont + \aa@@makecaption{#1} + \aa@capstrut + #2% + }% +} +\renewcommand\@makecaption[2]{% + \aa@captionfont + \ifx\@captype\aa@figtype + \par\vskip\VSpaceBeforeFigCaption + \aa@@makecaption{#1}% + \aa@capstrut% + #2% + \par + \else + {\aa@headcaptionfont #1\aa@floatcounterend}% + \aa@capstrut + #2% + \par + \vskip\VSpaceAfterTabCaption + \fi +} +\newcommand\tablebib[1]{\VSpaceBeforeTabFoot=1ex% + \par\vspace{\VSpaceBeforeTabBib} + \noindent + \begin{minipage}{\linewidth} + {\aa@tablebibnamefont\aa@tablebibname.}~% + \aa@tablebibfont + \ignorespaces + #1% + \end{minipage}% +} +\newcommand\tablefoot[1]{\VSpaceBeforeTabBib=1ex% + \par\vspace{\VSpaceBeforeTabFoot} + \noindent + \begin{minipage}{\linewidth} + {\aa@tablefootnamefont\aa@tablefootname.}~% + \aa@tablefootfont + \ignorespaces + #1% + \end{minipage}% +} +\newcommand*\tablefootmark[1]{% + \unskip + \hbox{\@textsuperscript{\normalfont\itshape\ignorespaces#1}}% + \,% + \ignorespaces +} +\newcommand\tablefoottext[2]{% + \hbox{\@textsuperscript{\normalfont({\itshape\ignorespaces#1})}}% + ~% + \ignorespaces + #2\ \ignorespaces% +} +% Numbering lines in PDF for all options author's versions +\RequirePackage[modulo,mathlines,switch,running,columnwise,pagewise]{linenoaa} +\columnwiselinenumbersfalse% +\runningpagewiselinenumbers% +% +\setlength\bibindent{1em} +\renewenvironment{thebibliography}[1]{% + \begingroup + \section*{\refname}% + \@mkboth{\refname}{\refname}% + \aa@bibliographyfont + \list{\@biblabel{\@arabic\c@enumiv}}% + {% + \settowidth\labelwidth{\@biblabel{#1}}% + \ifaa@bibnumber + \leftmargin\labelwidth + \advance\leftmargin\labelsep + \else + \leftmargin\bibindent + \setlength{\itemindent}{-\leftmargin} + \fi + \@openbib@code + \usecounter{enumiv}% + \let\p@enumiv\@empty + \renewcommand\theenumiv{\@arabic\c@enumiv}% + }% + \sloppy + \clubpenalty4000 + \@clubpenalty \clubpenalty + \widowpenalty4000% + \sfcode`\.\@m +}{% + \endlist\par\endgroup% + \ifaa@longauth\nolinenumbers% + \kern6pt\hrule\kern6pt\aainstitutename\aa@longauthfalse\fi% + \ifaa@referee\if!\csname appendix\endcsname!\relax\else\listofobjects\fi\fi + \def\@noitemerr{\ClassWarning{aa}{Empty `thebibliography' environment}}% +} +\def \@floatboxreset {% + \reset@font + \ifx\@captype\aa@tabtype + \small + \spacetab + \fi + \@setnobreak + \@setminipage +} +\def\spacetab{% +\abovedisplayshortskip-10pt% +\belowdisplayshortskip0pt% +} +\DeclareRobustCommand{\ion}[2]{\textup{#1\,\textsc{\lowercase{#2}}}} +\newcommand*\element[1][]{% + \def\aa@element@tr{#1}% + \aa@element +} +\newcommand*\aa@element[1][]{% + \def\aa@element@tl{#1}% + \aa@@element +} +\newcommand*\aa@@element[1][]{% + \def\aa@element@bl{#1}% + \aa@@@element +} +\newcommand*\aa@@@element[2][]{% + \def\aa@element@br{#1}% + \ensuremath{% + \vphantom{x}^{\aa@element@tl}_{\aa@element@bl} + \mathrm{#2} + \vphantom{x}^{\aa@element@tr}_{\aa@element@br} + }% +} +\renewcommand*\vec[1]{\ensuremath{\boldsymbol{#1}}} +\newcommand*\tens[1]{\ensuremath{\mathsf{#1}}} +\newcommand*\sq{% + \ifmmode + \Box + \else + \begingroup + \unskip\nobreak + \hfil + \penalty50 + \hskip1em + \null\nobreak\hfil$\Box$% + \parfillskip=0pt + \finalhyphendemerits=0 + \endgraf + \endgroup + \fi +} +\newcommand*\sun{\ensuremath{\odot}} +\newcommand*\degr{\ensuremath{^\circ}} +\newcommand*\arcmin{\ensuremath{^\prime}} +\newcommand*\arcsec{\ensuremath{^{\prime\prime}}} +\def\utw{\ensuremath{\smash{\rlap{\lower5pt\hbox{$\sim$}}}}} +\def\udtw{\ensuremath{\smash{\rlap{\lower6pt\hbox{$\approx$}}}}} +\newcommand*\fd{\ensuremath{\overset{\text{d}}{.}}} +\newcommand*\fh{\ensuremath{\overset{\text{h}}{.}}} +\newcommand*\fm{\ensuremath{\overset{\text{m}}{.}}} +\newcommand*\fs{\ensuremath{\overset{\text{s}}{.}}} +\newcommand*\fdg{\ensuremath{\overset{\circ}{.}}} +\newcommand*\farcm{\ensuremath{\overset{\prime}{.}}} +\newcommand*\farcs{\ensuremath{\overset{\prime\prime}{.}}} +\newcommand*\fp{\ensuremath{\overset{\scriptscriptstyle\text{p}}{.}}} +\newcommand*\cor{\ensuremath{\mathrel{\widehat{=}}}} +\newcommand*\aa@centerstack[2]{% + \ensuremath{% + \mathrel{% + \mathchoice{% + \vcenter{% + \offinterlineskip + \halign{\hfil$\displaystyle##$\hfil\cr#1\cr#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\textstyle##$\hfil\cr#1\cr#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\scriptstyle##$\hfil\cr#1\cr#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\scriptscriptstyle##$\hfil\cr#1\cr#2\cr}% + }% + }% + }% + }% +} +\newcommand*\la{\aa@centerstack{<}{\sim}} +\newcommand*\ga{\aa@centerstack{>}{\sim}} +\newcommand*\sol{\aa@centerstack{\sim}{<}} +\newcommand*\sog{\aa@centerstack{\sim}{>}} +\newcommand*\lse{\aa@centerstack{<}{\simeq}} +\newcommand*\gse{\aa@centerstack{>}{\simeq}} +\newcommand*\aa@centerstackskip[6]{% + \ensuremath{% + \mathrel{% + \mathchoice{% + \vcenter{% + \offinterlineskip + \halign{\hfil$\displaystyle##$\hfil\cr + #1\cr\noalign{\vskip#3}#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\textstyle##$\hfil\cr + #1\cr\noalign{\vskip#4}#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\scriptstyle##$\hfil\cr + #1\cr\noalign{\vskip#5}#2\cr}% + }% + } + {% + \vcenter{% + \offinterlineskip + \halign{\hfil$\scriptscriptstyle##$\hfil\cr + #1\cr\noalign{\vskip#6}#2\cr}% + }% + }% + }% + }% +} +\newcommand*\grole{\aa@centerstackskip{>}{<}{-1.5\p@}{-1.5\p@}{-1\p@}{-.5\p@}} +\newcommand*\leogr{\aa@centerstackskip{<}{>}{-1.5\p@}{-1.5\p@}{-1\p@}{-.5\p@}} +\newcommand*\loa{\aa@centerstack{<}{\approx}} +\newcommand*\goa{\aa@centerstack{>}{\approx}} +\newcommand*\diameter{% + \ensuremath{% + \mathchoice{% + \ooalign{% + \hfil\hbox{$\displaystyle/$}\hfil\crcr + {\hbox{$\displaystyle\mathchar"20D$}}% + }% + } + {% + \ooalign{% + \hfil\hbox{$\textstyle/$}\hfil\crcr + {\hbox{$\textstyle\mathchar"20D$}}% + }% + } + {% + \ooalign{% + \hfil\hbox{$\scriptstyle/$}\hfil\crcr + {\hbox{$\scriptstyle\mathchar"20D$}}% + }% + } + {% + \ooalign{% + \hfil\hbox{$\scriptscriptstyle/$}\hfil\crcr + {\hbox{$\scriptscriptstyle\mathchar"20D$}}% + }% + }% + }% +} +\let\olddiameter\diameter +\newcommand*\getsto{\aa@centerstack{\gets}{\to}} +\newcommand*\lid{\aa@centerstackskip{<}{=}{1.2\p@}{1.2\p@}{1\p@}{0.9\p@}} +\newcommand*\gid{\aa@centerstackskip{>}{=}{1.2\p@}{1.2\p@}{1\p@}{0.9\p@}} +\newcommand*\bbbone{% + \ensuremath{% + \mathchoice{\mathrm 1\mskip-4mu l} + {\mathrm 1\mskip-4mu l} + {\mathrm 1\mskip-4.5mu l} + {\mathrm 1\mskip-5mu l}% + }% +} +\newcommand*\aap{A\&A} +\let\astap=\aap +\newcommand*\aapr{A\&A~Rev.} +\newcommand*\aaps{A\&AS} +\newcommand*\actaa{Acta Astron.} +\newcommand*\aj{AJ} +\newcommand*\ao{Appl.~Opt.} +\let\applopt\ao +\newcommand*\apj{ApJ} +\newcommand*\apjl{ApJ} +\let\apjlett\apjl +\newcommand*\apjs{ApJS} +\let\apjsupp\apjs +\newcommand*\aplett{Astrophys.~Lett.} +\newcommand*\apspr{Astrophys.~Space~Phys.~Res.} +\newcommand*\apss{Ap\&SS} +\newcommand*\araa{ARA\&A} +\newcommand*\azh{AZh} +\newcommand*\baas{BAAS} +\newcommand*\bac{Bull. astr. Inst. Czechosl.} +\newcommand*\bain{Bull.~Astron.~Inst.~Netherlands} +\newcommand*\caa{Chinese Astron. Astrophys.} +\newcommand*\cjaa{Chinese J. Astron. Astrophys.} +\newcommand*\fcp{Fund.~Cosmic~Phys.} +\newcommand*\gca{Geochim.~Cosmochim.~Acta} +\newcommand*\grl{Geophys.~Res.~Lett.} +\newcommand*\iaucirc{IAU~Circ.} +\newcommand*\icarus{Icarus} +\newcommand*\jcap{J. Cosmology Astropart. Phys.} +\newcommand*\jcp{J.~Chem.~Phys.} +\newcommand*\jgr{J.~Geophys.~Res.} +\newcommand*\jqsrt{J.~Quant.~Spectr.~Rad.~Transf.} +\newcommand*\jrasc{JRASC} +\newcommand*\memras{MmRAS} +\newcommand*\memsai{Mem.~Soc.~Astron.~Italiana} +\newcommand*\mnras{MNRAS} +\newcommand*\na{New A} +\newcommand*\nar{New A Rev.} +\newcommand*\nat{Nature} +\newcommand*\nphysa{Nucl.~Phys.~A} +\newcommand*\pasa{PASA} +\newcommand*\pasj{PASJ} +\newcommand*\pasp{PASP} +\newcommand*\physrep{Phys.~Rep.} +\newcommand*\physscr{Phys.~Scr} +\newcommand*\planss{Planet.~Space~Sci.} +\newcommand*\pra{Phys.~Rev.~A} +\newcommand*\prb{Phys.~Rev.~B} +\newcommand*\prc{Phys.~Rev.~C} +\newcommand*\prd{Phys.~Rev.~D} +\newcommand*\pre{Phys.~Rev.~E} +\newcommand*\prl{Phys.~Rev.~Lett.} +\newcommand*\procspie{Proc.~SPIE} +\newcommand*\qjras{QJRAS} +\newcommand*\rmxaa{Rev. Mexicana Astron. Astrofis.} +\newcommand*\skytel{S\&T} +\newcommand*\solphys{Sol.~Phys.} +\newcommand*\sovast{Soviet~Ast.} +\newcommand*\ssr{Space~Sci.~Rev.} +\newcommand*\zap{ZAp} +\DeclareMathAlphabet{\mathsfsl}{OT1}{txss}{m}{sl} +\g@addto@macro{\endlongtable}{\addvspace{-3.5mm}} +\AtBeginDocument{% +\@ifpackageloaded{lscape}{% +\g@addto@macro{\landscape}{\centering\setlength{\LTcapwidth}{\aa@fullheight}}}{} +\@ifpackageloaded{pdflscape}{% +\g@addto@macro{\landscape}{\centering\setlength{\LTcapwidth}{\aa@fullheight}}}{} +\@ifpackageloaded{aalongtable}% +{\def\LS@rot{% + \setbox\@outputbox\vbox + to\aa@fullheight{\vfill\centerline{\rotatebox{90}{\box\@outputbox}}\vfill}}}{} +\@ifpackageloaded{subfigure}% +{\renewcommand*{\thesubfigure}{\alph{subfigure}} +\renewcommand*{\@thesubfigure}{(\thesubfigure)\hskip\subfiglabelskip} +\renewcommand*{\@@thesubfigure}{(\thesubfigure)}% +\renewcommand*{\thesubtable}{\alph{subtable}} +\renewcommand*{\@thesubtable}{(\thesubtable)\hskip\subfiglabelskip} +\renewcommand*{\@@thesubtable}{(\thesubtable)}}{} +\@ifpackageloaded{wasysym}% +{\let\diameter\olddiameter}{} +\@ifpackageloaded{txfonts}% +{% + \newcommand*\bbba{\ensuremath{\varmathbb{A}}} + \newcommand*\bbbb{\ensuremath{\varmathbb{B}}} + \newcommand*\bbbc{\ensuremath{\varmathbb{C}}} + \newcommand*\bbbd{\ensuremath{\varmathbb{D}}} + \newcommand*\bbbe{\ensuremath{\varmathbb{E}}} + \newcommand*\bbbf{\ensuremath{\varmathbb{F}}} + \newcommand*\bbbg{\ensuremath{\varmathbb{G}}} + \newcommand*\bbbh{\ensuremath{\varmathbb{H}}} + \newcommand*\bbbi{\ensuremath{\varmathbb{I}}} + \newcommand*\bbbj{\ensuremath{\varmathbb{J}}} + \newcommand*\bbbk{\ensuremath{\varmathbb{K}}} + \newcommand*\bbbl{\ensuremath{\varmathbb{L}}} + \newcommand*\bbbm{\ensuremath{\varmathbb{M}}} + \newcommand*\bbbn{\ensuremath{\varmathbb{N}}} + \newcommand*\bbbo{\ensuremath{\varmathbb{O}}} + \newcommand*\bbbp{\ensuremath{\varmathbb{P}}} + \newcommand*\bbbq{\ensuremath{\varmathbb{Q}}} + \newcommand*\bbbr{\ensuremath{\varmathbb{R}}} + \newcommand*\bbbs{\ensuremath{\varmathbb{S}}} + \newcommand*\bbbt{\ensuremath{\varmathbb{T}}} + \newcommand*\bbbu{\ensuremath{\varmathbb{U}}} + \newcommand*\bbbv{\ensuremath{\varmathbb{V}}} + \newcommand*\bbbw{\ensuremath{\varmathbb{W}}} + \newcommand*\bbbx{\ensuremath{\varmathbb{X}}} + \newcommand*\bbby{\ensuremath{\varmathbb{Y}}} + \newcommand*\bbbz{\ensuremath{\varmathbb{Z}}}}% +{% + \newcommand*\bbba{\ensuremath{\mathbf{A}}} + \newcommand*\bbbb{\ensuremath{\mathbf{B}}} + \newcommand*\bbbc{\ensuremath{\mathbf{C}}} + \newcommand*\bbbd{\ensuremath{\mathbf{D}}} + \newcommand*\bbbe{\ensuremath{\mathbf{E}}} + \newcommand*\bbbf{\ensuremath{\mathbf{F}}} + \newcommand*\bbbg{\ensuremath{\mathbf{G}}} + \newcommand*\bbbh{\ensuremath{\mathbf{H}}} + \newcommand*\bbbi{\ensuremath{\mathbf{I}}} + \newcommand*\bbbj{\ensuremath{\mathbf{J}}} + \newcommand*\bbbk{\ensuremath{\mathbf{K}}} + \newcommand*\bbbl{\ensuremath{\mathbf{L}}} + \newcommand*\bbbm{\ensuremath{\mathbf{M}}} + \newcommand*\bbbn{\ensuremath{\mathbf{N}}} + \newcommand*\bbbo{\ensuremath{\mathbf{O}}} + \newcommand*\bbbp{\ensuremath{\mathbf{P}}} + \newcommand*\bbbq{\ensuremath{\mathbf{Q}}} + \newcommand*\bbbr{\ensuremath{\mathbf{R}}} + \newcommand*\bbbs{\ensuremath{\mathbf{S}}} + \newcommand*\bbbt{\ensuremath{\mathbf{T}}} + \newcommand*\bbbu{\ensuremath{\mathbf{U}}} + \newcommand*\bbbv{\ensuremath{\mathbf{V}}} + \newcommand*\bbbw{\ensuremath{\mathbf{W}}} + \newcommand*\bbbx{\ensuremath{\mathbf{X}}} + \newcommand*\bbby{\ensuremath{\mathbf{Y}}} + \newcommand*\bbbz{\ensuremath{\mathbf{Z}}}} +%\@ifpackageloaded{hyperref}% +%{}{\RequirePackage[colorlinks=true, +% linkcolor=blue, citecolor=blue, filecolor=blue, urlcolor=blue]{hyperref}}% +} +\setlength\leftmargini {\parindent} +\leftmargin \leftmargini +\setlength\leftmarginii {\parindent} +\setlength\leftmarginiii {1.87em} +\setlength\leftmarginiv {1.7em} +\setlength\leftmarginv {.5em} +\setlength\leftmarginvi {.5em} +\setlength \labelsep {.5em} +\setlength \labelwidth{\leftmargini} +\addtolength\labelwidth{-\labelsep} +\renewcommand\theenumi{\@arabic\c@enumi} +\renewcommand\theenumii{\@alph\c@enumii} +\renewcommand\theenumiii{\@roman\c@enumiii} +\renewcommand\theenumiv{\@Alph\c@enumiv} +\renewcommand\labelenumi{\theenumi.} +\renewcommand\labelenumii{(\theenumii)} +\renewcommand\labelenumiii{\theenumiii.} +\renewcommand\labelenumiv{\theenumiv.} +\renewcommand\p@enumii{\theenumi} +\renewcommand\p@enumiii{\theenumi(\theenumii)} +\renewcommand\p@enumiv{\p@enumiii\theenumiii} +\renewcommand\labelitemi{\normalfont\bfseries --} +\renewcommand\labelitemii{\normalfont\bfseries --} +\renewcommand\labelitemiii{$\m@th\bullet$} +\renewcommand\labelitemiv{$\m@th\cdot$} +\def\arxivprefixe{arXiv} +\def\arxivprefixesep{:} +\def\arxiv#1{% +{\tt \arxivprefixe\arxivprefixesep\ignorespaces#1}% +} +\newcommand{\eprint}[2][]{% +{\tt\if!#1!#2\else#1\arxivprefixesep\ignorespaces#2\fi}% +} +% \corr : Mute tag used by LE +\newcommand{\corr}[1]{#1} +% +% Package required for complexed name figure files +\RequirePackage{grffile} +% +\endinput +%% +%% End of file `aa.cls'. diff --git a/tex/src/journal/linenoaa.sty b/tex/src/journal/linenoaa.sty new file mode 100644 index 0000000..44a7f49 --- /dev/null +++ b/tex/src/journal/linenoaa.sty @@ -0,0 +1,144 @@ +\NeedsTeXFormat{LaTeX2e}[2003/12/01]
+\ProvidesPackage{linenoaa}[2023/03/12 v0.02]
+
+\providecommand{\addto}[2]{%
+ \ifx#1\@undefined
+ \def#1{#2}%
+ \else
+ \ifx#1\relax
+ \def#1{#2}%
+ \else
+ {\toks@\expandafter{#1#2}%
+ \xdef#1{\the\toks@}}%
+ \fi
+ \fi
+}
+
+\newif\ifGPL@lineno@desactivate
+\GPL@lineno@desactivatefalse
+
+\DeclareOption{desactivate}{
+ \providecommand{\@LN}{\@gobbletwo}
+ \providecommand{\@LN@col}{\@gobble}
+ \GPL@lineno@desactivatetrue
+}
+\DeclareOption*{
+ \PassOptionsToPackage{\CurrentOption}{lineno}
+}
+\ProcessOptions\relax
+
+\ifGPL@lineno@desactivate
+ \endinput
+\fi
+
+\RequirePackage{lineno}[2005/11/02 v4.41]
+
+\addto\maketitle{\linenumbers\relax}
+
+\def\linenumberfont{\normalfont\scriptsize\sffamily}
+
+\modulolinenumbers[10]
+
+\@namedef{eqnarray*}{\def\@eqncr{\nonumber\@seqncr}\linenomath\eqnarray}
+\@namedef{endeqnarray*}{\nonumber\endeqnarray\endlinenomath}
+
+\@ifpackageloaded{amsmath}{%
+\renewenvironment{multline}{\linenomathNonumbers\start@multline\st@rredfalse}{%
+ \iftagsleft@ \@xp\lendmultline@ \else \@xp\rendmultline@ \fi
+ \endlinenomath\ignorespacesafterend}
+
+\renewenvironment{multline*}{\linenomath\start@multline\st@rredtrue}{\endmultline\endlinenomath}
+
+
+\renewenvironment{gather}{\linenomathNonumbers\start@gather\st@rredfalse}{%
+ \math@cr \black@\totwidth@ \egroup
+ $$\endlinenomath\ignorespacesafterend}
+
+\renewenvironment{gather*}{\linenomath\start@gather\st@rredtrue}{\endgather\endlinenomath}
+
+\renewenvironment{alignat}{\linenomathNonumbers\start@align\z@\st@rredfalse}{%
+\endalign\endlinenomath}
+
+\renewenvironment{alignat*}{\linenomath\start@align\z@\st@rredtrue}{\endalign\endlinenomath}
+
+\renewenvironment{xalignat}{\linenomathNonumbers\start@align\@ne\st@rredfalse}{%
+\endalign\endlinenomath}
+
+\renewenvironment{xalignat*}{\linenomath\start@align\@ne\st@rredtrue}{\endalign\endlinenomath}
+
+\renewenvironment{xxalignat}{\linenomath\start@align\tw@\st@rredtrue}{\endalign\endlinenomath}
+
+\renewenvironment{align}{\linenomathNonumbers\start@align\@ne\st@rredfalse\m@ne}{%
+ \math@cr \black@\totwidth@
+ \egroup
+ \ifingather@
+ \restorealignstate@
+ \egroup
+ \nonumber
+ \ifnum0=`{\fi\iffalse}\fi
+ \else
+ $$%
+ \fi
+ \endlinenomath
+ \ignorespacesafterend}
+
+\renewenvironment{align*}{\linenomath\start@align\@ne\st@rredtrue\m@ne}{\endalign\endlinenomath}
+
+\renewenvironment{flalign}{\linenomathNonumbers\start@align\tw@\st@rredfalse\m@ne}{%
+\endalign\endlinenomath}
+
+\renewenvironment{flalign*}{\linenomath\start@align\tw@\st@rredtrue\m@ne}{\endalign\endlinenomath}
+
+\renewenvironment{equation}{%
+ \linenomathNonumbers\incr@eqnum
+ \mathdisplay@push
+ \st@rredfalse \global\@eqnswtrue
+ \mathdisplay{equation}%
+}{%
+ \endmathdisplay{equation}%
+ \mathdisplay@pop
+ \endlinenomath
+ \ignorespacesafterend}
+
+\renewenvironment{equation*}{%
+ \linenomath\mathdisplay@push
+ \st@rredtrue \global\@eqnswfalse
+ \mathdisplay{equation*}%
+}{%
+ \endmathdisplay{equation*}%
+ \mathdisplay@pop
+ \endlinenomath
+ \ignorespacesafterend}}{%
+\def\equation{\linenomathNonumbers$$\refstepcounter{equation}}
+\def\endequation{\eqno \hbox{\@eqnnum}$$\endlinenomath\@ignoretrue}}
+
+\@ifpackagewith{amsmath}{fleqn}{%
+\renewenvironment{eqnarray}{%
+ \stepcounter{equation}%
+ \def\@currentlabel{\p@equation\theequation}%
+ \global\@eqnswtrue\m@th
+ \global\@eqcnt\z@
+ \tabskip\mathindent
+ \let\\=\@eqncr
+ \setlength\abovedisplayskip{\topsep}%
+ \ifvmode
+ \addtolength\abovedisplayskip{\partopsep}%
+ \fi
+ \addtolength\abovedisplayskip{\parskip}%
+ \setlength\belowdisplayskip{\abovedisplayskip}%
+ \setlength\belowdisplayshortskip{\abovedisplayskip}%
+ \setlength\abovedisplayshortskip{\abovedisplayskip}%
+ \linenomathNonumbers$$\everycr{}\halign to\linewidth% $$
+ \bgroup
+ \hskip\@centering
+ $\displaystyle\tabskip\z@skip{##}$\@eqnsel&%
+ \global\@eqcnt\@ne \hskip \tw@\arraycolsep \hfil${##}$\hfil&%
+ \global\@eqcnt\tw@ \hskip \tw@\arraycolsep
+ $\displaystyle{##}$\hfil \tabskip\@centering&%
+ \global\@eqcnt\thr@@
+ \hb@xt@\z@\bgroup\hss##\egroup\tabskip\z@skip\cr}%
+ {\@@eqncr
+ \egroup
+ \global\advance\c@equation\m@ne$$% $$
+ \endlinenomath
+ \@ignoretrue}}{}
diff --git a/tex/src/preamble-project.tex b/tex/src/preamble-project.tex index adb99b7..1c9f3fc 100644 --- a/tex/src/preamble-project.tex +++ b/tex/src/preamble-project.tex @@ -82,7 +82,7 @@ %% directly from tables of data). If you don't use them, you can just %% delete these two lines and also delete their files from your branch (to %% keep the 'tex/src' directory on your branch clean). -\input{tex/src/preamble-biblatex.tex} +%\input{tex/src/preamble-biblatex.tex} --> A&A Journal uses BibTeX \input{tex/src/preamble-pgfplots.tex} @@ -96,4 +96,11 @@ %% you later import your journal's style, delete this line (and these %% comments). Also delete the file (to keep your project source branch %% clean from files you don't need/use). -\input{tex/src/preamble-maneage-default-style.tex} +%\input{tex/src/preamble-maneage-default-style.tex} + + + + + +%% For A&A journal +\usepackage{txfonts} diff --git a/tex/src/references.tex b/tex/src/references.tex index ae3e5d1..79a3d4e 100644 --- a/tex/src/references.tex +++ b/tex/src/references.tex @@ -1,7 +1,9 @@ %% Non-software BibTeX entries. The software-specific BibTeX entries are %% stored in a '*.tex' file under the 'tex/dependencies' directory. % -%% Copyright (C) 2018-2025 Mohammad Akhlaghi <mohammad@akhlaghi.org> +%% [[[BibTeX 0.99d complains with the at-character, even when its in a +%% comment line! So use ::at:: is instead in the email address]]]. +%% Copyright (C) 2024 Mohammad Akhlaghi <mohammad::at::akhlaghi.org> % %% Copying and distribution of this file, with or without modification, %% are permitted in any medium without royalty provided the copyright |