Need to use utf8 natural greek symbols in pdflatex. For modern letters I use package textalpha, var greek symbols i workout through replacement and do not know how to do this correctly. Now the text is :
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage{textalpha}
% GREEK Symbols var
\DeclareUnicodeCharacter{03F0}{$\varkappa$}
\DeclareUnicodeCharacter{03D1}{$\vartheta$}
\usepackage{amssymb} % \for varkappa
\begin{document}
α β γ δ ε ζ η θ ι κ λ μ ν ξ ο π ρ ς σ τ υ φ χ ψ ω Α Β Γ Δ Ε Ζ Η Θ
Ι Κ Λ Μ Ν Ξ Ο Π Ρ Σ Τ Υ Φ Χ Ψ Ω
ϑ ϰ
\end{document}
It works but IF THE TEXT WILL BE JUST
$ϑ ϰ$
it does not work. So in math mode the replacement of var greek symbols does not work.
Can somebody help me?
The questions are really 2:
- is it any package for standard greek symbols instead of textalpha for text and math mode simultaneously?
- what latex commands are for var greek symbols for text mode? Then we can use
\ifmmodeor\TextOrMathin\DeclareUnicodeCharacterfor text to be correct.
They are in math mode:
\varepsilon ε
\varkappa ϰ
\varphi φ
\varpi ϖ
\varrho ϱ
\varsigma ς
\vartheta ϑ