Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [font-encodings]

{font-encodings} is about the various font or output code pages like T1 (for Latin) or T2*x* (for Cyrillic) which tell the compiler where to find a particular glyph (character) in a font file, hereby supporting correct hyphenation of words. A popular package for pdfLaTeX is fontenc.

1
vote
2answers
75 views

How to convert all hyphenation patterns from Unicode to T1 in lualatex?

I'm trying to use lualatex with old, 8-bit, non-Unicode fonts: \documentclass[a4paper]{article} \usepackage[utf8]{luainputenc} \usepackage{t1enc} \usepackage{lmodern} \def\myhelvetica{\fontfamily{phv}...
0
votes
1answer
45 views

UTF-8 characters not rendered properly

I have a problem with some of the UTF-8 characters that are in my Tex file. Although I am saving the file in UTF-8 and my text editor (Atom) is displaying all of the characters properly, LaTeX throws ...
2
votes
1answer
35 views

\H{u} and \H{o} do not appear in the lualatex output PDF

The following .tex source file has been working fine for me for decades using pdflatex: \documentclass[a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{t1enc} \usepackage{lmodern} \def\...
4
votes
1answer
122 views

Equivalent of fontenc in LuaLaTex

I'm writing a paper, and have recently switched to LuaLaTex. In pdfLaTex I've used \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} now how should I replace these, ...
4
votes
1answer
141 views

How can I select one No-unicode symbol from one font?

I am using Asea font http://users.teilar.gr/~g1951d/Textfonts.zip From http://users.teilar.gr/~g1951d/ And I want to pick some characters that are not encoded in unicode, but are present in the font,...
0
votes
0answers
51 views

“Font T1/cmr/m/n/12=ecrm1200 at 12.0pt not loadable” error when compiling

I have problem in executing LaTeX files by terminal in Mac due to missing files and unknown modification of TeX directory. As I am new user, I don't want to make too changes in system files and ask ...
0
votes
1answer
49 views

\usepackage[T1]{fontenc} doesn't use cm-super or cm-super unicode despite being installed

Some Bitmap font is being used instead. Minimal working example: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lipsum} \begin{document} \lipsum \end{document} Expected output: Pretty ...
2
votes
1answer
79 views

Ogonek rejected in bibilography

I am trying to compile a bibliography that will not accept someone's name that has an ogonek in it. I am not using \k, which I need for something else, so I did \let\ogonek\k and \newcommand{\eogonek}{...
1
vote
0answers
32 views

How to escape “->” (ASCII hyphen and greater than sign) in Latex [duplicate]

I have been trying to find a way to escape the "-" and ">" characters. I have looked at the \verbatim{} but this creates a new paragraph. As I have seen in other posts, my greater than sign shows up ...
5
votes
3answers
81 views

Is there a package to set the default font encoding of cyrillic to T2A?

