From c2c168a8341aff3cf9c005cf8d04f58fe8757aca Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Thu, 17 Oct 2013 22:47:26 +0000 Subject: nlctdoc (17oct13) git-svn-id: svn://tug.org/texlive/trunk@31933 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls | 26 +++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) (limited to 'Master/texmf-dist/tex/latex/nlctdoc') 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}% -- cgit v1.2.3