From 3beabd28e543e2ef6ecc66ff49ef9a7eec482225 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Richard?= Date: Mon, 21 Nov 2022 00:32:52 +0100 Subject: [PATCH 1/2] Don't use italics for capital greek letters --- src/engine/new_computer_modern_data.jl | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/engine/new_computer_modern_data.jl b/src/engine/new_computer_modern_data.jl index 6b25b9e..47d5f71 100644 --- a/src/engine/new_computer_modern_data.jl +++ b/src/engine/new_computer_modern_data.jl @@ -32,14 +32,10 @@ for (symbol, glyph_id) in _latex_to_new_computer_modern _symbol_to_new_computer_modern[symbol] = (cmmath_fontpath, glyph_id) end -# Standard hreek symbols : thin and italic +# Standard lowercase greek symbols : thin and italic for i in 0:24 - capital = 'Α' + i small = 'α' + i - if !haskey(_symbol_to_new_computer_modern, capital) - _symbol_to_new_computer_modern[capital] = (cmmath_fontpath, 3326 + i) - end if !haskey(_symbol_to_new_computer_modern, small) _symbol_to_new_computer_modern[small] = (cmmath_fontpath, 3352 + i) end From 3138e5d29facf63b425c251519164734e8e4a3c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Richard?= Date: Mon, 21 Nov 2022 01:41:57 +0100 Subject: [PATCH 2/2] Switch phi and varphi --- reference/references.jl | 3 ++- src/engine/new_computer_modern_data.jl | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/reference/references.jl b/reference/references.jl index 0603b7f..41387ba 100644 --- a/reference/references.jl +++ b/reference/references.jl @@ -83,7 +83,8 @@ inputs["symbols"] = [ L"\alpha \beta \gamma \delta \epsilon \omega \theta \phi \varphi \psi", L"\Gamma \Delta \Omega \Theta \Phi \Psi", L"\nabla \rightarrow \neq \leq \hbar", - L"\text{phi} \rightarrow \phi \quad \text{varphi} \rightarrow \varphi" + L"\text{phi} \rightarrow \phi \quad \text{varphi} \rightarrow \varphi", + L"\text{epsilon} \rightarrow \epsilon \quad \text{varepsilon} \rightarrow \varepsilon" ] inputs["underover"] = [ diff --git a/src/engine/new_computer_modern_data.jl b/src/engine/new_computer_modern_data.jl index 47d5f71..632eb39 100644 --- a/src/engine/new_computer_modern_data.jl +++ b/src/engine/new_computer_modern_data.jl @@ -6,14 +6,14 @@ _latex_to_new_computer_modern = Dict( raw"\varepsilon" => 3378, raw"\vartheta" => 3379, raw"\varkappa" => 3380, - raw"\varphi" => 3381, + raw"\varphi" => 3373, raw"\varrho" => 3382, raw"\varpi" => 3383, raw"\epsilon" => 3356, raw"\theta" => 3359, raw"\kappa" => 3361, - raw"\phi" => 3373, + raw"\phi" => 3381, raw"\rho" => 3368, raw"\pi" => 3367 )