From 714d16524d9597add090c37b77ba6d5d3cbfe0c5 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Thu, 22 Aug 2019 00:48:31 +0530 Subject: Paper's title and author information moved to main paper.tex Until now, the paper's title and author information were set it `tex/src/preamble-header.tex'. But they are actually shown in the final PDF paper and a much better place to keep them is the top-level `paper.tex'. With this commit, the setting of the title and author names has been moved to `paper.tex', just after importing all the preambles. However, the basic package importation and low-level settings are still set in `tex/src/preamble-header.tex', because they are relatively low-level. This task was suggested by Deepak (Indian Institute of Astrophysics). --- README-hacking.md | 14 ++++++++------ paper.tex | 16 ++++++++++++++++ tex/src/preamble-header.tex | 12 ------------ 3 files changed, 24 insertions(+), 18 deletions(-) diff --git a/README-hacking.md b/README-hacking.md index c0d7ed5..fac9876 100644 --- a/README-hacking.md +++ b/README-hacking.md @@ -576,12 +576,14 @@ First custom commit - **Title**, **short description** and **author**: The title and basic information of your project's output PDF paper should be added in - `tex/src/preamble-header.tex`. Scroll down this file and you will see - parts that must be changed. Of course, if you use a different LaTeX - method of managing the title and authors, please feel free to use your - own methods after finishing this checklist and doing your first - commit. After you are done, run the `./project make` command again to - see your changes in the final PDF. + `paper.tex`. You should see the relevant place in the preamble (prior + to `\begin{document}`. After you are done, run the `./project make` + command again to see your changes in the final PDF, and make sure that + your changes don't cause a crash in LaTeX. Of course, if you use a + different LaTeX package/style for managing the title and authors (in + particular a specific journal's style), please feel free to use it + your own methods after finishing this checklist and doing your first + commit. - **Delete dummy parts (can be done later)**: The template contains some parts that are only for the initial/test run, mainly as a diff --git a/paper.tex b/paper.tex index 2248032..4fd6f98 100644 --- a/paper.tex +++ b/paper.tex @@ -25,6 +25,22 @@ \input{tex/src/preamble-pgfplots.tex} \input{tex/src/preamble-necessary.tex} +%% Title and 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 not need to set them, and can also +%% replace this "Title and author information" section with the journal's +%% preferred format. +\title{\large \uppercase{The paper's title goes here}} +\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{} + diff --git a/tex/src/preamble-header.tex b/tex/src/preamble-header.tex index ce9f93e..d1a0147 100644 --- a/tex/src/preamble-header.tex +++ b/tex/src/preamble-header.tex @@ -87,15 +87,3 @@ \renewcommand\Authfont{\small\scshape} \renewcommand\Affilfont{\footnotesize\normalfont} \setlength{\affilsep}{0.2cm} - -\title{\large \uppercase{The paper's title goes here}} - -\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{} -- cgit v1.2.1