-
Notifications
You must be signed in to change notification settings - Fork 4
/
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 <[email protected]>
\newcommand{\OriginallyPublished}[5]{}
\newcommand{\RangeOriginallyPublished}[6]{}
\newcommand{\ListOriginalPublications}{
\begin{enumerate}
\input{origpub}
\end{enumerate}}
\newcommand{\ContributedBy}[3]{\label{#2}}
\newcommand{\QContributedBy}[3]{}
\newcommand{\ListContributions}{
\begin{enumerate}
\input{contrib}
\end{enumerate}}
%% Internal interfaces generated by scripts.
\newcommand{\OrigPubItem}[5]{
\item #1~\ref{#2} (``#3'') on page~\pageref{#2}
originally appeared in #4~\cite{#5}.}
\newcommand{\RangeOrigPub}[6]{
\item #1~\ref{#2}--\ref{#3} (``#4'')
on pages~\pageref{#2}--\pageref{#2}
originally appeared in #5~\cite{#6}.}
\newcommand{\ContribItem}[3]{
\item #1~\ref{#2} (p~\pageref{#2}) by #3.}