TemplateJournalsphysics
JHEP / JCAP
Official jheppub package from SISSA Medialab for the Journal of High Energy Physics and JCAP, article class plus the JHEP bibliography style.
LPPL 1.3+
Loading PDF preview…
What’s inside
- Starter files
main.tex1.7 KB
% Trimmed from the official JHEP example (jheppub v1.1227), % https://jhep.sissa.it/jhep/help/JHEP_TeXclass.jsp \documentclass[a4paper,11pt]{article} \pdfoutput=1 \usepackage{jheppub} \usepackage[T1]{fontenc} \title{\boldmath Your Paper Title Here (math allowed: $x=1$)} \author[a,1]{F. Irst,\note{Corresponding author.}} \author[b]{and S. Econd} \affiliation[a]{Department of Physics, Example University,\\Some Street, City, Country} \affiliation[b]{Example Institute for Theoretical Physics,\\Other Street, City, Country} \emailAdd{first@example.edu} \emailAdd{second@example.org} \abstract{Replace this abstract with a short summary of your work. JHEP and JCAP share this jheppub package; the abstract appears on the title page above the table of contents.} \begin{document} \maketitle \flushbottom \section{Introduction} \label{sec:intro} Introduce the problem and cite prior work~\cite{maldacena1998,weinberg1989}; inSPIRE bibtex entries work well with the JHEP style. Refer to sections with \verb|\ref|: this is section~\ref{sec:intro}. \section{Setup} The class loads amsmath; align equations on the equal sign: \begin{equation} \label{eq:action} S = \frac{1}{16\pi G}\int d^4x \sqrt{-g}\,\bigl(R - 2\Lambda\bigr) \,. \end{equation} \section{Results} Discuss the consequences of eq.~\eqref{eq:action} here. Use \verb|subequations| for grouped equations and starred environments for untagged ones. \section{Conclusions} Summarize the findings. Ask the agent in the chat to draft sections, typeset derivations, or pull references from inSPIRE for you. \acknowledgments Funding sources and thanks go here. \bibliographystyle{JHEP} \bibliography{references} \end{document}- Libraries and docs
JHEP.bst20 KB
% JHEP bibliography style ver. 2.18 % % The bibtex output produced by inSPIRE, while far from perfect, is pretty % suitable for use with this style. Indeed, this style was designed with % inSPIRE in mind. % % % % Copyright 2015 SISSA Medialab % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `author-maintained'. % % The Current Maintainer of this work is % SISSA Medialab <info@medialab.sissa.it> % % This work consists of the file JHEP.bst. ENTRY { address author booktitle chapter edition editor howpublished institution journal key month note number organization pages publisher school series title doi SLACcitation type volume year archive eprint report collaboration url } {} { label } INTEGERS { output.state before.all mid.sentence after.quote after.sentence after.quoted.block after.block } FUNCTION {init.state.consts} { #0 'before.all := #1 'mid.sentence := #2 'after.quote := #3 'after.sentence := #4 'after.quoted.block := #5 'after.block := } STRINGS { s t ref z } FUNCTION {output.nonnull} { 's := output.state mid.sentence = { ", " * write$ } { output.state after.quote = { " " * write$ } { output.state after.block = { add.period$ write$ newline$ "\newblock " write$ } { output.state before.all = 'write$ { output.state after.quoted.block = { write$ newline$ "\newblock " write$ } { add.period$ " " * write$ } if$ } if$ } if$ } if$ mid.sentence 'output.state := } if$ s } FUNCTION {output} { duplicate$ empty$ 'pop$ 'output.nonnull if$ } FUNCTION {output.check} { 't := duplicate$ empty$ { pop$ "empty " t * " in " * cite$ * warning$ } 'output.nonnull if$ } FUNCTION {output.bibitem} { newline$ "\bibitem{" write$ cite$ write$ "}" write$ newline$ "" before.all 'output.state := } FUNCTION {blank.sep} { after.quote 'output.state := } FUNCTION {fin.entry} { output.state after.quoted.block = 'skip$ 'add.period$ if$ write$ newline$ } FUNCTION {new.block} { output.state before.all = 'skip$ { output.state after.quote = { after.quoted.block 'output.state := } { after.block 'output.state := } if$ } if$ } FUNCTION {new.sentence} { output.state after.block = 'skip$ { output.state before.all = 'skip$ { after.sentence 'output.state := } if$ } if$ } FUNCTION {not} { { #0 } { #1 } if$ } FUNCTION {and} { 'skip$ { pop$ #0 } if$ } FUNCTION {or} { { pop$ #1 } 'skip$ if$ } FUNCTION {new.block.checka} { empty$ 'skip$ 'new.block if$ } FUNCTION {new.block.checkb} { empty$ swap$ empty$ and 'skip$ 'new.block if$ } FUNCTION {new.sentence.checka} { empty$ 'skip$ 'new.sentence if$ } FUNCTION {field.or.null} { duplicate$ empty$ { pop$ "" } 'skip$ if$ } FUNCTION {emphasize} { duplicate$ empty$ { pop$ "" } { "\emph{" swap$ * "}" * } if$ } %% this functions should append the correct url prefix to doi FUNCTION {format.doi} { doi empty$ { "" } {"\href{https://doi.org/" doi * "}" * } if$ } FUNCTION {formatfull.doi} { doi empty$ { "" } {"\href{https://doi.org/" doi * "}{DOI}" * } if$ } FUNCTION {format.url} { url empty$ {""} {"\href{" url * "}{" * url * "}" *} if$ } %% from http://mirrors.ctan.org/biblio/bibtex/contrib/doc/btxFAQ.pdf Q.35 %% from Philip G. Ratcliffe on the newsgroup comp.text.tex on June 28, 2002 %% in the thread “BiBTeX, bst hackers, format.name$, please help”. FUNCTION {remove.spaces} { 'z := "" { z empty$ not } { z #1 #1 substring$ z #2 global.max$ substring$ 'z := duplicate$ "~" = 'pop$ { duplicate$ " " = 'pop$ { * } if$ } if$ } while$ } INTEGERS { nameptr namesleft numnames } FUNCTION {forname.format.string} { "{f.}" } FUNCTION {surname.format.string} { "{vv~}{ll}" } FUNCTION {jnrname.format.string} { "{, jj}" } FUNCTION {format.names} { 's := #1 'nameptr := s num.names$ 'numnames := numnames 'namesleft := { namesleft #0 > } { s nameptr forname.format.string format.name$ remove.spaces duplicate$ empty$ 'skip$ { "~" * } if$ s nameptr surname.format.string format.name$ * s nameptr jnrname.format.string format.name$ * 't := nameptr #1 > { namesleft #1 > { ", " * t * } { numnames #2 > { "" * } 'skip$ if$ t "others" = { " et~al." * } { " and " * t * } if$ } if$ } nameptr #6 > { #0 'namesleft := "others" 't := 't } {'t} if$ if$ nameptr #1 + 'nameptr := namesleft #1 - 'namesleft := } while$ } FUNCTION {format.authors} { author empty$ { "" } { author format.names } if$ } FUNCTION {format.eprint} { eprint empty$ { ""} { archive empty$ {"\href{https://arxiv.org/abs/" eprint * "}" * "{{\ttfamily " * eprint * "}}" *} {"\href{https://arxiv.org/abs/" archive * "/" * eprint * "}" * "{{\ttfamily " * archive * "/" * eprint * "}}" *} if$ } if$ } FUNCTION {format.eprint.paren} { eprint missing$ { "" } { eprint empty$ { "" } {"[" format.eprint * "]" *} if$ } if$ } FUNCTION {format.report} { report empty$ { ""} { report} if$ } FUNCTION {format.editors} { editor empty$ { "" } { editor format.names editor num.names$ #1 > { ", eds." * } { ", ed." * } if$ } if$ } %% TODO: change.case$ is probably not a good idea... %% see typeset/scripts/tests/JHEP.bst/src/bibitem-3127.bib FUNCTION {format.title} { title empty$ { "" } { "\emph{" title "t" change.case$ * "}, " * } if$ } FUNCTION {format.title.p} { title empty$ { "" } { "``" title "t" change.case$ * ".''" * } if$ } 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 {format.date} { year empty$ { month empty$ { "" } { "there's a month but no year in " cite$ * warning$ month } if$ } { month empty$ 'year { month ", " * year * } if$ } if$ } FUNCTION {format.date.paren} { year empty$ { month empty$ { "" } { "there's a month but no year in " cite$ * warning$ month } if$ } { month empty$ {"(" year * ")" *} {"(" month * ", " * year * ")" *} if$ } if$ } FUNCTION {format.date.paren.nomonth} { year empty$ { "" } {"(" year * ")" *} if$ } FUNCTION {format.collaboration} { collaboration empty$ { "" } { "{\scshape " collaboration * "} " * "collaboration" * } if$ } FUNCTION {format.btitle} { title emphasize } 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$ { "" } { "vol.~" volume * series empty$ 'skip$ { " of " * 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 = { "no.~" } { "No.~" } if$ number * series empty$ { "there's a number but no series in " cite$ * warning$ } { " in " * series * } if$ } if$ } { "" } if$ } FUNCTION {format.edition} { edition empty$ { "" } { edition "l" change.case$ "~ed." * } 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 { "pp.~" pages n.dashify * } { "p.~" 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.pages.nopp} { pages empty$ { "" } { pages multi.page.check { pages first.page } { pages } if$ } if$ } FUNCTION {format.volume} { volume empty$ { "" } { "{\bfseries " volume * "}" * } if$ } FUNCTION {format.number} { number empty$ { "" } { "no.~" number * } if$ } FUNCTION {format.chapter.pages} { chapter empty$ 'format.pages { type empty$ { "ch.~" chapter * } { type "l" change.case$ chapter tie.or.space.connect } if$ pages empty$ 'skip$ { ", " * format.pages * } if$ } if$ } FUNCTION {format.in.ed.booktitle} { booktitle empty$ { "" } { "in " booktitle emphasize * editor empty$ 'skip$ { ", " * format.editors * "" * } if$ } if$ } FUNCTION {format.thesis.type} { type empty$ 'skip$ { pop$ output.state after.block = { type "t" change.case$ } { type "l" change.case$ } if$ } if$ } FUNCTION {empty.misc.check} { author empty$ title empty$ howpublished empty$ month empty$ year empty$ note empty$ and and and and and { "all relevant fields are empty in " cite$ * warning$ } 'skip$ if$ } FUNCTION {format.tr.number} { type empty$ { "Tech. Rep." } 'type if$ output blank.sep url empty$ { number } { "\href{" url * "}{" * number * "}" * } if$ } FUNCTION {format.paddress} { address empty$ { "" } { "(" address * ")" * } if$ } FUNCTION {format.article.crossref} { key empty$ { journal empty$ { "need key or journal for " cite$ * " to crossref " * crossref * warning$ "" } { "in \emph{" journal * "\/}" * } if$ } { "in " key * } if$ " \cite{" * crossref * "}" * } FUNCTION {format.crossref.editor} { editor #1 "{vv~}{ll}" format.name$ editor num.names$ duplicate$ #2 > { pop$ " {et~al.}" * } { #2 < 'skip$ { editor #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = { " {et~al.}" * } { " and " * editor #2 "{vv~}{ll}" format.name$ * } if$ } if$ } if$ } FUNCTION {format.book.crossref} { volume empty$ { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ "In " } { "Vol.~" volume * " of " * } if$ editor empty$ editor field.or.null author field.or.null = or { key empty$ { series empty$ { "need editor, key, or series for " cite$ * " to crossref " * crossref * warning$ "" * } { "{\em " * series * "\/}" * } if$ } { key * } if$ } { format.crossref.editor * } if$ " \cite{" * crossref * "}" * } FUNCTION {format.incoll.inproc.crossref} { editor empty$ editor field.or.null author field.or.null = or { key empty$ { booktitle empty$ { "need editor, key, or booktitle for " cite$ * " to crossref " * crossref * warning$ "" } { "in {\em " booktitle * "\/}" * } if$ } { "in " key * } if$ } { "in " format.crossref.editor * } if$ " \cite{" * crossref * "}" * } %% Output either the collaboration name and no authors %% or the authors (if there is no collaboration) FUNCTION {format.author.or.collaboration} { collaboration empty$ { format.authors "author" output.check } { format.collaboration output } if$ } FUNCTION {article} { output.bibitem format.author.or.collaboration %% if there is no author, %% print the editors %% ok if there is no editor author empty$ { editor empty$ 'skip$ { format.editors output } if$ } 'skip$ if$ format.title "title" output.check blank.sep crossref missing$ { journal missing$ { format.eprint output } { journal empty$ { format.eprint output } { format.doi * "{" * journal emphasize before.all 'output.state := "journal" output.check blank.sep format.volume output blank.sep format.date.paren.nomonth "year" output.check blank.sep format.pages.nopp "}" * output blank.sep } if$ } if$ report missing$ { journal empty$ {} { format.eprint.paren output} if$ } { blank.sep format.report output format.eprint.paren output} if$ } { format.article.crossref output.nonnull format.pages.nopp output format.eprint.paren output } if$ new.sentence fin.entry } FUNCTION {book} { output.bibitem format.collaboration output author empty$ { format.editors "author and editor" output.check } { format.authors output.nonnull crossref missing$ { "author and editor" editor either.or.check } 'skip$ if$ } if$ format.btitle "title" output.check crossref missing$ { format.bvolume output format.number.series output % new.sentence publisher "publisher" output.check address output } { format.book.crossref output.nonnull } if$ format.edition output blank.sep format.date.paren "year" output.check doi empty$ {} { format.doi "{" * doi * "}" * "DOI" output.check } if$ format.eprint.paren output fin.entry } FUNCTION {booklet} { output.bibitem format.author.or.collaboration title empty$ { "empty title in " cite$ * warning$ howpublished new.sentence.checka } { howpublished empty$ not address empty$ month empty$ year empty$ and and or { format.title.p output.nonnull } { format.title output.nonnull } if$ blank.sep } if$ howpublished output address output format.date output new.block % note output doi output fin.entry } FUNCTION {incollection} { output.bibitem format.author.or.collaboration format.title "title" output.check blank.sep crossref missing$ { format.in.ed.booktitle "booktitle" output.check format.bvolume output format.number.series output format.paddress output format.pages output organization output publisher output blank.sep format.date.paren.nomonth "year" output.check } { format.incoll.inproc.crossref output.nonnull format.pages output } if$ doi empty$ { format.url output } { formatfull.doi output } if$ blank.sep format.eprint.paren output fin.entry } FUNCTION {inbook} { incollection } FUNCTION {inproceedings} { output.bibitem format.author.or.collaboration format.title "title" output.check blank.sep crossref missing$ { format.in.ed.booktitle "booktitle" output.check format.bvolume output format.number.series output format.paddress output format.pages output organization output publisher output format.date "year" output.check } { format.incoll.inproc.crossref output.nonnull format.pages output } if$ doi empty$ { format.url output } { formatfull.doi output } if$ blank.sep format.eprint.paren output fin.entry } FUNCTION {conference} { inproceedings } FUNCTION {manual} { output.bibitem format.collaboration output author empty$ { organization empty$ 'skip$ { organization output.nonnull address output } if$ } { format.authors output.nonnull } if$ format.btitle "title" output.check author empty$ { organization empty$ { address new.block.checka address output } 'skip$ if$ } { organization address new.block.checkb organization output address output } if$ format.edition output format.date output new.block % note output doi output fin.entry } FUNCTION {electronic} { manual } FUNCTION {mastersthesis} { output.bibitem format.authors "author" output.check format.title "title" output.check blank.sep "Master's thesis" format.thesis.type output.nonnull school "school" output.check address output format.date "year" output.check doi empty$ {} { format.doi "{" * doi * "}" * "DOI" output.check } if$ format.eprint.paren output fin.entry } FUNCTION {misc} { output.bibitem format.collaboration output format.authors output title empty$ { howpublished new.sentence.checka } { howpublished empty$ not month empty$ year empty$ and or { format.title.p output.nonnull } { format.title output.nonnull } if$ blank.sep } if$ howpublished output format.date output new.block % note output doi output fin.entry empty.misc.check } FUNCTION {phdthesis} { output.bibitem format.authors "author" output.check format.btitle "title" output.check "Ph.D. thesis" format.thesis.type output.nonnull school "school" output.check address output format.date "year" output.check new.block format.eprint output new.block % note output doi output fin.entry } FUNCTION {proceedings} { output.bibitem editor empty$ { organization output } { format.editors output.nonnull } if$ format.btitle "title" output.check format.bvolume output format.number.series output format.paddress output editor empty$ 'skip$ { organization output } if$ publisher output format.date "year" output.check new.block % note output doi output fin.entry } FUNCTION {techreport} { output.bibitem format.author.or.collaboration format.title "title" output.check blank.sep format.tr.number output institution "institution" output.check address "address" output.check blank.sep format.date.paren "year" output.check formatfull.doi output fin.entry } FUNCTION {unpublished} { output.bibitem format.author.or.collaboration format.title.p "title" output.check blank.sep % note "note" output.check format.date output fin.entry } FUNCTION {default.type} { misc } MACRO {jan} {"Jan."} MACRO {feb} {"Feb."} MACRO {mar} {"Mar."} MACRO {apr} {"Apr."} MACRO {may} {"May"} MACRO {jun} {"June"} MACRO {jul} {"July"} MACRO {aug} {"Aug."} MACRO {sep} {"Sept."} MACRO {oct} {"Oct."} MACRO {nov} {"Nov."} MACRO {dec} {"Dec."} MACRO {nup} {"Nucl. Phys."} MACRO {cmp} {"Comm. Math. Phys."} MACRO {prl} {"Phys. Rev. Lett."} MACRO {pl} {"Phys. Lett."} MACRO {rmp} {"Rev. Mod. Phys."} MACRO {ijmp} {"Int. Jour. Mod. Phys."} MACRO {mpl} {"Mod. Phys. Lett."} MACRO {pr} {"Phys. Rev."} READ STRINGS { longest.label } INTEGERS { number.label longest.label.width } FUNCTION {initialize.longest.label} { "" 'longest.label := #1 'number.label := #0 'longest.label.width := } FUNCTION {longest.label.pass} { number.label int.to.str$ 'label := number.label #1 + 'number.label := label width$ longest.label.width > { label 'longest.label := label width$ 'longest.label.width := } 'skip$ if$ } EXECUTE {initialize.longest.label} ITERATE {longest.label.pass} FUNCTION {begin.bib} { preamble$ empty$ 'skip$ { preamble$ write$ newline$ } if$ newline$ "\providecommand{\href}[2]{#2}" "\begingroup\raggedright\begin{thebibliography}{" * longest.label * "}" * write$ newline$ } EXECUTE {begin.bib} EXECUTE {init.state.consts} ITERATE {call.type$} FUNCTION {end.bib} { newline$ "\end{thebibliography}\endgroup" write$ newline$ } EXECUTE {end.bib}jheppub.sty12 KB
%% jheppub.sty %% Copyright 2013 SISSA Medialab % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `author-maintained'. % % The Current Maintainer of this work is % SISSA Medialab <info@medialab.sissa.it> % % This work consists of the file jheppub.sty. \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{jheppub}[2018/12/04 v.1.1227] \gdef\@fpheader{Prepared for submission to JHEP} \gdef\@journal{jhep} \newif\ifnotoc\notocfalse \newif\ifemailadd\emailaddfalse \newif\iftoccontinuous\toccontinuousfalse \newif\ifnatbibsort\natbibsorttrue \DeclareOption{no-natbib-sort}{\natbibsortfalse} \ProcessOptions\relax \RequirePackage{amsmath} \RequirePackage{amssymb} \RequirePackage{epsfig} \RequirePackage{graphicx} \ifnatbibsort\RequirePackage[numbers,sort&compress]{natbib}\else\RequirePackage[numbers,compress]{natbib}\fi \RequirePackage[colorlinks=true ,urlcolor=blue ,anchorcolor=blue ,citecolor=blue ,filecolor=blue ,linkcolor=blue ,menucolor=blue ,pagecolor=blue ,linktocpage=true ,pdfproducer=medialab ,pdfa=true ]{hyperref} \def\@subheader{\@empty} \def\@keywords{\@empty} \def\@abstract{\@empty} \def\@xtum{\@empty} \def\@dedicated{\@empty} \def\@arxivnumber{\@empty} \def\@collaboration{\@empty} \def\@collaborationImg{\@empty} \def\@proceeding{\@empty} \def\@preprint{\@empty} \newcommand{\subheader}[1]{\gdef\@subheader{#1}} \newcommand{\keywords}[1]{\if!\@keywords!\gdef\@keywords{#1}\else% \PackageWarningNoLine{\jname}{Keywords already defined.\MessageBreak Ignoring last definition.}\fi} \renewcommand{\abstract}[1]{\gdef\@abstract{#1}} \newcommand{\dedicated}[1]{\gdef\@dedicated{#1}} \newcommand{\arxivnumber}[1]{\gdef\@arxivnumber{#1}} \newcommand{\proceeding}[1]{\gdef\@proceeding{#1}} \newcommand{\xtumfont}[1]{\textsc{#1}} \newcommand{\correctionref}[3]{\gdef\@xtum{\xtumfont{#1} \href{#2}{#3}}} \newcommand\jname{JHEP} \newcommand\acknowledgments{\section*{Acknowledgments}} \newcommand\notoc{\notoctrue} \newcommand\preprint[1]{\gdef\@preprint{\hfill #1}} %Equivalent to ``\footnote'', but can be used inside the \author macro % because it does not write the footnote mark % it has an optional argument that will be used as footnote mark when given % WARNING: when the optional argument is used, the footnotecounter is not increased % WARNING: the character ``!'' cannot be used. % If you really need it use somthing like [\relax !] as the optional arg. \newcommand\note[2][]{% \if!#1!% \stepcounter{footnote}\footnotetext{#2}% \else% {\renewcommand\thefootnote{#1}% \footnotetext{#2}}% \fi} %Use this if you want to try to keep some piece of the abstract on a %very long first page \newcommand\compress{% \renewcommand\afterProceedingsSpace{\bigskip}% \renewcommand\afterTitleSpace{\bigskip}% \renewcommand\afterRuleSpace{\bigskip\bigskip} \renewcommand\afterEmailSpace{\par\bigskip}} %authors and affiliations \newtoks\auth@toks \renewcommand{\author}[2][]{% \if!#1!% \auth@toks=\expandafter{\the\auth@toks#2\ }% \else \auth@toks=\expandafter{\the\auth@toks#2$^{#1}$\ }% \fi } \newtoks\affil@toks\newif\ifaffil\affilfalse \newcommand{\affiliation}[2][]{% \affiltrue \if!#1!% \affil@toks=\expandafter{\the\affil@toks{\item[]#2}}% \else \affil@toks=\expandafter{\the\affil@toks{\item[$^{#1}$]#2}}% \fi } %emails %automatically put a comma between emails \newtoks\email@toks\newcounter{email@counter}% \setcounter{email@counter}{0}% \newcommand{\emailAdd}[1]{% \emailaddtrue% \ifnum\theemail@counter>0\email@toks=\expandafter{\the\email@toks, \@email{#1}}% \else\email@toks=\expandafter{\the\email@toks\@email{#1}}% \fi\stepcounter{email@counter}} \newcommand{\@email}[1]{\href{mailto:#1}{\tt #1}} % Collaboration macros \newcommand*\collaboration[1]{\gdef\@collaboration{#1}} \newcommand*\collaborationImg[2][]{\gdef\@collaborationImg{#2}} %all pieces get a ``after'' spacing \newcommand\afterLogoSpace{\smallskip} \newcommand\afterSubheaderSpace{\vskip3pt plus 2pt minus 1pt} \newcommand\afterProceedingsSpace{\vskip21pt plus0.4fil minus15pt} \newcommand\afterTitleSpace{\vskip23pt plus0.06fil minus13pt} \newcommand\afterRuleSpace{\vskip23pt plus0.06fil minus13pt} \newcommand\afterCollaborationSpace{\vskip3pt plus 2pt minus 1pt} \newcommand\afterCollaborationImgSpace{\vskip3pt plus 2pt minus 1pt} \newcommand\afterAuthorSpace{\vskip5pt plus4pt minus4pt} \newcommand\afterAffiliationSpace{\vskip3pt plus3pt} \newcommand\afterEmailSpace{\vskip16pt plus9pt minus10pt\filbreak} \newcommand\afterXtumSpace{\par\bigskip} \newcommand\afterAbstractSpace{\vskip16pt plus9pt minus13pt} \newcommand\afterKeywordsSpace{\vskip16pt plus9pt minus13pt} \newcommand\afterArxivSpace{\vskip3pt plus0.01fil minus10pt} \newcommand\afterDedicatedSpace{\vskip0pt plus0.01fil} \newcommand\afterTocSpace{\bigskip\medskip} \newcommand\afterTocRuleSpace{\bigskip\bigskip} %this is the ``itemsep'' of the affiliations list \newlength{\affiliationsSep}\setlength{\affiliationsSep}{-3pt} %this hook is needed if the toc starts on the first page \newcommand\beforetochook{\pagestyle{myplain}\pagenumbering{roman}} \DeclareFixedFont\trfont{OT1}{phv}{b}{sc}{11} %first page \renewcommand\maketitle{ %% First page \pagestyle{empty} \thispagestyle{titlepage} \setcounter{page}{0} \noindent{\small\scshape\@fpheader}\@preprint\par \afterLogoSpace % Subheader \if!\@subheader!\else\noindent{\trfont{\@subheader}}\fi \afterSubheaderSpace % Proceedings \if!\@proceeding!\else\noindent{\sc\@proceeding}\fi \afterProceedingsSpace % Title {\LARGE\flushleft\sffamily\bfseries\@title\par} \afterTitleSpace % Rule \hrule height 1.5\p@% \afterRuleSpace % Collaboration \if!\@collaboration!\else {\Large\bfseries\sffamily\raggedright\@collaboration}\par \afterCollaborationSpace \fi % \if!\@collaborationImg!\else {\normalsize\bfseries\sffamily\raggedright\@collaborationImg}\par \afterCollaborationImgSpace %% I leave the size and font so that if there are two collaboration %% they can be linked with an 'and' \fi % Author {\bfseries\raggedright\sffamily\the\auth@toks\par} \afterAuthorSpace % Affiliation \ifaffil\begin{list}{}{% \setlength{\leftmargin}{0.28cm}% \setlength{\labelsep}{0pt}% \setlength{\itemsep}{\affiliationsSep}% \setlength{\topsep}{-\parskip}} \itshape\small% \the\affil@toks \end{list}\fi \afterAffiliationSpace % E-mail \ifemailadd %% if emailadd is true \noindent\hspace{0.28cm}\begin{minipage}[l]{.9\textwidth} \begin{flushleft} \textit{E-mail:} \the\email@toks \end{flushleft} \end{minipage} \else %% if emailaddfalse do nothing \PackageWarningNoLine{\jname}{E-mails are missing.\MessageBreak Plese use \protect\emailAdd\space macro to provide e-mails.} \fi \afterEmailSpace %Erratum or addendum \if!\@xtum!\else\noindent{\@xtum}\afterXtumSpace\fi % Abstract \if!\@abstract!\else\noindent{\renewcommand\baselinestretch{.9}\textsc{Abstract:}}\ \@abstract\afterAbstractSpace\fi % Keywords \if!\@keywords!\else\noindent{\textsc{Keywords:}} \@keywords\afterKeywordsSpace\fi % Arxivnumber \if!\@arxivnumber!\else\noindent{\textsc{ArXiv ePrint:}} \href{https://arxiv.org/abs/\@arxivnumber}{\@arxivnumber}\afterArxivSpace\fi % Dedication \if!\@dedicated!\else\vbox{\small\it\raggedleft\@dedicated}\afterDedicatedSpace\fi % \ifnotoc\else \iftoccontinuous\else\newpage\fi \beforetochook\hrule \tableofcontents \afterTocSpace \hrule \afterTocRuleSpace \fi \setcounter{footnote}{0} \pagestyle{myplain}\pagenumbering{arabic} } % close the \renewcommand\maketitle{ % Page layout \renewcommand{\baselinestretch}{1.1}\normalsize \setlength\lineskip{1\p@} \setlength\parindent{1.2\parindent} \setlength\normallineskip{1\p@} \setlength\parskip{0\p@ \@plus \p@} \@lowpenalty 51 \@medpenalty 151 \@highpenalty 301 \widowpenalty 1000 \clubpenalty 1000 \setcounter{topnumber}{4} \renewcommand\topfraction{1} \setcounter{bottomnumber}{1} \renewcommand\bottomfraction{.6} \setcounter{totalnumber}{5} \renewcommand\textfraction{0} \renewcommand\floatpagefraction{0.8} \textwidth .72\paperwidth \setlength\@tempdima{.76\paperheight} \divide\@tempdima\baselineskip \@tempcnta=\@tempdima \setlength\textheight{\@tempcnta\baselineskip} \addtolength\textheight{\topskip} \voffset -1in \topmargin .05\paperheight \headheight .02\paperheight \headsep .03\paperheight \footskip .07\paperheight \marginparsep 9\p@ \marginparpush 6\p@ \hoffset -1in \oddsidemargin .14\paperwidth \evensidemargin .14\paperwidth \marginparwidth .11\paperwidth \setlength\arraycolsep{2\p@} \setlength\tabcolsep{6\p@} \setlength\arrayrulewidth{.4\p@} \setlength\doublerulesep{2\p@} \setlength\tabbingsep{\labelsep} \skip\@mpfootins = \skip\footins \setlength\fboxsep{3\p@} \setlength\fboxrule{.4\p@} % No dots in the table of contents \renewcommand{\@dotsep}{10000} % Footer and header of the body % the command ``\pagestyle{myplain}'' must be inserted % just after ``\begin{document}'' \newcommand\ps@myplain{ \pagenumbering{arabic} \renewcommand\@oddfoot{\hfill-- \thepage\ --\hfill} \renewcommand\@oddhead{}} \let\ps@plain=\ps@myplain % no header or footer in the title page \newcommand\ps@titlepage{\renewcommand\@oddfoot{}\renewcommand\@oddhead{}} %number equations after the sections \renewcommand{\theequation}{\thesection.\arabic{equation}} \numberwithin{equation}{section} %headings style \renewcommand\section{\@startsection{section}{1}{\z@}% {-3.5ex \@plus -1.3ex \@minus -.7ex}% {2.3ex \@plus.4ex \@minus .4ex}% {\normalfont\large\bfseries}} \renewcommand\subsection{\@startsection{subsection}{2}{\z@}% {-2.3ex\@plus -1ex \@minus -.5ex}% {1.2ex \@plus .3ex \@minus .3ex}% {\normalfont\normalsize\bfseries}} \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}% {-2.3ex\@plus -1ex \@minus -.5ex}% {1ex \@plus .2ex \@minus .2ex}% {\normalfont\normalsize\bfseries}} \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {1.75ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}% {1.75ex \@plus1ex \@minus .2ex}% {-1em}% {\normalfont\normalsize\itshape}} %Caption of figure and table \def\fnum@figure{\textbf{\figurename\nobreakspace\thefigure}} \def\fnum@table{\textbf{\tablename\nobreakspace\thetable}} %redefining \@makecaption, to have captions with \small font size %taken from article.cls l.489--498 %the only differences are the ``\small '' commands added on two lines \long\def\@makecaption#1#2{% \vskip\abovecaptionskip \sbox\@tempboxa{\small #1. #2}% \ifdim \wd\@tempboxa >\hsize \small #1. #2\par \else \global \@minipagefalse \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}% \fi \vskip\belowcaptionskip} %apply some formatting on the biblio %without redefining the whole env \let\oldthebibliography=\thebibliography \let\endoldthebibliography=\endthebibliography \renewenvironment{thebibliography}[1]{% \begin{oldthebibliography}{#1}% \small% \raggedright% \setlength{\itemsep}{5pt plus 0.2ex minus 0.05ex}% }% {% \end{oldthebibliography}% }references.bib628 B
@article{maldacena1998, author = {Maldacena, Juan Martin}, title = {The Large N limit of superconformal field theories and supergravity}, journal = {Adv. Theor. Math. Phys.}, volume = {2}, pages = {231--252}, year = {1998}, doi = {10.4310/ATMP.1998.v2.n2.a1}, eprint = {hep-th/9711200}, archivePrefix = {arXiv} } @article{weinberg1989, author = {Weinberg, Steven}, title = {The Cosmological Constant Problem}, journal = {Rev. Mod. Phys.}, volume = {61}, pages = {1--23}, year = {1989}, doi = {10.1103/RevModPhys.61.1} }main.pdfprebuilt · 336 KBReplaced by the first recompile.
Binary file, seeded as-is.
main.synctex.gzprebuilt · 6.7 KBReplaced by the first recompile.
Binary file, seeded as-is.