summaryrefslogtreecommitdiff
path: root/Master
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2009-01-01 17:04:58 +0000
committerKarl Berry <karl@freefriends.org>2009-01-01 17:04:58 +0000
commita7ba561f11b9a1291cf2528c9ea6fa9f66e16a66 (patch)
treeef79cce6bf7e536c77b5a64e124f38c9a098d611 /Master
parent4355b858c32b375aae4609a323141f2f210a3ff6 (diff)
new old latex package sfheaders (31dec08)
git-svn-id: svn://tug.org/texlive/trunk@11779 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master')
-rw-r--r--Master/texmf-dist/doc/latex/sfheaders/README6
-rw-r--r--Master/texmf-dist/tex/latex/sfheaders/sfheaders.sty172
-rwxr-xr-xMaster/tlpkg/bin/tlpkg-ctan-check3
-rw-r--r--Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc1
-rw-r--r--Master/tlpkg/tlpsrc/sfheaders.tlpsrc2
5 files changed, 183 insertions, 1 deletions
diff --git a/Master/texmf-dist/doc/latex/sfheaders/README b/Master/texmf-dist/doc/latex/sfheaders/README
new file mode 100644
index 00000000000..95c9ded5de4
--- /dev/null
+++ b/Master/texmf-dist/doc/latex/sfheaders/README
@@ -0,0 +1,6 @@
+This style file (for LaTeX-2e) borrows some definitions from the
+standard article/report/book classes; and modifies them in order to
+print the part(*), chapter(*), section, subsection ... headers with
+the Sans-Serif variant of the current font.
+
+(*) Some standard classes do not have these headers
diff --git a/Master/texmf-dist/tex/latex/sfheaders/sfheaders.sty b/Master/texmf-dist/tex/latex/sfheaders/sfheaders.sty
new file mode 100644
index 00000000000..d7f06f94cd8
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/sfheaders/sfheaders.sty
@@ -0,0 +1,172 @@
+% Package: SFheaders.sty
+% Sans-Serif headers; modified from {book|report|article}.cls defaults.
+% Last change: MLO 1997-09-25 10:21 *****
+%
+% Author: Maurizio Loreti, aka MLO or (HAM) I3NOO
+% Work: University of Padova - Department of Physics
+% Via F. Marzolo, 8 - 35131 PADOVA - Italy
+% EMail: loreti@padova.infn.it
+% WWW: http://wwwcdf.pd.infn.it/~loreti/mlo.html
+
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{sfheaders}[1997/09/25 Sans-Serif headers]
+
+\@ifclassloaded{article}{
+% Here if \documentclass{article}
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >\m@ne
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \Large \sffamily \bfseries \partname~\thepart
+ \par\nobreak
+ \fi
+ \huge \sffamily \bfseries #2%
+ \markboth{}{}\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}
+ \def\@spart#1{%
+ {\parindent \z@ \raggedright
+ \interlinepenalty \@M
+ \normalfont
+ \huge \sffamily \bfseries #1\par}%
+ \nobreak
+ \vskip 3ex
+ \@afterheading}}
+{\@ifclassloaded{book}{
+% Here if \documentclass{book}
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ \markboth{}{}%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \huge \sffamily \bfseries \partname~\thepart
+ \par
+ \vskip 20\p@
+ \fi
+ \Huge \sffamily \bfseries #2\par}%
+ \@endpart}
+
+ \def\@spart#1{%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \Huge \sffamily \bfseries #1\par}%
+ \@endpart}
+
+ \def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \if@mainmatter
+ \huge \sffamily \bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \fi
+ \interlinepenalty\@M
+ \Huge \sffamily \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+
+ \def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \sffamily \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+}{
+% Here if none of the above (\documentclass{report} ?)
+ \def\@part[#1]#2{%
+ \ifnum \c@secnumdepth >-2\relax
+ \refstepcounter{part}%
+ \addcontentsline{toc}{part}{\thepart\hspace{1em}#1}%
+ \else
+ \addcontentsline{toc}{part}{#1}%
+ \fi
+ \markboth{}{}%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \ifnum \c@secnumdepth >-2\relax
+ \huge \sffamily \bfseries \partname~\thepart
+ \par
+ \vskip 20\p@
+ \fi
+ \Huge \sffamily \bfseries #2\par}%
+ \@endpart}
+
+ \def\@spart#1{%
+ {\centering
+ \interlinepenalty \@M
+ \normalfont
+ \Huge \sffamily \bfseries #1\par}%
+ \@endpart}
+
+ \def\@makechapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright \normalfont
+ \ifnum \c@secnumdepth >\m@ne
+ \huge \sffamily \bfseries \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip 20\p@
+ \fi
+ \interlinepenalty\@M
+ \Huge \sffamily \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+
+ \def\@makeschapterhead#1{%
+ \vspace*{50\p@}%
+ {\parindent \z@ \raggedright
+ \normalfont
+ \interlinepenalty\@M
+ \Huge \sffamily \bfseries #1\par\nobreak
+ \vskip 40\p@
+ }}
+}}
+
+\renewcommand{\section}{\@startsection {section}{1}{\z@}%
+ {-3.5ex \@plus -1ex \@minus -.2ex}%
+ {2.3ex \@plus.2ex}%
+ {\normalfont\Large\sffamily\bfseries}}
+
+\renewcommand{\subsection}{\@startsection{subsection}{2}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\large\sffamily\bfseries}}
+
+\renewcommand{\subsubsection}{\@startsection{subsubsection}{3}{\z@}%
+ {-3.25ex\@plus -1ex \@minus -.2ex}%
+ {1.5ex \@plus .2ex}%
+ {\normalfont\normalsize\sffamily\bfseries}}
+
+\renewcommand{\paragraph}{\@startsection{paragraph}{4}{\z@}%
+ {3.25ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\normalfont\normalsize\sffamily\bfseries}}
+
+\renewcommand{\subparagraph}{\@startsection{subparagraph}{5}{\parindent}%
+ {3.25ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\normalfont\normalsize\sffamily\bfseries}}
+\endinput
+
+%%
+%% End of `SFheaders.sty'.
diff --git a/Master/tlpkg/bin/tlpkg-ctan-check b/Master/tlpkg/bin/tlpkg-ctan-check
index 59f32ebfab8..44dad6c0094 100755
--- a/Master/tlpkg/bin/tlpkg-ctan-check
+++ b/Master/tlpkg/bin/tlpkg-ctan-check
@@ -196,7 +196,8 @@ my @WorkingTLP = qw(
sagetex sauerj sauterfonts savefnmark savesym savetrees scale
scalebar scientificpaper sciposter screenplay script
sdrt sectionbox sectsty semantic semaphor seminar semioneside
- seqsplit setspace sf298 sffms sfg sfmath sgame shadbox shapepar
+ seqsplit setspace sf298 sffms sfg sfheaders
+ sfmath sgame shadbox shapepar
shipunov shorttoc show2e showdim showexpl showlabels shuffle
SIstyle SIunits
sidecap sides siggraph simplecv simplewick siunitx
diff --git a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
index f922070b238..a07abc850a6 100644
--- a/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
+++ b/Master/tlpkg/tlpsrc/collection-latexextra.tlpsrc
@@ -450,6 +450,7 @@ depend semioneside
depend seqsplit
depend sf298
depend sffms
+depend sfheaders
depend sfmath
depend shadbox
depend shadethm
diff --git a/Master/tlpkg/tlpsrc/sfheaders.tlpsrc b/Master/tlpkg/tlpsrc/sfheaders.tlpsrc
new file mode 100644
index 00000000000..f8feee728c1
--- /dev/null
+++ b/Master/tlpkg/tlpsrc/sfheaders.tlpsrc
@@ -0,0 +1,2 @@
+name sfheaders
+category Package