Skip to content

Commit

Permalink
#11 texpos is back
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed May 22, 2023
1 parent cea5d12 commit 1471d33
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions yb-book.dtx
Expand Up @@ -420,30 +420,32 @@ Hello, world!
% Then, if it's a |draft|, we put a watermark comment:
% \begin{macrocode}
\makeatletter\ifdefined\yb@draft
\RequirePackage{textpos}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\setlength{\headheight}{16pt}
\fancyhf{}
\fancyhead[L,C,LO,CO]{}
\fancyhead[R,RO]{
\begin{textblock}{4}(11.5,1)
\tikz \node [color=gray, rotate=270,font=\ttfamily\scriptsize, text width=5in] at (0,0) {
Copyright \textcopyright{} \the\year{} by \theauthor{}.
All rights reserved. No part of the contents of
this book may be reproduced or transmitted in any
form or by any means without the written permission
of the publisher. This particular manuscript is
printed for \textbf{\thereviewer{}} and may be used only
for one-time review. The manuscript has to be destroyed
after the review.
};
\end{textblock}
}
\fancyfoot[C,CO]{\small\ttfamily
page \#\thepage{} of \pageref{LastPage}}
\RequirePackage[absolute]{textpos}
\TPGrid{16}{16}
\RequirePackage{fancyhdr}
\pagestyle{fancy}
\renewcommand\headrulewidth{0pt}
\renewcommand\footrulewidth{0pt}
\setlength{\headheight}{16pt}
\fancyhf{}
\fancyhead[L,C,LO,CO]{}
\fancyhead[R,RO]{
\begin{textblock}{4}(11.5,1)
\tikz \node [color=gray, rotate=270,
font=\ttfamily\scriptsize, text width=5in] at (0,0) {
Copyright \textcopyright{} \the\year{} by \theauthor{}.
All rights reserved. No part of the contents of
this book may be reproduced or transmitted in any
form or by any means without the written permission
of the publisher. This particular manuscript is
printed for \textbf{\thereviewer{}} and may be used only
for one-time review. The manuscript has to be destroyed
after the review.
};
\end{textblock}
}
\fancyfoot[C,CO,CE]{\small\ttfamily
page \#\thepage{} of \pageref{LastPage}}
\fi\makeatother
% \end{macrocode}

Expand Down

0 comments on commit 1471d33

Please sign in to comment.