| 1 |
%% |
| 2 |
%% This is file `mathfont-example-cormorant.tex', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% mathfont-code.dtx (with options: `cormorant') |
| 8 |
%% |
| 9 |
%% This file is from version 3.0a of the free and open-source |
| 10 |
%% LaTeX package "mathfont," released February 2026, to be used |
| 11 |
%% with the XeTeX or LuaTeX engines. (As of version 2.0, LuaTeX |
| 12 |
%% is recommended.) |
| 13 |
%% |
| 14 |
%% Copyright 2018, 2019, 2021-2023, 2025, 2026 Conrad Kosowsky |
| 15 |
%% |
| 16 |
%% This Work may be used, distributed, and modified under the |
| 17 |
%% terms of the LaTeX Public Project License, version 1.3c or |
| 18 |
%% any later version. The most recent version of this license |
| 19 |
%% is available online at |
| 20 |
%% |
| 21 |
%% https://www.latex-project.org/lppl/. |
| 22 |
%% |
| 23 |
%% This Work has the LPPL status "maintained," and the current |
| 24 |
%% maintainer is the package author, Conrad Kosowsky. He can |
| 25 |
%% be reached at [email protected]. |
| 26 |
%% |
| 27 |
%% PLEASE KNOW THAT THIS FREE SOFTWARE IS PROVIDED WITHOUT |
| 28 |
%% ANY WARRANTY. SPECIFICALLY, THE "NO WARRANTY" SECTION OF |
| 29 |
%% THE LATEX PROJECT PUBLIC LICENSE STATES THE FOLLOWING: |
| 30 |
%% |
| 31 |
%% THERE IS NO WARRANTY FOR THE WORK. EXCEPT WHEN OTHERWISE |
| 32 |
%% STATED IN WRITING, THE COPYRIGHT HOLDER PROVIDES THE WORK |
| 33 |
%% `AS IS’, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED |
| 34 |
%% OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED |
| 35 |
%% WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 36 |
%% PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE |
| 37 |
%% OF THE WORK IS WITH YOU. SHOULD THE WORK PROVE DEFECTIVE, |
| 38 |
%% YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR, OR |
| 39 |
%% CORRECTION. |
| 40 |
%% |
| 41 |
%% IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED |
| 42 |
%% TO IN WRITING WILL THE COPYRIGHT HOLDER, OR ANY AUTHOR |
| 43 |
%% NAMED IN THE COMPONENTS OF THE WORK, OR ANY OTHER PARTY |
| 44 |
%% WHO MAY DISTRIBUTE AND/OR MODIFY THE WORK AS PERMITTED |
| 45 |
%% ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, |
| 46 |
%% SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT |
| 47 |
%% OF ANY USE OF THE WORK OR OUT OF INABILITY TO USE THE WORK |
| 48 |
%% (INCLUDING, BUT NOT LIMITED TO, LOSS OF DATA, DATA BEING |
| 49 |
%% RENDERED INACCURATE, OR LOSSES SUSTAINED BY ANYONE AS A |
| 50 |
%% RESULT OF ANY FAILURE OF THE WORK TO OPERATE WITH ANY |
| 51 |
%% OTHER PROGRAMS), EVEN IF THE COPYRIGHT HOLDER OR SAID |
| 52 |
%% AUTHOR OR SAID OTHER PARTY HAS BEEN ADVISED OF THE |
| 53 |
%% POSSIBILITY OF SUCH DAMAGES. |
| 54 |
%% |
| 55 |
%% For more information, see the LaTeX Project Public License. |
| 56 |
%% Derivative works based on this package may come with their |
| 57 |
%% own license or terms of use, and the package author is not |
| 58 |
%% responsible for any third-party software. |
| 59 |
%% |
| 60 |
%% For more information, see mathfont-code.dtx. Happy TeXing! |
| 61 |
%% |
| 62 |
\ifx\directlua\undefined |
| 63 |
\PackageError{mathfont} |
| 64 |
{\MessageBreak |
| 65 |
LuaLaTeX is recommended for\MessageBreak |
| 66 |
mathfont-example-cormorant.tex} |
| 67 |
{It's recommended that you typeset this file\MessageBreak |
| 68 |
with LuaTeX. You can use XeLaTeX if you want,\MessageBreak |
| 69 |
but things will turn out weird. To resolve\MessageBreak |
| 70 |
this error, typeset the file with LuaLaTeX.} |
| 71 |
\fi |
| 72 |
\documentclass[12pt]{article} |
| 73 |
\usepackage[margin=1in]{geometry} |
| 74 |
\usepackage{innerscript} |
| 75 |
\usepackage{multicol} |
| 76 |
\usepackage{amsmath} |
| 77 |
\DeclareMathOperator{\Res}{Res} |
| 78 |
\usepackage{mathfont} |
| 79 |
\documentfont{Cormorant:-liga} |
| 80 |
\mathfont[greeklower=upright,greekupper]{Crimson} |
| 81 |
\mathfont[diacritics]{Bona Nova} |
| 82 |
\RuleThicknessFactor{800} |
| 83 |
\parindent=0pt\relax |
| 84 |
\begin{document} |
| 85 |
|
| 86 |
\def\footnote#1{} |
| 87 |
\def\showabstract{0} |
| 88 |
\let\textsf\relax |
| 89 |
\let\ttfamily\relax |
| 90 |
\def\documentname{Example---Cormorant} |
| 91 |
|
| 92 |
\input mathfont-heading.tex |
| 93 |
|
| 94 |
This is Cormorant with Crimson for Greek characters and Bona Nova for diacritics. ``Testing. Testing.'' Brown foxes quickly jump over dazzling does and harts. This document shows an example of mathfont in action. Unfortunately, there are many more equations in the world than I have space for here. Nevertheless, I hope I hit some of the highlights. Happy \TeX ing! |
| 95 |
|
| 96 |
\input{mathfont-equations.tex} |
| 97 |
|
| 98 |
\end{document} |
| 99 |
\endinput |
| 100 |
%% |
| 101 |
%% End of file `mathfont-example-cormorant.tex'. |