summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2017-10-31 21:24:28 +0000
committerKarl Berry <karl@freefriends.org>2017-10-31 21:24:28 +0000
commite72bf82946e5310bd797a868b9a4210c80d1d9f9 (patch)
tree6156cc3e598c9e358446a8909806adbe336a9299
parentf1e004edfbf8fdf4fdab49fa4cee24c1abc2b337 (diff)
ycbook (31oct17)
git-svn-id: svn://tug.org/texlive/trunk@45660 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r--Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdfbin63043 -> 126345 bytes
-rw-r--r--Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex81
-rw-r--r--Master/texmf-dist/tex/latex/ycbook/ycbook.cls2
3 files changed, 11 insertions, 72 deletions
diff --git a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
index 37305295dd0..065cbd441d4 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 4dee0ce0f37..4adce9aaf6c 100644
--- a/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
+++ b/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
@@ -100,8 +100,9 @@
\newcommand{\opt}[1]{\texttt{#1}}
-\title{\estrela{\textit{ycbook}}\\
- \tikz \node[left color=PineGreen,rectangle,remember picture, overlay,rounded corners=3pt] at (0,0) {A versatile and simple book class};\\
+\title{\estrela{\textit{ycbook}}\tikz \node[inner sep=0pt,remember picture,overlay] at (-2,4){\includegraphics[height=3cm,width=0.4\textwidth,keepaspectratio]{icone}};\\
+ \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.2,0.2) -- (4,0.2);%
%\tikz \node[remember picture,overlay] at (7,5) {\florgrande};%
%
@@ -123,69 +124,12 @@
\newcommand{\estrela}[1]{\tikz \node [top color=SpringGreen,star,star points=7] at (0,0) {#1};}%,star point ratio=0.8 % shading angle=45,
-\newcommand{\mybox}[1]{%
- \begin{center}%
- \begin{tikzpicture}%
- \node[rectangle, draw=green, top color=SpringGreen, bottom color=Dandelion,shading angle=45,rounded corners=5pt, inner xsep=5pt, inner ysep=6pt, outer ysep=10pt,drop shadow]{
- \begin{minipage}{0.75\linewidth}#1\end{minipage}};%
- \end{tikzpicture}%
- \end{center}%
-}
-%top color=green!10, bottom color=green!90
-%drop shadow=PineGreen
-\newcommand\fadingtext[3][]{%
- \begin{tikzfadingfrompicture}[name=fading letter]
- \node[text=transparent!0,inner xsep=0pt,outer xsep=0pt,#1] {#3};
- \end{tikzfadingfrompicture}%
- \begin{tikzpicture}[baseline=(textnode.base)]
- \node[inner sep=0pt,outer sep=0pt,#1](textnode){\phantom{#3}};
- \shade[path fading=fading letter,#2,fit fading=false]
- (textnode.south west) rectangle (textnode.north east);%
- \end{tikzpicture}%
-}
-
-\newcommand{\florgrande}{%
- \fadingtext[scale=6]{top color=Dandelion,bottom color=PineGreen,shading angle=45}{\flor}
- }
-
+\usepackage{tcolorbox}
+\tcbuselibrary{skins}
+\newtcolorbox{caixa}{enhanced,
+ interior style={left color=SpringGreen,right color=Dandelion},frame hidden,width=0.8\textwidth,center,drop shadow}
-%%% mdframed + tikz
-\tikzset{caixa/.style=
- {draw=green, top color=SpringGreen, bottom color=Dandelion,shading angle=45,%rounded corners=5pt, inner xsep=5pt, inner ysep=6pt, outer ysep=10pt,drop shadow
- }
-}
-\tikzset{mdfshadow/.style={drop shadow=}}%
-
-%%%this works well
-\mdfdefinestyle{caixa}{userdefinedwidth=0.77\textwidth,%
- font=\small,%
- shadow=true,%
- shadowsize=5pt,%
- roundcorner=5pt,%
- align=center,%
- %leftmargin=0.3\textwidth,%
- %rightmargin=0.3\textwidth,%
- linecolor=green,%
- innerleftmargin=4pt,%
- innerrightmargin=4pt,
- apptotikzsetting
- ={\tikzset{mdfbackground/.append style=caixa} }}
-
-
-%%%this doesn't work well
-\newmdenv[%userdefinedwidth=0.75\textwidth,%
-shadow=true,%
-shadowsize=5pt,%
-roundcorner=5pt,%
-%align=center,%
-%leftmargin=0.3\textwidth,%
-%rightmargin=0.3\textwidth,%
-linecolor=green,%
-innerleftmargin=3pt,%
-innerrightmargin=3pt,
-apptotikzsetting
-={\tikzset{mdfbackground/.append style=caixa} }]{caixa}
\usepackage{lipsum}
@@ -194,6 +138,7 @@ apptotikzsetting
%\setlength{\columnseprule}{1pt}
+
\begin{document}
\maketitle
@@ -201,17 +146,11 @@ apptotikzsetting
\thispagestyle{scrheadings}
-%\mybox{
-% This class is intended to be an interpretation of the \textit{mwbk} class from Mar\-cin Wo\-li\'{n}s\-ki'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.
-%}
-
-%\tableofcontents
-
-\begin{mdframed}[style=caixa]
+\begin{caixa}
This class is intended to be an interpretation of the \texttt{mwbk} class from Mar\-cin Wo\-li\'{n}s\-ki's \texttt{mwcls} classes. The \texttt{mwcls} class\-es 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.
%\lipsum[1-5]
-\end{mdframed}
+\end{caixa}
\tableofcontents
diff --git a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
index 3625a740245..ee5bcbd51ff 100644
--- a/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
+++ b/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
@@ -18,7 +18,7 @@
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ycbook}[2017/02/08 ycbook class]
+\ProvidesClass{ycbook}[2017/10/31 ycbook class]
\LoadClassWithOptions{mwbk}