XeLaTeX Minion Pro subscript vertical alignment
up vote
4
down vote
favorite
I am attempting to use Minion Pro with the fontspec
package in XeLaTeX, but am encountering problems with the vertical alignment of subscripts when used with certain Greek characters:
documentclass[a4paper,12pt,oldfontcommands]{article}
usepackage{amsmath}
usepackage[MnSymbol]{mathspec}
usepackage{MnSymbol}
defaultfontfeatures{Ligatures=TeX}
setallmainfonts{Minion Pro}
begin{document}
begin{equation}
V_text{PSD} = V_sV_msin(omega_r t + phi_{!s})sinleft(omega_r t + phi_sright)
end{equation}
begin{equation}
zeta_s varsigma_s gamma_s kappa_s phi_{!s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
end{document}
As can be seen in the image, the subscripts for some letters are in the correct places, except for zeta, sigma variant, gamma, both phi variants, and lowercase xi.
There are many other answers around concerning the kerning of external fonts with XeLaTeX, but this doesn't seem to be the issue here as using a fix such as phi_{!s}
only brings the subscripted character closer and does not change the vertical alignment (as I have put in two examples above).
Why is this occurring? Is it possible to prevent it?
math-mode xetex mathspec
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
up vote
4
down vote
favorite
I am attempting to use Minion Pro with the fontspec
package in XeLaTeX, but am encountering problems with the vertical alignment of subscripts when used with certain Greek characters:
documentclass[a4paper,12pt,oldfontcommands]{article}
usepackage{amsmath}
usepackage[MnSymbol]{mathspec}
usepackage{MnSymbol}
defaultfontfeatures{Ligatures=TeX}
setallmainfonts{Minion Pro}
begin{document}
begin{equation}
V_text{PSD} = V_sV_msin(omega_r t + phi_{!s})sinleft(omega_r t + phi_sright)
end{equation}
begin{equation}
zeta_s varsigma_s gamma_s kappa_s phi_{!s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
end{document}
As can be seen in the image, the subscripts for some letters are in the correct places, except for zeta, sigma variant, gamma, both phi variants, and lowercase xi.
There are many other answers around concerning the kerning of external fonts with XeLaTeX, but this doesn't seem to be the issue here as using a fix such as phi_{!s}
only brings the subscripted character closer and does not change the vertical alignment (as I have put in two examples above).
Why is this occurring? Is it possible to prevent it?
math-mode xetex mathspec
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22
add a comment |
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I am attempting to use Minion Pro with the fontspec
package in XeLaTeX, but am encountering problems with the vertical alignment of subscripts when used with certain Greek characters:
documentclass[a4paper,12pt,oldfontcommands]{article}
usepackage{amsmath}
usepackage[MnSymbol]{mathspec}
usepackage{MnSymbol}
defaultfontfeatures{Ligatures=TeX}
setallmainfonts{Minion Pro}
begin{document}
begin{equation}
V_text{PSD} = V_sV_msin(omega_r t + phi_{!s})sinleft(omega_r t + phi_sright)
end{equation}
begin{equation}
zeta_s varsigma_s gamma_s kappa_s phi_{!s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
end{document}
As can be seen in the image, the subscripts for some letters are in the correct places, except for zeta, sigma variant, gamma, both phi variants, and lowercase xi.
There are many other answers around concerning the kerning of external fonts with XeLaTeX, but this doesn't seem to be the issue here as using a fix such as phi_{!s}
only brings the subscripted character closer and does not change the vertical alignment (as I have put in two examples above).
Why is this occurring? Is it possible to prevent it?
math-mode xetex mathspec
I am attempting to use Minion Pro with the fontspec
package in XeLaTeX, but am encountering problems with the vertical alignment of subscripts when used with certain Greek characters:
documentclass[a4paper,12pt,oldfontcommands]{article}
usepackage{amsmath}
usepackage[MnSymbol]{mathspec}
usepackage{MnSymbol}
defaultfontfeatures{Ligatures=TeX}
setallmainfonts{Minion Pro}
begin{document}
begin{equation}
V_text{PSD} = V_sV_msin(omega_r t + phi_{!s})sinleft(omega_r t + phi_sright)
end{equation}
begin{equation}
zeta_s varsigma_s gamma_s kappa_s phi_{!s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
end{document}
As can be seen in the image, the subscripts for some letters are in the correct places, except for zeta, sigma variant, gamma, both phi variants, and lowercase xi.
There are many other answers around concerning the kerning of external fonts with XeLaTeX, but this doesn't seem to be the issue here as using a fix such as phi_{!s}
only brings the subscripted character closer and does not change the vertical alignment (as I have put in two examples above).
Why is this occurring? Is it possible to prevent it?
math-mode xetex mathspec
math-mode xetex mathspec
asked Oct 16 '17 at 22:20
tusky_mcmammoth
263
263
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 1 hour ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22
add a comment |
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
Edit: See the last code for the suggested solution
Old answer:
Seems that typing the Greek letters by a Greek keyboard solves the problem.
After many tests, found that the next code works with my font:
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}
%newfontfamilygreekfont{Linux Libertine O}
begin{document}
selectlanguage{english}
begin{equation}
V_text{PSD}= V_sV_msin(omega_r t + φ_{s})sinleft(omega_r t + φ_sright)
end{equation}
begin{equation}γ_s ζ_s ς_s κ_s φ_{s} varphi_s θ_s ξ_s Ξ_s f_s p_s 6_6 6_p p_6
end{equation}
begin{equation}gamma_s zeta_s varsigma_s kappa_s phi_{s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
selectlanguage{greek}
Κείμενο εδώ
end{document}
Try with your font too.
Output:
As you can see, the equation (2) where greek letters typed from a greek keyboard gives enough better results.
PS: You don't have to use greek as mainlanguage... You may remove it if not installed or something.
And without setallmainfonts{Linux Libertine O}
(with system default math fonts for greek -just for comparsion-)
I get:
Edit (suggested solution):
Many people want to use greek letters but they don't have a greek keyboard. But even they do have one, it is a bad practice (in my opinion) to write from the keyboard greek letters in your math. (Let's suppose you want to create a latex code from your xelatex or you want to translate in other language and don't want to change your math code too). Then the solution is to write with the usual way your math and just redefine the greek letters in your preamble as shown below:
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}
%newfontfamilygreekfont{Linux Libertine O}
% Definitions of Greek (in math mode)
defalpha{α}
defbeta{β}
defgamma{γ}
defdelta{δ}
defepsilon{ε}
defzeta{ζ}
defeta{η}
deftheta{θ}
defiota{ι}
defkappa{κ}
deflambda{λ}
defmu{μ}
defnu{ν}
defxi{ξ}
%defο{o}
defpi{π}
defrho{ρ}
defsigma{σ}
deftau{τ}
defupsilon{υ}
defphi{φ}
defvarphi{ϕ}
defchi{χ}
defpsi{ψ}
defomega{ω}
defvarsigma{ς}
defvarrho{ϱ}
defvartheta{ϑ}
defAlpha{Α}
defBeta{Β}
defGamma{Γ}
defDelta{Δ}
defEpsilon{Ε}
defZeta{Ζ}
defEta{Η}
defTheta{Θ}
defIota{Ι}
defKappa{Κ}
defLambda{Λ}
defMu{Μ}
defNu{Ν}
defXi{Ξ}
%defΟ{O}
defPi{Π}
defRho{Ρ}
defSigma{Σ}
defTau{Τ}
defUpsilon{Υ}
defPhi{Φ}
defChi{Χ}
defPsi{Ψ}
defOmega{Ω}
begin{document}
selectlanguage{english}
English text
[
alpha_{α}
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}
Ελληνικό κείμενο εδώ
end{document}
Output:
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought thatalphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages
– koleygr
Oct 17 '17 at 11:33
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
Edit: See the last code for the suggested solution
Old answer:
Seems that typing the Greek letters by a Greek keyboard solves the problem.
After many tests, found that the next code works with my font:
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}
%newfontfamilygreekfont{Linux Libertine O}
begin{document}
selectlanguage{english}
begin{equation}
V_text{PSD}= V_sV_msin(omega_r t + φ_{s})sinleft(omega_r t + φ_sright)
end{equation}
begin{equation}γ_s ζ_s ς_s κ_s φ_{s} varphi_s θ_s ξ_s Ξ_s f_s p_s 6_6 6_p p_6
end{equation}
begin{equation}gamma_s zeta_s varsigma_s kappa_s phi_{s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
selectlanguage{greek}
Κείμενο εδώ
end{document}
Try with your font too.
Output:
As you can see, the equation (2) where greek letters typed from a greek keyboard gives enough better results.
PS: You don't have to use greek as mainlanguage... You may remove it if not installed or something.
And without setallmainfonts{Linux Libertine O}
(with system default math fonts for greek -just for comparsion-)
I get:
Edit (suggested solution):
Many people want to use greek letters but they don't have a greek keyboard. But even they do have one, it is a bad practice (in my opinion) to write from the keyboard greek letters in your math. (Let's suppose you want to create a latex code from your xelatex or you want to translate in other language and don't want to change your math code too). Then the solution is to write with the usual way your math and just redefine the greek letters in your preamble as shown below:
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}
%newfontfamilygreekfont{Linux Libertine O}
% Definitions of Greek (in math mode)
defalpha{α}
defbeta{β}
defgamma{γ}
defdelta{δ}
defepsilon{ε}
defzeta{ζ}
defeta{η}
deftheta{θ}
defiota{ι}
defkappa{κ}
deflambda{λ}
defmu{μ}
defnu{ν}
defxi{ξ}
%defο{o}
defpi{π}
defrho{ρ}
defsigma{σ}
deftau{τ}
defupsilon{υ}
defphi{φ}
defvarphi{ϕ}
defchi{χ}
defpsi{ψ}
defomega{ω}
defvarsigma{ς}
defvarrho{ϱ}
defvartheta{ϑ}
defAlpha{Α}
defBeta{Β}
defGamma{Γ}
defDelta{Δ}
defEpsilon{Ε}
defZeta{Ζ}
defEta{Η}
defTheta{Θ}
defIota{Ι}
defKappa{Κ}
defLambda{Λ}
defMu{Μ}
defNu{Ν}
defXi{Ξ}
%defΟ{O}
defPi{Π}
defRho{Ρ}
defSigma{Σ}
defTau{Τ}
defUpsilon{Υ}
defPhi{Φ}
defChi{Χ}
defPsi{Ψ}
defOmega{Ω}
begin{document}
selectlanguage{english}
English text
[
alpha_{α}
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}
Ελληνικό κείμενο εδώ
end{document}
Output:
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought thatalphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages
– koleygr
Oct 17 '17 at 11:33
add a comment |
up vote
0
down vote
Edit: See the last code for the suggested solution
Old answer:
Seems that typing the Greek letters by a Greek keyboard solves the problem.
After many tests, found that the next code works with my font:
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}
%newfontfamilygreekfont{Linux Libertine O}
begin{document}
selectlanguage{english}
begin{equation}
V_text{PSD}= V_sV_msin(omega_r t + φ_{s})sinleft(omega_r t + φ_sright)
end{equation}
begin{equation}γ_s ζ_s ς_s κ_s φ_{s} varphi_s θ_s ξ_s Ξ_s f_s p_s 6_6 6_p p_6
end{equation}
begin{equation}gamma_s zeta_s varsigma_s kappa_s phi_{s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
selectlanguage{greek}
Κείμενο εδώ
end{document}
Try with your font too.
Output:
As you can see, the equation (2) where greek letters typed from a greek keyboard gives enough better results.
PS: You don't have to use greek as mainlanguage... You may remove it if not installed or something.
And without setallmainfonts{Linux Libertine O}
(with system default math fonts for greek -just for comparsion-)
I get:
Edit (suggested solution):
Many people want to use greek letters but they don't have a greek keyboard. But even they do have one, it is a bad practice (in my opinion) to write from the keyboard greek letters in your math. (Let's suppose you want to create a latex code from your xelatex or you want to translate in other language and don't want to change your math code too). Then the solution is to write with the usual way your math and just redefine the greek letters in your preamble as shown below:
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}
%newfontfamilygreekfont{Linux Libertine O}
% Definitions of Greek (in math mode)
defalpha{α}
defbeta{β}
defgamma{γ}
defdelta{δ}
defepsilon{ε}
defzeta{ζ}
defeta{η}
deftheta{θ}
defiota{ι}
defkappa{κ}
deflambda{λ}
defmu{μ}
defnu{ν}
defxi{ξ}
%defο{o}
defpi{π}
defrho{ρ}
defsigma{σ}
deftau{τ}
defupsilon{υ}
defphi{φ}
defvarphi{ϕ}
defchi{χ}
defpsi{ψ}
defomega{ω}
defvarsigma{ς}
defvarrho{ϱ}
defvartheta{ϑ}
defAlpha{Α}
defBeta{Β}
defGamma{Γ}
defDelta{Δ}
defEpsilon{Ε}
defZeta{Ζ}
defEta{Η}
defTheta{Θ}
defIota{Ι}
defKappa{Κ}
defLambda{Λ}
defMu{Μ}
defNu{Ν}
defXi{Ξ}
%defΟ{O}
defPi{Π}
defRho{Ρ}
defSigma{Σ}
defTau{Τ}
defUpsilon{Υ}
defPhi{Φ}
defChi{Χ}
defPsi{Ψ}
defOmega{Ω}
begin{document}
selectlanguage{english}
English text
[
alpha_{α}
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}
Ελληνικό κείμενο εδώ
end{document}
Output:
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought thatalphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages
– koleygr
Oct 17 '17 at 11:33
add a comment |
up vote
0
down vote
up vote
0
down vote
Edit: See the last code for the suggested solution
Old answer:
Seems that typing the Greek letters by a Greek keyboard solves the problem.
After many tests, found that the next code works with my font:
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}
%newfontfamilygreekfont{Linux Libertine O}
begin{document}
selectlanguage{english}
begin{equation}
V_text{PSD}= V_sV_msin(omega_r t + φ_{s})sinleft(omega_r t + φ_sright)
end{equation}
begin{equation}γ_s ζ_s ς_s κ_s φ_{s} varphi_s θ_s ξ_s Ξ_s f_s p_s 6_6 6_p p_6
end{equation}
begin{equation}gamma_s zeta_s varsigma_s kappa_s phi_{s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
selectlanguage{greek}
Κείμενο εδώ
end{document}
Try with your font too.
Output:
As you can see, the equation (2) where greek letters typed from a greek keyboard gives enough better results.
PS: You don't have to use greek as mainlanguage... You may remove it if not installed or something.
And without setallmainfonts{Linux Libertine O}
(with system default math fonts for greek -just for comparsion-)
I get:
Edit (suggested solution):
Many people want to use greek letters but they don't have a greek keyboard. But even they do have one, it is a bad practice (in my opinion) to write from the keyboard greek letters in your math. (Let's suppose you want to create a latex code from your xelatex or you want to translate in other language and don't want to change your math code too). Then the solution is to write with the usual way your math and just redefine the greek letters in your preamble as shown below:
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}
%newfontfamilygreekfont{Linux Libertine O}
% Definitions of Greek (in math mode)
defalpha{α}
defbeta{β}
defgamma{γ}
defdelta{δ}
defepsilon{ε}
defzeta{ζ}
defeta{η}
deftheta{θ}
defiota{ι}
defkappa{κ}
deflambda{λ}
defmu{μ}
defnu{ν}
defxi{ξ}
%defο{o}
defpi{π}
defrho{ρ}
defsigma{σ}
deftau{τ}
defupsilon{υ}
defphi{φ}
defvarphi{ϕ}
defchi{χ}
defpsi{ψ}
defomega{ω}
defvarsigma{ς}
defvarrho{ϱ}
defvartheta{ϑ}
defAlpha{Α}
defBeta{Β}
defGamma{Γ}
defDelta{Δ}
defEpsilon{Ε}
defZeta{Ζ}
defEta{Η}
defTheta{Θ}
defIota{Ι}
defKappa{Κ}
defLambda{Λ}
defMu{Μ}
defNu{Ν}
defXi{Ξ}
%defΟ{O}
defPi{Π}
defRho{Ρ}
defSigma{Σ}
defTau{Τ}
defUpsilon{Υ}
defPhi{Φ}
defChi{Χ}
defPsi{Ψ}
defOmega{Ω}
begin{document}
selectlanguage{english}
English text
[
alpha_{α}
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}
Ελληνικό κείμενο εδώ
end{document}
Output:
Edit: See the last code for the suggested solution
Old answer:
Seems that typing the Greek letters by a Greek keyboard solves the problem.
After many tests, found that the next code works with my font:
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}
%newfontfamilygreekfont{Linux Libertine O}
begin{document}
selectlanguage{english}
begin{equation}
V_text{PSD}= V_sV_msin(omega_r t + φ_{s})sinleft(omega_r t + φ_sright)
end{equation}
begin{equation}γ_s ζ_s ς_s κ_s φ_{s} varphi_s θ_s ξ_s Ξ_s f_s p_s 6_6 6_p p_6
end{equation}
begin{equation}gamma_s zeta_s varsigma_s kappa_s phi_{s} varphi_s theta_s xi_s Xi_s f_s p_s 6_6 6_p p_6
end{equation}
selectlanguage{greek}
Κείμενο εδώ
end{document}
Try with your font too.
Output:
As you can see, the equation (2) where greek letters typed from a greek keyboard gives enough better results.
PS: You don't have to use greek as mainlanguage... You may remove it if not installed or something.
And without setallmainfonts{Linux Libertine O}
(with system default math fonts for greek -just for comparsion-)
I get:
Edit (suggested solution):
Many people want to use greek letters but they don't have a greek keyboard. But even they do have one, it is a bad practice (in my opinion) to write from the keyboard greek letters in your math. (Let's suppose you want to create a latex code from your xelatex or you want to translate in other language and don't want to change your math code too). Then the solution is to write with the usual way your math and just redefine the greek letters in your preamble as shown below:
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}
%newfontfamilygreekfont{Linux Libertine O}
% Definitions of Greek (in math mode)
defalpha{α}
defbeta{β}
defgamma{γ}
defdelta{δ}
defepsilon{ε}
defzeta{ζ}
defeta{η}
deftheta{θ}
defiota{ι}
defkappa{κ}
deflambda{λ}
defmu{μ}
defnu{ν}
defxi{ξ}
%defο{o}
defpi{π}
defrho{ρ}
defsigma{σ}
deftau{τ}
defupsilon{υ}
defphi{φ}
defvarphi{ϕ}
defchi{χ}
defpsi{ψ}
defomega{ω}
defvarsigma{ς}
defvarrho{ϱ}
defvartheta{ϑ}
defAlpha{Α}
defBeta{Β}
defGamma{Γ}
defDelta{Δ}
defEpsilon{Ε}
defZeta{Ζ}
defEta{Η}
defTheta{Θ}
defIota{Ι}
defKappa{Κ}
defLambda{Λ}
defMu{Μ}
defNu{Ν}
defXi{Ξ}
%defΟ{O}
defPi{Π}
defRho{Ρ}
defSigma{Σ}
defTau{Τ}
defUpsilon{Υ}
defPhi{Φ}
defChi{Χ}
defPsi{Ψ}
defOmega{Ω}
begin{document}
selectlanguage{english}
English text
[
alpha_{α}
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}
Ελληνικό κείμενο εδώ
end{document}
Output:
edited Oct 17 '17 at 13:56
answered Oct 16 '17 at 23:34
koleygr
11k11038
11k11038
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought thatalphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages
– koleygr
Oct 17 '17 at 11:33
add a comment |
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought thatalphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages
– koleygr
Oct 17 '17 at 11:33
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
Thanks for the answer! Any idea why this works? It is not an ideal solution as I've already got a large document with Greek letters as math macros.
– tusky_mcmammoth
Oct 17 '17 at 6:31
2
2
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought that
alphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages– koleygr
Oct 17 '17 at 11:33
@tusky_mcmammoth: I don't know why this works. I just found it by testing... I initially thought that
alphabeta
package solves the problem, but found out it doesnt. As for your document, you can always redefine the math macros like (defalpha{α} etc) just after loading all the packages– koleygr
Oct 17 '17 at 11:33
add a comment |
Thanks for contributing an answer to TeX - LaTeX Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f396528%2fxelatex-minion-pro-subscript-vertical-alignment%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Any updates here? Fits the answer all your needs? Would you accept/ vote for the answer? - Or are you looking for another solution?
– Bobyandbob
May 14 at 19:51
Actually, I switched to using plain ol' LaTeX with the MinionPro package... I felt that having to redefine all the greek letters is quite hacky and not something one would want to have if it can be avoided.
– tusky_mcmammoth
May 15 at 5:22