Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Greek letters not printed in text mode #472

Open
1 of 4 tasks
itzsimpl opened this issue Jun 13, 2018 · 2 comments
Open
1 of 4 tasks

Greek letters not printed in text mode #472

itzsimpl opened this issue Jun 13, 2018 · 2 comments

Comments

@itzsimpl
Copy link

itzsimpl commented Jun 13, 2018

Description

When in text or math text mode (\mathrm, \mathit, \mathbf) I access Greek letters via the respective latex commands (e.g. \gamma, \Gamma) no character is printed. Using Unicode Greek letters, however, everything is ok.

Check/indicate

  • Relevant for XeTeX
  • Relevant for LuaTeX
  • Issue tracker has been searched for similar issues?
  • Links to <tex.stackexchange.com> discussion if appropriate

Minimal example demonstrating the issue

\documentclass{article}

\usepackage[math-style=french,bold-style=upright]{unicode-math} 

\setmainfont{EBGaramond12-Regular.otf}[ % https://github.com/georgd/EB-Garamond
	Path=fonts/EBGaramond/,
	Ligatures={TeX,Discretionary},
	UprightFeatures={
		SizeFeatures={
			{Size=-8, Font={EBGaramond08-Regular.otf}},
			{Size= 8-, Font={EBGaramond12-Regular.otf}}
		}
	}, 
	ItalicFont={EBGaramond12-Italic.otf},
	ItalicFeatures={
		SizeFeatures={
			{Size=-8, Font={EBGaramond08-Italic.otf}},
			{Size= 8-, Font={EBGaramond12-Italic.otf}}
		}
	},
	Mapping=tex-text,
	Numbers={OldStyle},
	AutoFakeBold=1.5
]

\setmathfont{Garamond-math.otf}[ % https://github.com/YuanshengZhao/Garamond-Math
	Path=fonts/Garamond-Math/,
	StylisticSet={1,4} % Garamond based blackboard, Semibold variant 
] 

\begin{document}
	\begin{tabular}{lr}
		text & \noindent{γθξ ABCabc123\textsubscript{123}}\\
		bfseries & {\bfseries γθξ ABCabc123\textsubscript{123}}\\
		itshape & {\itshape γθξ ABCabc123\textsubscript{123}}\\
		math* & $γθξ ABCabc123^{123}$\\
		mathrm & $\mathrm{γθξ ABCabc123^{123}}$\\
		symrm & $\symrm{γθξ ABCabc123^{123}}$\\
		mathit & $\mathit{γθξ ABCabc123^{123}}$\\
		symit & $\symit{γθξ ABCabc123^{123}}$\\
		mathbf & $\mathbf{γθξ ABCabc123^{123}}$\\
		symbf & $\symbf{γθξ ABCabc123^{123}}$\\
		mathbfit & $\mathbfit{γθξ ABCabc123^{123}}$\\
		symbfit & $\symbfit{γθξ ABCabc123^{123}}$\\
		mathbb & $\mathbb{γθξ ABCabc123^{123}}$\\
		symbb & $\symbb{γθξ ABCabc123^{123}}$\\
		\hline
		text & \noindent{\gamma\theta\xi ABCabc123\textsubscript{123}}\\
		bfseries & {\bfseries \gamma\theta\xi ABCabc123\textsubscript{123}}\\
		itshape & {\itshape \gamma\theta\xi ABCabc123\textsubscript{123}}\\
		math* & $\gamma\theta\xi ABCabc123^{123}$\\
		mathrm &$\mathrm{\gamma\theta\xi ABCabc123^{123}}$\\
		symrm & $\symrm{\gamma\theta\xi ABCabc123^{123}}$\\
		mathit &$\mathit{\gamma\theta\xi ABCabc123^{123}}$\\
		symit & $\symit{\gamma\theta\xi ABCabc123^{123}}$\\
		mathbf &$\mathbf{\gamma\theta\xi ABCabc123^{123}}$\\
		symbf & $\symbf{\gamma\theta\xi ABCabc123^{123}}$\\
		mathbfit& $\mathbfit{\gamma\theta\xi ABCabc123^{123}}$\\
		symbfit & $\symbfit{\gamma\theta\xi ABCabc123^{123}}$\\
		mathbb &$\mathbb{\gamma\theta\xi ABCabc123^{123}}$\\
		symbb & $\symbb{\gamma\theta\xi ABCabc123^{123}}$\\
	\end{tabular}
\end{document}

Further details

image

@wspr
Copy link
Collaborator

wspr commented Jun 13, 2018 via email

@davidcarlisle
Copy link
Member

davidcarlisle commented Jun 13, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants