Skip to content

Commit 3bffe8e

Browse files
committed
better supp mat in PRL
1 parent 85632f7 commit 3bffe8e

1 file changed

Lines changed: 34 additions & 28 deletions

File tree

templates/PRL/draft.tex

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
\documentclass[floats,floatfix,showpacs,amssymb,prd,twocolumn,superscriptaddress,nofootinbib,nolongbibliography,reprint]{revtex4-2}
22

3-
\usepackage{amssymb,amsmath,verbatim,mathtools,needspace,enumitem,etoolbox,graphicx,physics,microtype,afterpage,bigints,gensymb,tabularx,xspace}
3+
\usepackage{amssymb,amsmath,verbatim,mathtools,needspace,enumitem,etoolbox,graphicx,physics,microtype,afterpage,bigints,gensymb,tabularx,xspace,bbm}
44

55
\usepackage[dvipsnames, usenames]{xcolor}
66
\definecolor{linkcolor}{rgb}{0.0,0.3,0.5}
7-
\definecolor{dodgerblue}{HTML}{1E90FF}
87
\usepackage[unicode, colorlinks=true, linkcolor=linkcolor, citecolor=linkcolor, filecolor=linkcolor,urlcolor=linkcolor, pdfusetitle]{hyperref}
98
\usepackage[all]{hypcap}
109
\usepackage[T1]{fontenc}
1110
\usepackage[utf8]{inputenc}
1211
\usepackage{orcidlink}
1312
\usepackage{bibunits}
13+
\usepackage{overpic,makecell,multirow}
14+
\usepackage{xtab,afterpage,longtable}
15+
\usepackage[normalem]{ulem}
1416

1517
\interfootnotelinepenalty=10000
1618
\newcommand{\ssim}{\mathchar"5218\relax\,}
@@ -22,30 +24,43 @@
2224
\newcommand*{\balancecolsandclearpage}{\close@column@grid \cleardoublepage \twocolumngrid}
2325
\makeatother
2426

25-
%\usepackage{draftwatermark}\SetWatermarkText{Draft} \SetWatermarkScale{4} \SetWatermarkAngle{30}
27+
\newcolumntype{L}[1]{>{\raggedright\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
28+
\newcolumntype{C}[1]{>{\centering\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
29+
\newcolumntype{R}[1]{>{\raggedleft\let\newline\\\arraybackslash\hspace{0pt}}m{#1}}
30+
2631
\newcommand{\sm}{Supplemental Material\xspace}
32+
\newcommand{\prltitle}{My Awesome Paper}
2733

2834
\newcommand\prlsec[1]{\vspace{2mm}\noindent \textbf{\textit{#1}}\,---}
2935

30-
\newcommand{\milan}{\affiliation{Dipartimento di Fisica ``G. Occhialini'', Universit\'a degli Studi di Milano-Bicocca, Piazza della Scienza 3, 20126 Milano, Italy}}
36+
\newcommand{\milan}{\affiliation{Dipartimento di Fisica ``G. Occhialini'', Universit\`a degli Studi di Milano-Bicocca, Piazza della Scienza 3, 20126 Milano, Italy}}
3137
\newcommand{\infn}{\affiliation{INFN, Sezione di Milano-Bicocca, Piazza della Scienza 3, 20126 Milano, Italy}}
3238

39+
\newcommand{\dg}[1]{{\color{RedOrange}DG: #1}}
40+
\newcommand{\vdr}[1]{{\color{Cyan}VDR: #1}}
41+
\newcommand{\costa}[1]{{\color{Magenta}CP: #1}}
42+
\newcommand{\mm}[1]{{\color{ForestGreen}MM: #1}}
3343

44+
\newcommand{\new}[1]{{\color{RedOrange}#1}}
3445

46+
\makeatletter
47+
\def\maketitle{
48+
\@author@finish
49+
\title@column\titleblock@produce
50+
\suppressfloats[t]}
51+
\makeatother
3552

36-
\newcommand{\dg}[1]{{\color{RedOrange}DG: #1}}
3753

3854

3955
\begin{document}
4056

41-
\title{Write a paper}
57+
\newcommand{\titleprl}{Write a paper}
58+
\title{\titleprl}
4259

4360
\author{Davide Gerosa$\,$\orcidlink{0000-0002-0933-3579}}
4461
\email{davide.gerosa@unimib.it}
45-
4662
\milan \infn
4763

48-
4964
\author{friends}
5065

5166
\pacs{}
@@ -60,55 +75,46 @@
6075

6176
\maketitle
6277

63-
%%%SUPMAT
64-
\defaultbibliography{draft}
78+
\defaultbibliography{semisup}
6579
\defaultbibliographystyle{apsrev4-2}
6680
\begin{bibunit}
67-
%%%SUPMAT
6881

6982
\prlsec{Introduction}
7083

7184
I'm a section \cite{2016PhRvL.116f1102A}.
7285

73-
\prlsec{Acknowledgements}
74-
75-
76-
%%%NOSUPMAT
77-
%\bibliography{draft}
78-
%%%NOSUPMAT
7986

87+
\prlsec{Acknowledgements}
8088

8189

82-
%%%SUPMAT
8390
\putbib
8491
\end{bibunit}
8592
\begin{bibunit}
8693
\setcounter{equation}{0}
8794
\setcounter{figure}{0}
8895
\setcounter{table}{0}
89-
%\setcounter{page}{1}
96+
\clearpage \pagebreak
9097
\renewcommand{\theequation}{S\arabic{equation}}
9198
\renewcommand{\thefigure}{S\arabic{figure}}
9299
\renewcommand{\bibnumfmt}[1]{[S#1]}
93100
\renewcommand{\citenumfont}[1]{S#1}
94-
%%%SUPMAT
95101

96-
\onecolumngrid
97-
\clearpage
102+
%%%%%%%
103+
% For submitting to PRL
104+
%\setcounter{page}{1}
105+
%\title{{\sc \sm} \\ \titleprl}
98106

99-
\section*{\sm}
107+
% For the arxiv
108+
{\sc \sm}
109+
%%%%%%%
100110

101-
These are the \sm \cite{2016PhRvL.116f1102A}.
111+
\prlsec{Something}
102112

103-
To compile separate bibliographies, comment our the bibliography line and uncomment the lines tagged with SUPMAT. Then compile using the makefile provided
104113

105114

106-
%%%SUPMAT
107115
\putbib
108116
\end{bibunit}
109-
%%%SUPMAT
110117

111118

112119

113120
\end{document}
114-

0 commit comments

Comments
 (0)