diff options
author | Karl Berry <karl@freefriends.org> | 2008-10-02 00:05:56 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2008-10-02 00:05:56 +0000 |
commit | 99a672a8703b248c022f3413c848e5506258a704 (patch) | |
tree | b264a25bb0aa08f65015223a18c11ef3df69b9ff /Master/texmf-dist/doc/latex/isomath/isomath-test.tex | |
parent | ffb53120e797221d41a46658ddbddfbac6cf3f9d (diff) |
isomath update (1oct08)
git-svn-id: svn://tug.org/texlive/trunk@10818 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/isomath/isomath-test.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/isomath/isomath-test.tex | 215 |
1 files changed, 137 insertions, 78 deletions
diff --git a/Master/texmf-dist/doc/latex/isomath/isomath-test.tex b/Master/texmf-dist/doc/latex/isomath/isomath-test.tex index a9b18932979..a4ce766ae2d 100644 --- a/Master/texmf-dist/doc/latex/isomath/isomath-test.tex +++ b/Master/texmf-dist/doc/latex/isomath/isomath-test.tex @@ -1,92 +1,147 @@ -%% LyX 1.5.5 created this file. For more info, see http://www.lyx.org/. -%% Do not edit unless you really know what you are doing. -\documentclass[a4paper,british]{scrartcl} +% isomath-test.tex: test and template for isomath.sty +% =================================================== +% +% Copyright © 2008 Günter Milde +% Released under the terms of the GNU General Public License (v. 2 or later) +% +% General settings +% ---------------- +% :: + +\documentclass[a4paper,english]{article} +\usepackage[LGR,T1]{fontenc} % \usepackage[T1]{fontenc} -% \usepackage[latin1]{inputenc} +% \usepackage[utf8]{inputenc} \pagestyle{empty} -%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. - -% Load a font package: - -% \usepackage{ae} -% \usepackage{anttor} -% \usepackage{arev} % normal and sans identic -% \usepackage{beton} % bitmap fonts -% \usepackage{concmath} -% \usepackage{cmbright} % keeps \mathrm and \mathbf as CM (roman) -\usepackage{fourier} -% \usepackage[LGR,T1]{fontenc}\usepackage[default]{gfsneohellenic} % no bold -% \usepackage{hfoldsty} % bitmap fonts -% \usepackage{iwona} % uses cmss --- cmbr is bad match -% \usepackage{kpfonts} % too many math alphabets used in version normal -% \usepackage{kerkis} % no bold math, no sans serif (choose iwona or arev?) -% \usepackage{lmodern} -% \usepackage{lucidabr} % commercial, subset free as bitmap -% \usepackage{lxfonts} % normal and sans identic, no \mathbold -%% mathdesign: % cmbr too light (bold ok) -%% % too many math alphabets without keepMathAlphabets -% \usepackage[charter]{mathdesign} % bitmap? -% \usepackage[garamond]{mathdesign} % bitmap? -% \usepackage[utopia]{mathdesign} % bitmap? -% \usepackage{mbtimes} -% \usepackage{gfsneohellenic} -% \usepackage{mathpazo} % -% \usepackage{pxfonts} % too many math alphabets used in version normal -% \usepackage{tgpagella}\usepackage{qpxmath} % cmbr too light (bold ok) -% \usepackage{tgtermes}\usepackage{qtxmath} % cmbr too light (bold ok) -% \usepackage{txfonts} % too many math alphabets used in version normal -% \usepackage{zefonts} % CM based - - -% load the isomath package with (or without) options -% -------------------------------------------------- - -\newcommand{\options}{} -% \renewcommand{\options}{omlMathalphabets} -% \renewcommand{\options}{reuseMathalphabets} -% \renewcommand{\options}{sfdefault=iwona} % with Iwona sans -% \renewcommand{\options}{sfdefault=zavm} % with Arew sans (larger than normal) -% \renewcommand{\options}{sfdefault=llcmm} % with LX sans (doesn't work) - -\usepackage[\options]{isomath} - - -% re-define \vec to comply with ISO 31:: -\renewcommand{\vec}{\vectorsym} - -\usepackage{babel} +% Customisation +% ------------------- +% +% Font packages: Uncomment the package you want to test +% (cmss maps to roman for italic and bold-italic OML version) :: + +\newcommand*{\fontpackage}{} +\renewcommand*{\fontpackage}{% +% ae% \sfdefault is cmss (use cmbr) +% anttor% \sfdefault is cmss (use iwona) +% arev% normal and sans identic (also in math) +% beton% bitmap fonts +% concmath% +% cmbright% keeps \mathrm and \mathbf as CM (roman) +% fourier% incompatible (uses private font encoding) +% gfsneohellenic% (use option [default]) no bold +% hfoldsty% bitmap fonts +% iwona% sets cmss as sans font (use iwona) +% kpfonts% no sans serif italic, needs reuseMathalphabets +% kerkis% no bold math, no sans serif (use iwona or arev?) +% cmlgc% \sfdefault is cmss (use cmbr) +% lmodern% \sfdefault is cmss (use cmbr) +% lucidabr% commercial, subset (no math) free as bitmap +% lxfonts% normal and sans identic, +mathdesign% \sfdefault is cmss (use cmbr?) provides roman and roman bold in OML :-) +% mbtimes% \sfdefault is cmss (use cmbr?) +% mathpazo% \sfdefault is cmss (use cmbr?) +% pxfonts% needs reuseMathalphabets, no sans-serif +% tgpagella,qpxmath% \sfdefault is cmss (use cmbr?) +% tgtermes,qtxmath% \sfdefault is cmss (use cmbr?) +% txfonts% no sans-serif +% zefonts% use with sfdefault=cmbr +} + +% Options +% ------- +% :: + +% Options for the font package call: +\newcommand*{\fontpackageoptions}{} +\renewcommand*{\fontpackageoptions}{% +% default% {gfsneohellenic} +% charter% {mathdesign} % +% garamond% {mathdesign} % no (free) bold, \sfdefault is cmss (use cmbr?) +utopia% {mathdesign} % \sfdefault is cmss (use cmbr?) +} + +% Options for +\newcommand*{\isomathoptions}{} +\renewcommand*{\isomathoptions}{% +% reuseMathalphabets% +% OMLmathsans% +OMLmathsans,OMLmathbf,sfdefault=cmbr% +% OMLmathsans,sfdefault=cmbr% CM-Bright +% OMLmathsans,sfdefault=iwona% Iwona sans +% sfdefault=zavm% Arew sans (larger than normal) +% sfdefault=llcmm% LX sans (larger than normal) +} + +% Load customisable packages +% -------------------------- +% :: + +\usepackage[\fontpackageoptions]{\fontpackage} + +\usepackage[\isomathoptions]{isomath} + +% Re-define \vec to comply with ISO 31:: + +\renewcommand*{\vec}{\vectorsym} + +% Fall-back definition for \mathsans:: +\providecommand*{\mathsans}[1]% +{mathsans\ not\ defined,\ use\ \mathtt{OMLmathsans}\ option} + + +% Now print a test sheet:: + \begin{document} \section{Test the isomath Package} -\makeatletter +Fontpackage: [\fontpackageoptions]\{\fontpackage\}\\ +Isomath called with options: [\isomathoptions]\\ Default font families: - serif \texttt{\rmdefault}, - sans-serif \texttt{\sfdefault}, - isomath-serif \texttt{\isomath@rmdefault}, - isomath-sf \texttt{\isomath@sfdefault}. -\makeatother +\begin{tabular}[t]{rlrl} + serif & \texttt{\rmdefault} & sans-serif & \texttt{\sfdefault} \\ + isomath-serif & \makeatletter \texttt{\isomath@rmdefault} \makeatother + & + isomath-sf &\makeatletter \texttt{\isomath@sfdefault} \makeatother + \\ +\end{tabular} + \subsection{Math alphabets} -The math alphabets should work with greek letters too (thus access -to upright greek is possible for both, small and capital letters). -If there are ligatures (ff, fi, ...) instead of small Greek letters -in a math alphabet, it uses T1 or OT1 encoding instead of OML. \begin{eqnarray*} -\mbox{mathnormal} & & a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega\\ -\mbox{mathit} & & \mathit{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}\\ -\mbox{mathrm} & & \mathrm{\mathrm{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}}\\ -\mbox{mathbf} & & \mathbf{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}\\ -\mbox{mathsf} & & \mathsf{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}\\ -\mbox{mathtt} & & \mathtt{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega} +If there are ligatures (ff, fi, ...) instead of small Greek letters in a +math alphabet, T1 or OT1 encoding is used instead of OML. + +% Define a teststring with Latin and Greek letters +\newcommand{\teststring}{% +% capital Latin letters +A,B,C, +% capital Greek letters +\Gamma,\Delta,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega, +% small Greek letters +\alpha,\beta,\nu,\omega, +% small Latin letters: +% compare \nu, \omega, v, and w +v,w, +% is there a true italic form of a and g? +a,g, +} + +\begin{eqnarray*} +\mbox{mathnormal} & & \teststring \\ +\mbox{mathit} & & \mathit{\teststring}\\ +\mbox{mathrm} & & \mathrm{\teststring}\\ +\mbox{mathbf} & & \mathbf{\teststring}\\ +\mbox{mathsf} & & \mathsf{\teststring}\\ +\mbox{mathtt} & & \mathtt{\teststring} \end{eqnarray*} - New alphabets are defined for italic-bold, italic-sans, and italic-sans-bold. + New alphabets bold-italic, sans-serif-italic, and sans-serif-bold-italic. \begin{eqnarray*} -\mbox{mathbold} & & \mathbold{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}\\ -\mbox{mathsans} & & \mathsans{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega}\\ -\mbox{mathboldsans} & & \mathboldsans{a,g,v,w,z,A,B,\Gamma,\Delta,E,\Theta,\Lambda,\Xi,\Pi,\Sigma,\Upsilon,\Phi,\Psi,\Omega,\alpha,\beta,\nu,\omega} +\mbox{mathbold} & & \mathbold{\teststring}\\ +\mbox{mathsans} & & \mathsans{\teststring}\\ +\mbox{mathboldsans} & & \mathboldsans{\teststring} \end{eqnarray*} @@ -107,9 +162,13 @@ vector $\vec{F}$ or the electrical field $\vec{E}$.% \subsection{Tensor symbols} -Symbols for tensors are sans-serif bold italic, \begin{eqnarray*} -\tensorsym{\alpha} & = & \tensorsym{e}\cdot\tensorsym{a}.\\ -\alpha_{ijl} & = & e_{ijk}\cdot a_{kl}\end{eqnarray*} +Symbols for tensors are sans-serif bold italic, + +\[ + \tensorsym{\alpha} = \tensorsym{e}\cdot\tensorsym{a} + \quad \Longleftrightarrow \quad + \alpha_{ijl} = e_{ijk}\cdot a_{kl}. +\] The permittivity tensor describes the coupling of electric field and |