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.

5
votes
3answers
68 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
26 views

Random letters appearing at end of paragraph using \usepackage[T1]{fontenc} [closed]

When compiling this MWE I get these âĂČ at the end of the paragraph. They disappear when I remove \usepackage[T1]{fontenc}. Are there any suggestions as to how I can keep \usepackage[T1]{fontenc} but ...
0
votes
0answers
33 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
13 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
74 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
34 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
58 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
57 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
0answers
29 views

\input of pure Czech text doesn't work

I have 2 files ideje.tex and th0.tex. Both are \usepackage[utf8]{inputenc} but I don't think this is important.I want to add th0.tex to the end of ideje.tex by this command: \input{th0.tex} but I ...
0
votes
1answer
32 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
150 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
41 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
114 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
26 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
39 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
200 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
29 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
33 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 ...
0
votes
0answers
59 views

If TeX / LaTeX uses the Unicode glyphs where possible, or just draws the lines / shapes manually

For example, there is a unicode character Ċ with the dot above, but you can also do \dot{C}, or by manually drawing a dot above the character with tikz or something. Same with the \hat{C} and \bar{C} ...
6
votes
3answers
151 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
139 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
69 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
76 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
64 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
49 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
65 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
66 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
72 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
81 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
35 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
34 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
58 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
289 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
68 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
50 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
134 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
68 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
69 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
166 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
251 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
132 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
104 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?...
1
vote
1answer
34 views

Load and using a font, but just in a single paragraph in an entire document [duplicate]

I have a book document with a lot of formatting, and I would like my dedication paragraph to appear in a font, that will just be used here, in the entire document. Let's say I want to use Tex Gyre ...
4
votes
1answer
85 views

How to match for a space with TECkit

Trying to change an existing TECkit map for Sanskrit to eventually do what I want (Adding a first pass removing spaces after consonants in transliteration before the second and third passes converts ...
2
votes
1answer
63 views

How to make \uppercase work with Polish language?

I am trying to make \uppercase work with document written in Polish. However it doesn't work properly for all letters: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[polish]{babel} \...
1
vote
1answer
306 views

\guilsinglright and \quotesinglbase unavailable in encoding OT4 when using package “polski”

I reinstalled my system completely (changed from Win7 to Win10) and installed MiKTeX 2.9 and TeXnicCenter. Files that used to work with this setup do not anymore. Tried the very basic example for ...
1
vote
1answer
56 views

Modifying or creating a new autoinst encoding

I am trying to modify an autoinst encoding. Ideally, I would like to patch it with a command line argument or the like so that the process could be easily reproducible. If that is unreasonable I would ...
2
votes
2answers
40 views

Import \varepsilon (''34) from `nwtxmia.tfm` font

This is an 'import symbol from a different font' question, but I'm sure its is not duplicated. I would like to get the upright \varepsilonfrom the \newtxmathpackage. Concretely, I would like to get ...