summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/ycbook
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 /Master/texmf-dist/tex/latex/ycbook
parent0726a9b084d3695fb46f8900f66bf6972befd74d (diff)
ycbook (8feb17)
git-svn-id: svn://tug.org/texlive/trunk@43171 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/ycbook')
-rw-r--r--Master/texmf-dist/tex/latex/ycbook/ycbook.cls86
1 files changed, 83 insertions, 3 deletions
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