Debian Codegraph @

texmf-dist/doc/latex/isomath/isomath.sty.html

raw
1 <?xml version="1.0" encoding="utf-8" ?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.10: http://docutils.sourceforge.net/" />
7 <title>isomath</title>
8 <meta name="date" content="2012-09-10" />
9 <meta name="copyright" content="© 2008, 2012 Günter Milde" />
10 <style type="text/css">
11
12 /*
13 :Author: David Goodger ([email protected])
14 :Id: $Id: html4css1.css 7434 2012-05-11 21:06:27Z milde $
15 :Copyright: This stylesheet has been placed in the public domain.
16
17 Default cascading style sheet for the HTML output of Docutils.
18
19 See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
20 customize this style sheet.
21 */
22
23 /* used to remove borders from tables and images */
24 .borderless, table.borderless td, table.borderless th {
25 border: 0 }
26
27 table.borderless td, table.borderless th {
28 /* Override padding for "table.docutils td" with "! important".
29 The right padding separates the table cells. */
30 padding: 0 0.5em 0 0 ! important }
31
32 .first {
33 /* Override more specific margin styles with "! important". */
34 margin-top: 0 ! important }
35
36 .last, .with-subtitle {
37 margin-bottom: 0 ! important }
38
39 .hidden {
40 display: none }
41
42 a.toc-backref {
43 text-decoration: none ;
44 color: black }
45
46 blockquote.epigraph {
47 margin: 2em 5em ; }
48
49 dl.docutils dd {
50 margin-bottom: 0.5em }
51
52 object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
53 overflow: hidden;
54 }
55
56 /* Uncomment (and remove this text!) to get bold-faced definition list terms
57 dl.docutils dt {
58 font-weight: bold }
59 */
60
61 div.abstract {
62 margin: 2em 5em }
63
64 div.abstract p.topic-title {
65 font-weight: bold ;
66 text-align: center }
67
68 div.admonition, div.attention, div.caution, div.danger, div.error,
69 div.hint, div.important, div.note, div.tip, div.warning {
70 margin: 2em ;
71 border: medium outset ;
72 padding: 1em }
73
74 div.admonition p.admonition-title, div.hint p.admonition-title,
75 div.important p.admonition-title, div.note p.admonition-title,
76 div.tip p.admonition-title {
77 font-weight: bold ;
78 font-family: sans-serif }
79
80 div.attention p.admonition-title, div.caution p.admonition-title,
81 div.danger p.admonition-title, div.error p.admonition-title,
82 div.warning p.admonition-title {
83 color: red ;
84 font-weight: bold ;
85 font-family: sans-serif }
86
87 /* Uncomment (and remove this text!) to get reduced vertical space in
88 compound paragraphs.
89 div.compound .compound-first, div.compound .compound-middle {
90 margin-bottom: 0.5em }
91
92 div.compound .compound-last, div.compound .compound-middle {
93 margin-top: 0.5em }
94 */
95
96 div.dedication {
97 margin: 2em 5em ;
98 text-align: center ;
99 font-style: italic }
100
101 div.dedication p.topic-title {
102 font-weight: bold ;
103 font-style: normal }
104
105 div.figure {
106 margin-left: 2em ;
107 margin-right: 2em }
108
109 div.footer, div.header {
110 clear: both;
111 font-size: smaller }
112
113 div.line-block {
114 display: block ;
115 margin-top: 1em ;
116 margin-bottom: 1em }
117
118 div.line-block div.line-block {
119 margin-top: 0 ;
120 margin-bottom: 0 ;
121 margin-left: 1.5em }
122
123 div.sidebar {
124 margin: 0 0 0.5em 1em ;
125 border: medium outset ;
126 padding: 1em ;
127 background-color: #ffffee ;
128 width: 40% ;
129 float: right ;
130 clear: right }
131
132 div.sidebar p.rubric {
133 font-family: sans-serif ;
134 font-size: medium }
135
136 div.system-messages {
137 margin: 5em }
138
139 div.system-messages h1 {
140 color: red }
141
142 div.system-message {
143 border: medium outset ;
144 padding: 1em }
145
146 div.system-message p.system-message-title {
147 color: red ;
148 font-weight: bold }
149
150 div.topic {
151 margin: 2em }
152
153 h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
154 h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
155 margin-top: 0.4em }
156
157 h1.title {
158 text-align: center }
159
160 h2.subtitle {
161 text-align: center }
162
163 hr.docutils {
164 width: 75% }
165
166 img.align-left, .figure.align-left, object.align-left {
167 clear: left ;
168 float: left ;
169 margin-right: 1em }
170
171 img.align-right, .figure.align-right, object.align-right {
172 clear: right ;
173 float: right ;
174 margin-left: 1em }
175
176 img.align-center, .figure.align-center, object.align-center {
177 display: block;
178 margin-left: auto;
179 margin-right: auto;
180 }
181
182 .align-left {
183 text-align: left }
184
185 .align-center {
186 clear: both ;
187 text-align: center }
188
189 .align-right {
190 text-align: right }
191
192 /* reset inner alignment in figures */
193 div.align-right {
194 text-align: inherit }
195
196 /* div.align-center * { */
197 /* text-align: left } */
198
199 ol.simple, ul.simple {
200 margin-bottom: 1em }
201
202 ol.arabic {
203 list-style: decimal }
204
205 ol.loweralpha {
206 list-style: lower-alpha }
207
208 ol.upperalpha {
209 list-style: upper-alpha }
210
211 ol.lowerroman {
212 list-style: lower-roman }
213
214 ol.upperroman {
215 list-style: upper-roman }
216
217 p.attribution {
218 text-align: right ;
219 margin-left: 50% }
220
221 p.caption {
222 font-style: italic }
223
224 p.credits {
225 font-style: italic ;
226 font-size: smaller }
227
228 p.label {
229 white-space: nowrap }
230
231 p.rubric {
232 font-weight: bold ;
233 font-size: larger ;
234 color: maroon ;
235 text-align: center }
236
237 p.sidebar-title {
238 font-family: sans-serif ;
239 font-weight: bold ;
240 font-size: larger }
241
242 p.sidebar-subtitle {
243 font-family: sans-serif ;
244 font-weight: bold }
245
246 p.topic-title {
247 font-weight: bold }
248
249 pre.address {
250 margin-bottom: 0 ;
251 margin-top: 0 ;
252 font: inherit }
253
254 pre.literal-block, pre.doctest-block, pre.math, pre.code {
255 margin-left: 2em ;
256 margin-right: 2em }
257
258 pre.code .ln { /* line numbers */
259 color: grey;
260 }
261
262 .code {
263 background-color: #eeeeee
264 }
265
266 span.classifier {
267 font-family: sans-serif ;
268 font-style: oblique }
269
270 span.classifier-delimiter {
271 font-family: sans-serif ;
272 font-weight: bold }
273
274 span.interpreted {
275 font-family: sans-serif }
276
277 span.option {
278 white-space: nowrap }
279
280 span.pre {
281 white-space: pre }
282
283 span.problematic {
284 color: red }
285
286 span.section-subtitle {
287 /* font-size relative to parent (h1..h6 element) */
288 font-size: 80% }
289
290 table.citation {
291 border-left: solid 1px gray;
292 margin-left: 1px }
293
294 table.docinfo {
295 margin: 2em 4em }
296
297 table.docutils {
298 margin-top: 0.5em ;
299 margin-bottom: 0.5em }
300
301 table.footnote {
302 border-left: solid 1px black;
303 margin-left: 1px }
304
305 table.docutils td, table.docutils th,
306 table.docinfo td, table.docinfo th {
307 padding-left: 0.5em ;
308 padding-right: 0.5em ;
309 vertical-align: top }
310
311 table.docutils th.field-name, table.docinfo th.docinfo-name {
312 font-weight: bold ;
313 text-align: left ;
314 white-space: nowrap ;
315 padding-left: 0 }
316
317 h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
318 h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
319 font-size: 100% }
320
321 ul.auto-toc {
322 list-style-type: none }
323
324 </style>
325 <style type="text/css">
326
327 /* html4css2.css: Cascading style sheet for Docutils' html4strict writer. */
328 /* */
329 /* :Author: Günter Milde */
330 /* :Copyright: © 2009 Günter Milde. */
331 /* Released without warranties or conditions of any kind */
332 /* under the terms of the Apache License, Version 2.0 */
333 /* http://www.apache.org/licenses/LICENSE-2.0 */
334 /* */
335 /* This stylesheet supplements the Docutils standard style 'html4css1.css'. */
336 /* It uses CSS 2.1 elements (supported by up-to-date versions of popular */
337 /* browsers). */
338
339 /* General rules */
340 /* ============= */
341
342 body {
343 padding: 0 5%;
344 margin: 8px 0;
345 line-height:1.3;
346 /* http://ilovetypography.com/2008/02/28/a-guide-to-web-typography/
347 recommends "line-spacing that’s at least 140% of your text size" */
348 counter-reset: table;
349 /* counter-reset: figure; */
350 }
351
352 /* avoid long lines --> better reading */
353 /* OTOH: lines should not be too short because of missing hyphenation, */
354 div.document {
355 max-width: 45em;
356 margin: auto;
357 }
358
359 /* separate items except for compact lists */
360 dl > dd {
361 margin-bottom: 1em;
362 }
363 .compact li, .compact p, .compact ul, .compact ol
364 dl.simple > dd, .simple li, .simple p, .simple ul, .simple ol {
365 margin-top: 0;
366 margin-bottom: 0;
367 /* background: magenta; */
368 }
369 dl.simple, dl.compact, dl.simple > dd, dl.compact > dd {
370 margin-top: 0;
371 margin-bottom: 0;
372 /* background: lightgreen; */
373 }
374
375 /* space around paragraphs */
376 dl > dd p:first-child, td > p {
377 margin: 0;
378 }
379
380 /* Sidebar */
381 /* ------- */
382
383 div.sidebar {
384 margin-right: -5%;
385 }
386
387 /* Special definition lists */
388 /* ======================== */
389
390 /* bold definition term on the same line as the label */
391 dl.field-list > dt, dl.option-list > dt, dl.docinfo > dt,
392 dl.footnote > dt, dl.citation > dt, dl.description > dt {
393 clear: left;
394 float: left;
395 margin: 0;
396 padding: 0;
397 padding-right: 0.5em;
398 font-weight: bold;
399 }
400 /* except for these */
401 dl.option-list > dt, dl.footnote > dt {
402 font-weight: normal;
403 }
404
405
406
407 /* Field Lists */
408 /* ----------- */
409
410 /* field names followed by a colon */
411 dl.field-list > dt:after, dl.docinfo > dt:after {
412 content: ":";
413 }
414
415 /* Offset for field content (corresponds to the --field-name-limit option) */
416 dl.field-list > dd {
417 margin-left: 9em; /* ca. 14 chars in the test examples */
418 padding-left: 0.5em;
419 }
420
421 /* start field-body on a new line after long field names */
422 dl.field-list > dd p {
423 width: 100%;
424 /* display: inline-block; */
425 /* background: yellow; */
426 }
427
428 dl.field-list > dd > p:first-child,
429 /* dl.field-list > dd > ol:first-child, */
430 /* dl.field-list > dd > ul:first-child, */
431 dl.field-list > dd > dl:first-child {
432 display: inline-block;
433 }
434
435 /* field-list variants:: */
436
437 /* example for custom field-name width */
438 dl.field-list.narrow > dd {
439 margin-left: 5em;
440 }
441
442 /* start field-body on same line after long field names */
443 dl.field-list.run-in > dd p {
444 display: block;
445 }
446
447 /* wrap or truncate long field names */
448 dl.field-list.fix-labelwidth > dt {
449 width: 8em; /* set to dl.field-list > dd margin-left - padding-left */
450 overflow: hidden;
451 }
452 dl.field-list.fix-labelwidth > dd:after {
453 /* a "stopper" to prevent next dd floating up too far */
454 content: '';
455 display: block;
456 clear: left;
457 }
458
459 /* docinfo */
460
461 dl.docinfo > dd {
462 margin-left: 8em;
463 /* margin-bottom: 0.5em; */
464 }
465
466
467 /* option list */
468
469 dl.option-list {
470 margin-left: 1em;
471 padding-left: 0;
472 }
473
474 dl.option-list > dd {
475 margin-left: 8em;
476 /* margin-bottom: 0.5em; */
477 }
478
479 /* start description on a new line after long options */
480 dl.option-list > dd p {
481 width: 100%;
482 display: inline-block;
483 }
484
485 /* footnotes */
486
487 a.footnote-reference, a.fn-backref {
488 text-decoration: inherit; /* do not underline footnote links */
489 }
490
491 dl.footnote {
492 /* line on the left */
493 padding-left: 1ex;
494 border-left: solid;
495 border-left-width: thin;
496 /* border-color: black; */
497 }
498
499 /* paragraph on same line as backrefs */
500 dd > em {
501 /* background: green; */
502 float: left;
503 margin-right: 1ex
504 }
505
506
507 /*
508 Ordered List (Enumeration)
509 --------------------------
510
511 Use counters to replace the deprecated start attribute. Make sure the
512 resulting list resembles the list-style 'outside' with a hanging indent.
513 */
514
515 /* New ordered list: reset counter, suppress the default label */
516 ol, ol.arabic, ol.loweralpha, ol.upperalpha,
517 ol.lowerroman, ol.upperroman {
518 counter-reset: item;
519 list-style: none
520 }
521
522 /* Set the negative indent of the list label as feature of the list item */
523 ol > li {
524 text-indent: -40px; /* Mozillas default indent */
525 }
526 /* reset for child elements */
527 ol > li > * {
528 text-indent: 0px;
529 text-indent: 0;
530 margin-top: 0;
531 /* background: lightgreen; */
532 }
533
534 /* Label */
535 ol > li:before {
536 /* increment and typeset counter(s), */
537 counter-increment: item;
538 content: counter(item) ".";
539 /* display next to the content (aligned top-right), */
540 display: inline-block;
541 text-align: right;
542 vertical-align: top;
543 /* sum must match ol>li {text-indent:} (40px is Mozillas default) */
544 width: 35px;
545 padding-right: 5px;
546 /* background: yellow; */
547 }
548
549 /* The list item's first line starts next to the label, without indent */
550 ol > li > p:first-child,
551 ol > li > ol:first-child,
552 ol > li > ul:first-child,
553 ol > li > dl:first-child {
554 display: inline-block;
555 /* background: lightblue; */
556 }
557
558 /* default separator variants */
559 ol.loweralpha > li:before {
560 content: counter(item, lower-alpha) ")";
561 }
562 ol.upperalpha > li:before {
563 content: counter(item, upper-alpha) ".";
564 }
565 ol.lowerroman > li:before {
566 content: "(" counter(item, lower-roman) ")";
567 }
568 ol.upperroman > li:before {
569 content: counter(item, upper-roman) ")";
570 }
571 /* nested counters (1, 1.1, 1.1.1, etc) */
572 /* nested enumerated lists "inherit" the class attribute, other lists not */
573 ol.nested > li:before, ol.nested ol > li:before {
574 content: counters(item, ".") " ";
575 }
576
577 /* lists nested in definition list */
578
579 dd > ul, dd > ol {
580 padding-left: 0pt;
581 }
582
583 /* TODO: prefix, suffix? */
584
585 /* smaller font for super- and subscripts */
586 /* sub, sup {font-size: 70%;} */ /* Mozilla default is `smaller` */
587
588
589 /* Tables */
590 /* ====== */
591
592 /* margins and borders for "normal" tables */
593 table {
594 /* background: magenta; */
595 margin-top: 1em ;
596 margin-bottom: 1em;
597 /* border-style: outset; */
598 border-style: solid;
599 border-color: silver;
600 border-width: thin;
601 border-collapse: collapse;
602 }
603 blockquote > table {
604 margin-top: 0em ;
605 margin-bottom: 0em;
606 }
607
608 td, th {
609 border-style: solid;
610 border-width: thin;
611 border-color: silver;
612 /* text-align: left; */
613 padding: 0 1ex;
614 }
615
616 td > p:first-child, th > p:first-child {
617 margin-top: 0;
618 }
619 td > p, th > p {
620 margin-bottom: 0;
621 }
622
623 /* no borders for "borderless" tables */
624 table.borderless, table.borderless * {
625 border-style: none;
626 }
627
628 /* "booktabs" style (no vertical lines) */
629 table.booktabs {
630 border: 0;
631 border-top: 2px solid;
632 border-bottom: 2px solid;
633 }
634
635 table.booktabs * {
636 border: 0;
637 }
638 table.booktabs th {
639 border-bottom: thin solid;
640 }
641
642 table > caption {
643 text-align: left;
644 margin-bottom: 0.25em
645 /* padding: 2em 0 1em 0; */
646 }
647
648 /* numbered tables*/
649 table.numbered > caption:before {
650 counter-increment: table; /* defined/re-set in body */
651 content: "Table " counter(table) ": ";
652 font-weight: bold;
653 }
654
655
656 /* literal text
657 ------------
658 */
659 /* whitespace and wrapping in inline literals */
660 /* possible values: normal, nowrap, pre, pre-wrap, pre-line */
661 tt.literal {
662 white-space: pre-wrap;
663 }
664
665 /* /* compensate for initial line-break (which is literal with XHTML 1.1) */ */
666 /* pre.literal-block, pre.doctest-block { */
667 /* margin-top: 0em ; */
668 /* } */
669
670 /* Table of Contents */
671
672 /* don't indent like a topic */
673 div.topic.contents {
674 margin: 0;
675 }
676 /* div.topic.contents ul { */
677 /* list-style: none; */
678 /* } */
679
680 div.topic.contents a {
681 text-decoration: none; /* no underline for links */
682 }
683
684 /* section numbers */
685
686 span.sectnum {
687 padding-right: 1ex;
688 }
689
690 /* admonitions */
691
692 /* no padding for top and bottom */
693 div.admonition, div.attention, div.caution, div.danger, div.error,
694 div.hint, div.important, div.note, div.tip, div.warning {
695 padding: 0px 1em }
696
697 </style>
698 <style type="text/css">
699
700 /* Stylesheet for isomath documentation
701 :Copyright: 2008 G. Milde
702 This stylesheet is released under the GPL v. 2
703 */
704
705 dl.docutils dt { font-weight: bold; }
706
707 /* docinfo */
708
709 dl.docinfo > dt { display: none; }
710 dl.docinfo > dd {
711 margin-left: 0;
712 padding: 0 5%;
713 }
714 dl.docinfo > dt.author + dd {
715 font-size: larger;
716 text-align: center;
717 padding-bottom: 1em;
718 }
719 dt.date {
720 display: none;
721 }
722 dt.date + dd {
723 font-weight: bold;
724 text-align: center;
725 padding-bottom: 1em;
726 }
727
728 div.abstract {
729 padding: 0 5%;
730 }
731
732 a.reference.internal {
733 text-decoration: none;
734 color: darkblue;
735 }
736
737 a.reference.external {
738 text-decoration: underline;
739 }
740
741 /* a.reference.external:after { */
742 /* content: "⎘"; */
743 /* font-size: x-small; */
744 /* vertical-align: super; */
745 /* } */
746
747 dl.footnote > dd {
748 margin-left: 1.2em;
749 }
750 dl.footnote > dt {
751 font-size: small;
752 vertical-align: super;
753 }
754
755 a.footnote-reference > sup {
756 font-size: small;
757 vertical-align: super;
758 }
759
760 td, th {
761 padding-bottom: 0.1ex;
762 padding-top: 0.1ex;
763 }
764
765 /* let borderless overreide booktab */
766 .booktabs.borderless,
767 table.booktabs.borderless td, table.booktabs.borderless th {
768 border: 0;
769 margin-left: 2em;
770 }
771
772 table.docutils td, table.docutils th,
773 vertical-align: bottom; }
774
775 </style>
776 </head>
777 <body>
778 <div class="document" id="isomath">
779 <h1 class="title">isomath</h1>
780 <h2 class="subtitle" id="mathematical-style-for-science-and-technology">Mathematical style for science and technology</h2>
781
782 <dl class="docinfo">
783 <dt class="date">Date</dt>
784 <dd class="date">2012-09-10</dd>
785 <dt class="copyright">Copyright</dt>
786 <dd class="copyright">© 2008, 2012 Günter Milde</dd>
787 <dt>Licence</dt>
788 <dd><p>This work may be distributed and/or modified under the
789 conditions of the <a class="reference external" href="http://www.latex-project.org/lppl.txt">LaTeX Project Public License</a>, either
790 version&nbsp;1.3 of this license or (at your option) any later version.</p>
791 </dd>
792 <dt>Identification</dt>
793 <dd><pre class="literal-block">\NeedsTeXFormat{LaTeX2e}
794 \ProvidesPackage{isomath}
795 [2012/09/04 v0.6.1 ISO math style]
796 </pre>
797 </dd>
798 </dl>
799 <div class="abstract topic">
800 <p class="topic-title first">Abstract</p>
801 <p>The <cite>isomath</cite> package provides tools for a mathematical style
802 that conforms to the International Standard ISO&nbsp;80000-2 and is
803 common in science and technology. It changes the default shape of
804 capital Greek letters to italic, sets up bold italic and
805 sans-serif bold italic math alphabets with Latin and Greek
806 characters, and defines macros for markup of vector, matrix and
807 tensor symbols.</p>
808 </div>
809 <div class="contents topic" id="contents">
810 <p class="topic-title first">Contents</p>
811 <ul class="simple">
812 <li><p><a class="reference internal" href="#history" id="id4">History</a></p></li>
813 <li><p><a class="reference internal" href="#requirements" id="id5">Requirements</a></p>
814 <ul>
815 <li><p><a class="reference internal" href="#fixmath-sty" id="id6">fixmath.sty</a></p></li>
816 <li><p><a class="reference internal" href="#kvoptions-sty" id="id7">kvoptions.sty</a></p></li>
817 </ul>
818 </li>
819 <li><p><a class="reference internal" href="#options" id="id8">Options</a></p>
820 <ul>
821 <li><p><a class="reference internal" href="#rmdefault" id="id9">rmdefault</a></p></li>
822 <li><p><a class="reference internal" href="#sfdefault" id="id10">sfdefault</a></p></li>
823 <li><p><a class="reference internal" href="#scaled" id="id11">scaled</a></p></li>
824 <li><p><a class="reference internal" href="#reusemathalphabets" id="id12">reuseMathAlphabets</a></p></li>
825 <li><p><a class="reference internal" href="#omlmath" id="id13">OMLmath*</a></p></li>
826 </ul>
827 </li>
828 <li><p><a class="reference internal" href="#declarations" id="id14">Declarations</a></p>
829 <ul>
830 <li><p><a class="reference internal" href="#math-alphabets" id="id15">Math alphabets</a></p>
831 <ul>
832 <li><p><a class="reference internal" href="#mathbfit" id="id16">mathbfit</a></p></li>
833 <li><p><a class="reference internal" href="#mathsfit" id="id17">mathsfit</a></p></li>
834 <li><p><a class="reference internal" href="#mathsfbfit" id="id18">mathsfbfit</a></p></li>
835 <li><p><a class="reference internal" href="#redefine-standard-alphabets" id="id19">Redefine standard alphabets</a></p></li>
836 </ul>
837 </li>
838 <li><p><a class="reference internal" href="#command-aliases" id="id20">Command aliases</a></p>
839 <ul>
840 <li><p><a class="reference internal" href="#vectorsym" id="id21">\vectorsym</a></p></li>
841 <li><p><a class="reference internal" href="#matrixsym" id="id22">\matrixsym</a></p></li>
842 <li><p><a class="reference internal" href="#tensorsym" id="id23">\tensorsym</a></p></li>
843 </ul>
844 </li>
845 <li><p><a class="reference internal" href="#font-setup-fixes" id="id24">Font setup fixes</a></p>
846 <ul>
847 <li><p><a class="reference internal" href="#unknown-makro-in-font-definition-file" id="id25">Unknown makro in font definition file</a></p></li>
848 <li><p><a class="reference internal" href="#common-family-name-for-text-and-math-fonts" id="id26">Common family name for text and math fonts</a></p></li>
849 <li><p><a class="reference internal" href="#scaling" id="id27">Scaling</a></p></li>
850 </ul>
851 </li>
852 </ul>
853 </li>
854 <li><p><a class="reference internal" href="#references" id="id28">References</a></p></li>
855 </ul>
856 </div>
857 <div class="section" id="history">
858 <h1><a class="toc-backref" href="#id4">History</a></h1>
859 <table class="borderless booktabs numbered align-left">
860 <colgroup>
861 <col width="7%" />
862 <col width="15%" />
863 <col width="78%" />
864 </colgroup>
865 <tbody>
866 <tr><td><p>0.1</p></td>
867 <td><p>2008-09-25</p></td>
868 <td><p>first public version.</p></td>
869 </tr>
870 <tr><td><p>0.2</p></td>
871 <td><p>2008-10-02</p></td>
872 <td><p>bugfix: a usage example was uncommented;</p></td>
873 </tr>
874 <tr><td><p></p></td>
875 <td>&nbsp;</td>
876 <td><p>updated documentation;</p></td>
877 </tr>
878 <tr><td><p></p></td>
879 <td>&nbsp;</td>
880 <td><p>define mathsans only if OMLmathsans is true;</p></td>
881 </tr>
882 <tr><td><p></p></td>
883 <td>&nbsp;</td>
884 <td><p>option reuseMathalphabets -&gt; reuseMathAlphabets.</p></td>
885 </tr>
886 <tr><td><p>0.3</p></td>
887 <td><p>2009-06-19</p></td>
888 <td><p>documentation update;</p></td>
889 </tr>
890 <tr><td><p></p></td>
891 <td>&nbsp;</td>
892 <td><p>fix OMLmathrm and OMLmathsans definitions;</p></td>
893 </tr>
894 <tr><td><p></p></td>
895 <td>&nbsp;</td>
896 <td><p>switch license to LPP.</p></td>
897 </tr>
898 <tr><td><p>0.4</p></td>
899 <td><p>2010-08-23</p></td>
900 <td><p>split user documentation from literate source;</p></td>
901 </tr>
902 <tr><td><p></p></td>
903 <td>&nbsp;</td>
904 <td><p>option <tt class="literal">scaled</tt>;</p></td>
905 </tr>
906 <tr><td><p></p></td>
907 <td>&nbsp;</td>
908 <td><p>documentation update.</p></td>
909 </tr>
910 <tr><td><p>0.5</p></td>
911 <td><p>2011-01-04</p></td>
912 <td><p>math alphabet names matching Unicode;</p></td>
913 </tr>
914 <tr><td><p></p></td>
915 <td>&nbsp;</td>
916 <td><p>documentation review and extension;</p></td>
917 </tr>
918 <tr><td><p></p></td>
919 <td>&nbsp;</td>
920 <td><p>bold alphabet variants in <tt class="literal">bold</tt> math version;</p></td>
921 </tr>
922 <tr><td><p></p></td>
923 <td>&nbsp;</td>
924 <td><p>upright numbers with <tt class="literal">\vectorsym</tt>.</p></td>
925 </tr>
926 <tr><td><p>0.6</p></td>
927 <td><p>2012-09-10</p></td>
928 <td><p>Scaling for Kepler Sans (<tt class="literal">sfdefault=jkpss</tt>);</p></td>
929 </tr>
930 <tr><td><p></p></td>
931 <td>&nbsp;</td>
932 <td><p>documentation update, new caption and abstract.</p></td>
933 </tr>
934 </tbody>
935 </table>
936 </div>
937 <div class="section" id="requirements">
938 <h1><a class="toc-backref" href="#id5">Requirements</a></h1>
939 <div class="section" id="fixmath-sty">
940 <h2><a class="toc-backref" href="#id6">fixmath.sty</a></h2>
941 <p>The package <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/fixmath.html">fixmath</a> by Walter Schmidt defines Greek letters as symbols
942 of type <tt class="literal">\mathalpha</tt> and takes them from the <tt class="literal">letters</tt> symbol font in
943 <tt class="literal">\mathnormal</tt> (as opposed to <tt class="literal">operators</tt> in <tt class="literal">fontmath.ltx</tt>).</p>
944 <p><cite>fixmath</cite> also defines the <tt class="literal">\mathbold</tt> alphabet, setting it to <tt class="literal">cmm</tt>.
945 <cite>isomath</cite> overwrites this definition with a configurable value for
946 the font family.</p>
947 <pre class="literal-block">\RequirePackage{fixmath}
948 </pre>
949 </div>
950 <div class="section" id="kvoptions-sty">
951 <h2><a class="toc-backref" href="#id7">kvoptions.sty</a></h2>
952 <p>The <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/kvoptions.html">kvoptions</a> package in the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/oberdiek.html">oberdiek</a> bundle facilitates the setup of
953 package options and provides a key=value interface (based on <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/keyval.html">keyval</a>):</p>
954 <pre class="literal-block">\RequirePackage{kvoptions}
955 </pre>
956 </div>
957 </div>
958 <div class="section" id="options">
959 <h1><a class="toc-backref" href="#id8">Options</a></h1>
960 <div class="section" id="rmdefault">
961 <h2><a class="toc-backref" href="#id9">rmdefault</a></h2>
962 <p>Family for roman math fonts. Must be available in OML
963 encoding. The default is to use the corresponding text font family
964 (<tt class="literal">\rmdefault</tt>).</p>
965 <pre class="literal-block">\DeclareStringOption[\rmdefault]{rmdefault}
966 </pre>
967 </div>
968 <div class="section" id="sfdefault">
969 <h2><a class="toc-backref" href="#id10">sfdefault</a></h2>
970 <p>Family for sans-serif math fonts. The default selects <cite>CM Bright</cite>, as
971 most sans serif fonts are not available in OML encoding:</p>
972 <pre class="literal-block">\DeclareStringOption[cmbr]{sfdefault}
973 </pre>
974 </div>
975 <div class="section" id="scaled">
976 <h2><a class="toc-backref" href="#id11">scaled</a></h2>
977 <p>The sans-serif fonts, <tt class="literal">fav</tt> (Arev), <tt class="literal">llcmss</tt> (LX Fonts),
978 <tt class="literal">jkpss</tt> (Kepler Serif) and <tt class="literal">iwona</tt> can be scaled
979 with the <tt class="literal">scaled</tt> option.</p>
980 <pre class="literal-block">\DeclareStringOption[1.0]{scaled}
981 </pre>
982 </div>
983 <div class="section" id="reusemathalphabets">
984 <h2><a class="toc-backref" href="#id12">reuseMathAlphabets</a></h2>
985 <p>The definition of new <a class="reference internal" href="#math-alphabets">math alphabets</a> can lead to a “too many math
986 alphabets used in version normal” error.</p>
987 <p>As a workaround, this option tells <cite>isomath</cite> to re-use the existing
988 <tt class="literal">\mathbf</tt> and <tt class="literal">\mathsf</tt> alphabets for <em>italic</em> bold and sans-serif
989 bold.</p>
990 <pre class="literal-block">\DeclareBoolOption{reuseMathAlphabets}
991 </pre>
992 </div>
993 <div class="section" id="omlmath">
994 <h2><a class="toc-backref" href="#id13">OMLmath*</a></h2>
995 <p>The following options cause <cite>isomath</cite> to (re)define the corresponding
996 <a class="reference internal" href="#math-alphabets">math alphabets</a> in OML encoding:</p>
997 <pre class="literal-block">\DeclareBoolOption{OMLmathrm}
998 \DeclareBoolOption{OMLmathbf}
999 \DeclareBoolOption{OMLmathsf}
1000 \DeclareBoolOption{OMLmathsfit}
1001 \DeclareBoolOption{OMLmathtt}
1002 % backwards compatibility option alias
1003 \DeclareVoidOption{OMLmathsans}{\isomath&#64;OMLmathsfittrue}
1004 </pre>
1005 <p>Setting these options enables access to small Greek letters in different
1006 shapes with e.g. <tt class="literal"><span class="pre">\mathrm{\pi}</span></tt> but only <em>if an OML encoded font is
1007 available</em>. Currently, only the <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/mathdesign.html">mathdesign</a> fonts support roman in OML
1008 encoding.</p>
1009 <p>With some packages, these options can result in a “too many math alphabets
1010 used in version normal” error.</p>
1011 <hr class="docutils" />
1012 <p>Process the options with <tt class="literal">kvoptions</tt> extensions:</p>
1013 <pre class="literal-block">\ProcessKeyvalOptions*
1014 </pre>
1015 </div>
1016 </div>
1017 <div class="section" id="declarations">
1018 <h1><a class="toc-backref" href="#id14">Declarations</a></h1>
1019 <div class="section" id="math-alphabets">
1020 <h2><a class="toc-backref" href="#id15">Math alphabets</a></h2>
1021 <p>In math, LaTeX uses “absolute” fontnames instead of a selection by
1022 family, shape, and weight because typefaces have a semantic meaning
1023 <a class="citation-reference" href="#fntguide" id="id1">[fntguide]</a>.</p>
1024 <p><cite>isomath</cite> defines a math alphabet for every required font variant and
1025 optionally re-defines the standard math alphabets in <cite>OML</cite> font encoding.</p>
1026 <p>Unfortunately, the number of math alphabets in one math version is
1027 limited to 16, so we have to be careful not to exceed this. The
1028 <tt class="literal">reuseMathAlphabets</tt> option reduces the number of math alphabet
1029 definitions by two, with the side effect of italic shape with
1030 <tt class="literal">\mathbf</tt> and <tt class="literal">\mathsf</tt> commands:</p>
1031 <pre class="literal-block">\ifisomath&#64;reuseMathAlphabets
1032 \PackageWarningNoLine{isomath}{%
1033 Re-using math alphabet `mathsf' for \protect \mathsfbfit
1034 \MessageBreak and `mathbf' for \protect \mathbfit
1035 }
1036 \fi
1037 </pre>
1038 <div class="section" id="mathbfit">
1039 <h3><a class="toc-backref" href="#id16">mathbfit</a></h3>
1040 <p>The <em>bold italic</em> math alphabet is named <tt class="literal">\mathbfit</tt> like in
1041 <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/unicode-math.html">unicode-math</a> (with an alias <tt class="literal">\mathbold</tt> like in <a class="reference external" href="http://mirror.ctan.org/help/Catalogue/entries/fixmath.html">fixmath</a> and
1042 related packages). With the <a class="reference internal" href="#reusemathalphabets">reuseMathAlphabets</a> option, the roman bold
1043 math alphabet <tt class="literal">\mathbf</tt> is redefined and <tt class="literal">\mathbfit</tt> made an
1044 alias. The series selector <tt class="literal">bx</tt> (bold extended) is used, because it
1045 is better supported than <tt class="literal">b</tt>. (Is there any LaTeX math font
1046 distinguishing between <tt class="literal">b</tt> and <tt class="literal">bx</tt>?)</p>
1047 <pre class="literal-block">\ifisomath&#64;reuseMathAlphabets
1048 \DeclareMathAlphabet{\mathbf}{OML}{\isomath&#64;rmdefault}{bx}{it}
1049 \def\mathbfit{\mathbf}
1050 \else
1051 \DeclareMathAlphabet{\mathbfit}{OML}{\isomath&#64;rmdefault}{bx}{it}
1052 \fi
1053 </pre>
1054 <p>alias (overwriting the definition from fixmath):</p>
1055 <pre class="literal-block">\renewcommand*{\mathbold}{\mathbfit}
1056 </pre>
1057 </div>
1058 <div class="section" id="mathsfit">
1059 <h3><a class="toc-backref" href="#id17">mathsfit</a></h3>
1060 <p>For <em>sans-serif italic</em>, we define a new alphabet <tt class="literal">\mathsfit</tt> (with
1061 the alias <tt class="literal">\mathsans</tt> in analogy to <tt class="literal">\mathbold</tt>). As this typeface
1062 is not required by ISO 80000-2 and TeX limits the number of math alphabets
1063 to 16 per math version, it is only defined if the <tt class="literal">OMLmathsfit</tt> or
1064 <tt class="literal">OMLmathsans</tt> option is set:</p>
1065 <pre class="literal-block">\ifisomath&#64;OMLmathsfit
1066 \DeclareMathAlphabet{\mathsfit}{OML}{\isomath&#64;sfdefault}{m}{it}
1067 \SetMathAlphabet{\mathsfit}{bold}{OML}{\isomath&#64;sfdefault}{bx}{it}
1068 \def\mathsans{\mathsfit}
1069 \fi
1070 </pre>
1071 </div>
1072 <div class="section" id="mathsfbfit">
1073 <h3><a class="toc-backref" href="#id18">mathsfbfit</a></h3>
1074 <p>The <em>sans serif bold italic</em> alphabet is used for tensor symbols.
1075 Following the Unicode naming scheme it is called
1076 <tt class="literal"><span class="pre">\mathsfbfit``(with</span> the backwards compatibility alias <span class="pre">``\mathboldsans</span></tt>).
1077 With the <a class="reference internal" href="#reusemathalphabets">reuseMathAlphabets</a> option, the upright sans serif math
1078 alphabet <tt class="literal">\mathsf</tt> is redefined and <tt class="literal">\mathsfbfit</tt> made an
1079 alias to it:</p>
1080 <pre class="literal-block">\ifisomath&#64;reuseMathAlphabets
1081 \DeclareMathAlphabet{\mathsf}{OML}{\isomath&#64;sfdefault}{bx}{it}
1082 \def\mathsfbfit{\mathsf}
1083 \else
1084 \DeclareMathAlphabet{\mathsfbfit}{OML}{\isomath&#64;sfdefault}{bx}{it}
1085 \fi
1086 \def\mathboldsans{\mathsfbfit}
1087 </pre>
1088 </div>
1089 <div class="section" id="redefine-standard-alphabets">
1090 <h3><a class="toc-backref" href="#id19">Redefine standard alphabets</a></h3>
1091 <p>Redefine standard alphabets in <cite>OML</cite> font encoding
1092 if the corresponding <a class="reference internal" href="#omlmath">OMLmath*</a> option is true:</p>
1093 <pre class="literal-block">\ifisomath&#64;OMLmathrm
1094 \SetMathAlphabet{\mathrm}{normal}{OML}{\isomath&#64;rmdefault}{m}{n}
1095 \SetMathAlphabet{\mathrm}{bold}{OML}{\isomath&#64;rmdefault}{bx}{n}
1096 \fi
1097 \ifisomath&#64;OMLmathbf
1098 \SetMathAlphabet{\mathbf}{normal}{OML}{\isomath&#64;rmdefault}{bx}{n}
1099 \fi
1100 \ifisomath&#64;OMLmathsf
1101 \SetMathAlphabet{\mathsf}{normal}{OML}{\isomath&#64;sfdefault}{m}{n}
1102 \SetMathAlphabet{\mathsf}{bold}{OML}{\isomath&#64;sfdefault}{bx}{n}
1103 \fi
1104 \ifisomath&#64;OMLmathtt
1105 \SetMathAlphabet{\mathtt}{normal}{OML}{\ttdefault}{m}{n}
1106 \SetMathAlphabet{\mathtt}{bold}{OML}{\ttdefault}{bx}{n}
1107 \fi
1108 </pre>
1109 </div>
1110 </div>
1111 <div class="section" id="command-aliases">
1112 <h2><a class="toc-backref" href="#id20">Command aliases</a></h2>
1113 <p>The following macros allow semantic markup of mathematical symbols.
1114 The argument is typeset as proposed by ISO 80000-2 and
1115 <a class="reference external" href="http://physics.nist.gov/cuu/pdf/typefaces.pdf">Typefaces for Symbols in Scientific Manuscripts</a>.</p>
1116 <div class="section" id="vectorsym">
1117 <h3><a class="toc-backref" href="#id21">\vectorsym</a></h3>
1118 <p>Alphabetic vectors symbols are typeset <em>boldface italic</em> while numeric
1119 ones (e.g. zero vector) are typeset <em>boldface upright</em>. The number
1120 test is a simplified version from the LaTeX FAQ &quot;<a class="reference external" href="http://www.tex.ac.uk/cgi-bin/texfaq2html?label=isitanum">Is the argument a number?</a>&quot;
1121 It fails if a number is followed by a non-number, e.g. <tt class="literal">\vectorsym{1a}</tt>,
1122 but this is no valid vector symbol and would look strange with the
1123 <tt class="literal">\vec</tt> accent, too.</p>
1124 <pre class="literal-block">\providecommand*{\vectorsym}[1]{%
1125 \ifnum9&lt;1#1%
1126 \mathbf{#1}%
1127 \else%
1128 \mathbfit{#1}%
1129 \fi}
1130 </pre>
1131 <p>For easier writing or to make existing documents conform to the standard,
1132 you might want to re-define the standard <tt class="literal">\vec</tt> command after loading this
1133 package.</p>
1134 </div>
1135 <div class="section" id="matrixsym">
1136 <h3><a class="toc-backref" href="#id22">\matrixsym</a></h3>
1137 <p>Symbols for matrices are typeset <em>boldface italic</em>, i. e. in the same face
1138 as vectors.</p>
1139 <pre class="literal-block">\providecommand*{\matrixsym}{\vectorsym}
1140 </pre>
1141 </div>
1142 <div class="section" id="tensorsym">
1143 <h3><a class="toc-backref" href="#id23">\tensorsym</a></h3>
1144 <p>Symbols for tensors are <em>sans-serif bold italic</em>:</p>
1145 <pre class="literal-block">\providecommand*{\tensorsym}{\mathsfbfit}
1146 </pre>
1147 </div>
1148 </div>
1149 <div class="section" id="font-setup-fixes">
1150 <h2><a class="toc-backref" href="#id24">Font setup fixes</a></h2>
1151 <p>Substitutions needed for the math alphabet definitions and setup for
1152 scaled fonts. For details about the font definition macros see
1153 <a class="citation-reference" href="#fntguide" id="id3">[fntguide]</a>.</p>
1154 <div class="section" id="unknown-makro-in-font-definition-file">
1155 <h3><a class="toc-backref" href="#id25">Unknown makro in font definition file</a></h3>
1156 <p>The <cite>Kepler Sans</cite> font definition file <tt class="literal">omljkpss.fd</tt> contains a boolean
1157 that is defined in <tt class="literal">kpfonts.sty</tt>. This leads to errors if the fonts are
1158 used from another package. Provide a dummy definition:</p>
1159 <pre class="literal-block">\newif\ifkp&#64;upRm
1160 </pre>
1161 </div>
1162 <div class="section" id="common-family-name-for-text-and-math-fonts">
1163 <h3><a class="toc-backref" href="#id26">Common family name for text and math fonts</a></h3>
1164 <p>Some font packages provide matching text and math font but do not
1165 define a substitution in their <tt class="literal">*.fd</tt> files. Ideally, the following
1166 mappings should be moved there.</p>
1167 <p>Mathpazo (Palatino) ppl ↔ zplm</p>
1168 <pre class="literal-block">\DeclareFontFamily{OML}{ppl}{\skewchar\font127}
1169 \DeclareFontShape{OML}{ppl}{m}{it}{&lt;-&gt; ssub * zplm/m/it}{}
1170 \DeclareFontShape{OML}{ppl}{bx}{it}{&lt;-&gt; ssub * zplm/b/it}{}
1171 </pre>
1172 </div>
1173 <div class="section" id="scaling">
1174 <h3><a class="toc-backref" href="#id27">Scaling</a></h3>
1175 <p>Scale the <tt class="literal">fav</tt> (Arev), <tt class="literal">iwona</tt>, <tt class="literal">jkpss</tt> (Kepler Sans) and
1176 <tt class="literal">llcmss</tt> (LX Fonts) sans serif fonts by the value of the <a class="reference internal" href="#scaled">scaled</a> option.</p>
1177 <p>To get scaled versions of a font, you cannot use the <tt class="literal">ssub</tt>
1178 <cite>size function</cite>, but must use the empty function or <tt class="literal">s</tt> with the font
1179 file as argument [found by experiment, GM&nbsp;2010-01-28].</p>
1180 <p>Arev (see <tt class="literal">omlzavm.fd</tt>) fav ↔ zavm:</p>
1181 <pre class="literal-block">\DeclareFontFamily{OML}{fav}{\skewchar\font127}
1182 \DeclareFontShape{OML}{fav}{m}{it}{&lt;-&gt; s * [\isomath&#64;scaled] zavmri7m}{}
1183 \DeclareFontShape{OML}{fav}{bx}{it}{&lt;-&gt; s * [\isomath&#64;scaled] zavmbi7m}{}
1184 </pre>
1185 <p>Iwona (see <tt class="literal">omliwona.fd</tt>) iwona ↔ mi-iwona:</p>
1186 <pre class="literal-block">\DeclareFontFamily{OML}{iwona}{}
1187 \DeclareFontShape{OML}{iwona}{m}{it}{&lt;-&gt; s * [\isomath&#64;scaled] mi-iwonari}{}
1188 \DeclareFontShape{OML}{iwona}{bx}{it}{&lt;-&gt; s * [\isomath&#64;scaled] mi-iwonabi}{}
1189 </pre>
1190 <p>Kepler Serif (see <tt class="literal">omljkpss.fd</tt>):</p>
1191 <pre class="literal-block">\DeclareFontFamily{OML}{jkpss}{\skewchar\font127 }
1192 \DeclareFontShape{OML}{jkpss}{m}{it}{&lt;-&gt; s * [\isomath&#64;scaled] jkpssmi}{}
1193 \DeclareFontShape{OML}{jkpss}{bx}{it}{&lt;-&gt; s * [\isomath&#64;scaled] jkpssbmi}{}
1194 </pre>
1195 <p>LX Fonts (see <tt class="literal">lxfonts.sty</tt>) llcmss ↔ llcmm:</p>
1196 <pre class="literal-block">\DeclareFontFamily{OML}{llcmss}{\skewchar\font'177}
1197 \DeclareFontShape{OML}{llcmss}{m}{it}{&lt;-&gt; s * [\isomath&#64;scaled] lcmmi8}{}
1198 \DeclareFontShape{OML}{llcmss}{bx}{it}{&lt;-&gt; s * [\isomath&#64;scaled] lcmmib8}{}
1199 </pre>
1200 </div>
1201 </div>
1202 </div>
1203 <div class="section" id="references">
1204 <h1><a class="toc-backref" href="#id28">References</a></h1>
1205 <dl class="citation"><dt class="label">[fntguide]</dt>
1206 <dd id="fntguide">
1207 <em>(<a class="fn-backref" href="#id1">1</a>, <a class="fn-backref" href="#id3">2</a>)</em> <p class="last"><cite>LaTeX 2e font selection</cite>:
1208 <a class="reference external" href="http://mirror.ctan.org/macros/latex/doc/fntguide.pdf">http://mirror.ctan.org/macros/latex/doc/fntguide.pdf</a>.</p>
1209 </dd>
1210 </dl>
1211 </div>
1212 </div>
1213 </body>
1214 </html>