As of May 31, 2023, we have updated our Code of Conduct.

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.

96 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
2k views

Font shape declaration has incorrect series value `mc'

I know this issue has been solved for the phv font family and updated via CTAN/miktex console but I get the same error for eurosans.sty. (pdfTeX, Version 3.14159265-2.6-1.40.21, MiKTeX 2.9.7400 64-bit)...
Em D's user avatar
  • 51
5 votes
0 answers
1k views

Ansi Encoding for Embedded Fonts in PDF Output

Rendering PDFs with identical fonts using InDesign versus using LuaLaTeX with fontspec in TeXworks, I have found differences in Acrobat Reader's descriptions of the embedded font types and encoding. ....
crai_n's user avatar
  • 301
4 votes
0 answers
879 views

Changing default font for \mathcal in "Pages" equations (Mac)

Sorry if this question is not too relevant to LaTeX. LaTeX doesn't have good support for my language so I'm writing my paper in Mac's "Pages". I am using version 10.3.5 (7029.5.5) and using ...
Zara's user avatar
  • 151
4 votes
0 answers
2k views

Problem T1 fontenc and microtype?

I had to reinstall Windows on my pc, and therefore Latex too. It worked perfectly well before, and I don't understand why I have a problem now (I reinstall the complete miktex distribution). Here is ...
Antoine's user avatar
  • 529
3 votes
0 answers
54 views

Why is this usage of the package MnSymbol raising an error?

Why does the following document raise an error? \documentclass{article} \newsavebox\aeaesigbox \savebox{\aeaesigbox}{$AE$AE} \usepackage{MnSymbol} \newsavebox\aebox \savebox\aebox{\fbox{$\...
A.Ellett's user avatar
  • 49.9k
3 votes
2 answers
149 views

I can't type anything with FreeMonoTengwar font

I've successfully installed the FreeMonoTengwar font and the keyboard layout, and it works perfectly on simple programs such as Notepad: but for some reason when I follow the steps given in this ...
Ignacio Correa's user avatar
3 votes
0 answers
146 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 ...
Ulrich Dirr's user avatar
2 votes
0 answers
95 views

Defining opentype fonts for beamer themes

I am working to adapt the jhsph beamer theme (https://github.com/jfiksel/jhsphbeamer ) to work more generally for other JHU departments, ideally making the theme at least approximate JHU's "...
andrewperrin's user avatar
2 votes
0 answers
110 views

Redefining \dh gives problem with hyperref

I would like to define \renecommand{\dh}{d.\,h.\xspace} which would help me to enter d.h. correctly in a German text. Problem: doing this before hyperref gives the T1-default, doing it after hyperref ...
Ulrich's user avatar
  • 827
2 votes
0 answers
3k views

Inputenc Error: Invalid UTF-8 byte "FC

When compiling my code in Texmaker I get this error: Error Package inputenc Error: Invalid UTF-8 byte "FC. I don't know why. Can somebody help me? \documentclass[11pt,a4paper,oneside,titlepage]{...
Jasmin Niederbacher's user avatar
2 votes
0 answers
163 views

Text selection adds extra spaces in Sumatra PDF

The following document: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \begin{document} Hello world \end{document} result in the following weird ...
Eric's user avatar
  • 455
2 votes
0 answers
277 views

Package fontenc creates error after upgrading system

I recently upgraded my debian installation (testing branch), and now my documents won't properly compile using fontenc. Here's a MWE: \documentclass{report} \usepackage[utf8]{inputenc} \usepackage[...
Clement's user avatar
  • 131
2 votes
0 answers
367 views

xelatex could not find MinionPro.sty

I have installed Minion Pro fonts followed this post https://kieranhealy.org/blog/archives/2012/11/10/installing-minion-pro/. And I ended up compiling mnsymbol-test.tex and minionpro-test.tex ...
chenying2016's user avatar
2 votes
0 answers
1k views

New Century Schoolbook with Millennial math not available in texlive-2016

I have a fresh install of latex-live on ubuntu 16.04. I was trying to use New Century Schoolbook with millenial math (found it here http://tug.ctan.org/info/Free_Math_Font_Survey/survey.html#fig:...
AbstractSage's user avatar
2 votes
0 answers
339 views

Command \noboundary unavailable in encoding LGR (TeX Live 2017)

This problem started appearing for me in TeX Live 2017: ! LaTeX Error: Command \noboundary unavailable in encoding LGR. The file still compiles and the PDF looks as expected, except regular sigmas ...
gnucchi's user avatar
  • 926
2 votes
0 answers
330 views

OpenType features for a math font in CONTEXT

Using CONTEXT MkIV, is it possible to add custom/virtual OTF features to a font used in math mode? Here is a simplified version of what I want to do. I want to change all occurrences of 1.2 in math ...
MHB's user avatar
  • 118
2 votes
0 answers
182 views

How to look up "font table"

I'm trying to look up "addresses" of specific "characters" in a "font table" for a font in Latex. I've come accross these "font tables" in the past, but I can't currently locate them. I think there ...
Jon Warneke's user avatar
2 votes
0 answers
757 views

Warning: uncodable character in LyX lstlisting

The problem I'm trying to insert the output of the tree command into a Program Listing field of LyX. The text is the following: exampleFolder/ ├── 01.mp4 ├── 02.avi ├── 03.mov └── 04.mpg If this ...
Atcold's user avatar
  • 1,633
2 votes
0 answers
236 views

Remapping fonts between different encodings?

Consider this MWE: \documentclass{article} % http://tex.stackexchange.com/questions/215447/using-cyrillic-with-tex-gyre-pagella-and-pdflatex \usepackage[utf8]{inputenc} \usepackage[T2A, T1]{fontenc} ...
sdaau's user avatar
  • 16.9k
2 votes
0 answers
2k views

Only getting strange symbols when copying from pdf to text

So the problem i am experiencing is that the encoding of the output pdf of my .tex file is somehow custom. This is the beginning of my tex file: \documentclass[a4paper,12pt]{article} \usepackage[...
Sander Van der Zeeuw's user avatar
1 vote
0 answers
33 views

How to redefine \hbar and still get the correct unicode character when copying it?

I'm using Garamond Math on a document, but I don't like the way its \hbar looks. I find it too difficult to discern from a regular h when on a fraction or on small fonts in general, which could lead ...
Níckolas Alves's user avatar
1 vote
0 answers
46 views

Installing enpassant fonts on mac

I am trying to create a simple chessboard with an a non-default font, such as "pirat" as described in the documentation of chessfss and have followed the instructions from the README of the ...
domoarigato's user avatar
1 vote
0 answers
99 views

Fontenc and tipa

I am layouting my PhD theses in linguistics and I am struggling with the layout of the linguistic examples. Thanks to StackExchange, I could solve the problem of font size (see here). Now, however, I ...
ahasse's user avatar
  • 81
1 vote
0 answers
53 views

Trying to Use Both Cabin and Baskerville Fonts in the Same Document

In the following code, I invoke both the cabin and baskervald packages. I am able to start off with the cabin font by simply specifying \cabin; however, when I want to begin using the baskervald font ...
jean-marie's user avatar
1 vote
0 answers
131 views

Latin Modern under T1 encoding, "lighttt" setting, and "lmtt/m/sl" in place for italic: Error at apostrophe "\textquotesingle"

The MWE: \documentclass{article} \usepackage[lighttt]{lmodern} \usepackage[T1]{fontenc} \ttfamily \DeclareFontFamily{T1}{lmtt}{} \DeclareFontShape{T1}{lmtt}{m}{it}{ <-> ssub * lmtt/m/sl }{} ...
Yukai Qian's user avatar
1 vote
0 answers
90 views

What is the most up-to-date indicated/suggested way to typeset Greek?

I typically type on an English keyboard, but I use a Greek keyboard when it comes to typing Greek characters. I have my personal workaround through the pdfLaTeX engine, but as LaTeX evolves it seems (...
Jim's user avatar
  • 505
1 vote
0 answers
75 views

Defining different opentype fonts for title and main text in a beamer theme

I am working on amending the helpful jhsph beamer theme (https://github.com/jfiksel/jhsphbeamer ) to match my university's font guidelines. The guidelines call for using Quadon for titles, headlines, ...
andrewperrin's user avatar
1 vote
0 answers
154 views

Package fontenc not working on beamer

In LaTeX, using the \documentclass{article}, I've used the packages inputenc as utf8 and fontenc for T1. For papers, these packages have been great in allowing me to type especial characters (in math ...
Ernesto's user avatar
  • 375
1 vote
0 answers
209 views

Adding a Flourish to a Word

Consider, say, the word which was produced by the following MWE code: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{pbsi} \usepackage{scalefnt} \begin{document} \thispagestyle{empty} \...
mlchristians's user avatar
  • 7,542
1 vote
1 answer
129 views

Why I cant see the Hebrew titles?

I'm trying to write a document that contains English, so I put: \begin{english} % Some lines.... \end{english} And then, if I put TOC at the beginning, this is the result: No titles of parts, ...
heblyx's user avatar
  • 2,521
1 vote
0 answers
289 views

latexmk fails with Invalid UTF-8 byte sequence even though I already used multiple tools to convert file to utf-8!

I would like to use latexmk in Visual Studio Code with the LaTeX plugin but I am facing some issues regarding encoding: Package inputenc: Invalid UTF-8 byte "A4. Package inputenc: Invalid UTF-8 ...
binaryBigInt's user avatar
1 vote
0 answers
1k views

Command \textminus unavailable in encoding OT1

When I try to compile my document I get the error as in the title. I guess it is related to the Matlab code I submit, but I do not know how to correct this. \documentclass[3p,times]{elsarticle} \...
fueto's user avatar
  • 11
1 vote
0 answers
88 views

cut letter with package T1 fontenc

With the package fontenc and option T1, I sometimes get a letter that is "cut" or "stepped over" by its neighbor. For instance, with this code : \documentclass[12pt]{article} \usepackage[T1]{fontenc}...
Doriann's user avatar
  • 83
1 vote
0 answers
2k views

Texmaker does not import overleaf project

Can i import project(.zip) from overleaf on Texmaker? Every time i try to open the .zip, Texmaker ask me to choose a enconding and even if i choose utf8 (I'm using utf8 in overleaf) all my text turn ...
user182580's user avatar
1 vote
0 answers
274 views

Error using a color box with xelatex

I have used this colorbox in a Document: \newtcolorbox{Titolo}[2][]{ enhanced before skip=2mm,after skip=2mm, colback=black!5,colframe=black!50,boxrule=0.2mm, attach boxed title to top left={xshift=...
user avatar
1 vote
0 answers
391 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 ...
TopologicalFieldTheory - TFT's user avatar
1 vote
0 answers
106 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 ...
Dan's user avatar
  • 11
1 vote
0 answers
311 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} \...
zefciu's user avatar
  • 111
1 vote
0 answers
108 views

Encoding problem with bibliography in tufte class

I try to make a bibliography using tufte book style. As you see, the bibliography reference on the margins is all messed up. I hope you understand, these weird margin symbols are not Russian, but ...
Sergey Belyaev's user avatar
1 vote
0 answers
520 views

Find apostrophe symbol ' in PDF file

I'm writing in french, with AZERTY keyboard and I don't know why I not can find the apostrophe symbol ' in my PDF file ? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \...
Anthony T.'s user avatar
1 vote
0 answers
948 views

TeXstudio code working on Windows 10 but not on Ubuntu 16.04

Right now I'm using TeXstudio (2.10.8) to create sheets with vocabulary for learning both Germand and Russian (despite I'm studying physics and that's the main point of using LaTeX). I've created a ...
Lev Michkin's user avatar
1 vote
0 answers
648 views

Latex font typeface doesn't work

I'm new to Latex and I'm trying to use it for my thesis. I want to use a font typeface for my document, so I follow the example from here. \documentclass{article} \usepackage[utf8]{inputenc} \...
lenhhoxung's user avatar
1 vote
0 answers
910 views

\usepackage[T1]{fontenc} produces numerous errors and ruins PDF

All I want is to be able to use \guillemotleft and \guillemotright. I'm on Ubuntu 14.04, 64-bit. These are the packages I load, after declaring documentclass article. \usepackage{mathtools} \...
Elen Sila's user avatar
  • 111
1 vote
0 answers
369 views

No pdf in Latex compilation even though the encoding is correct

EDIT 2: LINK TO DOWNLOAD THE tex FILE: http://www.mediafire.com/download/a2aaczrqzobv1q2/send.zip I have a .tex file whose preamble is this: EDIT: \documentclass[12pt,a4paper,twoside,openany]{...
DavidC.'s user avatar
  • 835
1 vote
0 answers
273 views

Setting up a document in Lyx

I use Lyx 2.1, document class : report. I want to set the document as follows: font: Times New Roman size: 12 points space between the title and paragraph : 6 before and after
GoldRay's user avatar
  • 425
1 vote
0 answers
210 views

Change font via `ERT` at LyX

I want to change font at LyX via ERT (e.g. for one of the Culmus Hebrew fonts). I remeber that was one command like \set...{fontname} and then the font change to fontname (What was before this command ...
heblyx's user avatar
  • 2,521
1 vote
0 answers
398 views

T2A does not have some font sizes

Here is the minimal code. I need to use the encoding T2A for Cyrillic characters. But the problem is that some font sizes are not available. I discovered that I should use also T1 after T2A. But using ...
Sigur's user avatar
  • 36.7k
0 votes
0 answers
48 views

pdfjam corrupting libreoffice pdf file

Running a simple pdf file containing unicode(non-Latin) characters of the Libertinus Serif font though pdfjam produces a corrupted file in which the unicode characters are not encoded correctly. The ...
Bernard's user avatar
  • 21
0 votes
1 answer
107 views

Unicode and Scientific Word/Workplace

I am working in a group whose leader uses Scientific Workplace (SWP) 5.5. Most other people in the group do not use this software and since MacKichan (spelling?) went bankrupt, there is no way to ...
Bence Racskó's user avatar
0 votes
0 answers
40 views

How to make my non-latin pdflatex document more copy-paste friendly?

I write and typeset articles in languages that do not use the latin alphabet using pdflatex. I have received requests from foreigners to make it easier to run the document in Google Translator. ...
anly25786's user avatar