# Tag Info

15

I don't know why Knuth designed the ß as it is in the cm-fonts. I don't quite remember why Jörg Knappen changed the look of the ß in the ec-fonts, but I do remember that there was some quite heated discussions about the choice. If you don't like both ß there is no much you can do (apart from redesigning the glyph yourself). But as the cm-super fonts ...

9

What you are complaining about is the "ß" of the dc fonts created by Jörg Knappen, the first 8 bit extension of the original 7 bit Computer Modern fonts. This was digitized in the cm-super fonts (see Latin Modern vs cm-super?). This new ß was disliked a lot when Jörg created the dc fonts (which later became the ec fonts). The ß as designed by Knuth (and ...

25

The glyph makes much more sense visually when seen as a ligature of long s and round s, one of the two traditional forms of the ß (the other, of course, being long s and z). Here's a comparison, using outlines from cm-unicode, version 0.6.3a: Here I've used f as a reference for the first part of the ligature, since I couldn't find a long s in cm-unicode. ...

13

I can't do anything about the font you are using but would recommend to use the lmodern fonts, a modernised variant of the Computer Modern fonts. \documentclass{minimal} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \begin{document} \begin{center} Große Straße ließen gießen maßen heißt Spaß Fuß Maß Gruß reißend \end{center} ...

2

in such cases use: \begin{sloppypar} This is a longer line -- notice what happens now at the end: \code{OfThisLongPeiceOfText} \end{sloppypar} and if you do not like \sloppypar use: \usepackage[scaled=0.85]{beramono} \usepackage{showframe} % Just to show the frames \newcommand{\code}[1]{{\ttfamily#1}} Or use the german shortcuts: ...

1

One way (not the best) is splitting it with the seqsplit package: \documentclass[a4paper]{article} \usepackage{showframe} \usepackage{seqsplit} \newcommand{\code}[1]{{\fontfamily{pcr}\selectfont \seqsplit{#1}}} \begin{document} This is a longer line -- notice what happens now at the end: \code{OfThsLongPeiceOfText} \end{document} Will give this: ...

0

I finally satisfied my need by giving up on the default font system altogether and finding a way around it. It's a compromise, so if someone comes later who can actually fix my installation (or educate me on what I was doing wrong?) I'm willing to pick their answer instead. It all started with settling for a font which I could obtain in a TTF or OTF file ...

2

Pandoc uses a template which, when used with XeTeX calls mathspec.sty; mathspec.sty calls fontspec.sty with some options. If something else calls fontspec.sty then there will be a clash, and tufte-handout.cls does so. One solution would be to edit the template Pandoc uses. Taking out mathspec.sty would do the trick.

1

You might do like the following: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{mfirstuc} \usepackage{titlesec} \titleformat{\section} {\normalfont\scshape} {\thesection} {1em} {\makefirstuc} \begin{document} \section{Capital} \section{capital} %\section{équipe} \end{document} but, as soon as the third \section command is ...

3

The same workaround as for package clash fontspec eulervm amsmath applies, both for XeLaTeX and LuaLaTeX. \documentclass{article} \usepackage[libertine]{newtxmath} \usepackage[no-math]{fontspec} \setmainfont{Linux Libertine O} \DeclareSymbolFont{operators}{\encodingdefault}{\familydefault}{m}{n} \begin{document} 123 $123$ --- \emph{a} $a$ \end{document} ...

2

The font is a specialized math symbol font, that also provides a set of letters; you can get the dieresis over the o with \accent"87: \font\stixmathsf=stix-mathsf \stixmathsf \accent"87 o \bye Similarly for the other accents.

1

You can certainly compare the fonts in the font editor of your choice. However, it is probably easier to do this with lmex than cmex to minimise differences, since lmex should include essentially similar glyphs (but fewer, obviously) to those in the maths font. Yet these have the same names as the corresponding glyphs in cmex. So, matching against lmex will ...

0

You can set each of the algorithm components individually (through settings like \SetKwStyle, \SetArgSty, \SetDataSty, ...), or change the font at the start of every algorithm automatically by adjusting \textnormal: \documentclass{article} \usepackage{algorithm2e,etoolbox} \AtBeginEnvironment{algorithm}{\let\textnormal\ttfamily} \begin{document} ...

4

XeTeX can use the powerful method of mapping files. Locate on your TeX system the file tex-text.map and copy it into the working directory as baskerville-dash.map. Open the file with a text editor and modify it to look like ; TECkit mapping for TeX input conventions <-> Unicode characters LHSName "baskerville-dash" RHSName "UNICODE" pass(Unicode) ...

4

Since you're using the "Monotype Baskerville" font, you actually have a choice of two weights for the em-dash symbol: \char"0214 (the default) and \char"0215. The former glyph is indeed extremely thin; the latter is a lot thicker, and it may even be too thick for your taste. Your call. If you like the latter form, you could set up a macro via an instruction ...

4

The behaviour is as designed but if you want to lose all (log-only) font warnings then: \documentclass{article} \makeatletter \def\@font@info#1{} \makeatother \usepackage{lmodern} %% see below \usepackage[T1]{fontenc} %% \begin{document} Hello \textbf{World \texttt{of} Code!} %% ^^^^^^^^^^^ \end{document} has 66 rather than ...

2

mathastext Another option is to use Jean-François Burnol's mathastext which adopts some of the letters and symbols in the document's font (or any other) for use in math environments. with fbb Here is an example using mathastext with Michael Sharpe's great fbb package (an expanded version of Bembo/Cardo), together with newtxmath using the libertine option. ...

2

I wouldn't go the \vbox way. I prefer adding tokens and delivering at the end, so you can suitably define the output at the spot. \documentclass[a4paper,addpoints]{exam} \usepackage{environ,etoolbox} \newcommand\allanswers{} % initialize \makeatletter \NewEnviron{answer} {% % we want to expand \thequestion \protected@edef\BODY{\BODY}% % just expand ...

2

Fonts are embedded by default when you compile TeX to PDF. To be sure, you may wish to upload your PDF to a cloud, say, GoogleDrive (free) and see, how it looks there in another previewer.

1

I'm not an expert on PDF, but the whole idea of PDF in opposite to Word is that the viewer displays the same picture and the printer prints the same glyphs on the paper. Well, more or less. It obviously does not depend on the installation of fonts on the computer you use to display the PDF, but there are differences even between different viewers on the ...

4

OPmac includes ams-math.tex from csplain package in order to set math (because the default math setting from plain TeX is very poor and it doesn't allow the font size changing simply). IMHO, there is nothing bad, if you call OPmac and then another macro for math setting (mtp2.tex in this example). Of course, the default math setting (by OPmac) is ...

3

You just don't need inputenc with XeLaTeX. Just be sure your file is UTF-8 encoded. \documentclass{article} \usepackage{fontspec} \usepackage{polyglossia} \setmainfont{Linux Libertine O} \setmainlanguage{catalan} \setotherlanguage{greek} \begin{document} Barcelona és una ciutat i metròpoli a la costa mediterrània de la península Ibèrica. És la capital ...

1

\documentclass{report} \usepackage{kpfonts} \usepackage[explicit]{titlesec} \usepackage{tikz} \makeatletter \newcommand{\gettikzxy}[3]{% \tikz@scan@one@point\pgfutil@firstofone#1\relax \edef#2{\the\pgf@x}% \edef#3{\the\pgf@y}% } \makeatother \titleformat{\chapter} {\normalfont\sffamily\Huge\scshape} {}{0pt} ...

1

The uarial font has no small caps, as far as I know. You can use tgheros that has and is based on Helvetica, very similar to Arial. \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[ngerman]{babel} \usepackage{amsmath} \usepackage[scale]{tgheros} %set arial as default font for everything ...

0

I suppose that there is no typewriterfont for thai. You can try the Code2000 font, which is, of course, not a typewritzer font, but has all characters: \documentclass[12pt,a4paper,oneside]{book} \usepackage{fontspec} \setmainfont[Scale=1.4]{TH SarabunPSK} % Thai Font \setmonofont[Scale=MatchLowercase]{Code2000} \XeTeXlinebreaklocale "th_TH" ...

2

When \pounds is found in math mode, LaTeX executes \mathsterling, otherwise it does \textsterling. If we look at newpxtext.sty in a TeX Live 2014 distribution, we find \re@DeclareMathSymbol{\mathsterling}{\mathord}{operators}{163} The package is version 1.232, released 2015/04/07. This line is commented out in the current version 1.293 released ...

1

Depending on your TeX distribution, the text-mode and math-mode renditions of \pounds may differ. I get the following output from running your code on a system with MacTeX2015 and version 1.293 (2015/08/07) of newpxtext: Since newpxmath isn't loaded, the symbol produced by $\pounds$ is the math-italic glyph from the Computer Modern font family. If the ...

5

It's quite easy to get as ugly as possible typesetting, not only with MS® Word™, but also with XeLaTeX. Just ride your imagination. \documentclass{article} \usepackage{fontspec} \usepackage{lipsum} \setmainfont{Alegreya Sans SC} \begin{document} \section{A Section Title} \lipsum[1-2] Enough! \end{document} You don't like Alegreya? Here's a lighter ...

6

Just adding two lines to sample2e produces: % This is a sample LaTeX input file. (Version of 12 August 2004.) % % A '%' character causes TeX to ignore all remaining text on the line, % and is used for comments like this one. \documentclass{article} % Specifies the document class ...

1

I just tried to test fonts in XeLaTeX and they obviously get embedded automatically, because when I used an obscure font and then displayed the PDF on another computer that didn't have the font, the PDF was displayed correctly. This is how i set main font: \usepackage{fontspec} \setmainfont[Ligatures=TeX]{CMU Serif Roman}

3

Among the available free Unicode math fonts there are just a few possibilities. \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} \begin{document} Pagella:\par $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$ \medskip Bonum:\par \setmathfont[range=\symcal]{TeX ...

4

The program otfinfo shows no feature in the OTF font file, which makes it pretty unusable with XeTeX unless a mapping file is prepared for adding f-ligatures or other ones. However, the distribution comes with a features.fea file that allows to get ligatures with LuaTeX. I unzipped the downloaded archive and moved to the created directory; I changed the ...

3

I copied the relevant definitions from mathabx.sty and mathabx.dcl. \documentclass{article} \makeatletter \DeclareFontFamily{U}{mathx}{\hyphenchar\font45} \DeclareFontShape{U}{mathx}{m}{n}{ <5> <6> <7> <8> <9> <10> <10.95> <12> <14.4> <17.28> <20.74> <24.88> mathx10 ...

2

This appears not to be an issue with mathastext but rather one of lualatex in math mode. Here is some code to exhibit the font used for digits by mathastext in math mode. The output looks correct for both xelatex and lualatex but for the latter the figures are oldstyle despite what I understand of the font descriptor. \documentclass[9pt,fleqn]{extarticle} ...

1

First off, most people use pdflatex nowadays. Change every image to pdf if possible replacing eps files by pdf using convert file.eps file.pdf convert is found in the imagemagick package. Remove epsfig and use includegraphics instead. Next run: pdffonts final_upload_document.pdf | less to ensure that a type 3 font problem is actually the ...

1

If I understand what do you need, you want to spare macro space and type only: \setsmartgreek \alpha\beta\gamma\delta\epsilon \relax instead to re-defining \alpha, then \beta, then \gamma etc. You can try this: \def\setsmartgreek{% \expandafter\ifx\csname deltaup\endcsname\relax \else \def\stgreekC##1##2;{##2up}\fi \expandafter\ifx\csname ...

1

The simplest way is using expl3 (fill in the missing names): \documentclass{article} \usepackage{amsmath} \usepackage{pxfonts} \usepackage{siunitx} %\usepackage{isomath} %\usepackage{upgreek} \usepackage[ISO]{pxgreeks} \usepackage{expl3} \ExplSyntaxOn \cs_if_exist:NTF \alphaup { \cs_new:Nn \thewaywewalk_greek:n { \int_compare:nTF { \fam = 0 } { ...

1

Here is a possibility. A bit painful, but now done. Notice that the code assumes the Greek letters have been set-up to be italic, nothing breaks if not, but defined macros \alphait, \Gammait will then not do what their names indicate. \documentclass{article} \usepackage[utf8x]{luainputenc} \usepackage[T1]{fontenc} \usepackage{pxfonts} \usepackage{siunitx} ...

2

You mentioned working with pxfonts and having tried pxgreeks. The only missing thing is that pxgreeks leaves the lowercase Greek letters of type mathord as done by package pxfonts. The uppercase Greek letters are already of variable type and you only need to use alphabet \mathfrak (sic) to get the upright variants. Thus it is only a matter of modifying the ...

3

Imho there is no chance for a generic solution in legacy tex. There are always some small differences between the math font packages. Regarding a pxfonts specific solution: Imho it is not impossible but it would be time consuming to set it up. In legacy tex the greek symbols are spread around: Some uppercase upright greek chars in OT1, some italic upper + ...

0

The mathdesign package redefines \scdefault to be fsc for its own font management, that you want to avoid, since you just need the math fonts. Revert it to the standard. \documentclass{article} \usepackage[utopia]{mathdesign} \usepackage{erewhon} \renewcommand{\scdefault}{sc} \begin{document} \scshape Be small caps! \end{document} You should consider ...

8

Without knowing your operating system or anything else about your set-up, I can’t say why you’re having trouble installing coloredlettrine. But if you’re compiling with xetex or luatex, you don’t need to install the fonts in TEXMFHOME (that’s a big advantage of xetex and luatex), and you can do for yourself what coloredlettrine does. Just install the fonts ...

4

Assuming that you want to change only \mathbb{}, you can load amssymb or whatever first and then override the declaration of \mathbb{}, using relevant code from kpfonts.sty. For example: \documentclass{article} \usepackage{mathtools,amssymb} % from kpfonts.sty \DeclareSymbolFont{kpbb}{U}{jkpsyb}{m}{n} \SetSymbolFont{kpbb}{bold}{U}{jkpsyb}{bx}{n} ...

1

running pdffonts on the supplied pdf produces $pdffonts kjour.pdf | grep -v '$none$' name type encoding emb sub uni object ID ------------------------------------ ----------------- ---------------- --- --- --- --------- Times-Italic Type 1 Custom no no no ... 2 With lualatex or xelatex you can choose the math font for each range separately using unicode-math: \documentclass{article} \usepackage{mathtools} \usepackage{fontspec} \usepackage{unicode-math} \setmathfont{Latin Modern Math} \DeclarePairedDelimiter{\abs}{\lvert}{\rvert} \pagestyle{empty} \begin{document} \section{Latin Modern Math} ... 3 To me, it looks like the mtpro2 (MathTime Professional 2) font package was used to create the table. Specifically, it looks like the package was loaded with the options mtpcal for a Times-compatible Math Script font and mtphrb for a Times-compatible blackboard bold font. Not as sure about the monospaced font that's in use, but Courier would appear to be a ... 1 \mathcal{L} is what I have used in the past, if you don't want to use the \pounds sign. 0 Unless you really need raw Tex for some reason, you're better off using XeLateX (or LuaTex?, I haven't actually used that flavor) and using the actual unicode letters for things like ø, å, æ, etc. (in other words, just type normally with correct european keyboard). For example, I currently have a quite large document that is a mix of ... 5 You can do some ligature-like shorthands on the fly without virtual fonts with the encTeX extension of tex and pdftex. It is built-in in most modern TeX distros through a command line switch at format compilation time. Assuming the bash shell, you could do the following... You must activate the encTeX extension at format generation, saying something like: ... 4 The symbol is not gone, but the interface of unicode-math has changed a bit. \documentclass{scrartcl} \usepackage{amsmath, amsfonts, amsthm} \usepackage{fontspec} \usepackage{unicode-math} \setmainfont[Ligatures=TeX]{TeX Gyre Pagella} \setmathfont{TeX Gyre Pagella Math} \begin{document} mathbf:$\mathbf{\chi}$symbf:$\symbf{\chi}\$ \end{document} ...

Top 50 recent answers are included