source: trunk/ePubTk/pubBuilder/config/lrlr/epubtkreferee.sty @ 2906

Revision 2906, 3.1 KB checked in by fschulz, 4 years ago (diff)

pubBuilder: header and footer of referee copy

  • Property svn:executable set to *
Line 
1\setlength{\textwidth}{15.0cm}
2
3\usepackage[resetfonts]{cmap}
4
5\usepackage{fancyvrb}
6
7\newcommand{\epubtkAuthorData}[4]{
8 #1\\
9  \parbox\linewidth{
10    \center\vspace{-3mm}\footnotesize
11    #2\\
12    email: #3
13    \def\argb{#4}
14    \def\empty{}
15    \ifx\argb\empty
16    \else
17    \\
18    \url{#4}
19    \fi
20  }
21  \vspace{1mm}
22}
23
24\newcommand{\epubtkUpdateInfo}[1][]{}
25\newcommand{\epubtkMovie}[3]{#3}
26\newcommand{\epubtkImage}[2]{#2}
27\newcommand{\epubtkVerbatimFile}[2]{%
28\def\argb{#2}
29\def\empty{}
30\ifx\argb\empty
31\fvset{frame=single,fontsize=\small,numbers=left,label=#1}
32\VerbatimInput{#1}
33\else
34\begin{center}
35 \framebox[1.1\width]{#2}
36\end{center}
37\fi}
38\newcommand{\epubtkFootnote}[2][default]{\footnote{\ #2}}
39\newcommand{\epubtkDesc}[3]{#2\footnote{#3}}
40\newcommand{\epubtkKeywords}[1]{}
41\newcommand{\epubtkSubject}[1]{}
42
43\usepackage{fancyhdr}
44\pagestyle{fancyplain}
45
46\newcommand{\headerauthor}{\epubtkDocAuthorNames}
47\newcommand{\headertitle}{\epubtkDocTitle}
48\newcommand{\bodyfooter}{%
49\textit{\epubtkData{JRN}{//general/name}}\\
50\url{http://\epubtkData{JRN}{//general/subdomain}.\epubtkData{JRN}{//family/domain}/}}
51
52\newcommand{\titleheader}{%
53{\footnotesize \tt Submitted to \epubtkData{JRN}{//general/name} \\
54\url{http://\epubtkData{JRN}{//general/subdomain}.\epubtkData{JRN}{//family/domain}}}
55\rule{\textwidth}{0.5pt}
56}
57
58\newcommand{\titlefooter}{%
59\vspace{-0.5cm}\rule{\textwidth}{0.5pt}\\
60{\footnotesize \tt Preprint version for refereeing. For further information please contact \\
61\epubtkData{JRN}{//contact/email}.}}
62
63\lhead[\fancyplain{}{\thepage}]{\fancyplain{}{\headertitle}}
64\chead[]{\fancyplain{\titleheader}{}}
65\rhead[\fancyplain{}{\headerauthor}]{\fancyplain{}{\thepage}}
66\lfoot[\fancyplain{}{\bodyfooter}]{}
67\cfoot[]{\fancyplain{\titlefooter}{}}
68\rfoot[]{\fancyplain{}{\bodyfooter}}
69
70\renewcommand{\headrulewidth}{0.5pt}
71\renewcommand{\footrulewidth}{0.5pt}
72\renewcommand{\plainheadrulewidth}{0.0pt}
73\renewcommand{\plainfootrulewidth}{0.0pt}
74
75% LivRev superscript and subscript macros
76\def\getfirst#1#2STOP{#1}%
77\DeclareRobustCommand*\super[1]{%
78\edef\tmpx{\getfirst#1STOP}%
79\def\tmpy{-}%
80\ifx\tmpx\tmpy
81\textsuperscript{-#1}%
82\else
83\textsuperscript{#1}%
84\fi
85}%
86\DeclareRobustCommand*\sub[1]{%
87\edef\tmpx{\getfirst#1STOP}%
88\def\tmpy{-}%
89\ifx\tmpx\tmpy
90\@sub{\selectfont-#1}%
91\else
92\@sub{\selectfont#1}%
93\fi
94}%
95\def\@sub#1{{\m@th\ensuremath{_{\mbox{\fontsize\sf@size\z@#1}}}}}
96
97% package to format captions of figures and tables
98\usepackage[font=small,labelfont=bf]{caption}
99
100% setup the style of the backrefs from the bibliography
101\newcommand{\backrefnotcitedstring}{\relax} %(Not cited.)
102\newcommand{\backrefcitedsinglestring}[1]{(Cited on page~#1.)}
103\newcommand{\backrefcitedmultistring}[1]{(Cited on pages~#1.)}
104
105\RequirePackage[hyperpageref]{backref} % to be loaded after hyperref package
106   \renewcommand{\backreftwosep}{ and~} % seperate 2 pages
107   \renewcommand{\backreflastsep}{, and~} % seperate last of longer list
108   \renewcommand*{\backref}[1]{}  % Disable standard
109   \renewcommand*{\backrefalt}[4]{% Detailed backref
110      \ifcase #1 %
111         \backrefnotcitedstring%
112      \or
113         \backrefcitedsinglestring{#2}%
114      \else
115         \backrefcitedmultistring{#2}%
116      \fi}
Note: See TracBrowser for help on using the repository browser.