I am trying to write the solution to some exercises in greek, but I cannot get the section to be bold and underlined if I use greek letters. It might be worth noting that:
- It works fine if I use
\textlatin{Ex 1}
- Using
\section*{\pmb{\underline{Άσκηση 1}}}
gives me exactly what I am looking for
Here is my code with all the packages I am using:
% Set the font (output) encoding
\usepackage[LGR]{fontenc}
% Greek-specific commands
\usepackage[greek]{babel}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage[utf8]{inputenc} % Required for inputting international characters
\usepackage{alphabeta}
\usepackage[T1]{fontenc} % Output font encoding for international characters
\usepackage{mathpazo} % Palatino font
\usepackage{tgtermes}
\usepackage{amsmath}
\usepackage{indentfirst}
\usepackage{geometry}
\usepackage[margin=0.5in]{geometry}
\usepackage{amsthm}
\newtheorem{theorem}{Θεώρημα}[section]
\newtheorem{lemma}[theorem]{Λήμμα}
\usepackage{etoolbox}
\usepackage[tableaux]{prooftrees}
\renewcommand*\linenumberstyle[1]{(#1)}
\usepackage{hyperref}
\begin{document}
\section*{Άσκηση 1}}
Καλημέρα
\end{document}
amsmath
and packagegeometry
andfontenc
? You could use\usepackage[T1,LGR]{fontenc}
. You shoudn't loadinputenc
at all. It seems that loadingmathpazo
andtgtermes
font packages cause the problem. If you comment their lines the problem goes away. Are you sure that they are compatible with LGR encoding?