Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 26c73b7

Browse files
committed
Added semi-structured support for feature deprecation.
1 parent f9fd4e8 commit 26c73b7

1 file changed

Lines changed: 23 additions & 1 deletion

File tree

Doc/myformat.sty

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,13 @@
9494
\evensidemargin \oddsidemargin
9595
\marginparwidth 0.5in
9696

97-
\textwidth 6.5in
97+
\@ifundefined{paperwidth}{
98+
\textwidth 6.5in
99+
}{
100+
\textwidth \paperwidth
101+
\advance\textwidth by -2in
102+
}
103+
98104

99105
% Style parameters and macros used by most documents here
100106
\raggedbottom
@@ -450,6 +456,22 @@
450456
\newcommand{\program}[1]{\strong{#1}}
451457

452458

459+
% Deprecation stuff.
460+
% Should be extended to allow an index / list of deprecated stuff. But
461+
% there's a lot of stuff that needs to be done to make that automatable.
462+
%
463+
% First parameter is the release number that deprecates the feature, the
464+
% second is the action the should be taken by users of the feature.
465+
%
466+
% Example:
467+
%
468+
% \deprecated {1.5.1}
469+
% {Use \method{frobnicate()} instead.}
470+
%
471+
\newcommand{\deprecated}[2]{%
472+
\strong{Deprecated since release #1.} #2\par}
473+
474+
453475
\newenvironment{tableii}[4]{%
454476
\begin{center}%
455477
\def\lineii##1##2{\csname#2\endcsname{##1}&##2\\}%

0 commit comments

Comments
 (0)