XeLaTeX Minion Pro subscript vertical alignment The 2019 Stack Overflow Developer Survey...
How to notate time signature switching consistently every measure
Is "plugging out" electronic devices an American expression?
Shouldn't "much" here be used instead of "more"?
Delete all lines which don't have n characters before delimiter
FPGA - DIY Programming
When should I buy a clipper card after flying to OAK?
Return to UK after being refused entry years previously
Is there any way to tell whether the shot is going to hit you or not?
Why do UK politicians seemingly ignore opinion polls on Brexit?
The difference between dialogue marks
Why hard-Brexiteers don't insist on a hard border to prevent illegal immigration after Brexit?
How to answer pointed "are you quitting" questioning when I don't want them to suspect
What is the motivation for a law requiring 2 parties to consent for recording a conversation
What is the accessibility of a package's `Private` context variables?
Loose spokes after only a few rides
Worn-tile Scrabble
Did 3000BC Egyptians use meteoric iron weapons?
Geography at the pixel level
Can we generate random numbers using irrational numbers like π and e?
Do these rules for Critical Successes and Critical Failures seem fair?
Where to refill my bottle in India?
Origin of "cooter" meaning "vagina"
Did Section 31 appear in Star Trek: The Next Generation?
How technical should a Scrum Master be to effectively remove impediments?
XeLaTeX Minion Pro subscript vertical alignment
The 2019 Stack Overflow Developer Survey Results Are InSpacing of subscripts for inline mathType Greek letters in Math Mode using Greek keyboardChanging typesetting language without commandupright uppercase math letter with Minion and xelatexHow do I get XeLaTeX to use the bold Minion Pro typeface for Greek characters?Getting Started with Minion Pro, XeLaTeX and mathspecMath environment Minion ProMinion Pro SymbolsUsing Minion Pro with ClassicthesisFrench spacing with xelatex and Minion ProXeLatex with Koma-script and Minion Pro fontSetting Minion Math with XeLaTeXXelatex, Minion Pro and Italian apostrophe kerning
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♦ 10 mins 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 |
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♦ 10 mins 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 '18 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 '18 at 5:22
add a comment |
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_mcmammothtusky_mcmammoth
263
263
bumped to the homepage by Community♦ 10 mins 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♦ 10 mins 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 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 '18 at 5:22
add a comment |
1 Answer
1
active
oldest
votes
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 |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
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
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
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 |
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 |
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
koleygrkoleygr
13.4k11039
13.4k11039
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.
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 '18 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 '18 at 5:22