Debian Codegraph @

texmf-dist/doc/latex/hepnames/hepnames.tex

raw
1 \documentclass[12pt]{scrartcl}
2 \usepackage{maybemath,xspace,setspace,fancyvrb,fancybox}
3 \usepackage{a4wide,multicol,url,relsize,underscore}
4 \usepackage{xcolor,braket,amsmath}
5 \usepackage[colorlinks=true,bookmarks=true]{hyperref}
6 \usepackage{hepnames}
7
8 \onehalfspacing
9 \DefineShortVerb{\|}
10 \setlength{\fboxsep}{10pt}
11 \addtolength{\fboxrule}{0.6\fboxrule}
12
13 %% Bold tt font
14 \DeclareFontShape{OT1}{cmtt}{bx}{n}{<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>cmttb10}{}
15
16 \newcommand{\texcmd}[1]{\textcolor{red}{\texttt{\char`\\#1}}}
17 \newcommand{\texenv}[1]{\textcolor{red}{\texttt{#1}}}
18 \newcommand{\texopt}[1]{\textcolor{purple}{\texttt{#1}}}
19 \newcommand{\texopts}[1]{\textcolor{purple}{\texttt{[#1]}}}
20 \newcommand{\texarg}[1]{\textcolor{violet}{\texttt{#1}}}
21 \newcommand{\texargs}[1]{\textcolor{violet}{\texttt{\{#1\}}}}
22 \newcommand{\texpkg}[1]{\texttt{#1}}
23 \newcommand{\texcls}[1]{\texttt{#1}}
24 \newcommand{\gen}[1]{\ensuremath{\braket{#1}}}
25 \newcommand{\texcommand}[1]{\texcmd{#1}}
26 \newcommand{\texoption}[1]{\texopt{#1}}
27 \newenvironment{snippet}{\Verbatim}{\endVerbatim}
28
29 \DeclareRobustCommand{\hepparticles}{\texpkg{hepparticles}\xspace}
30 \DeclareRobustCommand{\hepnames}{\texpkg{hepnames}\xspace}
31 \DeclareRobustCommand{\heppennames}{\texpkg{heppennames}\xspace}
32 \DeclareRobustCommand{\hepnicenames}{\texpkg{hepnicenames}\xspace}
33 \author{Andy Buckley, \texttt{[email protected]}}
34 \title{The \hepnames packages for \LaTeX}
35
36 \begin{document}
37 {\sf \maketitle}
38 %\maketitle
39
40 \begin{abstract}
41 The \hepnames, \heppennames and \hepnicenames packages provide a large, though
42 not entirely comprehensive, library of established high-energy particle
43 names. These are flexibly typeset using the \hepparticles package, which
44 gracefully adapts the particle typesetting depending on context.
45
46 \heppennames re-implements and augments the particle entity notation scheme
47 (PEN) using \hepparticles macros; \hepnicenames uses an alternative, more
48 intuitive macro naming scheme to access the simple subset of PEN symbols; and
49 \hepnames is a convenience interface to both notations simultaneously.
50
51 Several missing particles have been implemented to augment the naming
52 scheme. As well as distinct particle states that were missing in the original
53 implementation, alternative representations and ``simple forms'' of existing
54 PEN states have been added, occasionally with minimal renaming.
55
56 Particle names not in this scheme can be easily implemented using
57 \hepparticles. Contributions to the package, including requests, are of course
58 encouraged.
59 \end{abstract}
60
61
62 \section{Introduction}
63 \hepnicenames provides a less formally prescribed but more ``natural language''
64 set of macro names to access the particle names. Listings of macro-to-particle
65 mappings can be found in the accompanying \texttt{heppennames} and
66 \texttt{hepnicenames} PDF and PS files and in this document. All of the macros
67 can be used both in and out of math mode. Unlisted particles can be easily
68 implemented using \hepparticles directly: please contact the author if you find
69 a missing state, so it can be added to the library.
70
71
72 \section{Package options}
73 Both \heppennames and \hepnicenames support the \hepparticles options, simply
74 passing those options to \hepparticles. Loading more than one of the packages
75 with contradictory options has undefined behaviour, at least as far as the author
76 is concerned! For your convenience, the \hepparticles options documentation is
77 repeated below:
78
79 By request, the package now typesets particles in italic as well as upright
80 convention. The choice of convention can be made when the package is loaded with
81 the \texopt{italic} and \texopt{notitalic} options, e.g.
82 \texcmd{usepackage\texopts{italic}\texargs{hepnames}}. The default mode is
83 upright (i.e. \texopt{notitalic}).
84
85 In addition, the \texopt{forceit} option will force \emph{everything} in
86 particle names to be italic, even if they aren't normally italic in math mode
87 (such as Arabic numerals). Note that the italic font that will appear here is
88 that used by \texcmd{mathit} and so will appear more script-like than normal
89 math mode. I can't say that I recommend using this option, but it's there for
90 flexibility's sake.
91
92 Finally, a pair of options, \texopt{maybess} and \texopt{noss}, are available:
93 using \texopt{maybess} will allow particle names to be typeset in sans-serif if
94 the surrounding context is sans-serif and \texopt{noss} has the converse effect.
95 Note that since there is no italic sans-serif math font in LaTeX, generic
96 particle names will not be typeset in italic sans font. Maybe this behaviour
97 will change in future if there's lots of enthusiasm for a fix. However, it looks
98 pretty good at the moment and I suspect most people will want sans-serif
99 particle names in sans documents, so \texopt{maybess} is set by default.
100
101
102 \section{Installation}
103 \textbf{Requirements:} You will need to be using a \LaTeXe{} system, and
104 have installed copies of the \hepparticles package and the \texpkg{maybemath}
105 package on which it depends.
106
107 To install, simply copy the \texttt{hep*names.sty} files into a location in
108 your \texttt{LATEXINPUTS} path. Tada!
109
110 Now we move on to the lists of macro names in the \hepnicenames and \heppennames
111 schemes. I'm taken the liberty of placing the \hepnicenames macros first, since
112 for most purposes they're more intuitive, memorable and (dare I say it?) modern
113 than the PEN codes.
114
115
116 \section{\hepnicenames macros}
117 The scheme for the naming of these macros is less rigorous than PEN, but is still
118 largely prescribed. The main features of the ``nicename'' macro naming scheme are:
119 %
120 \begin{itemize}
121 \item All particle macros start with \texcmd{P}, all antiparticle macros with
122 \texcmd{AP}. In some cases, such as the positron, both \texcmd{Ppositron} and
123 \texcmd{APelectron} are provided for the \Ppositron symbol, so as not to
124 surprise the user.
125 \item The core of the name is the particle type name in natural language and
126 appropriately capitalised, e.g. \texttt{B}, \texttt{Lambda} etc.
127 \item The optional end part of the command usually specifies the super- or
128 sub-script state qualifier, e.g. \texcmd{PBplus} for the \PBplus symbol,
129 \texcmd{PZzero} for a \PZ with an explicit superscript zero. The ``zero'',
130 ``plus'', ``minus'' and ``pm''/``mp'' strings (for $\pm$ or $\mp$
131 respectively) are implemented for every state for which they are possible.
132 \end{itemize}
133 %
134 To combine particle sybol macros in reaction expressions, you should use the
135 \hepparticles \texcmd{HepProcess} macro, which groups particles together with
136 nice spacings, including a re-defined \texcmd{to} macro.
137 %
138 Complex PEN-specified particles (essentially, the set of excited states with
139 resonance qualifiers) have not been implemented in the ``nicenames'' scheme. A
140 prime motivation for this is that \LaTeX{} does not support numbers in macro
141 names: spelling the resonance mass numbers out as words would be lengthy and
142 ridiculous, so the PEN scheme is pretty much as easy to remember as any other in
143 my opinion. Okay, that's not quite true: ``nicenames'' macros with the ``i, ii,
144 iii''/``a, b, c'' suffixes would probably be easier, but unless there's demand
145 for that feature, I can't be bothered implementing it!
146
147 \input{hepnicenames-macros}
148
149 \clearpage
150
151 \section{\heppennames macros}
152 \heppennames re-implements and augments the particles in the particle entity
153 notation (PEN) scheme, specifically the \texttt{pennames.sty} \LaTeX{} style.
154 In several cases, simplified forms of the original PEN macros (e.g. \PZzero's
155 without the superscript zero, \PJgyi without the resonance specifier\dots) have
156 been provided. Where this is the case, the PEN notation has usually been changed
157 to make the simpler form of the symbol correspond to the simplest macro name.
158 \input{heppennames-macros}
159
160 \vspace{1cm}
161 \noindent
162 \textbf{Any feedback is appreciated! Email it to \texttt{[email protected]}, please.}
163 \newline\newline
164 In particular, if you find that a particle name is missing, please let me know,
165 preferably with a recommended pair of macro names (for the PEN and ``nice'' names)
166 and a description of how it should by typeset. The best form is to give me an
167 implementation in terms of the \hepparticles macros, of course!
168
169 \end{document}