Browse Source

let stdl, altl and arev throw errors outside of pdfTeX

master
Jonathan Spratte 11 months ago
parent
commit
a0511d6a62
4 changed files with 35 additions and 4 deletions
  1. BIN
      Doc/doc_MRTbundle.pdf
  2. 3
    0
      Doc/tex/doc_MRTfonts.tex
  3. 1
    1
      Doc/tex/doc_MRTsfacc.tex
  4. 31
    3
      MRTfonts/MRTfonts.sty

BIN
Doc/doc_MRTbundle.pdf View File


+ 3
- 0
Doc/tex/doc_MRTfonts.tex View File

@@ -94,10 +94,12 @@ giving a uniform look to the documents.
94 94
 \section{Macros}\label{sec:fonts:macros}
95 95
 %>>=
96 96
 \begin{describemacro}{stdl}
97
+  \emph{Only available in \hologo{pdfTeX}.}\\
97 98
   \cs{stdl} will result in the lower case |l| from the \pkg{helvet} font in
98 99
   maths (\bverb|$\stdl$| results in $\stdl$).
99 100
 \end{describemacro}
100 101
 \begin{describemacro}{altl}
102
+  \emph{Only available in \hologo{pdfTeX}.}\\
101 103
   \cs{altl} provides an alternative lower case |l| for use in maths which is
102 104
   distinct from an upper case |I|. Compare: $\stdl I$ (that is |$\stdl I$|) and
103 105
   $\altl I$ (that is |$\altl I$|). There is no bold version of \cs{altl}
@@ -105,6 +107,7 @@ giving a uniform look to the documents.
105 107
   standard fonts will be the ones used there.
106 108
 \end{describemacro}
107 109
 \begin{describemacro}{arev}[\marg{symbols}]
110
+  \emph{Only available in \hologo{pdfTeX}.}\\
108 111
   This is another maths font (similar to \cs{mathbf} or \cs{mathcal}), that will
109 112
   use the maths font of \pkg{arevmath}, from which \cs{altl} is taken. Take a
110 113
   look at the following (the first group uses the standard maths fonts, the

+ 1
- 1
Doc/tex/doc_MRTsfacc.tex View File

@@ -42,7 +42,7 @@ The package has the following options:
42 42
   redefine \cs{mathaccentV} or the definition has changed but you're sure that
43 43
   \pkg{MRTsfacc} still works with (it redefines it anyway) you can deactivate
44 44
   that test with this option. If \pkg{amsmath}'s definition of \cs{mathaccentV}
45
-  has changed, please contact the me as described in \autoref{sec:bugs}.
45
+  has changed, please contact the maintainer as described in \autoref{sec:bugs}.
46 46
 \end{describeopt}
47 47
 
48 48
 Every other option is passed on to \cs{MRTsfaccSet}, its description is included

+ 31
- 3
MRTfonts/MRTfonts.sty View File

@@ -1,5 +1,5 @@
1
-\newcommand*\MRTfonts@version{0.0.8}
2
-\newcommand*\MRTfonts@date{2020-08-01}
1
+\newcommand*\MRTfonts@version{0.0.9}
2
+\newcommand*\MRTfonts@date{2020-10-18}
3 3
 
4 4
 \NeedsTeXFormat{LaTeX2e}
5 5
 
@@ -212,7 +212,35 @@
212 212
 
213 213
 %% alternative lower case l for maths >>=
214 214
 %%=============================================================================
215
-\bool_if:NF \c_MRTfonts_xetex_or_luatex_bool
215
+\bool_if:NTF \c_MRTfonts_xetex_or_luatex_bool
216
+  {
217
+    \MRTutil@def[\long]\arev#1
218
+      {
219
+        \msg_error:nnnn { MRTfonts } { wrong~engine }
220
+          { macro ~ `\arev' } { pdftex }
221
+        #1
222
+      }
223
+    \MRTutil@def\stdl
224
+      {
225
+        \msg_expandable_error:nnnn { MRTfonts } { wrong~engine }
226
+          { macro ~ `\stdl' } { pdftex }
227
+        l
228
+      }
229
+    \MRTutil@def\altl
230
+      {
231
+        \msg_expandable_error:nnnn { MRTfonts } { wrong~engine }
232
+          { macro ~ `\altl' } { pdftex }
233
+        l
234
+      }
235
+    \AtBeginDocument
236
+      {
237
+        \cs_if_exist:NT \MRTsfaccShift
238
+          {
239
+            \MRTsfaccShiftLet \stdl l
240
+            \MRTsfaccShiftLet \altl l
241
+          }
242
+      }
243
+  }
216 244
   {
217 245
     \DeclareSymbolFont{AREVletters}{OML}{zavm}{m}{it}
218 246
     \DeclareSymbolFontAlphabet{\arev}{AREVletters}

Loading…
Cancel
Save