数学模式中的希腊文送气符号

数学模式中的希腊文送气符号

我想在数学模式下用送气符号书写希腊字母。我找到了数学模式下的重音符号列表这里,但此列表不包含送气符号(例如,在此字母中:ἁ,它与 给出的 ά 不同\grave{\alpha})。此外,我还需要组合重音符,例如 ἕ 或 ἆ。

我更喜欢不使用任何特殊希腊包的解决方案,而只是对数学模式进行一些添加。

答案1

改进建议的代码https://tex.stackexchange.com/a/512735/4427,这是取自希腊字体的数学重音符号的完整列表;请根据您的喜好更改名称。

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

\DeclareSymbolFont{greekletters}{LGR}{\familydefault}{m}{n}
% 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

\DeclareMathAccent{\dialytika}{\mathord}{greekletters}{34}
\DeclareMathAccent{\tonos}{\mathord}{greekletters}{39}
\DeclareMathAccent{\dasia}{\mathord}{greekletters}{60}
\DeclareMathAccent{\psili}{\mathord}{greekletters}{62}
\DeclareMathAccent{\varia}{\mathord}{greekletters}{96}
\DeclareMathAccent{\perispomeni}{\mathord}{greekletters}{126}
\DeclareMathAccent{\dialytikaperispomeni}{\mathord}{greekletters}{32}
\DeclareMathAccent{\dialytikatonos}{\mathord}{greekletters}{35}
\DeclareMathAccent{\dasiaperispomeni}{\mathord}{greekletters}{64}
\DeclareMathAccent{\dasiavaria}{\mathord}{greekletters}{67}
\DeclareMathAccent{\dasiaoxia}{\mathord}{greekletters}{86}
\DeclareMathAccent{\psiliperispomeni}{\mathord}{greekletters}{92}
\DeclareMathAccent{\psilioxia}{\mathord}{greekletters}{94}
\DeclareMathAccent{\psilivaria}{\mathord}{greekletters}{95}


\begin{document}

$\dialytika{x}$
$\tonos{x}$
$\dasia{x}$
$\psili{x}$
$\varia{x}$
$\perispomeni{x}$
$\dialytikaperispomeni{x}$
$\dialytikatonos{x}$
$\dasiaperispomeni{x}$
$\dasiavaria{x}$
$\dasiaoxia{x}$
$\psiliperispomeni{x}$
$\psilioxia{x}$
$\psilivaria{x}$

\end{document}

在此处输入图片描述

答案2

按照@DavidCarlisle 的建议,使用 \text{} 的 XeLaTeX 解决方案以及我的回答这里

\documentclass[11pt,oneside]{article}    
\usepackage{amsmath}
\usepackage[MnSymbol]{mathspec}
%\usepackage{MnSymbol}
\defaultfontfeatures{Ligatures=TeX}
\setallmainfonts{Linux Libertine O}
\usepackage{polyglossia}
\setmainlanguage{greek}
\setotherlanguage{english}
\setmainfont{Linux Libertine O}
%\newfontfamily\greekfont{Linux Libertine O}

% Definitions of Greek (in math mode)
\def\alpha{α}
\def\alphapneuma{\text{\emph{ἁ}}}
\def\beta{β}
\def\gamma{γ}
\def\delta{δ}
\def\epsilon{ε}
\def\zeta{ζ}
\def\eta{η}
\def\theta{θ}
\def\iota{ι}
\def\kappa{κ}
\def\lambda{λ}
\def\mu{μ}
\def\nu{ν}
\def\xi{ξ}
%\def\ο{o}
\def\pi{π}
\def\rho{ρ}
\def\sigma{σ}
\def\tau{τ}
\def\upsilon{υ}
\def\phi{φ}
\def\varphi{ϕ}
\def\chi{χ}
\def\psi{ψ}
\def\omega{ω}
\def\varsigma{ς}
\def\varrho{ϱ}
\def\vartheta{ϑ}

\def\Alpha{Α}
\def\Beta{Β}
\def\Gamma{Γ}
\def\Delta{Δ}
\def\Epsilon{Ε}
\def\Zeta{Ζ}
\def\Eta{Η}
\def\Theta{Θ}
\def\Iota{Ι}
\def\Kappa{Κ}
\def\Lambda{Λ}
\def\Mu{Μ}
\def\Nu{Ν}
\def\Xi{Ξ}
%\def\Ο{O}
\def\Pi{Π}
\def\Rho{Ρ}
\def\Sigma{Σ}
\def\Tau{Τ}
\def\Upsilon{Υ}
\def\Phi{Φ}
\def\Chi{Χ}
\def\Psi{Ψ}
\def\Omega{Ω}

\begin{document}
\selectlanguage{english}

English text

\[
\alphapneuma_{\alphapneuma}
\beta_{β}
\gamma_{γ}
\delta_{δ}
\epsilon_{ε}
\zeta_{ζ}
\eta_{η}
\theta_{θ}
\iota_{ι}
\kappa_{κ}
\lambda_{λ}
\mu_{μ}
\nu_{ν}
\xi_{ξ}
%\ο_{o}
\pi_{π}
\rho_{ρ}
\sigma_{σ}
\tau_{τ}
\upsilon_{υ}
\phi_{φ}
\varphi_{ϕ}
\chi_{χ}
\psi_{ψ}
\omega_{ω}
\varsigma_{ς}
\varrho_{ϱ}
\vartheta_{ϑ}\]
\[
\Alpha_{Α}
\Beta_{Β}
\Gamma_{Γ}
\Delta_{Δ}
\Epsilon_{Ε}
\Zeta_{Ζ}
\Eta_{Η}
\Theta_{Θ}
\Iota_{Ι}
\Kappa_{Κ}
\Lambda_{Λ}
\Mu_{Μ}
\Nu_{Ν}
\Xi_{Ξ}
%\Ο_{O}
\Pi_{Π}
\Rho_{Ρ}
\Sigma_{Σ}
\Tau_{Τ}
\Upsilon_{Υ}
\Phi_{Φ}
\Chi_{Χ}
\Psi_{Ψ}
\Omega_{Ω}
\]


\selectlanguage{greek}

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

我只\alphapneuma在这里使用,结果如下:

在此处输入图片描述

相关内容