You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

256 lines
7.3 KiB

  1. % NTU News Lab Cover style
  2. % Extended from UC CS REPORT COVER STYLE
  3. % Provides a command, \makecover, that produces a UC CS technical report
  4. % cover (complete with campanile logo), and then resets the page number.
  5. % Copyright (C) 1993, 1994 by Paul N. Hilfinger. All rights reserved.
  6. % Permission to copy this file and use after suitable modification is granted,
  7. % provided that this notice be retained on the copy and that no change is
  8. % made to the format of the text of the report number without the author's
  9. % permission.
  10. % To use:
  11. %
  12. % 1. Include ntu_techrpt_cover as a style parameter in the \documentstyle
  13. % command.
  14. % 2. Use the declarations \author, \title, \reportmonth,
  15. % \reportyear, and \reportnumber to supply the necessary
  16. %information for the cover. These declarations
  17. % typically go in the prelude. For example,
  18. %
  19. % \author{P. N. Hilfinger}
  20. % \title{LaTeX: Threat or Menace?}
  21. % \reportmonth{April}
  22. % \reportyear{1993}
  23. % \reportnumber{42}
  24. %
  25. % You may also leave off \reportyear and \reportmonth, and put the
  26. %entire report designation in \reportnumber. This use is deprecated,
  27. %but retained for backwards compatibility. For example,
  28. % \author{P. N. Hilfinger}
  29. % \title{LaTeX: Threat or Menace?}
  30. % \date{April 1993}
  31. % \reportnumber{93-42}
  32. % 3. If you wish to use the ugly official format (with the form
  33. %UCB//CSD-94-nn rather than UCB/CSD-94-nn), include also the
  34. % declaration
  35. % \useuglyformat
  36. % with \title, \reportmonth, etc.
  37. % 4. Put a \makecover command immediately after \begin{document}
  38. %
  39. % This file requires the auxiliary Postscript file coverart.eps.
  40. % TO INSTALL:
  41. % 1. Put coverart.ps in some appropriate directory.
  42. % 2. Change the following declaration to give the right path name (see 1)
  43. % for coverart.eps. This must be a full path name (starting with
  44. % /).
  45. \RequirePackage{graphicx}
  46. \RequirePackage{eso-pic}
  47. %% \RequirePackage{pdfpages}
  48. \newcommand\BackgroundPicObselete{%
  49. \put(-0,0){%
  50. \parbox[b][\paperheight]{\paperwidth}{%
  51. \vfill
  52. \centering
  53. \includegraphics[width=0.80\paperwidth,height=\paperheight,%
  54. keepaspectratio]{figures/coverart}%
  55. %% \includegraphics[width=0.90\paperwidth,height=\paperheight,%
  56. %% keepaspectratio,bb=0 0 560 763]{figures/coverart}%
  57. %% \includepdf[scale=0.90,pagecommand={},pages={-}]{figures/coverart.pdf}%
  58. \vfill
  59. }}}
  60. \newcommand\MyAtPageCenter[1]{\AtPageUpperLeft{%
  61. \put(\LenToUnit{.5\paperwidth},\LenToUnit{-.5\paperheight}){#1}}%
  62. }
  63. \newcommand\BackgroundPic{%
  64. \AtPageCenter{% Picture is centred on page
  65. \makebox[600pt]{% Horizontally centred
  66. \raisebox{-1\height}{% Vertically centred
  67. \includegraphics[scale=1.0]{figures/coverart}}}}}% Actual image
  68. \DeclareOption{letterpaper}{\def\@coverart{\AddToShipoutPictureBG*{\BackgroundPic}}%
  69. \typeout{-- This is defined for letterpaper cover.}}
  70. \DeclareOption{a4paper}{\def\@coverart{\AddToShipoutPictureBG*{\BackgroundPic}}%
  71. \typeout{-- This is defined for a4paper cover.}}
  72. %% \DeclareOption{letterpaper}{\def\@coverart{\special{psfile=figures/coverart.eps %
  73. %% hoffset=-50 voffset=-700 hscale=100 vscale=100}}%
  74. %% \typeout{-- This is defined for letterpaper.}}
  75. %% \DeclareOption{a4paper}{\def\@coverart{\special{psfile=figures/coverart.eps %
  76. %% hoffset=-55 voffset=-740 hscale=100 vscale=100}}%
  77. %% \typeout{-- This is defined for a4paper.}}
  78. % default to A4 paper, 10pt, twocolumn, one sided, final, journal
  79. \ExecuteOptions{a4paper}
  80. % overrride these defaults per user requests
  81. \ProcessOptions
  82. % For a4paper
  83. % \def\@coverart{\special{psfile=figures/coverart.eps hoffset=-55 voffset=-740 hscale=100 vscale=100}}
  84. % For letter
  85. %% \def\@coverart{\special{psfile=figures/coverart.eps hoffset=-50 voffset=-700 hscale=100 vscale=100}}
  86. \def\reportnumber#1{\def\@reportnumber{#1}}
  87. \def\reportmonth#1{\def\@reportmonth{#1}}
  88. \def\reportyear#1{\def\@reportyear{#1}}
  89. \def\email#1{\def\@email{#1}}
  90. \def\@reportnumber{?}
  91. \def\@reportmonth{}
  92. \def\@reportyear{}
  93. \def\@numberformatter{Report No.~NTU/NEWS-\@reportdesignator}
  94. \def\useuglyformat{%
  95. \gdef\@numberformatter{Report No.~NTU//NEWS-\@reportdesignator}%
  96. }
  97. \def\makecover{
  98. \ifx\@empty\@reportyear%
  99. \def\@reportdesignator{\@reportnumber}
  100. \else%
  101. \date{\@reportmonth\ \@reportyear}%
  102. \@tempcnta\@reportyear%
  103. \divide\@tempcnta by 100%
  104. \multiply\@tempcnta by 100%
  105. \@tempcntb\@reportyear%
  106. \advance\@tempcntb-\@tempcnta%
  107. \edef\@reportdesignator{\the\@tempcntb-\@reportnumber}%
  108. \fi
  109. \shipout\vbox to 7true in{
  110. \hsize=7.4375true in\parindent=0.5true in
  111. {\@coverart
  112. \vbox to 1.25true in{\vfil}
  113. \hspace*{-1.0true in}
  114. \noindent\begin{minipage}[t]{6.9375 true in}
  115. \def\thanks##1{\relax}
  116. \LARGE\bf
  117. \begin{center}
  118. \@title
  119. \end{center}
  120. \end{minipage}
  121. \vbox to 0.625true in{\vfil}
  122. % 6.9375
  123. % \noindent\begin{minipage}[t]{6.9375 true in}
  124. % \Large\it
  125. % \begin{center}
  126. % \hspace*{-0.8in}{\lineskip .75em\begin{tabular}[t]{|p{12cm}|}\@author\end{tabular}\par}%
  127. % \end{center}
  128. % \end{minipage}
  129. \hspace*{-1.0true in}
  130. \noindent\begin{minipage}[t][3.3 true in]{6.9375 true in}
  131. \large
  132. \begin{center}
  133. \@author
  134. \end{center}
  135. \end{minipage}
  136. \vfil
  137. \begin{center}
  138. \hspace{-1.25true in}Copyright \copyright \@reportyear, National Taiwan University.
  139. \end{center}
  140. \begin{center}
  141. \hrule width 440pt depth 0.5pt height 1pt
  142. \end{center}
  143. \vspace{2cm}
  144. \hspace*{2.5true in}
  145. \begin{minipage}[t]{3.75in}
  146. \parindent=0pt
  147. {\bf \@numberformatter}
  148. \vspace{1ex}
  149. \noindent \@date
  150. \vspace{14ex}
  151. \small
  152. Wireless Networking and Embedded Systems (NEWS) Group\\
  153. Graduate Institute of Networking and Multimedia \\
  154. Department of Computer Science and Information Engineering \\
  155. National Taiwan University \\
  156. Taipei, Taiwan 106 \\ \\ \\
  157. \end{minipage}
  158. \vspace{14ex}
  159. }}
  160. }
  161. %% \def\makecoverRB{
  162. %% \ifx\@empty\@reportyear%
  163. %% \def\@reportdesignator{\@reportnumber}
  164. %% \else%
  165. %% \date{\@reportmonth\ \@reportyear}%
  166. %% \@tempcnta\@reportyear%
  167. %% \divide\@tempcnta by 100%
  168. %% \multiply\@tempcnta by 100%
  169. %% \@tempcntb\@reportyear%
  170. %% \advance\@tempcntb-\@tempcnta%
  171. %% \edef\@reportdesignator{\the\@tempcntb-\@reportnumber}%
  172. %% \fi
  173. %% \shipout\vbox to 7true in{
  174. %% \hsize=7.4375true in\parindent=0.5true in
  175. %% {\@coverartRB
  176. %% \vbox to 1.25true in{\vfil}
  177. %% \hspace*{-1.0true in}
  178. %% \noindent\begin{minipage}[t]{6.9375 true in}
  179. %% \def\thanks##1{\relax}
  180. %% \LARGE\bf
  181. %% \begin{center}
  182. %% \@title
  183. %% \end{center}
  184. %% \end{minipage}
  185. %% \vbox to 0.625true in{\vfil}
  186. %% % 6.9375
  187. %% % \noindent\begin{minipage}[t]{6.9375 true in}
  188. %% % \Large\it
  189. %% % \begin{center}
  190. %% % \hspace*{-0.8in}{\lineskip .75em\begin{tabular}[t]{|p{12cm}|}\@author\end{tabular}\par}%
  191. %% % \end{center}
  192. %% % \end{minipage}
  193. %% \hspace*{-1.0true in}
  194. %% \noindent\begin{minipage}[t]{6.9375 true in}
  195. %% \large
  196. %% \begin{center}
  197. %% \@author
  198. %% \end{center}
  199. %% \end{minipage}
  200. %% \vfil
  201. %% \begin{center}
  202. %% \hspace{-1.25true in}Copyright \copyright \@reportyear, National Taiwan University.
  203. %% \end{center}
  204. %% \begin{center}
  205. %% \hrule width 440pt depth 0.5pt height 1pt
  206. %% \end{center}
  207. %% \vspace{1cm}
  208. %% \hspace*{2.5true in}
  209. %% \begin{minipage}[t]{3.75in}
  210. %% \parindent=0pt
  211. %% {\bf \@numberformatter}
  212. %% \vspace{1ex}
  213. %% \noindent \@date
  214. %% \vspace{14ex}
  215. %% \small
  216. %% Wireless Networking and Embedded Systems (NEWS) Lab \\
  217. %% Graduate Institute of Networking and Multimedia \\
  218. %% Department of Computer Science and Information Engineering \\
  219. %% National Taiwan University \\
  220. %% Taipei, Taiwan 106
  221. %% \end{minipage}
  222. %% }}
  223. %% }