diff options
-rw-r--r-- | Master/texmf-dist/doc/latex/nlctdoc/README | 11 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/nlctdoc/nlctdoc.cls | 49 |
2 files changed, 42 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/latex/nlctdoc/README b/Master/texmf-dist/doc/latex/nlctdoc/README index 5ecd030bf1a..02d58e849dc 100644 --- a/Master/texmf-dist/doc/latex/nlctdoc/README +++ b/Master/texmf-dist/doc/latex/nlctdoc/README @@ -1,6 +1,11 @@ -nlctdoc.cls: This class is provided "as is" solely for the benefit - of anyone who wants to compile the documentation for - my packages. +nlctdoc.cls: + +This class is provided "as is" solely for the benefit +of anyone who wants to compile the documentation for +my packages. (To comply with TeX Live requirements +that all package documentation must be distributed with +source code.) It is not intended for general use (although +the code can, of course, be copied under the terms of the LPPL). Nicola L. C. Talbot 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 |