Consider this for Greek \documentclass{article} \usepackage[LGR,T1]{fontenc} \usepackage{textalpha} \begin{document} φύσις \end{document As the default font supports LGR encoding, it renders ...
0
votes
0answers
39 views

LaTeX fonts with math and utf8 support [duplicate]

Although I like Computer Modern font families I'd like to be able to make documents look like they were made by "normal person" and still be able to benefit from the TeX powers*. In short the solution ...
1
vote
1answer
15 views

Biblatex: Two bibliographies with different styles and sortings II Part 2

The approach of gusbrs to my question Biblatex: Two bibliographies with different styles and sortings II, which is based on the solution of Biblatex: Two bibliographies with different styles and ...
2
votes
1answer
78 views

fontspec: Defining a new font family using TeX Gyre Pagella causes error [closed]

I just updated my packages through the MikTeX console, and when I try to define a new font family with TeX Gyre Pagella, I get a mysterious error (below). Just defining the new font family leads to ...
0
votes
0answers
59 views

! LaTeX Error: Command \textBeta unavailable in encoding OT1

I am writing a text in greek and english language. In addition I want to add some programming code in this text. For this purpose, I use the Listings package https://en.wikibooks.org/wiki/LaTeX/...
0
votes
1answer
59 views

Font became rasterized after reinstall

The following code produces a rasterized font: \documentclass{beamer} \usepackage[OT2,OT1]{fontenc} \newcommand{\cyr}{% \renewcommand\encodingdefault{OT2}% \normalfont\selectfont} \newcommand{\lat}{...
2
votes
1answer
160 views

Error: Command \texteuro unavailable in encoding OT1. However, \texteuro or € is never used in my text

I recently begun getting the following error during my thesis writing: ! LaTeX Error: Command \texteuro unavailable in encoding OT1. See the LaTeX manual or LaTeX Companion for explanation. Type H &...
0
votes
1answer
44 views

How to use mtpro2 together with other math-font?

for example, load mtpro2 and XITS-Math for different paragraph But it seems, mtpro2 und unicode-math can not be loaded together Error like: LaTeX error: "kernel/command-already-defined" ! ! ...
2
votes
1answer
238 views

Getting fontspec Fonts with pdfLaTeX

I have to make a document, which was originally written in LuaLaTeX, compatible for both pdfLaTeX and LuaLaTeX. Everything works except that the fonts differ. How can I force pdfLaTeX/fontenc to use ...
1
vote
0answers
45 views

Broken German Umlaut ü

I worte a letter in scrlttr2 but finally had to write an email. Thus I copied the text from the PDF I already got. The spell checker of the mail client complained on some words – the ones containing ...
2
votes
1answer
189 views

Font markup issues (\textbf \emph \textit not working)

I seem to have an issue in using many of text markings in my document (\textbf{} \emph{} \textit{} don't add any effect to text, but i.e. \sout works). There's a few relevant compile warning messages,...
1
vote
1answer
27 views

How to set a language for a column of table in a multi-language document?

I want to make a table contains both English and Bengali text. Using \setlanguage{english} I can ensure the computer modern font for English text. But, each time using this command is boring as I ...
0
votes
0answers
41 views

computer modern font is not shown with Bengali why?

But, it should be \documentclass{article} \usepackage{forloop} \usepackage{polyglossia} \usepackage{booktabs} \setmainlanguage[numerals=Devanagari]{bengali} \setmainlanguage{bengali} \...
2
votes
2answers
287 views

fontenc vs fontspec with XeLaTeX

I have encountered something I fail to understand. I have read that I should use fontspec and not fontenc when I use XeLaTeX, but this causes some problems for me when I use the cochineal font package....
1
vote
1answer
36 views

\fontseries{b} does not work in math mode

The file is typeset in LaTeX, encoding T2A: \usepackage[T2A]{fontenc} \usepackage[utf8]{inputenc} \usepackage[greek,english]{babel} Everything works perfect, excepting bold in some formulae. I tried ...
0
votes
1answer
35 views

Why is MnSymbol not loading Type 1 fonts?

I am trying to typeset a document with only Type 1 fonts in the resulting PDF. I'm using the MinionPro package, which calls MnSymbol for math fonts. Even though the Type 1 MnSymbol fonts are installed ...
6
votes
3answers
159 views

Issue with Bera font and fontenc package

I'm using \usepackage[T1]{fontenc} to typeset an article in LaTeX. Using the default font, the input Erd\H{o}s produces the desired Erdős in the output, which I can copy and paste properly. Based ...
1
vote
2answers
161 views

How can I set a font from PSNFSS distribution families as the main math font?

The declaration \DeclareMathAlphabet{cmd}{encoding}{family}{series}{shape} works to create a new command whose argument would be a font as specified in the declaration. PSNFSS distribution families ...
0
votes
0answers
90 views

Command \m unavailable in encoding TU

I use XeLaTeX and normally do not use the fontenc package. But now I want to use a specific symbol which according to the symbols-a4.pdf needs T4 encoding which is provided by the fc package. ...
1
vote
1answer
79 views

Using Minion Pro's Ornaments in pdflatex

I am having some trouble with getting Minion Pro's ornaments (with pifont) to work in pdflatex. When I compile the PDF all I see is a box with an "X" in it. Although I have taken a look at at several ...
0
votes
1answer
65 views

Using \dot{x} produces a bar below the letter (new case)

I have been using a poster template (please, click here to see it) that I found on overleaf based on baposter.cls (you can find it here). In such environment, \dot{x} produces a bar below the letter, ...
2
votes
1answer
54 views

Character mapping

I have to write my paper using some slovene letters (čČšŠžŽ), but i'm having a hard time using the slovene keyboard layout as i mostly use the EN/US one and it's killing my production.. I remember i ...
1
vote
0answers
95 views

spell checker Excalibur fails to save changes

I just tested Excalibur, an interactive, TeX aware spell checker, to correct typos of a TeX-file. However, when I was finished assessing the suggestions and attempted to save the file, a popup ...
0
votes
1answer
68 views

How to use tfm font with “LAE” encoding with xelatex & lualatex

I have this example of writing arabic with tfm font which work fine with pdflatex, the font is provided from arabi package. https://ctan.org/tex-archive/language/arabic/arabi \documentclass{...
3
votes
0answers
74 views

Chessboard and LuaLaTeX/OTF fonts

I haven't used chessboard for a long time. I'm wondering how I can use it with LuaLaTeX and my own chess fonts. Can someone help me with an example file? I'm having especially troubles how to let ...
0
votes
0answers
99 views

Kernel \latinencoding already defined

I am getting the error LaTeX error: "kernel/command-already-defined" Control sequence \latinencoding already defined. For immediate help type H . \tl_new:N \latinencoding Now by searching online, ...
0
votes
0answers
48 views

How to restore font via \usefont command? (or in other ways)

I'm triyng to use webomints package with Hebrew Here is the simple file: % Preview source code %% LyX 2.2.3 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you ...
0
votes
2answers
36 views

fontenc causes error in appendix table of content [duplicate]

I am making a table of content for my appendices, but when I use fontenc a strange series of letters appears in the compiled pdf file. my code: \documentclass[10pt,a4paper,dvipsnames]{article} \...
0
votes
1answer
72 views

Corrupted nfss table, overfull hbox and undefined control sequence when testing fonts

I just installed texlive and I am running a series of tests recommended in section 3.5 of the official documentation. The tests are working as expected but when I get to testfont.tex I am getting !...
9
votes
2answers
292 views

Easiest way to create TeX macro/code to access symbols from particular font?

I would like to use CASIO fonts here. 1 - I would like to create a way to use LaTeX to get these "icon"s. For example, use \On for the ON button, and ect. Assuming we have to do some more work here ...
1
vote
0answers
72 views

How to input a character using its character code for a custom font

Apologies in advance, I am new to LaTeX. Feel free to point me in the direction of an already answered thread. I have a custom font that I wish to use in my article for certain mathematical ...
2
votes
1answer
55 views

I have right letters in PDF but when i trying to parse it into text i have wrong encoded text

This picture explain actually the whole problem. I compile pdf file in AUCTeX with UTF-8-dos. And this creates another problem when I'm trying to convert this PDF into DOCX i get exactly this wrong ...
3
votes
1answer
178 views

microtype warning about “slots” and “text commands”

I’m writing a multilingual document using XeLaTeX, the scrreprt document class, and the XeCJK and microtype packages (loaded in that order). MWE (with the font properly installed on my system): \...
19
votes
3answers
3k views

How is a mathematical formula represented in PDF?

If I compile a .tex file to a PDF, how will the PDF encode a mathematical formula like f.ex. the integral below? Is it a bitmap? Or how else is it encoded? And how can I extract the formula from a PDF ...
0
votes
1answer
82 views

Can't get Bera font with Matlab-prettifier

I've used Matlab-Prettifier in the past to format my Matlab code, but having moved out of ShareLaTeX and into a local environment, I can't seem to get the Bera Mono font. E.g., the code ... \...
5
votes
1answer
86 views

In IEEEtran, why does `fontspec` package automatically change the font type once loaded?

By default, the body text font for IEEEtran document class is like this: When I load fontspec package, the font type changes: What is the name of the new font? How can I retain the original IEEEtran ...
0
votes
0answers
35 views

Encoding problems with Greek words

I wrote a whole text in lyx with a latin-9 encoding, but I need the encoding to be utf-8. I change it in the settings but in my essay I used lots of Greek words. The problem is that changing the ...
3
votes
1answer
171 views

Why cannot I change the font type at will using `\fontfamily`?

I am trying to use \fontfamily command to insert specific kinds of fonts for specific contents in my document. Also, using the command \renewcommand{\ttdefault}{<Font Name>} does not seem to ...
5
votes
2answers
274 views

Which characters are technically legal in macro names with T1?

Disclaimer: I am aware that one should not use special characters in macro names and do not recommend doing that (on the contrary). I ask this question purely out of curiosity. Until recently I ...
1
vote
0answers
144 views

Using georgian package in ubuntu

I would like to use LaTeX to format text in georgian. I have created a simple „Hello World”: \documentclass{article} \usepackage{georgian} \usepackage[T8M]{fontenc} \usepackage[utf8]{inputenc} \...
0
votes
0answers
109 views

Tex fonts for the Voynich manuscript language

I would like to put an epigraph from the Voynich manuscript (see https://en.wikipedia.org/wiki/Voynich_manuscript). Unfortunately, I don't know which tex-fonts I can use. Do you have any suggestions?...