LaTeX forum ⇒ TeXworksFont 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)

Postby BrazilForever » Sat Apr 18, 2015 5:00 am

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 1567 times

User avatar
Stefan Kottwitz
Site Admin
Posts: 8522
Joined: Mon Mar 10, 2008 9:44 pm
Location: Hamburg, Germany
Contact:

Postby Stefan Kottwitz » Sat Apr 18, 2015 9:19 am

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:

  1. \documentclass{article}
  2. \usepackage[T2A]{fontenc}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage[russian]{babel}
  5. \begin{document}
  6. Это вводный абзац.
  7.  
  8. Это формула:
  9. \[
  10. y = x^2 + 1
  11. \]
  12. \end{document}


Stefan
Site admin

BrazilForever
Posts: 2
Joined: Sat Apr 18, 2015 4:54 am

Postby BrazilForever » Sat Apr 18, 2015 3:07 pm

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