summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/pm-isomath/pm-isomath.dtx
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-05-05 03:02:17 +0000
committerNorbert Preining <norbert@preining.info>2021-05-05 03:02:17 +0000
commit75db33dc347ec9cfbaa2f3ec538a2697351f571b (patch)
tree0ea6d721f8478ed9ae95c93330c94aa8fcfd30b8 /macros/latex/contrib/pm-isomath/pm-isomath.dtx
parent342f2e1be699f5ec70b5b1c35d9cd59798d37304 (diff)
CTAN sync 202105050302
Diffstat (limited to 'macros/latex/contrib/pm-isomath/pm-isomath.dtx')
-rw-r--r--macros/latex/contrib/pm-isomath/pm-isomath.dtx28
1 files changed, 17 insertions, 11 deletions
diff --git a/macros/latex/contrib/pm-isomath/pm-isomath.dtx b/macros/latex/contrib/pm-isomath/pm-isomath.dtx
index dba0560e67..466885491a 100644
--- a/macros/latex/contrib/pm-isomath/pm-isomath.dtx
+++ b/macros/latex/contrib/pm-isomath/pm-isomath.dtx
@@ -8,7 +8,7 @@
\preamble
______________________________________________________
The PM-ISOmath bundle
- Copyright (C) 2017-2020 Claudio Beccari
+ Copyright (C) 2017-2021 Claudio Beccari
All rights reserved
License information appended
@@ -40,7 +40,7 @@ This work consists of this file pm-isomath.dtx, a README.txt file
\endgroup
%</internal>
%
-% Copyright 2017-2020 Claudio Beccari
+% Copyright 2017-2021 Claudio Beccari
%
% This file is part of the PM-ISOmath bundle
% -------------------------------------------
@@ -57,7 +57,7 @@ This work consists of this file pm-isomath.dtx, a README.txt file
%<style>\ProvidesPackage{pm-isomath}[%
%<txt>\ProvidesFile{README.txt}[%
%<*driver,style,txt>
- 2021/05/01 v.1.1.00
+ 2021/05/03 v.1.1.01
%<txt> README file for pm-isomath.sty]
%<style>Poor man package for typesetting ISO compliant math when using pdfLaTeX]
%</driver,style,txt>
@@ -76,6 +76,7 @@ This work consists of this file pm-isomath.dtx, a README.txt file
\usepackage[LGR,T1]{fontenc}
\usepackage{lmodern,textcomp}
\usepackage{pm-isomath}
+\usepackage{siunitx}
\let\originalmeta\meta
\renewcommand\meta[1]{{\normalfont\originalmeta{#1}}}
\def\prog#1{\textsf{#1}}
@@ -103,7 +104,7 @@ This work consists of this file pm-isomath.dtx, a README.txt file
%</driver>
% \fi
%
-% \CheckSum{459}%
+% \CheckSum{460}%
% \begin{abstract}
% The ISO regulations for typesetting math in the field of physics
% and technology are pretty stringent and imply legal questions
@@ -593,6 +594,9 @@ This work consists of this file pm-isomath.dtx, a README.txt file
%\begin{verbatim}
%$1.68\,\micro\ohm\,\mathrm{cm}$ (in text mode: 1.68\unit{\micro\ohm\,cm})
%\end{verbatim}
+% If the |siunitx| package has been loaded (as it is for typesetting
+% this documentation) its unit |ohm| is redefined so as to always be
+% an upright capital omega.
%\subparagraph{A tensor}
%\[ \vectorsymbol{D} =\epsilon_0\tensorsymbol{\epsilon}\ped{r}\vectorsymbol{E}\]
%is typeset with the following code
@@ -672,7 +676,7 @@ This work consists of this file pm-isomath.dtx, a README.txt file
%\frac{\uppartial V}{\uppartial x}\MathLatin{e}[b](it)_x +
%\frac{\uppartial V}{\uppartial y}\MathLatin{e}[b](it)_y +
%\frac{\uppartial V}{\uppartial z}\MathLatin{e}[b](it)_z +
-%\right)\\[\baselineskip]
+%\right)
%\end{align}
%
%\section{Final remarks}
@@ -1101,7 +1105,9 @@ This work consists of this file pm-isomath.dtx, a README.txt file
% The command |\unit| for appending the units of measure to
% the numerical value of the measure is added if no packages
% have already defined it; package |siunitx| is a particularly
-% recommended one. Similar considerations hold true for the
+% recommended one, but its units and prefixes expressed by means
+% of greek letters must be used only within its |\si| and |SI|
+% commands. Similar considerations hold true for the
% |\ap| and |\ped| (apex and pedex, respectively; i.e\
% superscript and subscript); therefore such command definitions
% are deferred to the start of the document so as to be sure
@@ -1151,11 +1157,11 @@ This work consists of this file pm-isomath.dtx, a README.txt file
{\renewcommand*\micro{\ISOmu(rs)}}%
}
%
-\providecommand*\ohm{}
-\AtBeginDocument{\@ifpackageloaded{textcomp}%
- {\renewcommand*\ohm{\textormath{{\textohm}}{\ISOOmega(n)}}}%
- {\renewcommand*\ohm{\ISOOmega(n)}}%
-}
+\providecommand*\ohm{}\def\ISOohm{\ISOOmega(n)}
+\AtBeginDocument{%
+ \@ifpackageloaded{siunitx}{\let\ohm\ISOohm}{\let\ohm\ISOohm}%
+}%
+
%
\global\csletcs{bbl@it@ped}{undefined}
\global\csletcs{bbl@it@ap}{undefined}