Dấu kép

Oct 31 2020

Tôi đang soạn với XeLaTeX (không có gói teubner ...) và tôi cần sử dụng trên cùng một chữ cái, dấu phụ dài, dấu gạch ngang và dấu trọng âm. Tôi đã thử như sau nhưng ký tự trực tiếp theo sau (α) biến mất trong pdf ... Làm cách nào để giải quyết vấn đề? Cảm ơn.

Cách nó xuất hiện:

Nó phải có α dưới hai dấu phụ, không phải là ρ ...

Mã của tôi:

% !TeX encoding = UTF-8
% !TeX TS-program = xelatex
% !TeX spellcheck = it_IT
% !TeX root = Prosodia.tex
% !BIB TS-program = biber


\documentclass[a4paper,12pt]{article}

\usepackage[no-math]{fontspec} 
    \setmainfont[Ligatures=TeX,Numbers=OldStyle]{Linux Libertine O}

\usepackage{polyglossia} 
    \setmainlanguage[babelshorthands=true]{italian}
    \setotherlanguages{latin,greek,english,german,russian,serbian}
        \setkeys{greek}{variant=polytonic}



\begin{document}

ἀκηρ\'\uατου

\end{document}

Trả lời

5 egreg Oct 31 2020 at 05:24

Cú pháp chính xác phải là ἀκηρ\'{\u{α}}του. Tuy nhiên, với Linux Libertine, chúng tôi nhận được

vì vậy dấu sắc kết hợp không được đặt đúng. Với một phông chữ khác, nó có thể hoạt động tốt hơn. Tôi đã thử Tiêu chuẩn cũ và nhận được

Bạn có thể muốn xác định, đối với phông chữ cụ thể này, một lệnh tạo dấu chuyên biệt.

\documentclass[a4paper,12pt]{article}

\usepackage[no-math]{fontspec} 
\usepackage{polyglossia} 

\setmainfont{Linux Libertine O}[Ligatures=TeX,Numbers=OldStyle]
\newfontfamily{\greekfont}{Old Standard}

\setmainlanguage[babelshorthands=true]{italian}
\setotherlanguages{latin,greek,english,german,russian,serbian}
\setkeys{greek}{variant=polytonic}

\newrobustcmd{\ba}[1]{% breve-acute
  \leavevmode
  \vbox{\offinterlineskip
    \ialign{%
      \hfil##\hfil\cr
      \char"00B4\cr
      \noalign{\kern-1.3ex}
      \u{#1}\cr
    }%
  }%
}

\begin{document}

\textgreek{ἀκηρ\'{\u{α}}του}

ἀκηρ\ba{α}του

\end{document}

Tôi để lại bản Tiêu chuẩn cũ để so sánh. Xóa khai báo \greekfontcho phiên bản của bạn. Tuy nhiên, tốt nhất nên giới hạn văn bản bằng các ngôn ngữ khác với ngôn ngữ chính trong môi trường của chúng.