texlive[41410] Master/texmf-dist: ycbook (24may16)

commits+karl at tug.org commits+karl at tug.org
Sun Jun 12 18:12:32 CEST 2016


Revision: 41410
          http://tug.org/svn/texlive?view=revision&revision=41410
Author:   karl
Date:     2016-06-12 18:12:32 +0200 (Sun, 12 Jun 2016)
Log Message:
-----------
ycbook (24may16)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
    trunk/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
    trunk/Master/texmf-dist/tex/latex/ycbook/ycbook.cls

Modified: trunk/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/ycbook/ycbook-doc.tex
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/tex/latex/ycbook/ycbook.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/ycbook/ycbook.cls	2016-06-12 16:12:11 UTC (rev 41409)
+++ trunk/Master/texmf-dist/tex/latex/ycbook/ycbook.cls	2016-06-12 16:12:32 UTC (rev 41410)
@@ -19,7 +19,7 @@
 
 
 \NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{ycbook}[2016/04/06 ycbook class]
+\ProvidesClass{ycbook}[2016/05/23 ycbook class]
  
 \LoadClassWithOptions{mwbk}	
 
@@ -84,23 +84,50 @@
 %\FormatRigidChapterHeading{hwysi}{hodstępi}{hdekl numi}{hdekl tyti}
 
 
+%%% Original chapter at toc
+%\newcommand*\chapter at toc{%
+%  \ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}\fi
+%  \addcontentsline{toc}{chapter}{%
+%        \ifHeadingNumbered
+% \mw at seccntformat{\@chapapp\ \HeadingNumber}%
+%        \fi
+%        \HeadingTOCText}%
+%  \addtocontents{lof}{\protect\addvspace{10\p@}}%
+%  \addtocontents{lot}{\protect\addvspace{10\p@}}%
+%  }
+%%%%
+
+%%%original toc entries for mwrep.cls
+%\newcommand*\chapter at toc{%
+%	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}\fi
+%	\addcontentsline{toc}{chapter}{%
+%		\ifHeadingNumbered
+%		\protect\numberline{\mw at seccntformat{\HeadingNumber}}%
+%		\fi
+%		\HeadingTOCText}%
+%	\addtocontents{lof}{\protect\addvspace{10\p@}}%
+%	\addtocontents{lot}{\protect\addvspace{10\p@}}%
+%}
+
+
+  
 \DeclareOption{chaptercentered}{%
 \SetSectionFormatting[breakbefore,wholewidth]{chapter}
 {12pt}
-{\FormatChapterHeading{0pt}%additional space between label and chapter title
+{\FormatChapterHeading{12pt}%additional space between label and chapter title
 	{\centering\LARGE \@chapapp \space}{\Huge\centering}}
 {24pt plus6pt}
 
-\renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
-	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
-}
+%\renewcommand*\chapter at toc{%
+%	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
+%	\addcontentsline{toc}{chapter}{%
+%		%\ifHeadingNumbered
+%		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
+%		%\fi
+%	}\fi %added \fi here
+%	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
+%	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+%}
 
 }
 
@@ -107,20 +134,20 @@
 \DeclareOption{chapterleft}{%
 	\SetSectionFormatting[breakbefore,wholewidth]{chapter}
 	{12pt}
-	{\FormatChapterHeading{0pt}%
+	{\FormatChapterHeading{12pt}%
 		{\LARGE \@chapapp \space}{\Huge}}
 	{24pt plus6pt}
 
-\renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
-	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
-}
+%\renewcommand*\chapter at toc{%
+%	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
+%	\addcontentsline{toc}{chapter}{%
+%		%\ifHeadingNumbered
+%		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
+%		%\fi
+%	}\fi %added \fi here
+%	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
+%	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+%}
 
 }
 
@@ -127,82 +154,97 @@
 \DeclareOption{chapterright}{%
 	\SetSectionFormatting[breakbefore,wholewidth]{chapter}
 	{12pt}
-	{\FormatChapterHeading{0pt}%
+	{\FormatChapterHeading{12pt}%
 		{\flushright\LARGE \@chapapp \space}{\flushright\Huge}}
 	{24pt plus6pt}
 
-\renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
-	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
-}
+%\renewcommand*\chapter at toc{%
+%	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}%\fi
+%	\addcontentsline{toc}{chapter}{%
+%		%\ifHeadingNumbered
+%		\mw at seccntformat{\@chapapp\ \HeadingNumber}\HeadingTOCText%
+%		%\fi
+%	}\fi %added \fi here
+%	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
+%	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+%}
 
 }
 
 %%%%%%%%
 
