LaTeX forum ⇒ Fonts & Character Setspsgreek and sans serif font

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
gertschi
Posts: 1
Joined: Wed Jan 06, 2010 11:25 pm

psgreek and sans serif font

Postby gertschi » Wed Jan 06, 2010 11:35 pm

Hello,
I've installed the psgreek font in MiKTeX 2.8 since I need to write a few greek words. Everything works fine as long as I don't change the default font. However, I have to use a sans serif font as default in my document. I'm changing the font with:
\renewcommand{\familydefault}{\sfdefault}


As soon as I add that line the greek font looks ugly in the resulting PDF file (I can see the pixels). You can use the following example to reproduce the problem:

\documentclass[paper=A4, fontsize=11pt]{scrbook}

\usepackage[latin1]{inputenc}
\usepackage[polutonikogreek, english]{betababel}

\usepackage{lmodern}
\usepackage{psgreek}

\renewcommand{\familydefault}{\sfdefault}

\begin{document}
Some greek words: \bcode{krupto/s2} and \bcode{gra/fein}
\end{document}


Do you know a solution for this?

Recommended reading 2021:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Re: psgreek and sans serif font

Postby frabjous » Thu Jan 07, 2010 12:50 am

Why do you need the psgreek package? Your document works fine for me if I just comment out the \usepackage{psgreek} line.

Fontedeletrasionl
Posts: 2
Joined: Thu Sep 14, 2023 11:55 am

psgreek and sans serif font

Postby Fontedeletrasionl » Thu Sep 21, 2023 4:43 am

Hello,

The problem you are having is related to using Greek fonts along with sans-serif fonts as default in your LaTeX documents. This typeface merging can lead to inconsistencies in font size and style, resulting in bad icons when exported to PDF.

One solution is to use the sansmath package to improve the use of sans-serif fonts in math expressions, while leaving Greek fonts intact. You can try adding the following line to your document:
\usepackage{sansmath}
\sansmath
But be aware that combining multiple font types in LaTeX can be complicated and can easily cause aesthetic and formatting problems. If the problem persists after you try this solution, you may consider using fonts available in LaTeX (for example, Latin Modern fonts) or consider using other Greek fonts instead of psgreek to ensure consistency in your documents.Here


Return to “Fonts & Character Sets”

Who is online

Users browsing this forum: No registered users and 4 guests