LaTeX forum ⇒ TeXworks ⇒ Font issue in TexWorks (coming from MAC) Topic is solved

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

Font issue in TexWorks (coming from MAC)

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 (23.74 KiB) Viewed 2238 times

Stefan Kottwitz
Site Admin
Posts: 9196
Joined: Mon Mar 10, 2008 9:44 pm
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:

\documentclass{article}\usepackage[T2A]{fontenc}\usepackage[utf8]{inputenc}\usepackage[russian]{babel}\begin{document}Это вводный абзац. Это формула:$y = x^2 + 1$ \end{document}

Stefan
Site admin

BrazilForever
Posts: 2
Joined: Sat Apr 18, 2015 4:54 am
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,

Return to “TeXworks”

Who is online

Users browsing this forum: No registered users and 1 guest