Latex monospace. Everything works, but the monospaced font just doesn't apply to code within lstlisting environment. Monospaced fonts are frequently used by programmers to increase the readability of source code, but long text passages with monospace typeface are considerably less readable than those with variable-width fonts. \lstset{columns=fullflexible,basicstyle=\ttfamily} You might also need to play around with the identifierstyle, commentstyle, etc. Without XeTeX or LuaLaTeX, please. 9}). 3 Language-specific packages and commands. Anonymous Pro [OTF or TTF available] Ascii. This is a simple example, {\tiny this will show different font sizes } and also \textsc{ different font styles }. I can get it fixed by adding \ensuremath{} between \ttmath and \texttt, but is there a cleaner way? PS. However, it may still depend on the particular font as well. The Narrow version is one of the other narrowest open-source monospace fonts I have seen. The settings means, the character are placed in boxes of width 0. 9]{Droid Sans Mono} The scale can be: a number: 1 is the original size, 2 is twice as big, 0. Aug 3, 2011 · 118. In a typewriter font aka monospaced font each character is given the same width. Reference: Jul 4, 2018 · While the OP is asking for a solution in LaTeX I want to present also two solutions how the problem can be solved with ConTeXt. I could create a new environment that sets up the minipage, then in the document put a lstlisting in . 04, so even if you don't see the listing for a particular language here, you can try using the relevant Google Noto font for that particular language or script. These commands do not require extra packages and can be stacked (e. stix is (more or less) a times clone or at least in the style of times rather than a clone, so you could look what packages using times for a text or math font set up as the sans serif and monospace companions. Aug 10, 2018 · I want to create an environment which makes some text look like code. Since some of the standard classes (see below) use the article. via a "xelatex sample. I don't think it's a good idea to use the tabular environment inside a math group; instead, use the (very similar) array environment. Space Mono is a monospace font available in both "normal" (400) and "bold" (700) weights with both an upright and italic variant for those weights. instead of 0. \urlstyle{tt}: This is the default Full justification with typewriter font. \vspace{ 1cm } %Example of different font sizes and types. Produces nice contrast between regular and bold styles – usefull for code highlighting. Jul 6, 2012 · You can see a list of the custom fonts, sorted([f. With the following in the preamble it works: \usepackage{fontspec} \setmonofont{JetBrains Mono}[ Contextuals = Alternate, Ligatures = TeX, ] \usepackage{listings} \lstset{ basicstyle = \ttfamily, columns = flexible, } \makeatletter \renewcommand*\verbatim@nolig@list{} \makeatother Apr 11, 2021 · I had a problem creating a new environment that would let me put a lstlisting inside a minipage. However, in my question, the spaces are not monospaced, so this should not be the problem here. 1,294 10 11. To use other styles (families) such as sans serif, typewriter (monospace) etc. Text handling through LaTeX is slower than Matplotlib's very capable mathtext, but is more flexible, since different LaTeX packages (font packages, math packages, etc May 10, 2021 · An OFL monospace font for pdftex/pdflatex. Improve this answer. \url comes from package url (loaded by hyperref ). These differ in important ways: ewline will cause the paragraph to end the line abruptly at that point, whereas \linebreak will still attempt to fill the line completely for justification purposes. 4 LaTeX T1 font encoding. 2,971 5 30 34. As you see, the way the equations are displayed depends on the Mar 15, 2023 · As mentioned in the Text rendering with LaTeX doc, "only a small number of font families are supported". usetex in the rcParams, but that's slow and not entirely necessary. \urlstyle{sf}: The font \sffamily is used. \end{ minted } \end{ document } Open this example in Overleaf. Computer Modern Teletype Quotation. some character widths are squished, probably due to the line-rendering algorithms). 1 Introduction. Most people use it togther with Helvetica and Courier. 6. It depends on the fonts you are using, where this means the font+encoding for TeX/pdfTeX or the font+activated features for XeTeX/LuaTeX (with maybe additional TeX ligatures added for convenience if enabled). \usepackage[scaled]{helvet} Feb 23, 2016 · I got text justifying problem when I change the default font to a monospaced font, as you can see in my MWE. I also need monospace typefaces. May 8, 2021 · Space Mono LaTeX Files. Jun 2, 2020 · Thank you very much @Thérèse! I found the solution in this question. In the preamble the package is imported by writing. \urlstyle configures the font. In your post you used the \sf which was the reason for not getting the Dejavu Sans Mono but still getting Dejavu Sans for every thing. The following example combines together the various LaTeX code fragments used in this article. Dec 16, 2012 · 1. John Leonard. Board index LaTeX Text Formatting Ask a question LaTeX Text Formatting Graphics, Figures & Tables Math & Science Fonts & Character Sets Page Layout Document Classes General LaTeX's Friends BibTeX, biblatex and biber MakeIndex, Nomenclature, Glossaries and Acronyms Conversion Tools Viewers for PDF, PS, and DVI XeTeX Others LaTeX Distributions M = np. 1 Text files: integers and characters. Cascadia Code [OTF or TTF available] CM Pica. Bera Mono. It isn’t even possible to define that many alphabets in NFSS. The following example shows how to change the normal text to Times, the sans serif text to Helvetica and the monospaced font to courier. These commands are used to change the font weight, font style, and font family respectively. Aug 10, 2020 · このコマンドは、 \textit{} の中で使うとmedium、 \textbf{} の中で使うと太字のまま斜体になる。. Prior to Libertine, I favoured Cambria for serif, considering it unusual but professional, but eventually decided that its serifs were far too heavy. Code, edit and compile here: May 5, 2024 · JuliaMono is a monospaced typeface designed for programming and other text editing environments that require a wide range of specialist and technical Unicode characters. ちなみに下線は \underline{} でできます。. Space Mono is a font by Colophon Foundry commissioned by Google Fonts. They are shown here at their normal Jan 9, 2019 · Here is how to add inline code: You can add inline code with {\tt code } or \texttt{ code }. However, they are still rather small, which forces you to increase the size by one point to make the font more readable. It is a fixed-width font, meaning that each character occupies the same amount of space on the page, making it easier to read and compare code. edited Dec 30, 2014 at 21:25. All variants of the font have a dotted zero. I want to write the whole document using it. then the tags \begin{minted}{python} and \end{minted} delimit an environment Jan 17, 2011 · Use the Scale attribute on \setmonofont, e. Put this in your preamble: % needed for bold tt font. I know how to add a separate code block using lstlisting but i want to instead add an inline code block. When encountered inside the verbatim environment, the arrows will fit to the size of a \ttfamily X. Their names are listed below, and you can see a sampler here. That is, remove all content but e. For example, by adding \usepackage{tgbonum} to the document preamble, LaTeX will use the TEX Gyre Bonum font family to typeset your document: families and font typefaces. Computer Modern Teletype. As an additional option, Anka Coder comes in both Condensed and Narrow widths. a verbatim environment, and then remove packages one by one until you find the package or combination of packages that causes the problem. Please try and boil (a copy of) your document down to a minimum demonstrating the problem. 33333\fontcharwd\font`x instead of 0. (and why the extra space after the colon in row 1?) \documentclass[border=2mm]{standalone} \usepackage{tikz} Mar 10, 2012 · 4. By default, LaTeX uses Computer Modern, a family of typefaces designed by Donald Knuth for use with TeX. This just makes an empty math expression on a box and discards it to avoid the problem. Lekton. Aug 21, 2019 · I have a custom monospace font. Jan 28, 2017 · 1. \setbox0\hbox{$ $} in the preamble otherwise the first expression may not be initialised correctly. Use the name of any system font. Jul 11, 2012 · if you need display math as well. Oct 25, 2019 · Setting \parindent to 0pt would take away the documentclass indentation, but assuming you don't want to use the standard heading commands (like \section etc) with all their associated spacings etc needing adjustment, the alltt package could help. \end{ document } Open this example in Overleaf. LaTeXでは、フォントもコマンドで制御します。. ) JuliaMono is: This site uses JuliaMono for all text 59. Here's an example showing a way how you can enable hyphenation and even full justification. This example produces the following output: The ctexart document class part of the ctex package bundle which implements common Feb 14, 2015 · 4. More technical then DejaVu Sans Mono, and lighter. When two maths elements appear on either side of the sign, it is assumed to be a binary operator, and as such, allocates some space to either side of the sign. They should have the width of the normal font. Jan 27, 2017 at 16:13. 5em and 0. Ask Question Asked 5 years, 4 months ago. clo files (class option files) where the bootstrap settings are stored. When one issues a font selection command, LaTeX looks in its internal tables and decides what font to use (remembering Note that the first 10^-6 does not use monospace font, but the second does. I can use XeteX if necessary but I don't know what fonts are available to me from my TeXlive installation on OS X Aug 21, 2020 · Update 08/22/20: Here's a fix: Notes: looks like if you want to set more than one feature in the same command you must use an extra pair of braces — cf. 5 is twice as small MatchLowercase or MatchUppercase: this scales the font to the height of either the lowercase or the uppercase Aug 29, 2014 · 120. Other pre-defined styles: \urlstyle{rm}: The font \rmfamily is used. Consolas, for example, has slightly wider letters. As you can see in the same line a code block is added which contains the expression print(g). Apr 4, 2024 · Monospace fonts DejaVu Sans Mono. This example produces the following output: For relational operators, such as \ (<\), \ (>\) and \ (=\), LaTeX establishes \thickmuskip space. Consequently, the minimal example. Spacing around operators and relations in math mode are governed by specific skip widths: \end{ align* } Open this example in Overleaf. It runs neck and neck with M+1M for width, but with a Jan 20, 2023 · 1. I have already tried to fix this with including the beramono package. Is there any way to make spaces in fixed-width fonts behave like a space character with the same extent as non-space characters? I can do it manually with \phantom but it's tedious; row 2 below is what I want. Any Unicode math font will give you more alphabets than any combination of legacy packages. , keys if the style for your code uses these separately. \texttt{This is Courier font. Changing the default document fonts. It uses the everysel package. It needs a few more steps to set up, but provides unrestricted support for Unicode when combined with Oct 27, 2020 · Can't apply monospaced font to listings (when using pdflatex) 4 lstnewenvironment/lstset : using colors conditionally emph/emphstyle - SAS: (in=_x) versus if x in (1,2) There are some settings in latex. Making that change only for a portion of the document is, however, unexpectedly challenging (and I fear that's one more reason for non-LaTeX-people to refuse LaTeX), and I suspect a significant portion of the 200+ upvoters so far came here specifically looking for a way to not make a global font change, as I For LaTeX output, the monospace font family for use with xelatex or lualatex: take the name of any system font, using the fontspec package. It has regular and bold weights and upright and italicized versions of both. \lstinputlisting[breaklines]{source. 3 Output encoding: the fontenc package. Alternative options are \quad and \qquad; the space produced is probably more what you are looking to create. zeros((n*m,1), int) return M. \documentclass[12pt]{article} \usepackage{lipsum} \usepackage{tgcursor} \renewcommand*\familydefault{\ttdefault} \begin{document} \lipsum \end{document} Jul 27, 2015 · 13. Use the courier package. Instead of looking for condensed fonts, you can also just change the size of the default font. tex" command to see the result. I know the default setting (Computer Modern's family) is a very good choice. The Font families. The first method is to use the \framed mechanism where you can use the backgroundcolor and foregroundcolor keys to change the colors of the text and background. Jun 1, 2012 · With NFSS. usetex : True in your rcParams, or by setting the usetex property to True on individual Text objects. : \setmonofont[Scale=MatchLowercase]{Droid Sans Mono} \setmonofont[Scale=0. In line with moewe's comment, you can use the lmodern package to get bold mono-spaced font. For TeX/pdfTeX, it depends primarily on the encoding. numberstyle=\footnotesize,%. a_0 and m_e use normal math font, which is fine. The output from doing Lorem Ipsum shows that my monospaced font is not being rendered as monospaced (i. Text example [Click on text example to enlarge] [L a T e X source of PDF sample] Usage Sep 18, 2018 · algorithm contains a hook that you can redefine to set the font to a mono-spaced font. I find that Latin Modern in \footnotesize looks quite good in listings: basicstyle=\footnotesize\ttfamily,%. fontManager. From the Google Fonts Page (retrieved 2021-05-08): Feb 25, 2020 · 1. How can I force this to be in a monospace font. The columns=fullflexible keyval suppresses listings's layout thing Overleaf supports a fair number of OTF/TTF fonts in different scripts. Inside a group, I invoke \verbarrows prior to the verbatim, which redefines \leftarrow and \rightarrow to fit in the space of an X. ltx (the core of LaTeX) and the base classes do have . It also requires the use of the package tabto. If you want to format the inline code, then it would be best to make your own command. Please forgive the ugly code full of \ensuremath, it's being generated from XML. \[ x^n + y^n = z^n \] \end{ document } Open this example in Overleaf. Here’s a brief explanation of each command: \textbf. load it up like this: \usepackage[T1]{fontenc} \usepackage[scaled]{beramono} for xetex or xelatex, you need the fontspec package, and the font installed to your system, then load the font with fontspec: \usepackage{fontspec} \setmonofont[Mapping=tex-text]{Courier New} Jul 27, 2019 · Remove it and it looks like you want it to look. May 2, 2024 · LaTeX deals with the + and − signs in two possible ways. 5. numbers=left,%. For highlighting code in LaTeX, there are two options: minted, a LaTeX package wrapping the Pygments syntax highlighting library. \documentclass{article} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{ngerman} \usepackage{mathptmx} % Here you will find Times. Alternative monospace fonts. However, unlike Knuth's original program, XeTeX natively reads (inputs) UTF-8 encoded Unicode text and, with assistance from its built-in HarfBuzz shaping engine, supports modern font formats such as OpenType (OTF) and SIL's Graphite font technology. tabsize=2%. concatenate((M, VT), 1) VT = np. When using basicstyle=\ttfamily, columns=flexible can be kept, as long as you use the keepspaces=true option. But the \ttfamily command just seems "ignorant" of it. Mar 3, 2016 · The compiler is pdflatex. スポンサーリンク. I want something like This article shows the most basic commands needed to get started with writing maths using LaTeX. 6 days ago · Basic text formatting commands. For many, if not most, users their default choice of TeX engine is pdfTeX, which, unlike XeTeX and LuaTeX, does not have a built-in capability Matplotlib can use LaTeX to render text. The LaTeX commands \bfseries, \itshape, only change the aspect of the text you want (series type, shape, family). The fontspec package provides an automatic and unified interface for loading fonts in LaTeX. At least, if there is no actual reason for you to use it. Jun 24, 2015 · Hi there! I think that your difficulty has to do with the backlashes, not with \tt or \textt per se. フォントサイズ コマンド 出力サイズ (相対的) 出力 \tiny May 20, 2016 · 6. I would recommend the package listings, which is ment for this purpose. \usepackage[scaled=0. A while ago I asked about monospace fonts with matching math support. What do I need to configure on LaTeX's end to make this work right? I am using Feb 14, 2021 · Hi I am trying to add an inline code block in a Latex document. The KP Fonts family contains text fonts in roman, sans-serif and monospaced shapes, with true small caps and math. Mar 20, 2014 · Latin Modern Mono is available from FontSquirrel (and also a core font from LaTeX) which is very tight in condensed form. \documentclass[hyperref Apr 14, 2018 · 2. Friday I was wondering around in the library when I stumbled upon the following book: Moments, monodromy, and perversity: a diophantine perspective the book is published in 2005 and the typesetting is exactly what I have been looking for! Jan 24, 2020 · But you can do that simply loading a monospaced font: \usepackage{nimbusmono} % for instance Or using xelatex (or lualatex): \usepackage{fontspec} \setmonofont{Bitstream Vera Sans} The LaTeX Font catalogue explain the particular setting of every monospaced typewriter font. See ConTeXt Fonts for more information. It also has a dotted zero which makes it excellent to use when typesetting computer code in a LaTeX document. Dec 1, 2017 · 1. There are now two variants of Inconsolata that have italics (as well as bold, bold italic and Cyrillic and Greek support for all of the weights and styles). Postby Anymouse » Mon May 10, 2021 2:19 pm. The following works: monospace italic bold => {\tt monospace} \emph{italic} \textbf{bold} Aug 1, 2021 · My understanding is that TeX and LaTeX don’t insert “space characters” at all, and make no reference to the font for those, and instead handle all the spacing themselves. \saveexpandmodeoexpandarg%. 2. You can intersperse math, Chinese and English (Latin script) without adding extra environments. Jun 4, 2020 · KP Monospaced. Oct 11, 2018 · LaTeX commands generally refer to these with the shorthand rm, sf, and tt respectively. Does not contain ASCI art box glyphs and the „^” character. answered Nov 4, 2011 at 20:54. Mar 6, 2016 · OK, observe this line basicstyle=\footnotesize\ttfamily, with that \ttfamily at the end. In this example the {\huge huge font size } is set and the {\footnotesize Foot Font families. You can copy highlighted code straight from VS Code to any rich text editor supporting HTML input. I agree the defaults of listings aren't that appealing. Operators spacing. I use 0. To use other styles ( families) such as sans serif, typewriter (monospace) etc. cls propagate to other classes as well. Of course, it’s possible that this behavior changes when using a monospaced font (but then, even if it does, you can almost-certainly change it again in those systems). I am attaching the screenshot of output that i am expecting . 2 Italian example using pdfLaTeX. The following example code uses the newcolumntype command of the array package to create the t column type, which typesets its contents in monospaced font. I cannot use the courier package because I must compile my project with XeLaTeX. Feb 4, 2018 · A nice sans serif monospace font is Source Code Pro from Google. I want to temporarily change fonts in latex, to arev. Oct 13, 2013 · The \font instruction should never be used with LaTeX. 8]{FiraMono} Put the above line in the preamble of your document, i. This is activated by setting text. c} Aug 6, 2010 · If you get really stuck, you can force a line to end using ewline (aka \\) or \linebreak. \usepackage[lighttt]{lmodern} % use sans serif by default. This proved to be a far better answer as it does not impact the whole document. Linux Libertine is burgeoning and has nice ligatures, swashes and all that, including a rather pleasing swashed capital Q. See the page on Wikibooks for simple explanations about settings and my MWE below: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{listings} \lstset{ % language=C++, % choose the language of the code numbers=left, % where to put the line-numbers numberstyle=\tiny, % the size of the fonts that are used for Dec 5, 2018 · TeX - LaTeX Meta your communities How to get monospace font of title, section, subsections, etc. \end{ document } Open this XeLaTeX example in Overleaf. I don't want the whitespaces in inline monospaced text to be monospaced. Usually, this would work, as described here: \documentclass{article} \begin{document} {\fontencoding{T1}\fontfamily{arev} the font is temporarily changed} \end{document} it doesnt though, and I think it has to do with the fact that arev is a T1 font. The following image shows the output produced by the example above: Mar 5, 2012 · Obviously hyphenation is disabled with your monospaced font. ewcommand{\code}[1]{\texttt{#1}} Also, note that code blocks can be loaded from other files with. You can use it just by importing it: \usepackage{sourcecodepro} MWE: \documentclass{article} \usepackage{sourcecodepro} \begin{document} \texttt{This text is in source code pro. These are Inconsolata LGC and Inconsolata LGC Markup. This is not Courier font. font_manager. 2 Monospaced Fonts The following are the monospaced fonts that are easily available and can be simply used in verbatim environments. European Computer Modern Teletype. It was presented at the 2020 JuliaCon conference (which was to have been held in Lisbon, Portugal, but took place online. Namely, I want the font to be monospace, with a light grey background (precisely, \\definecolor{mygray}{gray}{0. This article provides an overview of typesetting multilingual documents on Overleaf using the XeLaTeX (or LuaLaTeX) compiler in conjunction with the fontspec and polyglossia LaTeX packages. If there is, there is no way to have the monospaceness of your snippet to look like in Xcode :). you need to use some specific LaTeX commands, as shown in the example below: In this example, a command and a switch are used. \documentclass{article} These are TeX commands and most likely will not do what you want. \documentclass[a4paper]{article} \usepackage{xstring} ewcommand{\intexttt}[1]{%. Consolas Introduction. name for f in matplotlib. However, I want something a bit less "by default", a bit less "used by everyone else" Click on the individual fonts to see further examples and instructions for use with LaTeX. e. Nice, slightly narrow, rounded font almost identical to Bera Mono available for TeX. Package listings uses columns=fixed as default. Stuff Over Here \quad \quad \quad More Stuff Over 74. The commands for family, shape, and series are commutative, so they can be combined as with the command: The above command would make the type in bold, italic, and sans-serif. The \textbf command is used to make text bold. Apr 2, 2023 · Latex Monospace Font, or Typewriter font, is popular for displaying code snippets and other computer-related text. And with a monospaced font, also spaces between words are fixed, which prevents justification. In LaTeX, font styles can be changed using commands like \textbf, \textit, and \texttt. cls as bootstrap (via \LoadClass{article}) the settings in article. Writing basic equations in LaTeX is straightforward, for example: proved to be invalid for other exponents. } \end{document} @doncherry: The global change is trivial when it just involves including a package. Pavasaris. Look at the page of KP Serif for all of the fonts. I prefer a combination of Linux Libertine for serif, Inconsolata for monospace and Calibri or Linux Biolinum for sans serif. Also, I can't use the courier package, because the corresponding \texttt command can't be used Lean Manual. Among more subtle effects the LaTeX commands enact and depending on whether the fonts you use provide support, the effects of the LaTeX commands are additive. you need to use some specific LaTeX commands, as shown in the example below: \usepackage{fontspec} % Font handling \setmainfont[]{Linux Libertine O} % Main font is Linux Libertine \setmonofont[]{CMU Typewriter Text} % Monospace font is Computer Modern Typewriter For deeper understanding of what is going on with fonts in LuaLaTeX you may have a look at the Fontspec package documentation. . PPS. ttflist]) As others mentioned, you can also have Latex render everything for you with one font by setting text. One of the reasons is what you discovered: the \btt font you defined cannot be scaled with instructions such as \fontsize{43}{48}\selectfont, because it is at a fixed size. Usually I write something like. 16667em. By default, in standard LaTeX classes the default style for text is usually a Roman (upright) serif font. This package also provides access to the large number of font Consider this in contrast to some other fonts. Modify your basicstyle to include the font family: \lstset{basicstyle=\ttfamily\footnotesize,breaklines=true} Share. 2 Input encoding: inputenc, UTF-8 and a change to LaTeX in 2018. 6em: \documentclass {article} % Quick alignment test: % MMMM a % iiii a \usepackage {listings} \lstset { basicstyle XeTeX is a typesetting engine derived from Donald Knuth's original TeX software. Note that this does not only happen in article class, but also in memoir, book, as well. 5em because this is the usual width of glyphs in monospaced fonts. The most common is as a binary operator. Share. 這是繁體中文。. 5 Example of copy and paste. Numbers= {Monospaced, Uppercase} Run the example above e. You might want to be on the safe side and use. XeTeX and LuaTeX (the latter through the luaotfload package) allows a direct interface to fonts which may be loaded by their name or filename, so no manual font installation is required. \def\rightarrow{\setbox0=\hbox{X}\makebox[\wd0]{$\svrightarrow$}}%. The output PDF only shows the This is not Courier font; the This is Courier font is not present. You also issued the command \renewcommand{\familydefault}{\sfdefault} which confirmed this. immediately after \documentclass. 数学、中英文皆可以混排。. g. fontsize: For HTML output, sets the base CSS font-size property. bera mono is somewhat close to bitstream mono. We also have Google Noto fonts as included in Ubuntu 22. That's it! Concerning the related question of what font to choose, see my answer at. It is very important to know how to changing the style of latex monospace font. Works in pdflatex. You can add a test for a monospaced font based on comparing the width of i and m in the current font. In then in addition you may need to force the initialisation by putting. The \intexttt (as in the example below) does this but it seems to be unnecessarily complicated. I'm trying to use the Courier New font via setmonofont and the fontspec package, but for some reason, Overleaf relentlessly states that the font is unavailable. \fontcharwd\font`x. The command \tab exists, but it produces quite a large space. For ConTeXt output, the monspace font family. Jul 1, 2020 · However, there the whole text uses the monospace font, and the author doesn't want the monospaced spaces to be mono-spaced. This example produces the following output: There are two important commands here. to be all the same size. In LaTeX, there are generally three styles within any font family, which are distinguished as font family, font shape, and font series. It contains serif, sans serif, and monospaced fonts, each available in several weights and optical sizes. } produces. I'll let you check the available font families but for the monospace family, only Computer Modern Typewriter and Courier are supported. My goal is to choose a "nice" font family (serif, sans serif, monospace, and "math") for my basic LaTeX template. It provides the best vertical alignment, as you can see the code in a mono-spaced font in an source code editor. The same font: \urlstyle{same} This means, no special font is set and the current font is used for the URL. There is a marginal difference between the output generated via \texttt{} with/without the courier package: Dear Werner. As egreg mentioned, the LaTeX kernel defines \mathrm, \mathnormal, \mathit, \mathbf, \mathsf, \mathtt, and \mathcal. – David Carlisle. au ri ho vf wk je vi vh tk up