Moved a few macros

This commit is contained in:
2023-10-26 08:14:55 -07:00
parent 044e7aa0a3
commit c9d2e8672c
4 changed files with 95 additions and 81 deletions

View File

@ -7,54 +7,6 @@
\usepackage{../../resources/macros}
\usepackage{mdframed}
\usepackage{pgf}
% Ruble symbol with tweaks
\DeclareRobustCommand*{\Rub}{%
\begingroup
\dimendef\H=0 %
\settoheight\H{P}%
\begin{pgfpicture}%
\pgfsetlinewidth{.1\H}%
\pgfsetrectcap
\pgfsetmiterjoin
\pgfmoveto{\pgfpoint{0pt}{0.07\H}}% Move to bottom of main line
\pgflineto{\pgfpoint{0pt}{.90\H}}% P main line
\pgflineto{\pgfpoint{.3\H}{.90\H}}% P top line
\pgfpatharc{90}{-90}{.21\H}% P circle
\pgflineto{\pgfpoint{-.08\H}{.48\H}}% P bottom line
\pgfmoveto{\pgfpoint{-.08\H}{.31\H}}% Bonus line move
\pgflineto{\pgfpoint{.34\H}{.31\H}}% Bonus line draw
\pgfusepath{stroke}%
\pgfmoveto{\pgfpoint{-.23\H}{0pt}}% Before space
\pgfmoveto{\pgfpoint{0.55\H}{0pt}}% After space
\end{pgfpicture}%
\endgroup
}
% Ruble symbol, per official Kremlin specification
%
%\DeclareRobustCommand*{\Rub}{%
% \begingroup
% \dimendef\H=0 %
% \settoheight\H{P}%
% \begin{pgfpicture}%
% \pgfsetlinewidth{.1\H}%
% \pgfsetrectcap
% \pgfsetmiterjoin
% \pgfmoveto{\pgfpoint{0pt}{0.05\H}}%
% \pgflineto{\pgfpoint{0pt}{.95\H}}%
% \pgflineto{\pgfpoint{.35\H}{.95\H}}%
% \pgfpatharc{90}{-90}{.225\H}%
% \pgflineto{\pgfpoint{-.05\H}{.5\H}}%
% \pgfmoveto{\pgfpoint{-.05\H}{.34\H}}%
% \pgflineto{\pgfpoint{.38\H}{.34\H}}%
% \pgfusepath{stroke}%
% \pgfmoveto{\pgfpoint{-.175\H}{0pt}}%
% \pgfmoveto{\pgfpoint{.7\H}{0pt}}%
% \end{pgfpicture}%
% \endgroup
%}
\newmdenv[
topline=false,