summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/medmath/medmath.tex
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/medmath/medmath.tex')
-rw-r--r--macros/latex/contrib/medmath/medmath.tex42
1 files changed, 37 insertions, 5 deletions
diff --git a/macros/latex/contrib/medmath/medmath.tex b/macros/latex/contrib/medmath/medmath.tex
index f57e2133d3..6b1e5fccd4 100644
--- a/macros/latex/contrib/medmath/medmath.tex
+++ b/macros/latex/contrib/medmath/medmath.tex
@@ -2,7 +2,7 @@
\documentclass[oneside,11pt]{article}
\usepackage[a4paper,margin=2cm]{geometry}
-\newcommand*{\myversion}{2024D}
+\newcommand*{\myversion}{2024E}
\newcommand*{\mydate}{Version \myversion\ (\the\year-\mylpad\month-\mylpad\day)}
\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
@@ -25,6 +25,10 @@
\usepackage{medmath}
\booltrue{mdm@bare}
+\NewDocumentCommand\mypkg{m}{\textcolor{blue3}{\mbox{#1}}}
+\NewDocumentCommand\myopt{m}{\textcolor{yellow3}{\mbox{#1}}}
+\NewDocumentCommand\mycmd{m}{\textcolor{green3}{\ttfamily\fakeverb{#1}}}
+
\begin{document}
\title{\textsf{\color{green3}The \texttt{medmath} package}}
@@ -32,9 +36,11 @@
\date{\mydate}
\maketitle
-\section{The \texttt{mediummath} option in \texttt{nccmath} package}
+\section{Introduction}
+
+\subsection{The \texttt{mediummath} option in \texttt{nccmath} package}
-There are several problems with \texttt{mediummath} option in \texttt{nccmath} package.
+There are several problems with \myopt{mediummath} option in \mypkg{nccmath} package.
\begin{enumerate}
\item The big operators in superscripts and subscripts are too large.
@@ -53,13 +59,13 @@ There are several problems with \texttt{mediummath} option in \texttt{nccmath} p
\end{demohigh}
\end{enumerate}
-\section{The \texttt{medmath} package}
+\subsection{The \texttt{medmath} package}
\makeatletter
\mdm@activate@all
\makeatother
-The \texttt{medmath} package started as a fork of \texttt{mediummath} code in \texttt{nccmath}
+The \mypkg{medmath} package started as a fork of \myopt{mediummath} code in \mypkg{nccmath}
package, aiming to provide more stable and flexible medium-size math commands.
\begin{enumerate}
@@ -79,4 +85,30 @@ package, aiming to provide more stable and flexible medium-size math commands.
\end{demohigh}
\end{enumerate}
+\section{Usage}
+
+Since \mypkg{medmath} package is a fork of \myopt{mediummath} option in \mypkg{nccmath}
+package, the usage is basically the same. Here is a minimal example:
+
+\begin{codehigh}
+\documentclass{article}
+\usepackage{medmath}
+\begin{document}
+Inline $\int_0^1x^2dx=\frac13$.
+Displayed \[ \int_0^1x^2dx=\frac13. \]
+\end{document}
+\end{codehigh}
+\vspace{0.5em}\hrule
+Inline $\int_0^1x^2dx=\frac13$.
+Displayed \[ \int_0^1x^2dx=\frac13. \]
+\hrule\vspace{0.5em}
+
+You will see that both integral symbols and both fractions are in medium size.
+You could see the differences if you remove \mycmd{\usepackage{medmath}} line.
+
+Since version 2024E, \mypkg{medmath} package is able to adjust \mycmd{\medintcorr} for some math fonts,
+hence integral operators with subscripts will look better. As a start, only three fonts
+(Computer Modern, Mathdesign Utopia, and Mathdesign Charter) are detected.
+
+
\end{document}