diff options
author | Karl Berry <karl@freefriends.org> | 2016-04-07 20:54:37 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-04-07 20:54:37 +0000 |
commit | d480de3ee81803a63f13526f927c922ca2868055 (patch) | |
tree | a59078f9a660f35de2f43e4abf936a809f18e224 | |
parent | ecd16f26e720c4e19b5548e898fbe990dde82303 (diff) |
ycbook (6apr16)
git-svn-id: svn://tug.org/texlive/trunk@40333 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf | bin | 43769 -> 50155 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex | 82 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/ycbook/ycbook.cls | 2 |
3 files changed, 52 insertions, 32 deletions
diff --git a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf Binary files differindex 19ff9951403..c39aa618beb 100644 --- a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf +++ b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf diff --git a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex index 330fcaa42f1..76c17b760c7 100644 --- a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex +++ b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex @@ -14,14 +14,18 @@ % This work has the LPPL maintenance status "author-maintained". % ====================================================================== -\documentclass[withmarginpar,titleauthor,11pt]{mwart} +\documentclass[withmarginpar,titleauthor,11pt,sfheadings]{mwart} +%\renewcommand{\sectsettings}{\sffamily\bfseries} \usepackage[english]{babel} \usepackage[dvipsnames,svgnames]{xcolor} \usepackage{fontspec} -\setmainfont{Chaparral Pro}%[Numbers=OldStyle] -\setsansfont{Myriad Pro}[Scale=.9] \setmonofont{Myriad Pro}[Scale=.9,Color=Teal]%{Inconsolata}%[Scale=0.9] +\setmainfont{Minion Pro}[Numbers=OldStyle] +\setsansfont{Myriad Pro} \setmonofont{Myriad Pro}[Scale=.9]%{Inconsolata}%[Scale=0.9] +%\setsansfont[Scale=.9]{Fira Sans Book} \setmonofont[Scale=0.8,Color=Teal]{Fira Mono} +\usepackage{tikz} +\usetikzlibrary{shapes,snakes,shadings,shadows,shapes.geometric,decorations,positioning,arrows,decorations.pathmorphing} \usepackage[framemethod=tikz]{mdframed} -\surroundwithmdframed[linecolor=MediumPurple,skipabove=10pt,skipbelow=6pt, backgroundcolor=green!10,roundcorner=6pt +\surroundwithmdframed[linecolor=MediumPurple,skipabove=10pt,skipbelow=6pt, backgroundcolor=Thistle!50,roundcorner=6pt ]{verbatim}%roundcorner=10pt, %MediumSeaGreen %OrangeRed @@ -29,17 +33,17 @@ \usepackage{fancyvrb} \frenchspacing -\SetSectionFormatting{section} -{24pt plus5pt minus2pt} %space before -{\normalfont\centering\scshape\large\ifHeadingNumbered - \HeadingNumber.\enspace\fi - \HeadingText} -{10pt plus3pt}%space after - -\SetSectionFormatting{subsection} -{16pt plus4pt minus2pt} -{\FormatHangHeading{\normalfont\itshape}} -{6pt plus2pt} +%\SetSectionFormatting{section} +%{24pt plus5pt minus2pt} %space before +%{\normalfont\centering\scshape\large\ifHeadingNumbered +% \HeadingNumber.\enspace\fi +% \HeadingText} +%{10pt plus3pt}%space after +% +%\SetSectionFormatting{subsection} +%{16pt plus4pt minus2pt} +%{\FormatHangHeading{\normalfont\itshape}} +%{6pt plus2pt} \usepackage[style=authoryear-icomp]{biblatex} @@ -53,25 +57,41 @@ \newcommand{\option}[1]{\marginpar{\footnotesize \textit{#1}}} -%\newcommand{\opt}[1]{<<\textit{#1}>>} -\newcommand{\opt}[1]{\texttt{#1}} +\newcommand{\opt}[1]{<<\textit{#1}>>} +%\newcommand{\opt}[1]{\texttt{#1}} + +\title{\estrela{ycbook}\\ + \tikz \node[left color=PineGreen,rectangle,remember picture, overlay,rounded corners=3pt] at (0,0) {A versatile and simple book class};\\ + \tikz \draw[teal,remember picture, overlay,thick] (-4.3,0.2) -- (4,0.2); +} +\author{{\rmfamily \addfontfeatures{Style=Swash}Youssef Cherem}\\%\normalfont +\href{mailto:ycherem@gmail.com}{ycherem@gmail.com}} +\date{\rmfamily MMXVI\\ } -\title{\textit{ycbook}\\ A versatile and simple book class} -\author{Youssef Cherem\\\normalfont \href{mailto:ycherem@gmail.com}{ycherem@gmail.com}} -\date{MMXVI} +\usepackage%[headsepline] +{scrlayer-scrpage} +%\addtokomafont{headsepline}{\color{JungleGreen}} %yes, works on other classes as well +\pagestyle{scrheadings} +\clearscrheadfoot +%\chead{} +%\cehead{} +\newcommand{\bola}{\tikz \node [top color=SpringGreen, shading angle=45,circle,drop shadow] at (0,0) {\thepage};} +\cfoot*{\upshape\bfseries\large\sffamily\addfontfeatures{Numbers=Lining}\bola} + +\newcommand{\estrela}[1]{\tikz \node [top color=SpringGreen,star,star points=7] at (0,0) {#1};}%,star point ratio=0.8 % shading angle=45, \begin{document} \maketitle - +\thispagestyle{scrheadings} \begin{abstract} -This class is intended to be an interpretation of the \texttt{mwbk} class from Mar\-cin Woli\'{n}ski's \texttt{mwcls} classes. The \texttt{mwcls} classes are simple, yet powerful and customizable classes that allow the end-user to customize the layout of headers, headings etc. They also have the benefit of being more economic in space than the most common \LaTeX\ classes, while keeping a clear appearance and a smooth flow. +This class is intended to be an interpretation of the \textit{mwbk} class from Mar\-cin Woli\'{n}ski's \textit{mwcls} classes. The \textit{mwcls} classes are simple, yet powerful and customizable classes that allow the end-user to customize the layout of headers, headings etc. They also have the benefit of being more economic in space than the most common \LaTeX\ classes, while keeping a clear appearance and a smooth flow. \end{abstract} \section*{The reasons for this class} -Although many usual \LaTeX\ packages offer a wide array of solutions for text block and margin specifications, and although some of them, notably \textsf{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 aesthetical 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 some alternative classes. All I did was to provide a more user-friendly syntax for some common tweaks and more alternatives to some rather unusual page (numbering) styles available by default in \texttt{mwbk} and \texttt{mwrep}. 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 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 aesthetical 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 \textit{mwcls} classes \parencite{mwcls} useful. Besides, \textit{mwcls} alternatives for basic classes (\textit{mwart} for articles, \textit{mwrep} for reports and \textit{mwbk} for books) allow the user to easily modify headings, being somewhat more flexible and providing a simpler interface than some alternative classes. All I did was to provide a more user-friendly syntax for some common tweaks and more alternatives to some rather unusual page (numbering) styles available by default in \textit{mwbk} and \textit{mwrep}. As for the \textit{mwart} class, I did not find anything to be changed---although the user might adapt some of the options presented in the \textit{ycbook} class. @@ -98,11 +118,10 @@ To add a rule below chapter and section titles, use \opt{chapterrule} and Options \opt{chaptercentered}, \opt{chapterleft}, and \opt{chapterright} control chapter alignment. -\option{nochaptercentered} +Options \opt{nochaptercentered}, \opt{nochapterleft}, and \opt{nochapterright} control chapter alignment and exclude the name “Chapter” from the entry. The default, as in the \textit{mwcls} classes, is \opt{chapterleft}. \option{nochaptercentered} \option{nochapterleft} \option{nochapterright} -Options \opt{nochaptercentered}, \opt{nochapterleft}, and \opt{nochapterright} control chapter alignment and exclude the name “Chapter” from the entry. The default, as in the \texttt{mwcls} classes, is \opt{chapterleft}. \section{Options for headings} \option{headings} @@ -110,12 +129,12 @@ Options \opt{nochaptercentered}, \opt{nochapterleft}, and \opt{nochapterright} c \option{myheadings} \option{myheadings=beforeplain} -\texttt{mwbk} has empty pagestyles for chapters, and for the last page in every chapter, and also the usual blank (empty) page so that a chapter always starts with an odd (\textit{recto}) page. Page numbering with headers has been added the last page of every chapter; chapter opening pages have been changed to the \texttt{plain} style, and the options to the left have been added for ease of use. Options \opt{headings=beforeplain} and \opt{myheadings=beforeplain} have been added, in which an even page finishing a chapter takes the \opt{plain} style. The default options is \opt{headings}. +\textit{mwbk} has empty pagestyles for chapters, and for the last page in every chapter, and also the usual blank (empty) page so that a chapter always starts with an odd (\textit{recto}) page. Page numbering with headers has been added the last page of every chapter; chapter opening pages have been changed to the \textit{plain} style, and the options to the left have been added for ease of use. Options \opt{headings=beforeplain} and \opt{myheadings=beforeplain} have been added, in which an even page finishing a chapter takes the \opt{plain} style. The default option is \opt{headings}. -\verb| \pagestyle{uheadings}| and \verb|\pagestyle{myuheadings}| may be used instead, defaulting to more usual parameters, and in which the header is separated by a thin line. +\verb|\pagestyle{uheadings}| and \verb|\pagestyle{myuheadings}| may be used instead, defaulting to more usual parameters, and in which the header is separated by a thin line. -This class is compatible with the \verb|scrlayer-scrpage| (formerly \verb|scrpage2|) for headers and footers, so you can do fun things like this to color your head line: +This class is compatible with the \verb|scrlayer-scrpage| (formerly \verb|scrpage2|) for headers and footers, so you can do fun things like this to color your header line: \begin{verbatim} @@ -135,7 +154,7 @@ And of course simpler things such as: \chead{A centered heading} \end{verbatim} -For additional information, see chapters 5 and 18 of the \textsf{Koma-Script} manual. +For additional information, see chapters 5 and 18 of the Koma-Script manual. \section{Table of contents styles} \option{toc} The \opt{toc} option uses the Ko\-ma-\-Script-bundle for table of contents styles, so you can, for example, define @@ -173,7 +192,7 @@ All other options from the \textit{mwcls} classes are available, e.g.: \item \verb|\SetTOCIndents|, \item \verb|indentfirst| and \verb|noindentfirst|, \item \verb|wide|, for shorter margins, and -\item font size and paper specifications (12pt, a5paper, etc.). +\item font size and paper specifications (\texttt{12pt}, \texttt{a5paper}, etc.). \end{itemize} \section{Figures spreading over two pages} @@ -195,8 +214,9 @@ It works thus: \verb|\twopagepicture{image place regarding the caption}|\\ \verb % %\lstinputlisting{ycbook.cls} -%\marginpar{\textit{\small This document was typeset with Sedán, by Sebastián Salazar.}} +%\marginpar{\textit{\small This document was typeset with XXX}} +\clearpage \printbibliography \end{document} diff --git a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls index ba84993e7be..9fa043429aa 100644 --- a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls +++ b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls @@ -19,7 +19,7 @@ \NeedsTeXFormat{LaTeX2e} -\ProvidesClass{ycbook}[2016/03/14 ycbook class] +\ProvidesClass{ycbook}[2016/04/06 ycbook class] \LoadClassWithOptions{mwbk} |