Fonts & Character Setslower case sigma in LGR encoding

Information and discussion about fonts and character sets (e.g. how to use language specific characters)
Post Reply
Anymouse
Posts: 20
Joined: Mon May 10, 2021 2:50 am

lower case sigma in LGR encoding

Post by Anymouse »

Hi - to typeset Greek letters and words in English document but outside context of math/science I am using the following:

Code: Select all

\usepackage{substitutefont}
\substitutefont{LGR}{\rmdefault}{udidot}
\newcommand{\textgreek}[1]{\begingroup\fontencoding{LGR}\selectfont#1\endgroup}
Within my \textgreek{} command if I want to let LaTeX figure out the right sigma to use I just type an "s".
If it is at end of word it does the right thing and switches to end of word form.

If I want to force the end of word form (not that I ever need to) I can just type a "c" and it will do end of word form even when other letters come after it. I think in some historic ancient Greek texts they actually sometimes did that with compound words where first sub-word ended with a sigma, so maybe that's why that works.

However I can not figure out how to get a lower case sigma that is not end of word sigma when it doesn't have another letter after it.

Does anyone know how to turn off the detection of non-word characters after a sigma so it uses the sigma that is NOT end of word sigma?

Thank you for suggestions.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
Anymouse
Posts: 20
Joined: Mon May 10, 2021 2:50 am

lower case sigma in LGR encoding

Post by Anymouse »

Found the answer.

Code: Select all

\textsigma{}
Post Reply