diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/memoir/memsty.sty')
-rw-r--r-- | Master/texmf-dist/doc/latex/memoir/memsty.sty | 60 |
1 files changed, 57 insertions, 3 deletions
diff --git a/Master/texmf-dist/doc/latex/memoir/memsty.sty b/Master/texmf-dist/doc/latex/memoir/memsty.sty index 0a13705a066..c94e073fb39 100644 --- a/Master/texmf-dist/doc/latex/memoir/memsty.sty +++ b/Master/texmf-dist/doc/latex/memoir/memsty.sty @@ -1,5 +1,5 @@ %% memsty.sty For memman -\ProvidesPackage{memsty}[2009/07/08 for memman] +\ProvidesPackage{memsty}[2010/02/09 for memman] %%%%\usepackage{desc}% temporary, until code added to memoir itself @@ -19,6 +19,10 @@ \usepackage{amsmath} \usepackage[T1]{fontenc} +\providecommand{\LMnote}[2]{} +\providecommand{\PWnote}[2]{} + + %%%%%%%%%%%%%%%%%%% kill scale change warning in layouts \renewcommand*{\setlayoutscale}[1]{\setlength{\l@youtunitlength}{1pt} @@ -329,8 +333,10 @@ \index{#1 opt?\Popt{#1} (option)}% \index{option!#1?\Popt{#1}}} % option name \newcommand*{\Pe}[1]{\texttt{#1}} % print env name -\newcommand*{\Ie}[1]{\texttt{#1}\index{#1 env?\texttt{#1} (environment)}% - \index{environment!#1?\texttt{#1}}} +%%% 2009/12/19 added \ixenv & changed \Ie to use it +\newcommand*{\ixenv}[1]{\index{#1 env?\Pe{#1} (environment)}% index env + \index{environment!#1?\Pe{#1}}} +\newcommand*{\Ie}[1]{\Pe{#1}\ixenv{#1}} % print & index env \newcommand*{\Pcn}[1]{\texttt{#1}} % print counter name \newcommand*{\Icn}[1]{\texttt{#1}\index{#1 cou?\Pcn{#1} (counter)}% \index{counter!#1?\Pcn{#1}}} @@ -675,6 +681,7 @@ chapterstyle. It is one of several styles that come as part of the \rightmargin\leftmargin} \item\relax}{\endlist} +%%% pair with egresult % \begin{egsource}{label} \newcommand*{\egsourcecolor}{\definecolor{shadecolor}{gray}{0.9}} \newenvironment{egsource}[1]{% @@ -686,6 +693,24 @@ chapterstyle. It is one of several styles that come as part of the \small\setlength{\baselineskip}{\onelineskip}\nobreak\verbatim}% {\endverbatim\endlisteg\endshaded}%\vskip\onelineskip\noindent} +%%\newcommand*{\captegsource}{Source for example} +%%\newfloat[chapter]{tegsource}{los}{\captegresult} +%%\newcommand*{\listegsourcesname}{List of source code examples} +%%\newlistof{listofegsources}{los}{\listegsourcesname} +%%\newlistentry[chapter]{tegsource}{los}{0} + +%%\renewenvironment{egsource}[1]{% +%%\tegsource +%% \parskip\z@ \topsep\z@% +%% \egsourcecolor +%% \shaded +%% \listeg\centerline{Source for example~\ref{#1}}%\ +%% \vspace{\onelineskip} +%% \small\setlength{\baselineskip}{\onelineskip}\nobreak\verbatim}% +%% {\endverbatim\endlisteg\endshaded%} +%%\endtegsource} + + \newcommand*{\Hline}{\mbox{}\hrulefill\mbox{}} % line across the page @@ -716,6 +741,7 @@ chapterstyle. It is one of several styles that come as part of the \newlistentry[chapter]{tegresult}{loe}{0} \newcommand*{\egresultcolor}{\definecolor{shadecolor}{gray}{0.9}} +%%% pair with egsource % \begin{egresult}[caption]{label} \newenvironment{egresult}[2][]{% \begin{tegresult} @@ -974,8 +1000,15 @@ chapterstyle. It is one of several styles that come as part of the \setmarginnotes{17pt}{51pt}{\onelineskip} \setheadfoot{\onelineskip}{2\onelineskip} \setheaderspaces{*}{2\onelineskip}{*} +\LMnote{2010/02/05}{added \cs{setsidefeet} to get +it to use the new width for the margin par} +\setsidefeet{\marginparsep}{9em}% + {\onelineskip}{0pt}% + {\normalfont\footnotesize}{\textheight}% \checkandfixthelayout + + %%% empty pagestyle for Part pages \aliaspagestyle{part}{empty} @@ -1005,6 +1038,27 @@ chapterstyle. It is one of several styles that come as part of the } +%%%% SNIPLETS %%%% +\newcounter{sniplet} +\counterwithin{sniplet}{chapter} +\newcommand*\snipletname{Sniplet} +\newcommand*\snipletref[1]{\snipletname~\ref{#1} on~\pref{#1}} +\newenvironment{sniplet}[1][]{ + \refstepcounter{sniplet} + \edef\mem@e{\@ifnotmtarg{#1}{~(#1)}} + \section*{\snipletname~\thesniplet\mem@e} + \phantomsection + \addcontentsline{toc}{section}{\snipletname~\thesniplet} + \renewenvironment{lcode}{%\@zeroseps + \renewcommand{\verbatim@startline}{\verbatim@line{\hskip\gparindent}} + \small\setlength{\baselineskip}{\onelineskip}\verbatim}% + {\endverbatim + \vspace{-0.75\baselineskip}% + \noindent} +}{} + + + \typeout{End memsty.sty} \endinput |