diff options
author | Karl Berry <karl@freefriends.org> | 2021-04-27 13:34:03 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2021-04-27 13:34:03 +0000 |
commit | 60b6bdc7cad5409422b39769269b516354b23025 (patch) | |
tree | 84a4ddd0f2d61f7821785df292a2ac38f86676b9 /Master/texmf-dist/tex/optex/base/f-newcm.opm | |
parent | 59f44df29bcc61c07c569ff2a8fe6fae91cf1d73 (diff) |
optex (26apr21)
git-svn-id: svn://tug.org/texlive/trunk@59000 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/optex/base/f-newcm.opm')
-rw-r--r-- | Master/texmf-dist/tex/optex/base/f-newcm.opm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/optex/base/f-newcm.opm b/Master/texmf-dist/tex/optex/base/f-newcm.opm new file mode 100644 index 00000000000..ba83b0d7294 --- /dev/null +++ b/Master/texmf-dist/tex/optex/base/f-newcm.opm @@ -0,0 +1,37 @@ +%% This is part of the OpTeX project, see http://petr.olsak.net/optex + +\_famdecl [New Computer Modern] \NewCM {CM with Book variants, Cyrillic, Greek} + {\book \ttset \sans \caps} {\rm \bf \it \bi} {NewCMMath} + {[NewCM10-Regular]} + {\_def\_fontnamegen {[NewCM\_typfV-\_currV]:\_capsV\_fontfeatures}} + +\_wlog{\_detokenize{% +Modifiers:^^J + \book ...... slightly bolder \rm, \it^^J + \ttset ..... Typewriter variants^^J + \sans ...... Sans serif variants^^J + \caps ...... caps & small caps (not in Italic variants)^^J% +Note: use \book\normalmath if you want Math in book-style too. +}} + +\_moddef \resetmod {\_fsetV caps={},typf=10,book={} \_fvars Regular Bold {\_ncmI} {\_ncmBI} } +\_moddef \book {\_fsetV book=Book \_fvars Book Bold {\_ncmI} {\_ncmBI} + \_def\_unimathfont{NewCMMath-Book}} +\_moddef \ttset {\_fsetV typf=Mono10 } +\_moddef \sans {\_fsetV typf=Sans10 } +\_moddef \caps {\_fsetV caps=+smcp;\_ffonum; } + +\_def\_ncmtyprm{10} +\_def\_ncmtypsans{Sans10} +\_def\_ncmI {\_bookV \_ifx\_typfV\_ncmtypsans Oblique\_else Italic\_fi} +\_def\_ncmBI {Bold\_ifx\_typfV\_ncmtyprm Italic\_else Oblique\_fi} + +\_initfontfamily % new font family must be initialized + +\_loadmath {[NewCMMath-Regular]} + +\_endcode + +See the file `f-heros.opm` for information about principles of such +font-macro-files. + |