Loading Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ PRICE = 90000 # pages rounded up to 4, last page empty. PRINTING = "Punchy Printing" OPTIONS = 6.14x9.21,2004,tip,tipno,leo,isbn,bnw OPTIONS = 6.14x9.21,2004,tip,tipno,leo,isbn LANG = american LINKCOLOR = blue # for a printed version, use Loading chapter5.tex +4 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,10 @@ glance. A well-organized book is easy to read. A badly organized book makes comprehension more difficult, and makes finding information later on nearly impossible. \begin{tfnote}{Bernd Paysan} This chapter needs to focus more on files than on screens \end{tfnote} \wepsfigp{fig5-1}{I still don't see how these programming conventions enhance readability.} Loading tf.sty +37 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,7 @@ footskip=0.5in,marginparwidth=0.6in,marginparsep=0.1in}} %% TIP environment \newcounter{tipc}[chapter] \newcounter{notec}[chapter] \def\tipno{\thechapter.\arabic{tipc}} Loading Loading @@ -335,6 +336,42 @@ shadowcolor=lightgrey,shadowsize=3pt,blur=true]{\unhbox\@tempboxa}% \endlist } %% ``Post-it note'' \newrgbcolor{lightyellow}{1 1 .4} \def\notebox{\@tempdima\ht\@tempboxa\@tempdimb\dp\@tempboxa \advance\@tempdimb\ht\@tempboxa \hbox to \linewidth{\leavevmode% \ifodd\hypergetpageref{note-\thechapter.\arabic{notec}}% \else\hss\hbox{\hss \vbox to \@tempdima{\vss}~}\fi \psshadowbox[fillcolor=lightyellow, cornersize=absolute,linearc=1.5ex,framesep=1.5ex,boxsep=false, linecolor=midgreen,linewidth=0.3pt, shadowcolor=lightgrey,shadowsize=3pt,blur=true]{\unhbox\@tempboxa}% \ifodd\hypergetpageref{note-\thechapter.\arabic{notec}}% ~\vbox to \@tempdima{% vss}\hss% \else \hbox to 2.5em{\hss}% \fi } } \newenvironment{tfnote}[1]{ \list{}{\listparindent 0pt\itemindent 0pt} \item\relax \stepcounter{notec}% \setbox\@tempboxa\hbox\bgroup\begin{minipage}[t]{\linewidth} {\sc Note from #1}\par\medskip\small }{\par \end{minipage}\egroup% \leavevmode\label{note-\thechapter.\arabic{notec}}% \notebox \endlist } %\newenvironment{tip}{\list{}{ %\parsep\z@ \@plus\p@\small}% %\samepage\setlength{\@topsep}{2pt}% Loading Loading
Makefile +1 −1 Original line number Diff line number Diff line Loading @@ -66,7 +66,7 @@ PRICE = 90000 # pages rounded up to 4, last page empty. PRINTING = "Punchy Printing" OPTIONS = 6.14x9.21,2004,tip,tipno,leo,isbn,bnw OPTIONS = 6.14x9.21,2004,tip,tipno,leo,isbn LANG = american LINKCOLOR = blue # for a printed version, use Loading
chapter5.tex +4 −0 Original line number Diff line number Diff line Loading @@ -48,6 +48,10 @@ glance. A well-organized book is easy to read. A badly organized book makes comprehension more difficult, and makes finding information later on nearly impossible. \begin{tfnote}{Bernd Paysan} This chapter needs to focus more on files than on screens \end{tfnote} \wepsfigp{fig5-1}{I still don't see how these programming conventions enhance readability.} Loading
tf.sty +37 −0 Original line number Diff line number Diff line Loading @@ -278,6 +278,7 @@ footskip=0.5in,marginparwidth=0.6in,marginparsep=0.1in}} %% TIP environment \newcounter{tipc}[chapter] \newcounter{notec}[chapter] \def\tipno{\thechapter.\arabic{tipc}} Loading Loading @@ -335,6 +336,42 @@ shadowcolor=lightgrey,shadowsize=3pt,blur=true]{\unhbox\@tempboxa}% \endlist } %% ``Post-it note'' \newrgbcolor{lightyellow}{1 1 .4} \def\notebox{\@tempdima\ht\@tempboxa\@tempdimb\dp\@tempboxa \advance\@tempdimb\ht\@tempboxa \hbox to \linewidth{\leavevmode% \ifodd\hypergetpageref{note-\thechapter.\arabic{notec}}% \else\hss\hbox{\hss \vbox to \@tempdima{\vss}~}\fi \psshadowbox[fillcolor=lightyellow, cornersize=absolute,linearc=1.5ex,framesep=1.5ex,boxsep=false, linecolor=midgreen,linewidth=0.3pt, shadowcolor=lightgrey,shadowsize=3pt,blur=true]{\unhbox\@tempboxa}% \ifodd\hypergetpageref{note-\thechapter.\arabic{notec}}% ~\vbox to \@tempdima{% vss}\hss% \else \hbox to 2.5em{\hss}% \fi } } \newenvironment{tfnote}[1]{ \list{}{\listparindent 0pt\itemindent 0pt} \item\relax \stepcounter{notec}% \setbox\@tempboxa\hbox\bgroup\begin{minipage}[t]{\linewidth} {\sc Note from #1}\par\medskip\small }{\par \end{minipage}\egroup% \leavevmode\label{note-\thechapter.\arabic{notec}}% \notebox \endlist } %\newenvironment{tip}{\list{}{ %\parsep\z@ \@plus\p@\small}% %\samepage\setlength{\@topsep}{2pt}% Loading