Tag Info

Hot answers tagged

8

As Mico had guessed, and you'd verified, you were loading non-standard calligraphic fonts in your document. By leaving the class options as default, or by adding the times option, you get two different results: \documentclass{elsarticle} %\documentclass[times]{elsarticle} \begin{document} $\mathcal{N}$ \end{document} by default: with times:


7

To make every math in sans, just issue \sansmath at the beginning of the document. \documentclass{article} \usepackage{sansmath} \sansmath %% <<--- this \begin{document} \verb|\everymath{\sansmath}| gives $E=mc^2$ \verb|\sansmath{$E=mc^2$} | gives \sansmath{$E=mc^2$} \begin{equation} E=mc^2 \end{equation} \end{document} If you ...


7

\documentclass{article} \usepackage{libertine} % Libertine has sb \makeatletter \DeclareRobustCommand{\sbseries}{% \@tempswafalse \sbox\z@{% % Disable warnings for missing fonts \let\@font@warning\@gobble % Save the current value of \@defaultsubs \let\@tempsubs\@defaultsubs % try sb \fontseries{sb}\selectfont % the value of ...


6

egreg's answer is very good and probably better than what I'm about to suggest. \documentclass[a4paper]{article} \usepackage{libertine}% has sb \makeatletter \def\checkseries#1#2{% {\ifcsname\f@encoding/\f@family/#1/\f@shape\endcsname \fontseries{#1}% \else \fontseries{\bfdefault}% \fi \selectfont #2}% } \makeatother \begin{document} rm ...


6

If xelatex or lualatex is an option for you, you can try TeX Gyre Cursor, which is a free Courier clone with greek support or Courier New which looks even more like a typewriter face. I don't know how to get the later one, since it was already installed on my PC, so it probably comes with Win 7 or Office. Here is an example (I don't speek or write greek, so ...


6

I know at least three of them, that can be used quite easily with fontspec and XeLaTeX or LuaLaTeX: Microsoft's Consolas and Courier New, and DejaVu Sans Mono. They all have monotoniko and polytoniko characters, that you may enter directly if you have a suitable keyboard. Here is a demo. Note that Courier New seems to have problems with polyglossia (‘No ...


5

It is just as it is designed; you may consier it a bug or a feature, but that one is the shape of the calligraphic A of the LX fonts I designed.


5

Yiannis Haralambous' old German fonts come equipped with font definition files tailored for old TeX distributions, when only the METAFONT sources were available for building bitmap fonts. The warning is due to the fact that the font definition file doesn't define sizes less than 10pt. However, the fonts are now available in Type1 format, so they are freely ...


4

Amazingly, this comes built into TeX! \documentclass{article} \renewcommand*\rmdefault{\ttdefault} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[greek,english]{babel} \begin{document} Knuth really planned ahead, since he included a typewriter Greek font as part of the Computer Modern Typewriter series. And now you can use Unicode ...


4

\documentclass{article} \usepackage[greek,english]{babel} \begin{document} Let's see some typewriter greek: \begin{otherlanguage}{greek} \texttt{Oper Edei Deixai.} \end{otherlanguage} \end{document}


3

If you use xetex or luatex, then Frederic Goudy’s Remington Typewriter font (to be precise, only the italic is Goudy’s), in the Pro version published by Lanston, seems to have what you need for both monotonic and polytonic Greek. You can preview the glyphs at www.myfonts.com/fonts/lanston/ltc-remington-typewriter/. The italic has only a little Greek, but ...


3

You need to use the fontspec-package: \documentclass{article} \usepackage{fontspec} \setmainfont{<your font name>} \begin{document} This text should be set in your new wonder-font \end{document} You need the font installed on your system, so no harm done there.


2

You can define a specific font command in fontspec just for punctuation. In this example I create an \englishfont family for Latin script (your commands for this were not quite right), then I create a command \punct just for punctuation that uses the \englishfont. It takes one argument, which could be any string you want in the other font, such as ...


2

Noto Sans Korean or original Source Han Sans should be OK. However, you should use a latest (unreleased) version of xdvipdfmx patched by Jiang Jiang not long ago. Realted: XeTeX: CID-keyed font support? % !TEX program = XeLaTeX % !TEX encoding = UTF-8 \documentclass{article} \usepackage{fontspec} \setmainfont{NotoSansKR-Regular.otf} % ...


2

Install the package ly1. I just had the same problem and this package solved it for me. I'm sure a more knowledgeable user will be able to explain why.


1

You may use \newunicodechar in a more complicated way to check whether the next character is the same. We need a different active character (here ?) because \newunicodechar already uses ~ internally. \documentclass[twoside]{report} \usepackage{fontspec} \usepackage{polyglossia} \setdefaultlanguage{hindi} \setotherlanguage{english} ...



Only top voted, non community-wiki answers of a minimum length are eligible