-
Notifications
You must be signed in to change notification settings - Fork 0
/
origpub.sty
42 lines (36 loc) · 1.27 KB
/
origpub.sty
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
%%
%% This is file `origpub.sty'. It handles the latex portions of extracting
%% Original Publications. Other pieces of the puzzle may be found
%% in the Makefile and the utilities directory.
%%
%% \OriginallyPublished{tag}{sec:label}{title}{publication name}{citation}
%% \ListOriginalPublications -- to dump list of original publications.
%% \ContributedBy{tag}{fig:label}{artist}
%% \ListContributions -- to dump list of contributions
%%
%% Copyright (C) IBM Corporation, 2008-2019
%% Copyright (C) Facebook, 2019
%%
%% Authors: Paul E. McKenney <paulmck@kernel.org>
\newcommand{\OriginallyPublished}[4]{}
\newcommand{\RangeOriginallyPublished}[5]{}
\newcommand{\ListOriginalPublications}{
\begin{enumerate}
\input{origpub}
\end{enumerate}}
\newcommand{\ContributedBy}[2]{\label{#1}}
\newcommand{\QContributedBy}[2]{}
\newcommand{\ListContributions}{
\begin{enumerate}
\input{contrib}
\end{enumerate}}
%% Internal interfaces generated by scripts.
\newcommand{\OrigPubItem}[4]{
\item \Cref{#1} (``#2'') on page~\pageref{#1}
originally appeared in #3~\cite{#4}.}
\newcommand{\RangeOrigPub}[5]{
\item \Cref{#1}--\ref{#2} (``#3'')
on pages~\pageref{#1}--\pageref{#2}
originally appeared in #4~\cite{#5}.}
\newcommand{\ContribItem}[2]{
\item \Cref{#1} (p~\pageref{#1}) by #2.}