summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-02-08 22:19:24 +0000
committerKarl Berry <karl@freefriends.org>2017-02-08 22:19:24 +0000
commit3396e1d4f500a6070e5de215d8b1a55713bb93fe (patch)
treefedb2de5455f852ec901db5fd086fc2c64cf4ac2
parent0726a9b084d3695fb46f8900f66bf6972befd74d (diff)
ycbook (8feb17)
git-svn-id: svn://tug.org/texlive/trunk@43171 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/ycbook/README.md2
-rw-r--r--Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdfbin60367 -> 63043 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex34
-rw-r--r--Master/texmf-dist/tex/latex/ycbook/ycbook.cls86
4 files changed, 110 insertions, 12 deletions
diff --git a/Master/texmf-dist/doc/latex/ycbook/README.md b/Master/texmf-dist/doc/latex/ycbook/README.md
index 3e945534db5..29b45c8bd00 100644
--- a/Master/texmf-dist/doc/latex/ycbook/README.md
+++ b/Master/texmf-dist/doc/latex/ycbook/README.md
@@ -4,7 +4,7 @@ ycbook Latex class
======= ycbook -- A Latex Class for Books and Reports ==========
-Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2016
+Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
This file is part of the ycbook LaTeX2e class.
This work may be distributed and/or modified under the conditions of
diff --git a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
index d4fe9919179..37305295dd0 100644
--- a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
+++ b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
index 6e5735c44dc..4dee0ce0f37 100644
--- a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
+++ b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
@@ -1,6 +1,6 @@
-% ======================================================================
+ % ======================================================================
% ycbook-doc.tex
-% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2016
+% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
%
% This file is part of the ycbook LaTeX2e class.
@@ -26,7 +26,7 @@
%\setsansfont{Fira Sans Book}[BoldFont={FiraSans-Bold},BoldItalicFont={FiraSans-BoldItalic},Scale=.9]
%\setmonofont[Scale=0.8,Color=Teal]{Fira Mono}
\usepackage{tikz}
-\usetikzlibrary{shapes,snakes,shadings,shadows,shapes.geometric,decorations,positioning,arrows,decorations.pathmorphing}
+\usetikzlibrary{shapes,shadings,shadows,shapes.geometric,decorations,positioning,arrows,decorations.pathmorphing}
\usepackage[framemethod=tikz]{mdframed}
\surroundwithmdframed[linecolor=PaleTurquoise,skipabove=10pt,skipbelow=6pt, backgroundcolor=PaleTurquoise!30,roundcorner=6pt
]{verbatim}%roundcorner=10pt,
@@ -107,7 +107,7 @@
%
}
\author{\addfontfeatures{Style=Swash,Contextuals=Swash}\textit{Youssef Cherem}\\ \href{mailto:ycherem@gmail.com}{ycherem@gmail.com}}
-\date{\carimboa\ MMXVI \carimboa\\ \folhawarnocklinhaum% %
+\date{\carimboa\ MMXVII \carimboa\\ \folhawarnocklinhaum% %
}
@@ -217,7 +217,9 @@ apptotikzsetting
\section*{The reasons for this class}
-Although many usual \LaTeX\ packages and classes offer a wide array of solutions for text block and margin specifications, and although some of them, notably Koma\--Script \parencite{koma-script} allow and facilitate the application of ``classical" canons of page construction \parencite{tschichold_form_1991,bringhurst_elements_2013}, one may have several reasons to avoid this aesthetic solution. One reason is that these page construction methods were intended, obviously, for handwritten or printed material. Even assuming the material is to be printed, one reason to find an alternative is economic and environmental: the more paper you print, the more it will cost---both in terms of money and environmental impact. But the user also wishes to avoid a sloppy solution, squeezing as much content as possible onto the page just to save space. The compromise solution would be somewhat closer to what most commercial books look like---without jeopardizing legibility. In fact, it is rare to find a book that looks like it has been laid out according to the ``canons". That is one motive why I find the \texttt{mwcls} classes \parencite{mwcls} useful. Besides, \texttt{mwcls} alternatives for basic classes (\texttt{mwart} for articles, \texttt{mwrep} for reports and \texttt{mwbk} for books) allow the user to easily modify headings, being somewhat more flexible and providing a simpler interface than many classes. The goal was to provide a more user-friendly syntax for some common tweaks and more alternatives to the end-user. (As for the \texttt{mwart} class, I did not find anything to be changed---although the user might adapt some of the options presented in the \texttt{ycbook} class.)
+
+
+Although many usual \LaTeX\ packages and classes offer a wide array of solutions for text block and margin specifications, and although some of them, notably Koma-Script \parencite{koma-script} allow and facilitate the application of “classical” canons of page construction \parencite{tschichold_form_1991,bringhurst_elements_2013}, one may have several reasons to avoid this aesthetic solution. One reason is that these page construction methods were intended, obviously, for handwritten or printed material. Even assuming the material is to be printed, one reason to find an alternative is economic and environmental: the more paper you print, the more it will cost---both in terms of money and environmental impact. But the user also wishes to avoid a sloppy solution, squeezing as much content as possible onto the page just to save space. The compromise solution would be somewhat closer to what most commercial books look like---without jeopardizing legibility. In fact, it is rare to find a book that looks like it has been laid out according to the ``canons". That is one motive why I find the \texttt{mwcls} classes \parencite{mwcls} useful. Besides, \texttt{mwcls} alternatives for basic classes (\texttt{mwart} for articles, \texttt{mwrep} for reports and \texttt{mwbk} for books) allow the user to easily modify headings, being somewhat more flexible and providing a simpler interface than many classes. The goal was to provide a more user-friendly syntax for some common tweaks and more alternatives to the end-user. (As for the \texttt{mwart} class, I did not find anything to be changed---although the user might adapt some of the options presented in the \texttt{ycbook} class.)
@@ -325,8 +327,12 @@ The \texttt{titletoc} package can be used to customize the table of contents. As
-\section{Margin paragraphs and footnotes}
-\option{sansserifnotes} The option \opt{sansserifnotes} changes all footnotes to sans serif.
+\section{Footnotes and margin paragraphs}
+\option{sansserifnotes} The option \opt{sansserifnotes} changes all footnotes to sans serif.
+
+\option{nofootnoterule} The option \opt{nofootnoterule} removes the footnote rule that separates footnotes from the main text.
+
+\option{traditionalfootnote} The option \opt{traditionalfootnote} removes indentation of footnotes and also the wider space between the footnote mark and the footnote text.
You can choose to turn all footnotes into margin notes with the \texttt{footmisc} package:
@@ -336,6 +342,18 @@ You can choose to turn all footnotes into margin notes with the \texttt{footmisc
Margin paragraphs in two-side documents have been somewhat improved, but should not be overindulged. They don't work particularly well in smaller paper formats.
+\section{Other footnote and header options}
+
+If you have ever imagined how to change the color of the header line or the footnote line, two commands are provided: \verb|\coloredheadline{}|\footnote{Colored header lines will only work with the page style \texttt{uheadings} activated.} and\linebreak \verb|\coloredfootline{}|:
+
+\begin{verbatim}
+\coloredheadline{JungleGreen}
+\coloredfootline{Dandelion}
+\pagestyle{uheadings}
+\end{verbatim}
+
+
+
\section{Other options}
All other options from the \texttt{mwcls} classes are available, e.g.:
@@ -381,7 +399,7 @@ It works thus: \verb|\twopagepicture{image place regarding the caption}|\\ \verb
\end{document}
-removed
+%removed
%, so you can do fun things like this to color your header line:
%
%
diff --git a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
index 08e561afccd..3625a740245 100644
--- a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
+++ b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
@@ -1,5 +1,5 @@
%% yc-book.cls
- %% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2016
+ %% Copyright (c) Youssef Cherem <ycherem(at)gmail.com>, 2017
%
% This work may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either version 1.3c
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ycbook}[2016/07/04 ycbook class]
+\ProvidesClass{ycbook}[2017/02/08 ycbook class]
\LoadClassWithOptions{mwbk}
@@ -602,6 +602,61 @@
+%%%%%%%%%%%%%% footnotes %%%%%%%%%%%%%%%%
+
+\DeclareOption{nofootnoterule}{%
+ \renewcommand\footnoterule{}%
+}
+
+\DeclareOption{traditionalfootnote}{%
+ \renewcommand\@makefntext[1]{%
+ \indent\@makefnmark#1}
+}
+
+%\renewcommand\@makefntext[1]{%
+% %\parindent\@parindent
+% \indent
+% \@makefnmark\enspace#1}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+%%% footnotes/thanks in titles
+
+%\renewcommand*\maketitle{\par
+% \begingroup
+% \renewcommand\thefootnote{\@fnsymbol\c@footnote}%
+% % \long\def\@makefntext##1{
+% % \parindent\@parindent
+% % \@textsuperscript{\normalfont\@thefnmark}\enspace##1}%
+% \if@twocolumn
+% \ifnum \col@number=\@ne
+% \@maketitle
+% \else
+% \twocolumn[\@maketitle]%
+% \fi
+% \else
+% \newpage
+% \global\@topnum\z@ % Prevents figures from going at top of page.
+% \@maketitle
+% \fi
+% \thispagestyle{opening}\@thanks
+% \endgroup
+% \setcounter{footnote}{0}%
+% \global\let\thanks\relax
+% \global\let\maketitle\relax
+% \global\let\@maketitle\relax
+% \global\let\@thanks\@empty
+% \global\let\@author\@empty
+% \global\let\@date\@empty
+% \global\let\@title\@empty
+% \global\let\title\relax
+% \global\let\author\relax
+% \global\let\date\relax
+% \global\let\and\relax
+%}
+
+
+%%%%%%%%%%%
\ExecuteOptions{headings,chapterleft}
@@ -906,6 +961,10 @@
+
+
+
+
%%%%%% TWO PAGE PICTURE %%%%%%%%
%%%% from: http://tex.stackexchange.com/questions/23860/how-to-include-a-picture-over-two-pages-left-part-on-left-side-right-on-right
%%% Thanks to Martin Scharrer
@@ -1048,6 +1107,27 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+%LINHA COLORIDA NO CABEÇALHO
+\newcommand{\coloredheadline}[1]{
+ \renewcommand\hf@uheadings{%
+ \def\@oddhead{\vtop{%
+ \hb@xt@\textwidth{%
+ \reset@font{\heading@font\rightmark}\hfil\thepage\strut}%
+ \vskip2pt\color{#1}\hrule\vskip-2.4pt}}%
+ \let\@oddfoot\@empty
+ \def\@evenhead{\vtop{%
+ \hb@xt@\textwidth{%
+ \reset@font\strut\thepage\hfil\heading@font\leftmark}%
+ \vskip2pt\color{#1}\hrule\vskip-2.4pt}}%
+ \let\@evenfoot\@empty
+ }
+}
-
+%LINHA COLORIDA NO RODAPÉ
+\newcommand{\coloredfootline}[1]{
+\renewcommand\footnoterule{%
+ \kern-3\p@
+ {\color{#1}\hrule\@width4pc}
+ \kern2.6\p@}
+}
\endinput