TeXworksFont issue in TexWorks (coming from MAC)

Information and discussion about TeXworks, an integrated LaTeX environment for several platforms
Post Reply
BrazilForever
Posts: 2
Joined: Sat Apr 18, 2015 4:54 am

Font issue in TexWorks (coming from MAC)

Post by BrazilForever »

Hello Everyone,

I created Latex document on MAC, not I need to edit it on PC. It has both Russian and English fonts. Russia fonts is not displayed correctly on PC. I guess it has something to do with encoding, but cannot figure out what exactly. Please see attachment.

Regards,
Attachments
Capture.PNG
Capture.PNG (23.74 KiB) Viewed 7505 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
Stefan Kottwitz
Site Admin
Posts: 10322
Joined: Mon Mar 10, 2008 9:44 pm

Font issue in TexWorks (coming from MAC)

Post by Stefan Kottwitz »

Welcome to the forum!

You need the correct encoding for the font and specify it to the fontenc package. It depends on the font. Which one are you using?

Here's a minimal example with T2A encoding:

Code: Select all

\documentclass{article}
\usepackage[T2A]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[russian]{babel}
\begin{document}
Это вводный абзац.

Это формула:
\[
  y = x^2 + 1
\] 
\end{document}
Stefan
LaTeX.org admin
BrazilForever
Posts: 2
Joined: Sat Apr 18, 2015 4:54 am

Re: Font issue in TexWorks (coming from MAC)

Post by BrazilForever »

Thank you, Stefan!

Changing encoding in editor to Windows 1251 worked. Too bad it requires restarting editor, it took me a while to figure out. Otherwise, TexWorks is awesome editor!

Regards,
Post Reply