Skip to content

Commit

Permalink
Fix Fixme; Fix Tony Table; make wgItemRem/Add more useful
Browse files Browse the repository at this point in the history
ChangeLog:

	* mymacros.sty:
	* wg21macros.sty:
  • Loading branch information
mattkretz committed Sep 13, 2024
1 parent 5bb27dd commit cc0eca0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion mymacros.sty
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
\DefineNamedColor{named}{Red} {cmyk}{0,1,1,0}
\newcommand{\missing}{\fcolorbox{Red}{White!80!Red}{\color{RoyalBlue!50!Black}\bfseries\scshape to\kern.1emdo}}
\newcommand{\FIXME}[1]{\par\noindent%
{\small\centering\fcolorbox{Red}{White!80!Red}{\begin{minipage}{0.85\linewidth}{\bfseries\scshape FixMe}: #1\end{minipage}}\par}\vskip.3\baselineskip plus \baselineskip}
{\small\centering\fcolorbox{Red}{White!80!Red}{\begin{minipage}{0.85\linewidth}{\bfseries\scshape Fixme}: #1\end{minipage}}\par}\vskip.3\baselineskip plus \baselineskip}
\newcommand{\INFO}[1]{\par\noindent%
{\small\centering\fcolorbox{RoyalBlue}{White!80!RoyalBlue}{\begin{minipage}{0.85\linewidth}{\bfseries\scshape Note}: #1\end{minipage}}\par}\vskip.3\baselineskip plus \baselineskip}
%\newcommand{\TODO}[1]{\par\noindent%
Expand Down
8 changes: 4 additions & 4 deletions wg21macros.sty
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@
\newcommand\wgRemove[1]{\textcolor{WgRem}{\st{#1}}} % deprecated
\newcommand\wgRem[1]{\textcolor{WgRem}{\st{#1}}}
\newcommand\wgChange[2]{\wgRem{#1}\wgAdd{#2}}
\newcommand\wgItemAdd{\color{WgAdd}\item[\ul{\mbox{ \textbullet }}]\hspace*{-\labelsep}\ul{\mbox{\hspace*{\labelsep}}}}
\newcommand\wgItemRem{\color{WgRem}\item[\st{\mbox{ \textbullet }}]\hspace*{-\labelsep}\st{\mbox{\hspace*{\labelsep}}}}
\newcommand\wgItemAdd[1][]{\color{WgAdd}\item[\ul{\mbox{ \textbullet }}]\hspace*{-\labelsep}\ul{\mbox{\hspace*{\labelsep}}}\wgAdd{#1}}
\newcommand\wgItemRem[1][]{\color{WgRem}\item[\st{\mbox{ \textbullet }}]\hspace*{-\labelsep}\st{\mbox{\hspace*{\labelsep}}}\wgRem{#1}}
\newenvironment{wgBAdd}{\color{WgAdd}}{\color{black}}
\newenvironment{wgBRem}{\color{WgRem}}{\color{black}}
\newcommand\wgTextFonts{\def\ttdefault{wgCodeFont}\rmfamily\smaller[1]}
Expand Down Expand Up @@ -338,12 +338,12 @@
\end{table}%
}

\newcommand{\ttref}[1]{Tony~Table~\ref{tt:#1}}
\newcommand{\ttref}[1]{\st{Tony~}Table~\ref{tt:#1}}

\newcounter{TonyTable}

\newenvironment{tonytable}[2][before]{%
\renewcommand\tablename{Tony Table}%
\renewcommand\tablename{\st{Tony}Before/After Table}%
\let\prevthetable\thetable%
\addtocounter{table}{-1}%
\stepcounter{TonyTable}%
Expand Down

0 comments on commit cc0eca0

Please sign in to comment.