\documentclass{philphys}
% Documentation for philphys v1.0.1 (2026-10-14).
% Copyright 2026 Bryan W Roberts. LPPL 1.3c or any later version; see LICENSE.txt.
% Part of the maintained philphys work; current maintainer: Bryan W Roberts.
% Contact: philphyssociety@gmail.com.
\usepackage{amsmath}
% Permit the longer package filenames to wrap at hyphens in prose.
\expandafter\def\expandafter\UrlBreaks\expandafter{\UrlBreaks\do\-}

\title{philphys Documentation}
\popauthor{Philosophy of Physics Society}{Philosophy of Physics Society}{}
\popauthor{LSE Press}{LSE Press}{}
\poprunningauthor{PPS and LSE Press}
\popcorrespondingauthor{Philosophy of Physics Society}
\popcorrespondingauthoremail{philphyssociety@gmail.com}
\popabstract{This documentation explains how to prepare an anonymous submission, a named manuscript, or a production article with the \emph{Philosophy of Physics} LaTeX template. It covers metadata, equations, figures, citations, and bibliographies. To get started straight away just fill in \path{philphys-template.tex} and \path{philphys-sample-bibliography.bib} with your material and compile them with \path{philphys.cls} and \path{philphys.bst} in the same directory. \emph{Version 1.0.1 (2026-10-14)}.}
\popacknowledgements{The class and bibliography style were developed by Bryan W Roberts, with code support from ChatGPT and testing support from Alex Niederklapfer and Jim Weatherall.}
\popcompetinginterests{The authors have no competing interests to declare.}
\poptocite{Philosophy of Physics Society and LSE Press. 2026. ``philphys Documentation'' Unpublished Manuscript.}

