4.4. revtex4-2#

last update: Feb 07, 2024

4.4.1. preamble.tex#

% set margins
\usepackage[top=15truemm,bottom=15truemm,left=15truemm,right=15truemm]{geometry}
\usepackage[dvipdfmx]{graphicx,hyperref,xcolor}
% math
\usepackage{amsmath,amsthm,amssymb,mathtools,mathrsfs}
% physics
\usepackage{physics}
% itembox
\usepackage{ascmac}
% algorithm
\usepackage{algorithm,algorithmic}
% vector graphics
\usepackage{tikz}
% comment
\usepackage{comment}
% dummy text
\usepackage{lipsum}
% image position
\usepackage{here}
% Align table columns on decimal point
\usepackage{dcolumn}


% style setting
% ---------------------------------------------------------------------------- %
\allowdisplaybreaks[1] % allow page breaks in equations. takes an integer from 0-4. 4 is the most permissive.
\renewcommand{\baselinestretch}{1}
\renewcommand{\abstractname}{\vspace{-\baselineskip}}
% ---------------------------------------------------------------------------- %


% number figures, tables and equations within the sections
% ---------------------------------------------------------------------------- %
\numberwithin{equation}{section}
\numberwithin{figure}{section}
\numberwithin{table}{section}
% ---------------------------------------------------------------------------- %


% Logic and proofs
% ---------------------------------------------------------------------------- %
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\newtheorem{proposition}[theorem]{Proposition}

\theoremstyle{definition}
\newtheorem{definition}{Definition}[section]
\newtheorem{example}{Example}[section]
\newtheorem{exercise}{Exercise}[section]

\theoremstyle{remark}
\newtheorem{remark}{Remark}[section]
% ---------------------------------------------------------------------------- %

4.4.2. main.tex#

\documentclass[dvipdfmx,twocolumn,preprintnumbers,superscriptaddress,nofootinbib]{revtex4-2}
% landscape
% footinbib for PRL

\input{preamble}

\begin{document}


\title{Title}

\author{Name 1}
    \email[]{name1(at)asdf.ac.jp}
    \affiliation{
    Dept.\ of Physics, The University of ~, address, city, country
    }

\author{Name 2}
    \email[]{name2(at)asdf.ac.jp}
    \affiliation{
    Dept.\ of Physics, The University of ~, address, city, country
    }

\date{\today}

\begin{abstract}
    \lipsum[1]
\end{abstract}


\maketitle


\input{sections/introduction.tex}
\input{sections/asdf.tex}
\newpage
\bibliographystyle{abbrv}
\bibliography{ref}

\newpage
\appendix
\input{sections/appendix.tex}

\end{document}

sections/introduction.tex#

\section{Introduction}
\lipsum[1-5]

sections/asdf.tex#

\section{asdf}
\lipsum[1-5]

sections/appendix.tex#

\section{Apple}
\lipsum[1-4]

4.4.3. Output#

Your browser does not support PDF files. Download the file instead