summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/nlctdoc
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-10-17 22:47:26 +0000
committerKarl Berry <karl@freefriends.org>2013-10-17 22:47:26 +0000
commitc2c168a8341aff3cf9c005cf8d04f58fe8757aca (patch)
treeb9cac70bb193b068af2671114955bed52d437075 /Master/texmf-dist/tex/latex/nlctdoc
parentc3e9c063ce3006193da17016faabd349005f3d2e (diff)
nlctdoc (17oct13)
git-svn-id: svn://tug.org/texlive/trunk@31933 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/nlctdoc')
-rw-r--r--Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls26
1 files changed, 24 insertions, 2 deletions
diff --git a/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls b/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
index 1972df74b27..20d68f51f63 100644
--- a/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
+++ b/Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls
@@ -1,8 +1,19 @@
% This class file is provided 'as is' in the event that someone
% wants to compile the documentation that comes with my packages.
% Some of the code is taken from doc.sty
+%
+% Copyright 2013 Nicola Talbot
+%
+% This work may be distributed and/or modified under the
+% conditions of the LaTeX Project Public License, either version 1.3
+% of this license of (at your option) any later version.
+% The latest version of this license is in
+% http://www.latex-project.org/lppl.txt
+% and version 1.3 or later is part of all distributions of LaTeX
+% version 2005/12/01 or later.
+
\NeedsTeXFormat{LaTeX2e}
-\ProvidesClass{nlctdoc}[2012/07/18 v1.02 (NLCT)]
+\ProvidesClass{nlctdoc}[2013/10/17 v1.03 (NLCT)]
\def\@nlctdoc@class{scrartcl}%
\DeclareOption{article}{\def\@nlctdoc@class{scrartcl}}
\DeclareOption{book}{\def\@nlctdoc@class{scrbook}}
@@ -24,6 +35,7 @@
\else
\RequirePackage[xhtml,fn-in,css-in,uni-html4,utf8]{tex4ht}
\fi
+\RequirePackage{etoolbox}
\@ifundefined{macro@cnt}{}{\endinput}
\catcode`\^^A=14
\AtBeginDocument{\catcode`\^^A=14\relax}
@@ -491,7 +503,15 @@
\newcount\c@IndexColumns \c@IndexColumns = 3
\ifhave@multicol
\renewenvironment{theindex}
- {\begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]%
+ {%
+ \ifdef\chapter
+ {%
+ \index@prologue
+ \begin{multicols}\c@IndexColumns[][\IndexMin]%
+ }%
+ {%
+ \begin{multicols}\c@IndexColumns[\index@prologue][\IndexMin]%
+ }%
\IndexParms \let\item\@idxitem \ignorespaces}%
{\end{multicols}}
\else
@@ -1023,6 +1043,8 @@
\addtolength\defwidth{-2\fboxrule}%
\begin{lrbox}{\defsbox}%
\begin{minipage}{\defwidth}%
+ \setlength\parindent{1em}%
+ \noindent\ignorespaces
}{%
\end{minipage}%
\end{lrbox}%