I want to write in math-mode greek letters with aspiration marks. I've found the list of accents in math-mode here, but this list doesn't contain aspiration marks (like, for example, in this letter: ἁ, which is different from ά given by \grave{\alpha}). In addition, I will also need combined accents, such as ἕ or ἆ.

I would prefer a solution that doesn't use any special greek package, just some addition to math-mode.

  • you can (probably) switch to text mode for Greek and use $ 1+ \text{ἕ or ἆ.} + 2$ – David Carlisle Nov 9 '19 at 19:39
  • Is there any way of doing this without having any greek package in the preamble? Just by supplementing math-mode with a new type of accent? – wiktoria Nov 9 '19 at 20:51
  • 1
    You probably want to have a look at the second part of this answer of mine – egreg Nov 9 '19 at 21:10
  • @egreg, how to do this for other types of accents? Should I change 60 in \DeclareMathAccent{\rb}{\mathord}{greekletters}{60} to some other number? How to find what the number should be? I've done a quick search but I didn't find the list. – wiktoria Nov 9 '19 at 21:35
  • @wiktoria Since I know where to look, I added the whole list. – egreg Nov 9 '19 at 23:36

Improving the code suggested in https://tex.stackexchange.com/a/512735/4427, here is a full list of math accents taken from the Greek font; change the names to your liking.

\usepackage[LGR,T1]{fontenc} % or OT1

% lgrenc.def has
% \DeclareTextAccent{\accdialytika}{LGR}{34} % διαλυτικά (diaeresis/trema)
% \DeclareTextAccent{\acctonos}{LGR}{39} % τόνος/ὀξεῖα tonos/oxia (acute)
% \DeclareTextAccent{\accdasia}{LGR}{60} % δασεῖα spiritus asper (rough breathing)
% \DeclareTextAccent{\accpsili}{LGR}{62} % ψιλή spiritus lenis (smooth breathing)
% \DeclareTextAccent{\accvaria}{LGR}{96} % βαρεῖα (grave)
% \DeclareTextAccent{\accperispomeni}{LGR}{126} % περισπωμένη (circonflex/tilde)
% \DeclareTextAccent{\accdialytikaperispomeni}{LGR}{32} % Cd
% \DeclareTextAccent{\accdialytikatonos}{LGR}{35}       % Ad
% \DeclareTextAccent{\accdasiaperispomeni}{LGR}{64}     % Cr
% \DeclareTextAccent{\accdasiavaria}{LGR}{67}           % Gr
% \DeclareTextAccent{\accdasiaoxia}{LGR}{86}            % Ar
% \DeclareTextAccent{\accpsiliperispomeni}{LGR}{92}     % Cs
% \DeclareTextAccent{\accpsilioxia}{LGR}{94}            % As
% \DeclareTextAccent{\accpsilivaria}{LGR}{95}           % Gs





enter image description here


A XeLaTeX solution with \text{} as @DavidCarlisle suggested and with my answer from here:

\setallmainfonts{Linux Libertine O}
\setmainfont{Linux Libertine O}
%\newfontfamily\greekfont{Linux Libertine O}

% Definitions of Greek (in math mode)



English text



Ελληνικό κείμενο εδώ ἁ \alphapneuma

I only used \alphapneuma here and this gives:

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.