summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nlctdoc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-12-05 22:39:29 +0000
committerKarl Berry <karl@freefriends.org>2013-12-05 22:39:29 +0000
commit9eed7755bf83a7bcce767a7b8d347f86984259ae (patch)
tree01f1a0747adf36a09a27ca224078346adf632eec /Master/texmf-dist/tex/latex/nlctdoc
parent2ec8b65352b919d9cbd13ea21801cdd93f9aa917 (diff)
nlctdoc (5dec13)
git-svn-id: svn://tug.org/texlive/trunk@32334 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nlctdoc')
-rw-r--r--Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls49
1 files changed, 34 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls b/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
index 20d68f51f63..0f671f18adb 100644
--- a/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
+++ b/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
@@ -1,5 +1,7 @@
% This class file is provided 'as is' in the event that someone
% wants to compile the documentation that comes with my packages.
+% It is not intended for any other purpose, although you may freely
+% copy the code here to another file and modify it for your own purposes.
% Some of the code is taken from doc.sty
%
% Copyright 2013 Nicola Talbot
@@ -13,7 +15,7 @@
% version 2005/12/01 or later.
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{nlctdoc}[2013/10/17 v1.03 (NLCT)]
+\ProvidesClass{nlctdoc}[2013/12/05 v1.04 (NLCT)]
\def\@nlctdoc@class{scrartcl}%
\DeclareOption{article}{\def\@nlctdoc@class{scrartcl}}
\DeclareOption{book}{\def\@nlctdoc@class{scrbook}}
@@ -28,10 +30,12 @@
\ProcessOptions
\LoadClass[captions=tableheading]{\@nlctdoc@class}
\RequirePackage{xcolor}
-\RequirePackage{fourier}
\RequirePackage{ifpdf}
+\RequirePackage[utf8]{inputenc}
\ifpdf
+ \RequirePackage[T1]{fontenc}
\RequirePackage{cmap}
+ \RequirePackage{fourier}
\else
\RequirePackage[xhtml,fn-in,css-in,uni-html4,utf8]{tex4ht}
\fi
@@ -565,7 +569,16 @@
\@ifundefined{main}{\def\main#1{\underline{\hyperpage{#1}}}}{}
\@ifundefined{usage}{\def\usage#1{\textit{\hyperpage{#1}}}}{}
-\def\PrintIndex{\@input@{\jobname.ind}%
+\def\PrintIndex{%
+ \addtolength{\textwidth}{\marginparwidth}%
+ \setlength{\marginparwidth}{0pt}%
+ \setlength\columnsep{20pt}%
+ \clearpage
+ \phantomsection
+ \@ifundefined{chapter}%
+ {\addcontentsline{toc}{section}{\indexname}}
+ {\addcontentsline{toc}{chapter}{\indexname}}%
+ \@input@{\jobname.ind}%
\global\let\PrintIndex\@empty}
\def\changes{\@bsphack\begingroup\@sanitize
\catcode`\\\z@ \catcode`\ 10 \MakePercentIgnore
@@ -1043,6 +1056,7 @@
\addtolength\defwidth{-2\fboxrule}%
\begin{lrbox}{\defsbox}%
\begin{minipage}{\defwidth}%
+ \raggedright
\setlength\parindent{1em}%
\noindent\ignorespaces
}{%
@@ -1264,17 +1278,6 @@ bibliography style|hyperpage}}
\begin{center}\rule{2in}{1pt}\end{center}%
}
-\newcommand*{\listofexamples}{%
- \@ifundefined{chapter}
- {%
- \section*{List of Examples}%
- }%
- {%
- \chapter*{List of Examples}%
- }
- \@starttoc{loe}%
-}
-
\ifpdf
\newcommand*{\toTop}{}
\newcommand*{\sectionref}[1]{Section~\ref{#1}}
@@ -1289,6 +1292,18 @@ bibliography style|hyperpage}}
% \xrsectionref{label}{html file}{html title}
\newcommand*{\xrsectionref}[3]{Section~\ref{#1}}
+
+ \newcommand*{\listofexamples}{%
+ \@ifundefined{chapter}
+ {%
+ \section*{List of Examples}%
+ }%
+ {%
+ \chapter*{List of Examples}%
+ }
+ \@starttoc{loe}%
+ }
+
\else
\newcommand*{\toTop}{\par\noindent\hyperlink{top}{Top}}
\AtBeginDocument{%
@@ -1297,7 +1312,7 @@ bibliography style|hyperpage}}
\Configure{subsubsection}{\toTop}{}{}{}%
\Configure{paragraph}{\toTop\par}{}{}{}%
\Configure{subparagraph}{\toTop\par}{}{}{}%
- \Css{div.important { background-color:red; }}%
+ \Css{div.important { border : solid red; }}%
\titlehead{\hypertarget{top}{}}%
}
@@ -1317,6 +1332,10 @@ bibliography style|hyperpage}}
\newcommand*{\urlref}[2]{\href{#1}{#2}}
\newcommand*{\urlfootref}[2]{\href{#1}{#2}}
\newcommand*{\submenu}[1]{\menu{-\textgreater #1}}
+ \newcommand*{\listofexamples}{}
+
+ \renewcommand*{\meta}[1]{\emph{\textless #1\textgreater}}
+
\fi
\endinput