+%%% for nochapterX
+%\DeclareSectioningCommand[breakbefore,wholewidth]{chapter}{0}
+%{56\p@}
+%{\FormatBlockHeading{\LARGE}}
+%{24\p@}
+
+%{\FormatBlockHeading{\centering\bfseries\LARGE}}
+
+%%%before
+%\DeclareOption{nochaptercentered}{\SetSectionFormatting[breakbefore,wholewidth]{chapter}
+%	{12pt}
+%	{\centering\LARGE\textbf{\ifHeadingNumbered
+%			\HeadingNumber.\enspace\fi % tirei o ponto daqui^: \HeadingNumber.\enspace\fi para não ficar com ponto depois do número da seção
+%			\HeadingText}%\\\rule[12pt]{\hsize}{0.4pt}%\thispagestyle{plain}
+%	} %\hsize=horizontal size of the text...
+%	{24pt plus9pt}
+
+
+
+%%%after
 \DeclareOption{nochaptercentered}{\SetSectionFormatting[breakbefore,wholewidth]{chapter}
 	{12pt}
-	{\centering\LARGE\textbf{\ifHeadingNumbered
-			\HeadingNumber.\enspace\fi % tirei o ponto daqui^: \HeadingNumber.\enspace\fi para não ficar com ponto depois do número da seção
-			\HeadingText}%\\\rule[12pt]{\hsize}{0.4pt}%\thispagestyle{plain}
-	} %\hsize=horizontal size of the text...
+{\FormatBlockHeading{\centering\bfseries\LARGE}}
 	{24pt plus9pt}
 
 \renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\thechapter.}%\fi
+	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}\fi
 	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+		\ifHeadingNumbered
+		\protect\numberline{\mw at seccntformat{\HeadingNumber}}%
+		\fi
+		\HeadingTOCText}%
+	\addtocontents{lof}{\protect\addvspace{10\p@}}%
+	\addtocontents{lot}{\protect\addvspace{10\p@}}%
 }
 }
 
 \DeclareOption{nochapterleft}{\SetSectionFormatting[breakbefore,wholewidth]{chapter}
 	{12pt}
-	{\LARGE\textbf{\ifHeadingNumbered
-			\HeadingNumber.\enspace\fi % tirei o ponto daqui^: \HeadingNumber.\enspace\fi para não ficar com ponto depois do número da seção
-			\HeadingText}%\\\rule[12pt]{\hsize}{0.4pt}%\thispagestyle{plain}
-	} %\hsize=horizontal size of the text...
+{\FormatBlockHeading{\bfseries\LARGE}}
 	{24pt plus9pt}
 
+
 \renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\thechapter.}%\fi
+	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}\fi
 	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+		\ifHeadingNumbered
+		\protect\numberline{\mw at seccntformat{\HeadingNumber}}%
+		\fi
+		\HeadingTOCText}%
+	\addtocontents{lof}{\protect\addvspace{10\p@}}%
+	\addtocontents{lot}{\protect\addvspace{10\p@}}%
 }
+
+
 }
 
 \DeclareOption{nochapterright}{\SetSectionFormatting[breakbefore,wholewidth]{chapter}
 		{12pt}
-	{\flushright \LARGE\textbf{\ifHeadingNumbered
-			\HeadingNumber.\enspace\fi % tirei o ponto daqui^: \HeadingNumber.\enspace\fi para não ficar com ponto depois do número da seção
-			\HeadingText}%\\\rule[12pt]{\hsize}{0.4pt}%\thispagestyle{plain}
-	} %\hsize=horizontal size of the text...
+{\FormatBlockHeading{\flushright\bfseries\LARGE}}
 	{24pt plus9pt}
 
+
 \renewcommand*\chapter at toc{%
-	\ifHeadingNumbered\typeout{\thechapter.}%\fi
+	\ifHeadingNumbered\typeout{\@chapapp\space\thechapter.}\fi
 	\addcontentsline{toc}{chapter}{%
-		%\ifHeadingNumbered
-		\mw at seccntformat{\HeadingNumber}\HeadingTOCText%
-		%\fi
-	}\fi %added \fi here
-	%\addtocontents{lof}{\protect\addvspace{10\p@}}%
-	%\addtocontents{lot}{\protect\addvspace{10\p@}}%
+		\ifHeadingNumbered
+		\protect\numberline{\mw at seccntformat{\HeadingNumber}}%
+		\fi
+		\HeadingTOCText}%
+	\addtocontents{lof}{\protect\addvspace{10\p@}}%
+	\addtocontents{lot}{\protect\addvspace{10\p@}}%
 }
 }
 %%%%%%%%%%



More information about the tex-live-commits mailing list