summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/taupin
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /macros/latex/contrib/taupin
Initial commit
Diffstat (limited to 'macros/latex/contrib/taupin')
-rw-r--r--macros/latex/contrib/taupin/t1cmsc.fd81
-rw-r--r--macros/latex/contrib/taupin/varsects.sty92
2 files changed, 173 insertions, 0 deletions
diff --git a/macros/latex/contrib/taupin/t1cmsc.fd b/macros/latex/contrib/taupin/t1cmsc.fd
new file mode 100644
index 0000000000..1ab80a5e48
--- /dev/null
+++ b/macros/latex/contrib/taupin/t1cmsc.fd
@@ -0,0 +1,81 @@
+%%
+%% This is file `T1cmsc.fd',
+%% generated with the docstrip utility.
+%%
+%% The original source files were:
+%%
+%% cmfonts.fdd (with options: `fd,T1cmsc,new')
+%%
+%% This is a generated file.
+%%
+%% Copyright 1993 1994 1995 The LaTeX3 Project and any individual
+%% authors listed elsewhere in this file.
+%%
+%% For further copyright information, and conditions for modification
+%% and distribution, see the file legal.txt, and any other copyright
+%% notices in this file.
+%%
+%% This file is part of the LaTeX2e system.
+%% ----------------------------------------
+%% This system is distributed in the hope that it will be useful,
+%% but WITHOUT ANY WARRANTY; without even the implied warranty of
+%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+%%
+%% For error reports concerning UNCHANGED versions of this file no
+%% more than one year old, see bugs.txt.
+%%
+%% Please do not request updates from us directly. Primary
+%% distribution is through the CTAN archives.
+%%
+%%
+%% IMPORTANT COPYRIGHT NOTICE:
+%%
+%% You are NOT ALLOWED to distribute this file alone.
+%%
+%% You are allowed to distribute this file under the condition that it
+%% is distributed together with all the files listed in manifest.txt.
+%%
+%% If you receive only some of these files from someone, complain!
+%%
+%%
+%% Permission is granted to customize the declarations in this file to
+%% serve the needs of your installation, provided that you comply with
+%% the conditions in the file legal.txt.
+%%
+%% However, NO PERMISSION is granted to distribute a modified version
+%% of this file under its original name.
+%%
+%%
+%% MODIFICATION ADVICE:
+%%
+%% If you want to customize this file, it is best to make a copy of
+%% the source file(s) from which it was produced. Use a different
+%% name for your copy(ies) and modify the copy(ies); this will ensure
+%% that your modifications do not get overwritten when you install a
+%% new release of the standard system.
+%%
+%% You can then easily distribute your modifications by distributing
+%% the modified and renamed copy of the source file, together with a
+%% suitable .ins file, taking care to observe the conditions in
+%% legal.txt; this will ensure that other users can safely use
+%% your modifications.
+%%
+%% The names of the source files used are shown above.
+%%
+%%
+%%
+\ProvidesFile{T1cmsc.fd}
+ [1995/12/20 v2.4f Standard LaTeX font definitions]
+\providecommand{\EC@family}[5]{%
+ \DeclareFontShape{#1}{#2}{#3}{#4}
+ {<5><6><7><8><9><10><10.95><12><14.4>
+ <17.28><20.74><24.88><29.86><35.83><43.00><51.60><61.92> genb * #5}{}}
+\DeclareFontFamily{T1}{cmsc}{}
+\EC@family{T1}{cmsc}{m}{n} {eccc}
+\EC@family{T1}{cmsc}{m}{sl} {ecsc}
+\EC@family{T1}{cmsc}{m}{it} {ecvi}
+\EC@family{T1}{cmsc}{bx}{n} {ecxc}
+\EC@family{T1}{cmsc}{bx}{sl} {ecoc}
+\endinput
+%%
+%% End of file `T1cmsc.fd'.
diff --git a/macros/latex/contrib/taupin/varsects.sty b/macros/latex/contrib/taupin/varsects.sty
new file mode 100644
index 0000000000..8a7a7b5042
--- /dev/null
+++ b/macros/latex/contrib/taupin/varsects.sty
@@ -0,0 +1,92 @@
+%
+% This style option is identical to the section/sebsection/partagraph definitions
+% of LaTeX2e dates january 1997. The only difference is that font
+% families/shapes/series vhave been parametrised in order to facilitate
+% changing the fonts of section, chapter, subsection titles.
+%
+% If nothing is redefined, behaviour is the standard LaTeX2e behaviour,
+% and the names of redefinition commands is... obvious (see below)
+%
+
+\NeedsTeXFormat{LaTeX2e}[1995/12/01]
+\ProvidesPackage{varsects}
+ [1998/11/28 variable section fonts/sizes]
+
+% fonts for various section titles
+\def\SubParagraphFont{\normalfont\bfseries}
+\def\ParagraphFont{\normalfont\bfseries}
+\def\SubSubSectionFont{\normalfont\bfseries}
+\def\SubSectionFont{\normalfont\bfseries}
+\def\SectionFont{\normalfont\bfseries}
+
+% font sizes for various titles
+\def\SubParagraphSize{\normalsize}
+\def\ParagraphSize{\normalsize}
+\def\SubSubSectionSize{\normalsize}
+\def\SubSectionSize{\large}
+\def\SectionSize{\Large}
+\def\ChapterSize{\Huge} % the size of the chapter titles
+\def\ChapterNameSize{\huge} % the size of the "Chapter" word, and its number
+\def\ChapterFont{\normalfont\bfseries} % the size of the chapter title
+\def\ChapterTopSpace{50pt} % spacings before, in the middle and after the
+\def\ChapterMidSpace{20pt} % chapter name
+\def\ChapterBotSpace{40pt}
+
+% title spacings, in "ex" units
+\def\SectionSpaceBefore{3.5}
+\def\SectionSpaceAfter{2.3}
+\def\SubSectionSpaceBefore{3.25}
+\def\SubSectionSpaceAfter{1.5}
+\def\SubSubSectionSpaceBefore{3.25}
+\def\SubSubSectionSpaceAfter{1.5}
+\def\ParagraphSpaceBefore{3.25}
+\def\SubParagraphSpaceBefore{3.25}
+
+% you do not need to redefine the code below, unless you know what you do...
+
+\renewcommand\section{\@startsection {section}{1}{\z@}%
+ {-\SectionSpaceBefore ex \@plus -1ex \@minus -.2ex}%
+ {\SectionSpaceAfter ex \@plus.2ex}%
+ {\SectionFont\SectionSize}}
+\renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
+ {-\SubSectionSpaceBefore ex\@plus -1ex \@minus -.2ex}%
+ {\SubSectionSpaceAfter ex \@plus .2ex}%
+ {\SubSectionFont\SubSectionSize}}
+\renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
+ {-\SubSubSectionSpaceBefore ex\@plus -1ex \@minus -.2ex}%
+ {\SubSubSectionSpaceAfter ex \@plus .2ex}%
+ {\SubSubSectionFont\SubSubSectionSize}}
+\renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
+ {\ParagraphSpaceBefore ex \@plus1ex \@minus.2ex}%
+ {-1em}%
+ {\ParagraphFont\ParagraphSize}}
+\renewcommand\subparagraph{\@startsection{subparagraph}{5}{\parindent}%
+ {\SubParagraphSpaceBefore ex \@plus1ex \@minus .2ex}%
+ {-1em}%
+ {\SubParagraphFont\SubParagraphSize}}
+
+\ifx\@makechapterhead\undefined
+\else
+\def\@makechapterhead#1{% the title of \chapter{something}
+ \vspace*{\ChapterTopSpace}%
+ {\parindent \z@ \raggedright
+ \ifnum \c@secnumdepth >\m@ne
+ \ChapterNameSize\ChapterFont \@chapapp\space \thechapter
+ \par\nobreak
+ \vskip \ChapterMidSpace
+ \fi
+ \interlinepenalty\@M
+ \ChapterSize \ChapterFont #1\par\nobreak
+ \vskip \ChapterBotSpace
+ }}
+
+\def\@makeschapterhead#1{% the title of \chapter*{something}
+ \vspace*{\ChapterTopSpace}%
+ {\parindent \z@ \raggedright
+ \normalfont
+ \interlinepenalty\@M
+ \ChapterSize \ChapterFont #1\par\nobreak
+ \vskip \ChapterBotSpace
+ }}
+\fi
+\endinput