From 2db584a6a42c93ab4f99dfc0d05c11e94171b8b4 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sun, 24 Sep 2023 22:20:46 +0200 Subject: Maneage'd AASTeX for American Astronomical Society journals Until now, the core Maneage branch was 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 AAS journals (AASTeX) has been implemented. --- paper.tex | 166 +++++++++++--------------------------------------------------- 1 file changed, 28 insertions(+), 138 deletions(-) (limited to 'paper.tex') diff --git a/paper.tex b/paper.tex index afb6c0a..e2012de 100644 --- a/paper.tex +++ b/paper.tex @@ -1,6 +1,6 @@ %% Copyright (C) 2018-2023 Mohammad Akhlaghi %% See the end of the file for license conditions. -\documentclass[10pt, twocolumn]{article} +\documentclass[preprint2, times, twocolappendix]{aastex631} %% (OPTIONAL) CONVENIENCE VARIABLE: Only relevant when you use Maneage's %% '\includetikz' macro to build plots/figures within LaTeX using TikZ or @@ -31,39 +31,6 @@ -%% PROJECT TITLE: The project title should also be printed as metadata in -%% all output files. To avoid inconsistancy caused by manually typing it, -%% the title is defined with other core project metadata in -%% 'reproduce/analysis/config/metadata.conf'. That value is then written in -%% the '\projectitle' LaTeX macro which is available in 'project.tex' (that -%% was loaded above). -% -%% Please set your project's title in 'metadata.conf' (ideally with other -%% basic project information) and re-run the project to have your new -%% 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}} - -%% 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,137 +39,60 @@ %% 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{}. +%% Title +\title{\projecttitle} - \vspace{0.25cm} +%% Authors +\author[0000-0012-3245-1234]{Your Name} +\affiliation{Your affiliation; \href{mailto:your@email.address}{your@email.address}} - \textsl{Keywords}: Add some keywords for your research here. +%% Abstract +\begin{abstract} + \noindent + The abstract goes here. + The figures of this research note are reproducible with Maneage, on the Git commit \projectversion. +\end{abstract} - \textsl{Reproducible paper}: All quantitave results (numbers and plots) - in this paper are exactly reproducible with Maneage - (\url{https://maneage.org}). } +%% Keywords (from https://astrothesaurus.org) +\keywords{Keyword1 name (XXXX), Keyword2 name (XXXX)} -%% To add the first page's headers. -\thispagestyle{firststyle} -%% Start of main body. -\section{Congratulations!} -Congratulations on running the raw template project! You can now follow the ``Customization checklist'' in the \texttt{README-hacking.md} file, customize this template and start your exciting research project over it. -You can always merge Maneage back into your project to improve its infra-structure and leaving your own project intact. -If you haven't already read \citet{maneage}, please do so before continuing, it isn't long (just 7 pages). - -While you are writing your paper, just don't forget to \emph{not} use numbers or fixed strings (for example database urls like \url{\wfpctwourl}) directly within your \LaTeX{} source. -Put them in configuration files and after using them in the analysis, pass them into the \LaTeX{} source through macros in the same subMakefile that used them. -For some already published examples, please see \citet{maneage}\footnote{\url{https://gitlab.com/makhlaghi/maneage-paper}}, \citet{infantesainz20}\footnote{\url{https://gitlab.com/infantesainz/sdss-extended-psfs-paper}} and \citet{akhlaghi19}\footnote{\url{https://gitlab.com/makhlaghi/iau-symposium-355}}. -Working in this way, will let you focus clearly on your science and not have to worry about fixing this or that number/name in the text. - -Once your project is ready for publication, there is also a ``Publication checklist'' in \texttt{README-hacking.md} that will guide you in the steps to do for making your project as FAIR as possible (Findable, Accessibile, Interoperable, and Reusable). -The default \LaTeX{} structure within Maneage also has two \LaTeX{} macros for easy marking of text within your document as \emph{new} and \emph{notes}. -To activate them, please use the \texttt{-{}-highlight-new} or \texttt{-{}-highlight-notes} options with \texttt{./project make}. -For example if you run \texttt{./project make -{}-highlight-new}, then \new{this text (that has been marked as \texttt{new}) will show up as green in the final PDF}. -If you run \texttt{./project make -{}-highlight-notes} then you will see a note following this sentence that is written in red and has square brackets around it (it is invisible without this option). -\tonote{This text is written within a \texttt{tonote} and is invisible without \texttt{-{}-highlight-notes}.} -You can also use these two options together to both highlight the new parts and add notes within the text. -Another thing you may notice from the \LaTeX{} source of this default paper is there is one line per sentence (and one sentence in a line). -Of course, as with everything else in Maneage, you are free to use any format that you are most comfortable with. -The reason behind this choice is that this source is under Git version control and that Git also primarily works on lines. -In this way, when a change in a setence is made, git will only highlight/color that line/sentence we have found that this helps a lot in viewing the changes. -Also, this format helps in reminding the author when the sentence is getting too long! -Here is a tip when looking at the changes of narrative document in Git: use the \texttt{-{}-word-diff} option (for example \texttt{git diff -{}-word-diff}, you can also use it with \texttt{git log}). -Figure \ref{squared} shows a simple plot as a demonstration of creating plots within \LaTeX{} (using the {\small PGFP}lots package). -The minimum value in this distribution is $\deletememin$, and $\deletememax$ is the maximum. -Take a look into the \LaTeX{} source and you'll see these numbers are actually macros that were calculated from the same dataset (they will change if the dataset, or function that produced it, changes). - -The individual {\small PDF} file of Figure \ref{squared} is available under the \texttt{tex/tikz/} directory of your build directory. -You can use this PDF file in other contexts (for example in slides showing your progress or after publishing the work). -If you want to directly use the {\small PDF} file in the figure without having to let {\small T}i{\small KZ} decide if it should be remade or not, you can also comment the \texttt{makepdf} macro at the top of this \LaTeX{} source file. - -\begin{figure}[t] - \includetikz{delete-me-squared}{width=\linewidth} - - \captionof{figure}{\label{squared} A very basic $X^2$ plot for - demonstration.} -\end{figure} - -Figure \ref{image-histogram} is another demonstration of showing images (datasets) using PGFPlots. -It shows a small crop of an image from the Wide-Field Planetary Camera 2 (that was installed on the Hubble Space Telescope from 1993 to 2009). -As another more realistic demonstration of reporting results with Maneage, here we report that the mean pixel value in that image is $\deletemewfpctwomean$ and the median is $\deletemewfpctwomedian$. -The skewness in the histogram of Figure \ref{image-histogram}(b) explains this difference between the mean and median. -The dataset is visualized here as a black and white image using the \textsf{Convert\-Type} program of GNU Astronomy Utilities (Gnuastro). -The histogram and basic statstics were generated with Gnuastro's \textsf{Statistics} program. +%% Start of main body. +\section{Introduction}\label{sec:intro} +\noindent +The introduction goes here. -{\small PGFP}lots\footnote{\url{https://ctan.org/pkg/pgfplots}} is a great tool to build the plots within \LaTeX{} and removes the necessity to add further dependencies, just to create the plots. -There are high-level libraries like Matplotlib which also generate plots. -However, the problem is that they require \emph{many} dependencies, for example see Figure 1 of \citet{alliez19}. -Installing these dependencies from source, is not easy and will harm the reproducibility of your paper in the future. +\section{Analysis}\label{sec:analysis} -Furthermore, since {\small PGFP}lots builds the plots within \LaTeX{}, it respects all the properties of your text (for example line width and fonts and etc). -Therefore the final plot blends in your paper much more nicely. -It also has a wonderful manual\footnote{\url{http://mirrors.ctan.org/graphics/pgf/contrib/pgfplots/doc/pgfplots.pdf}}. +You can use Figures like Figure \ref{fig:image-histogram}. \begin{figure}[t] \includetikz{delete-me-image-histogram}{width=\linewidth} - \captionof{figure}{\label{image-histogram} (a) An example image of the Wide-Field Planetary Camera 2, on board the Hubble Space Telescope from 1993 to 2009. + \caption{\label{fig:image-histogram} (a) An example image of the Wide-Field Planetary Camera 2, on board the Hubble Space Telescope from 1993 to 2009. This is one of the sample images from the FITS standard webpage, kept as examples for this file format. (b) Histogram of pixel values in (a).} \end{figure} -\section{Notice and citations} -To encourage other scientists to publish similarly reproducible papers, please add a notice close to the start of your paper or in the end of the abstract clearly mentioning that your work is fully reproducible. -One convention we have adopted until now is to put the Git checkum of the project as the last word of the abstract, for example see \citet{akhlaghi19}, \citet{infantesainz20} and \citet{maneage} - -Finally, don't forget to cite \citet{maneage} and acknowledge the funders mentioned below. -Otherwise we won't be able to continue working on Maneage. -Also, just as another reminder, before publication, don't forget to follow the ``Publication checklist'' of \texttt{README-hacking.md}. -%% End of main body. - - - - - -\section{Acknowledgments} -\new{Please include the following paragraph in the Acknowledgement section of your paper. - In order to get more funding to continue working on Maneage, we need to to cite it and its funding institutions in your papers. - Also note that at the start, it includes version and date information for the most recent Maneage commit you merged with (which can be very helpful for others) as well as very basic information about your CPU architecture (which was extracted during configuration). - This CPU information is very important for reproducibility because some software may not be buildable on other CPU architectures, so it is necessary to publish CPU information with the results and software versions.} - -This project was developed in the reproducible framework of Maneage \citep[\emph{Man}aging data lin\emph{eage},][latest Maneage commit \maneageversion{}, from \maneagedate]{maneage}. -The project was built on an {\machinearchitecture} machine with {\machinebyteorder} byte-order, see Appendix \ref{appendix:software} for the used software and their versions. -Maneage has been funded partially by the following grants: Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT) PhD scholarship to M. Akhlaghi and its Grant-in-Aid for Scientific Research (21244012, 24253003). -The European Research Council (ERC) advanced grant 339659-MUSICOS. -The European Union (EU) Horizon 2020 (H2020) research and innovation programmes No 777388 under RDA EU 4.0 project, and Marie Sk\l{}odowska-Curie grant agreement No 721463 to the SUNDIAL ITN. -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 +\section{Acknowledgement} +The workflow of this research note was developed in the reproducible framework of Maneage \citep[\emph{Man}aging data lin\emph{eage},][latest Maneage commit \maneageversion{}, from \maneagedate]{maneage}. +This note is created from the Git commit {\projectversion} that is hosted on Codeberg\footnote{\url{\projectgitrepo}} and is archived on SoftwareHeritage for longevity. -%% Start appendix. -\appendix +The analysis of this research note was done using GNU Astronomy Utilities (Gnuastro, ascl.net/1801.009) version \gnuastroversion. Work on Gnuastro has been funded by the Japanese Ministry of Education, Culture, Sports, Science, and Technology (MEXT) scholarship and its Grant-in-Aid for Scientific Research (21244012, 24253003), the European Research Council (ERC) advanced grant 339659-MUSICOS, the Spanish Ministry of Economy and Competitiveness (MINECO, grant number AYA2016-76219-P) and the NextGenerationEU grant through the Recovery and Resilience Facility project ICTS-MRR-2021-03-CEFCA. -%% Mention all used software in an appendix. -\section{Software acknowledgement} -\label{appendix:software} -\input{tex/build/macros/dependencies.tex} +%% Bibliography +\bibliography{references}{} +\bibliographystyle{aasjournal} %% Finish LaTeX \end{document} -- cgit v1.2.1