summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/memoir/memsty.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/latex/memoir/memsty.sty')
-rw-r--r--Master/texmf-dist/doc/latex/memoir/memsty.sty54
1 files changed, 43 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/memoir/memsty.sty b/Master/texmf-dist/doc/latex/memoir/memsty.sty
index f829b130c4b..c5a23dc52c8 100644
--- a/Master/texmf-dist/doc/latex/memoir/memsty.sty
+++ b/Master/texmf-dist/doc/latex/memoir/memsty.sty
@@ -56,7 +56,7 @@
\changeglossactual{?}
\changeglossnum{\@currentlabel}
\changeglossnum{\thepage}
-\changeglossnumformat{|hyperpage}
+\changeglossnumformat{|hyperpage} %|
\renewcommand*{\glossaryname}{Command summary}
\renewcommand{\glossitem}[4]{%
\sbox\@tempboxa{#1 \space #2 #3 \makebox[2em]{#4}}%
@@ -154,6 +154,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\usepackage{graphicx}
\ifpdf
\usepackage[pdftex,
plainpages=false,
@@ -163,16 +164,16 @@
% colorlinks,
% ocgcolorlinks, % this only works for pdflatex
]{hyperref}
- \usepackage{graphicx}
\DeclareGraphicsRule{*}{mps}{*}{}
\else
\usepackage[plainpages=false,
- pdfpagelabels,
+ pdfpagelabels,
%%% hyperfootnotes=false,
- bookmarksnumbered,
-% colorlinks,
- ]{hyperref}
- \usepackage{graphicx}
+ bookmarksnumbered,
+ breaklinks,
+ % colorlinks,
+ ]{hyperref}
+ \usepackage{breakurl}
\DeclareGraphicsRule{*}{eps}{*}{}
\fi
%%% \usepackage{memhfixc} %% now called by hyperref
@@ -297,7 +298,7 @@
%%% \seeonceidx{main}{sub} %% index main (see sub), and index sub
\newcommand*{\seeonceidx}[2]{%
\@ifundefined{s1#2s1}%
- {\global\@namedef{s1#2s1}{?!?}\index{#1!#2|see{#2}}\index{#2}}%
+ {\global\@namedef{s1#2s1}{?!?}\index{#1!#2|see{#2}}\index{#2}}% %|
{\index{#2}}}
%%% \facesubseeidx{sub} %% index typeface (see sub), and index sub
\newcommand*{\facesubseeidx}[1]{\seeonceidx{typeface}{#1}}
@@ -494,7 +495,7 @@ official r\^ole in fluffy souffl\'es?' }
\newcommand*{\tightcenter}{%
\topsep=0.25\onelineskip\trivlist \centering\item\relax}
\def\endtightcenter{\endtrivlist}
-\LMnote{2010/06/25}{Added a \cs{crcr} here, a bit of a tric, but now
+\LMnote{2010/06/25}{Added a \cs{crcr} here, a bit of a trick, but now
the last line in syntax does not longer need to end with \\}
\newenvironment{syntax}{\begin{tightcenter}
\begin{tabular}{|p{0.9\linewidth}|} \hline}%
@@ -518,6 +519,8 @@ chapterstyle. It is one of several styles that come as part of the
\newcount\savefigcnt
\newcount\saveftncnt
\newcommand*{\demochapcolor}{\definecolor{shadecolor}{gray}{0.75}}
+\LMnote{2011/05/25}{I've moved the demochaps to an appendix, so
+ \cs{@chapapp} need a little redoing}
\newenvironment{demochap}[2][\onelineskip]{%
\savechapcnt=\c@chapter
\saveseccnt=\c@section
@@ -526,14 +529,16 @@ chapterstyle. It is one of several styles that come as part of the
\c@chapter=\demochapcnt
%% \stepcounter{demochapcnt}
\counterwithout*{figure}{chapter}
- \begin{figure}
+ \begin{figure}[htbp]
%%% \definecolor{shadecolor}{gray}{0.75}
\demochapcolor
\begin{shaded}
\savefigcnt=\c@figure
\begingroup
%% \hrule
+ \let\@chapapp\chaptername% such that appendix does not disturb
\renewcommand{\theHchapter}{\thepage.\thechapter}
+ \renewcommand\thechapter{\arabic{chapter}}
\vspace*{#1}
\chapterstyle{#2}
\let\clearforchapter\relax
@@ -1056,7 +1061,7 @@ it to use the new width for the margin par}
\edef\mem@e{\@ifnotmtarg{#1}{~(#1)}}
\section*{\snipletname~\thesniplet\mem@e}
\phantomsection
- \addcontentsline{toc}{section}{\snipletname~\thesniplet}
+ \addcontentsline{toc}{section}{\snipletname\ \thesniplet\mem@e}
\renewenvironment{lcode}{%\@zeroseps
\renewcommand{\verbatim@startline}{\verbatim@line{\hskip\gparindent}}
\small\setlength{\baselineskip}{\onelineskip}\verbatim}%
@@ -1065,6 +1070,27 @@ it to use the new width for the margin par}
\noindent}
}{}
+\let\normalchangetocdepth\changetocdepth
+\newcommand\sniplettoc{%
+ \setcounter{@memmarkcntra}{\value{tocdepth}}%
+ \begingroup%
+ \let\changetocdepth\@gobble%
+ \normalchangetocdepth{-10}%
+ \cftinsertcode{start-sniplets}{\normalchangetocdepth{3}}%
+ \cftinsertcode{end-sniplets}{\normalchangetocdepth{-10}}%
+ \let\tocheadstart\relax%\@gobble
+ % \printtoctitle\@gobble
+ \renewcommand\printtoctitle[1]{\section*{Sniplet overview}}%
+ \let\aftertoctitle\relax%
+ \let\printtocnonum\relax%
+ \let\precistoctext\@gobble%
+ \setlength\cftsectionindent{0pt}%
+ \tableofcontents*
+ \endgroup
+ \setcounter{tocdepth}{\value{@memmarkcntra}}
+}
+
+
%%% CTAN links
\providecommand\CTANurl{}
@@ -1082,6 +1108,12 @@ it to use the new width for the margin par}
\fancybreak{}
}
+\newenvironment{caveat}{\par\medskip\noindent\textbf{\textit{Caveat.}}\enskip\itshape}{\par\medskip}
+\newenvironment{note}{\par\medskip\noindent\textbf{\textit{Note.}}\enskip\itshape}{\par\medskip}
+\newenvironment{hint}{\par\medskip\noindent\textbf{\textit{Hint.}}\enskip\itshape}{\par\medskip}
+\renewcommand{\cmdprint}[1]{\textup{\texttt{\string#1}}}
+
+
\typeout{End memsty.sty}
\endinput