% The institutional credits above are retained; this manual is part of
% the LPPL package rather than a journal article.
\popcopyrightyear{2026}
\renewcommand{\popArticleCopyrightNotice}{%
  \copyright 2026 Bryan W Roberts.
  This documentation is part of the maintained \texttt{philphys} package
  and may be distributed and/or modified under the LaTeX Project Public
  License, version 1.3c or any later version. See
  \url{https://www.latex-project.org/lppl/lppl-1-3c/}.%
}

\usetikzlibrary{decorations.pathmorphing} % For the black hole figure drawn below

\begin{document}
\maketitle 

\section{Quick Start}\label{sec:files}
This documentation explains how to use the Philosophy of Physics Society's \texttt{philphys} LaTeX document class and bibliography style. This document is an example of the class in action!

\emph{Quick start.} Download all of the following into the same directory:
\begin{enumerate}
  \item \path{philphys-template.tex} - The LaTeX template
  \item \path{philphys-sample-bibliography.bib} - A sample external bibliography
  \item \path{philphys.cls} - The \emph{Philosophy of Physics} document class
  \item \path{philphys.bst} - The \emph{Philosophy of Physics} bibliography style.
\end{enumerate}
Keep all four files together. Replace the template text with your article
and the sample bibliography with your references. You may rename the
template and bibliography; update the bibliography command if you do.
On Overleaf, upload all four files and select your article's \texttt{.tex}
file as the main document.

If you're compiling LaTeX on your computer, make sure you have a modern installation. We recommend LaTeX 2022-11-01 or newer with the packages listed below. To compile with pdfLaTeX and BibTeX, you should compile in the usual order:
\par\addvspace{4pt}
\noindent\begin{minipage}{\linewidth}
\fontsize{8pt}{10pt}\selectfont
\begin{verbatim}
pdflatex philphys-template.tex
bibtex philphys-template
pdflatex philphys-template.tex
pdflatex philphys-template.tex
\end{verbatim}
\end{minipage}\par\addvspace{4pt}
Overleaf (and various other editors) handles these repeated passes automatically. Please use classic BibTeX rather than Biber. An internal bibliography only needs LaTeX passes.

The \path{philphys.cls} document class automatically sets the document to the publisher's required dimensions, 175\,mm by 250\,mm. Please don't change the default page dimensions; for printing, use your PDF viewer to centre or scale the pages for printing on A4 or US Letter.

\section{Choosing a Mode} 
There are three modes available, which are set in the first line of the document:
\begin{itemize}
\item \texttt{manuscript} (default): an unpublished draft.
\item \texttt{blindreview}: an anonymous submission.
\item \texttt{published}: the production layout with publication metadata.
\end{itemize}
Since you're probably submitting to the journal \emph{Philosophy of Physics} for blind review, use the second of these options, which should already be chosen in \path{philphys-template.tex}:
\begin{verbatim}
\documentclass[blindreview]{philphys}
\end{verbatim}
To create a draft with author names use \verb|\documentclass{philphys}|.

All three modes use the same document structure:
\begin{verbatim}
\documentclass[blindreview]{philphys}
\usepackage{amsmath} % If needed.
\title{Article Title}
\popabstract{Your abstract.}
\begin{document}
\maketitle
... % Article body.
\popbackmatter
\bibliographystyle{philphys}
\bibliography{philphys-sample-bibliography}
\poplastpagefooter
\end{document}
\end{verbatim}
Please make sure the \verb|\poplastpagefooter| command appears immediately before the end of the document, after all text, references, and floats. This command places the logos on the actual final page. Space for the logos is reserved automatically when \verb|\popbackmatter| or the bibliography begins, and that reservation applies throughout the remaining end matter.

\section{Preparing an Anonymous Submission}

It's time to submit your article for blind review. The \texttt{blindreview} mode will automatically hide preamble data containing author names, affiliation, ORCID, contact, citation columns, identifying running heads, and all class back matter, including competing interests. It also clears PDF title, author, subject, and keyword metadata; technical producer and date metadata may remain. Descriptive PDF and XMP metadata can be restored by using \texttt{published} mode.

That said, you have to anonymise the content of your article yourself! Make sure you have properly anonymised your prose, abstract, self-citations, figures, links, attachments, filenames, or identifying material added by other packages. Cite your own work in the third person where appropriate, and inspect the PDF's properties and links as well as its visible pages.

\section{Metadata for Publisher Production}
If you are preparing your article for publisher production, select \texttt{published} mode in the first line of your document and enter the required metadata commands into the preamble, before the document begins. Entering publication metadata alone does not activate published mode:
\begin{verbatim}
\documentclass[published]{philphys}
\title{Article Title}
\popabstract{A concise abstract.}
\popauthor{Author Name}{Department, Institution,
  City, Country}{}
\poprunningauthor{Surname}
\popcorrespondingauthor{Author Name}
\popcorrespondingauthoremail{author@example.com}
\popcorrespondingauthoraddress{Line 1\\Line 2}
\poptocite{Surname, Firstname. 2026.
  ``Article Title.'' Unpublished Manuscript.}
\popacknowledgements{}
\popcompetinginterests{A suitable declaration.}
\keywords{keyword one, keyword two}
\end{verbatim}
Repeat the author command for each author. Its third argument is an ORCID identifier, such as \texttt{0000-0002-1825-0097}, or empty braces if none is supplied. Enter real names in normal capitalization: the class uppercases them on the title page and preserves them in affiliations. Use a surname, two surnames, or a first surname followed by ``et al.'' for the running head. Acknowledgements are optional. Complete the competing-interests statement for a named article; this class does not check the substance of declarations.

Publisher production also requires the following to be filled, though authors need not:
\begin{verbatim}
\popdoi{10.31389/pop.000}
\popsubmitted{01 January 2026}
\popaccepted{01 February 2026}
\poppublished{01 March 2026}
\popcopyrightyear{2026}
\end{verbatim}
The class DOI field takes a bare identifier; the bibliography DOI field also accepts resolver URLs. Replace the citation field with the final journal citation, volume/issue, article number, page range, and DOI. The copyright year defaults to the year of compilation. Keywords are added to published PDF metadata and are never printed. The class prints the journal's article copyright and licence statement in named modes. This statement applies to article content; the \texttt{philphys} package and this manual are distributed under LPPL 1.3c or any later version, as detailed in \texttt{LICENSE.txt}.

\section{Packages and Mathematics}
The class loads a number of packages automatically. These include:
\begin{itemize}
  \item Layout: \texttt{geometry}, \texttt{calc}, \texttt{adjustbox}, \texttt{changepage}, and \texttt{enumitem}.
  \item Text and mathematics: \texttt{fontenc}, \texttt{inputenc}, \texttt{stix2}, and \texttt{setspace}.
  \item Graphics and tables: \texttt{xcolor}, \texttt{tikz}, \texttt{graphicx}, and \texttt{booktabs}.
  \item Headings and captions: \texttt{fancyhdr}, \texttt{titlesec}, \texttt{caption}, and \texttt{sidecap}.
  \item Citations and links: \texttt{natbib}, \texttt{url}, and \texttt{hyperref}.
  \item Utilities: \texttt{ifthen}, \texttt{etoolbox}, \texttt{xstring}, \texttt{zref-savepos}, and \texttt{zref-abspage}.
\end{itemize}
Published mode also loads \texttt{hyperxmp}.
Avoid reloading these with conflicting options. STIX supplies AMS symbols
and alphabets such as $\mathbb{R}$. As a result, \texttt{amssymb} and \texttt{amsfonts}
are unnecessary and do not need to be loaded: their alphabets are already supplied by STIX.

Load \texttt{amsmath} yourself for \texttt{align} and equation references,
as in the template and this guide. Standard section, subsection, label,
reference, and footnote commands work normally. For example,
Section~\ref{sec:files} refers to a section label. An equation can be written like this:
\begin{equation}\label{eq:einstein}
 G_{ab}+\Lambda g_{ab}=\frac{8\pi G}{c^4}T_{ab}.
\end{equation}
Use \verb|Equation~\eqref{eq:einstein}| to print Equation~\eqref{eq:einstein}. You can also write multi-line equations like so:
\begin{align}
 F_{\mu\nu}&=\partial_\mu A_\nu-\partial_\nu A_\mu
                 +[A_\mu,A_\nu],\\
 D_{[\lambda}F_{\mu\nu]}&=0.
\end{align}
Footnotes use the ordinary \verb|\footnote| command.\footnote{Here is an example footnote.}

\section{Figures and Tables}
The journal \emph{Philosophy of Physics} places figure captions in the right margin. This requires a special environment for tables and graphics called \texttt{SCtable} and \texttt{SCfigure}, respectively. These are defined in the \texttt{sidecap} package, which \path{philphys.cls} loads automatically.

\subsection{Figures}

Instead of the ordinary \texttt{figure} environment, use \texttt{SCfigure}. Here is an example that draws an image of a black hole diagram using tikz:
\begin{verbatim}
\begin{SCfigure}[1][htb]
  \begin{tikzpicture}[scale=0.4]
    \draw (0,1) -- (0,-8) -- node[midway,right]
      {\scriptsize $\mathscr{I}^-$} (8,0) --  node[midway,right]
      {\scriptsize $\mathscr{I}^+$} (4,4) -- (4,1);
    \draw[decorate,decoration={snake,
      segment length=6pt, amplitude=2pt}]
      (0,1) -- (4,1);
  \draw[densely dotted] (4,1) -- (0,-3);
  \end{tikzpicture}
  \caption{Explain the figure.}\label{fig:example}
\end{SCfigure}
\end{verbatim}
The second optional argument, \texttt{htb}, permits LaTeX to place the image \textbf{h}ere, at the \textbf{t}op, or at the \textbf{b}ottom of the page; the order of these letters does not establish placement priority. The first optional argument is a caption-width ratio used by \texttt{sidecap}, but this class overrides it to give captions a fixed width in the right margin. As with equations, we refer to it using \verb|Figure~\ref{fig:example}|, which prints Figure \ref{fig:example}. If you do not want to use tikz to create a diagram, you can also load an external diagram by replacing \verb|\begin{tikzpicture}...| \verb|\end{tikzpicture}| with \verb|\includegraphics{your-figure.pdf}|.

\begin{SCfigure}[1][htb]
  \begin{tikzpicture}[scale=0.4]
  \draw (0,1) -- (0,-8) -- node[midway,right] {\scriptsize $\mathscr{I}^-$} (8,0) --  node[midway,right] {\scriptsize $\mathscr{I}^+$} (4,4) -- (4,1);
  \draw[decorate,decoration={snake, segment length=6pt, amplitude=2pt}] (0,1) -- (4,1);
  \draw[densely dotted] (4,1) -- (0,-3);
\end{tikzpicture}
  \caption{Conformal diagram of a black hole.}\label{fig:example}
\end{SCfigure}

\subsection{Tables}

Instead of the ordinary \texttt{table} environment, use \texttt{SCtable} like so:

\begin{verbatim}
\begin{SCtable}[1][htb]
    \begin{tabular}{lr}
      \toprule
      \textbf{Name} & \textbf{Constant}\\
      \midrule
      Fine-structure constant & $\alpha$\\
      \midrule
      Proton-Electron Mass Ratio & $\beta$\\
      \midrule
      Gravitational-Electrostatic Coupling & $\alpha_G$\\
      \bottomrule
    \end{tabular}
    \caption{Some dimensionless constants of nature.}
    \label{tab:constants}
  \end{SCtable}
\end{verbatim}

Table \ref{tab:constants} is an example. The \texttt{booktabs} package is automatically loaded to allow use of the journal's \texttt{toprule} and \texttt{bottomrule} style.

\begin{SCtable}[1][htb]
    \begin{tabular}{lr}
      \toprule
      \textbf{Name} & \textbf{Constant}\\
      \midrule
      Fine-structure constant & $\alpha$\\
      \midrule
      Proton-Electron Mass Ratio & $\beta$\\
      \midrule
      Gravitational-Electrostatic Coupling & $\alpha_G$\\
      \bottomrule
    \end{tabular}
    \caption{Some dimensionless constants of nature.}
    \label{tab:constants}
  \end{SCtable}

\section{Citations and Bibliographies}
The journal \emph{Philosophy of Physics} uses a variation of Glenn Paulley's \texttt{chicago.bst} version 4 (1992-08-28) with author--year citations. The \texttt{natbib} package is automatically called, so please use \verb|\citet| for a name within a sentence, as in \citet{weyl1918}, and \verb|\citep| for a parenthetical citation \citep{thirring1918}. You can write \verb|\citep[cf.][204]{thirring1918}| to include a page number and/or comment, which produces \citep[cf.][204]{thirring1918}. Three or more authors are abbreviated to ``et al.''; starred commands such as \verb|\citet*| print the full list. See the \texttt{natbib} documentation at \url{https://ctan.org/pkg/natbib} for more options.

Use the external BibTeX file \path{philphys-sample-bibliography.bib} for your references, replacing its sample entries with your own. Load it with the \texttt{philphys} bibliography style as follows:
\begin{verbatim}
\bibliographystyle{philphys}
\bibliography{philphys-sample-bibliography}
\end{verbatim}
For most users this is all that you need. Further supported fields and fallback conventions are documented in the ReadMe for the bibliography style, \path{philphys-bst-readme.md}.

Your \texttt{.bib} file can use all the standard BibTeX conventions. The style file will format the bibliography automatically in the journal's style and automatically leaves out any references that are not used. As usual, you can use TeX accents and protect capitalisation and names with curly brackets. For example, you can write \verb|Benito Antonio {Mart\'inez Ocasio}| to treat `Benito Antonio' as given names and `Mart\'inez Ocasio' as surnames. DOIs and URLs are plain field values, without a surrounding URL command. The style preserves distinct URLs and DOI links and suppresses duplicate DOI resolver URLs. The class controls layout; the bibliography style controls reference text and punctuation.

It is often convenient to convert your externally-generated bibliography into an \emph{internal bibliography}. This guide illustrates what that looks like below. To create your own internal bibliography, follow these steps:
\begin{enumerate}
  \item Compile from an external bibliography
  \item Confirm it looks the way you want
  \item Open the auxiliary \texttt{.bbl} file and copy its contents
  \item Paste those contents at the end of your document above the external bibliography code, and delete or comment-out the external bibliography.
\end{enumerate}
When you make an internal bibliography, it is wise to keep the original \texttt{.bib} file for later edits such as revisions in response to referees. To switch back, remove the pasted bibliography and restore the two external bibliography commands described above.

\section{Back Matter and Submission Checklist}
Place \verb|\popbackmatter| after the conclusion and before the bibliography. The other two modes print acknowledgements when nonempty, competing interests, and affiliations supplied with the author commands. Blind review suppresses this entire block.

Before submission, please make sure you do the following:
\begin{enumerate}
\item Use \texttt{blindreview}, with an appropriate title and abstract.
\item Replace \path{philphys-template.tex} prose, equations, citations, and sample references with your own.
\item Resolve any undefined references and citations, and check overfull boxes.
\item Make sure your document compiles without errors or warnings. 
\item Confirm you are a member of the Philosophy of Physics Society. You can sign up or check your status by logging in at \url{https://philosophyofphysics.org/}. Society membership is required for submission to \emph{Philosophy of Physics}.
\end{enumerate}

\popbackmatter

% Internal bibliography below created by compiling an external bibliography and then pasting the contents of the .bbl file below.
\begin{thebibliography}{}
\urlstyle{same}
\bibitem[\protect\citeauthoryear{Thirring}{Thirring}{1918}]{thirring1918}
\textbf{Thirring, H.} 1918.
\newblock ``{\"U}ber die formale Analogie zwischen den elektromagnetischen
  Grundgleichungen und den Einsteinschen Gravitationsgleichungen erster
  N{\"a}herung.''
\newblock {\em Physikalische Zeitschrift} 19: 204--205.
\bibitem[\protect\citeauthoryear{Weyl}{Weyl}{1918}]{weyl1918}
\textbf{Weyl, H.} 1918.
\newblock ``Gravitation und Elektrizit{\"a}t.''
\newblock {\em Sitzungsberichte der K{\"o}niglich Preussischen Akademie der
  Wissenschaften} 1 (I--XXXII): 465--480.
\newblock \url{https://www.biodiversitylibrary.org/item/126468#page/537/}.
\end{thebibliography}

% To use an external bibliography, delete the above and uncomment the following:
%\bibliographystyle{philphys}
%\bibliography{philphys-sample-bibliography}
\poplastpagefooter
\end{document}
