diff options
author | Karl Berry <karl@freefriends.org> | 2010-01-16 23:51:46 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-01-16 23:51:46 +0000 |
commit | 23dac0f71abad2e72aa043ea3b59dc92a29cb749 (patch) | |
tree | 2c8756c058d4ae91d4a65c255045dd97aee4982d | |
parent | 62afbf2498783f9ca3f415e2b8f9df2e22b1be43 (diff) |
new latex package texilikechaps (16jan10)
git-svn-id: svn://tug.org/texlive/trunk@16752 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/tex/latex/texilikechaps/texilikechaps.sty | 133 | ||||
-rwxr-xr-x | Master/tlpkg/bin/tlpkg-ctan-check | 3 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc | 1 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/collection-publishers.tlpsrc | 2 | ||||
-rw-r--r-- | Master/tlpkg/tlpsrc/texilikechaps.tlpsrc | 0 |
5 files changed, 137 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/texilikechaps/texilikechaps.sty b/Master/texmf-dist/tex/latex/texilikechaps/texilikechaps.sty new file mode 100644 index 00000000000..8449c2bd339 --- /dev/null +++ b/Master/texmf-dist/tex/latex/texilikechaps/texilikechaps.sty @@ -0,0 +1,133 @@ +%%%%%%%%%%%%%%%%%%% +% texilikechaps.sty +%%%%%%%%%%%%%%%%%%% +% texilikechaps.sty, June 13, 2008 +% +% Released under LaTeX Project Public License v3.1 or above. +% +% http://www.latex-project.org/lppl.txt +% +% This work has the LPPL maintenance status `maintained'. +% +% The Current Maintainer of this work is +% Jose-Luis Rivera N. +% jlrn77 at gmail punto com +% +%%%%%%%%%%%%%%%%%%%%%%%%% +% based on +% jeep.sty, April 29, 1991 +% G. W. Stewart +% Department of Computer Science +% University of Maryland +% College Park, MD 20784 +% +% stewart at thales.umd.edu +% +% with ideas borrowed from secdot.sty, by Robin Fairbairns. +% +% Define the command \txichapter{<format>}. <format> +% is the format to put in the chapter head. +% +% The command \txisection{<seclevel>}{<format>} +% defines the <format> for the <seclevel>. +% +% The command \txichapterdelim{<code>} sets the +% <code> as the delimiter between chapter number and +% chapter/section name. +% You may change the default \squad for .\space saying +% \txichapterdelim{.\space} +% +% The rest should be self explanatory. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% This is experimental code. Bypass it. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +%\def\@chapapp{Chapter} +%\def\chapapp{\@chapapp} + +%\def\txichapter#1#2{ +% \def\@chaphead##1{#1} +% \def\@schaphead##1{#2} +%} + +%\def\@makechapterhead#1{ \vspace*{\chaptopsep} { \parindent 0pt \raggedright +% \ifnum \c@secnumdepth >\m@ne \@chaphead{#1} \else \@schaphead{#1} \fi +% \par \nobreak \vskip \chapaftersep } } + +%\def\@makeschapterhead#1{ \vspace*{\chaptopsep} { \parindent 0pt \raggedright +% \@schaphead{#1}\par +% \nobreak \vskip \chapaftersep } } +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%% +% +% Here comes the real stuff. +% +%%%%%%%%%%%%%%%%%%%%%%%%%%%% +\ProvidesPackage{texilikechaps}[2008/06/14 v1.0 Texinfo-like chapters and sections] + +\newcommand{\txisct@chapapp}{} + +\@ifundefined{@makechapterhead}{}{ + \let\txisct@old@makechapterhead\@makechapterhead + \renewcommand{\@makechapterhead}[1]{% + \vspace*{\txisct@chaptopsep}% + {\parindent \z@ \raggedright + \normalfont + \interlinepenalty\@M + \txichapter \txisct@chapapp\space\thechapter\txichapterdelim\space #1 + \par\nobreak + \vskip\txisct@chapaftersep + }} +} +\@ifundefined{@makeschapterhead}{}{ + \let\txisct@old@makeschapterhead\@makeschapterhead + \renewcommand{\@makeschapterhead}[1]{% + \vspace*{\txisct@chaptopsep}% + {\parindent \z@ \raggedright + \normalfont + \interlinepenalty\@M + \txichapter #1 + \par\nobreak + \vskip\txisct@chapaftersep + }} +} +\newcommand{\txichapter}[1][\normalfont\LARGE\bfseries]{#1} +\newcommand{\txichapterdelim}[1][\quad]{#1} +\newcommand{\restorechapapp}{\let\txisct@chapapp\@chapapp} + +% \chaptopsep is the space between the top of the text page and the +% chapter head. \chapaftersep is the space between the chapter +% head and the text. + +\newlength{\txisct@chaptopsep} +\setlength{\txisct@chaptopsep}{.5in} +\newlength{\txisct@chapaftersep} +\setlength{\txisct@chapaftersep}{.3in} + +% Default chapter format. + +\newcommand{\chapterheadfmt}[1][\LARGE\bfseries]{#1} + +% The following code has been rendered obsolete by the sectsty package +% Here it goes, anyway. +% As \section and \subsection commands typeset the titles rather large +% in standard classes, we make them smaller. +% We reduce the above and under spaces as well. + +\newcommand{\txisection}[2]{% + \expandafter\renewcommand\csname #1\endcsname{\@startsection{#1}{1}{\z@}% + {-1.5ex\@plus -.2ex \@minus -.2ex}% + {1.5ex \@plus .2ex}% + {#2}} +} + +\txisection{section}{\normalfont\large\bfseries} +\txisection{subsection}{\normalfont\normalsize\bfseries} +\txisection{subsubsection}{\normalfont\normalsize\bfseries} + +% And that's all, folks! + +\endinput diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check index e5f3c655a76..a02351ef3ab 100755 --- a/Master/tlpkg/bin/tlpkg-ctan-check +++ b/Master/tlpkg/bin/tlpkg-ctan-check @@ -256,7 +256,8 @@ my @WorkingTLP = qw( tamethebeast tdclock tdsfrmath technics ted templates-fenn templates-sommer tengwarscript tensor termcal termlist teubner tex-ewd tex-gyre tex-label texcount - texdiff texdirflatten texilikecover texloganalyser texmate texments + texdiff texdirflatten texilikechaps texilikecover + texloganalyser texmate texments texpower texshade textcase textfit textopo textpath textpos thailatex theoremref thesis-titlepage-fhac diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc index 8c9efd654dc..7d85a9787f0 100644 --- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc @@ -563,7 +563,6 @@ depend ted depend termcal depend termlist depend tex-label -depend texilikecover depend texlogos depend texmate depend texments diff --git a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc index 0832f48141c..bc9ecb3fbf8 100644 --- a/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc +++ b/Master/tlpkg/tlpsrc/collection-publishers.tlpsrc @@ -60,6 +60,8 @@ depend soton depend spie depend stellenbosch depend sugconf +depend texilikechaps +depend texilikecover depend thesis-titlepage-fhac depend thuthesis depend toptesi diff --git a/Master/tlpkg/tlpsrc/texilikechaps.tlpsrc b/Master/tlpkg/tlpsrc/texilikechaps.tlpsrc new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/Master/tlpkg/tlpsrc/texilikechaps.tlpsrc |