Changing the Greek math font with mathspecShortcuts using double quotes in combination with mathspecMath in...

Eww, those bytes are gross

Do my Windows system binaries contain sensitive information?

How to satisfy a player character's curiosity about another player character?

Wanted: 5.25 floppy to usb adapter

Why do neural networks need so many training examples to perform?

Am I using the wrong word all along?

What is the wife of a henpecked husband called?

If I delete my router's history can my ISP still provide it to my parents?

F1 visa even for a three-week course?

How should I state my MS degree in my CV when it was in practice a joint-program?

What are these green text/line displays shown during the livestream of Crew Dragon's approach to dock with the ISS?

Is 45 min enough time to catch my next flight in Copenhagen?

"Sheng" as a male given name

Activating a Alphanet Faucet Wallet Remotely (without tezos-client)

Is my plan for fixing my water heater leak bad?

What can I substitute for soda pop in a sweet pork recipe?

Crystal compensation for temp and voltage

Why does the DC-9-80 have this cusp in its fuselage?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

For Loop and Sum

Why is working on the same position for more than 15 years not a red flag?

Obtaining a matrix of complex values from associations giving the real and imaginary parts of each element?

What's the rationale behind the objections to these measures against human trafficking?

Why is this code uniquely decodable?



Changing the Greek math font with mathspec


Shortcuts using double quotes in combination with mathspecMath in Trebuchet MSmathspec selects the wrong math fontCan I typeset greek letters in text mode using Latin Modern Fonts?Why LaTeX uses upright uppercase Greek letters by default in math mode?why are math fonts (traditionally) italic/slant? and Greek non-italic?Old ligatures in SiṇhalaHow to use Mathematical Pi font properly?Montserrat as math sans serif font?mtpro2 + baskerville in mathProblems with using numbers and italic greek of Alegreya font in math mode













3















I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek symbols both inside (italic) and outside (non italic) of math mode. I tried to type an alpha with the Greek keyboard layout on Mac OS X 10.8 which worked, provided the font has a glyph for it, and I tried to change the font for Greek characters in math mode with the following:



usepackage{mathspec} 
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}


I'm using texlive 2012 with Texpad on Mac OS X 10.8. When trying the code above, xetex fails to typeset and seems to be stuck in an infinite loop. Commenting out the last line will make it typeset, but the used font for Greek letters will be Computer Modern. (Bembo Std doesn't contain any Greek glyphs (or at least my version doesn't) hence STIXGeneral.)



I've tried to find the cause of this problem in the log file, but I didn't get any wiser from reading it.



A minimal example:



RequirePackage[l2tabu, orthodox]{nag} 

% Opmaak
documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
% usepackage[artemisia]{textgreek}
usepackage[final,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}

% Wiskunde
usepackage{amsmath}
usepackage{amssymb}
usepackage{amsfonts}
usepackage[math]{mathspec}
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
% setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

% Varia
usepackage{polyglossia}
setdefaultlanguage{dutch}
usepackage{hyperref}

begin{document}

section{Les 8}
De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse letters. Zo staat boek I ook gekend als boek A, boek II als boek α $alpha$ (kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende Griekse letter toegewezen.

end{document}


How can I typeset Greek letters in mathmode in a different font? How can I typeset upright Greek letters with another font of my choice if the main font doesn't contain any glyphs for it?










share|improve this question

























  • mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

    – Toscho
    Apr 28 '13 at 18:04
















3















I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek symbols both inside (italic) and outside (non italic) of math mode. I tried to type an alpha with the Greek keyboard layout on Mac OS X 10.8 which worked, provided the font has a glyph for it, and I tried to change the font for Greek characters in math mode with the following:



usepackage{mathspec} 
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}


I'm using texlive 2012 with Texpad on Mac OS X 10.8. When trying the code above, xetex fails to typeset and seems to be stuck in an infinite loop. Commenting out the last line will make it typeset, but the used font for Greek letters will be Computer Modern. (Bembo Std doesn't contain any Greek glyphs (or at least my version doesn't) hence STIXGeneral.)



I've tried to find the cause of this problem in the log file, but I didn't get any wiser from reading it.



A minimal example:



RequirePackage[l2tabu, orthodox]{nag} 

% Opmaak
documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
% usepackage[artemisia]{textgreek}
usepackage[final,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}

% Wiskunde
usepackage{amsmath}
usepackage{amssymb}
usepackage{amsfonts}
usepackage[math]{mathspec}
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
% setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

% Varia
usepackage{polyglossia}
setdefaultlanguage{dutch}
usepackage{hyperref}

begin{document}

section{Les 8}
De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse letters. Zo staat boek I ook gekend als boek A, boek II als boek α $alpha$ (kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende Griekse letter toegewezen.

end{document}


How can I typeset Greek letters in mathmode in a different font? How can I typeset upright Greek letters with another font of my choice if the main font doesn't contain any glyphs for it?










share|improve this question

























  • mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

    – Toscho
    Apr 28 '13 at 18:04














3












3








3


1






I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek symbols both inside (italic) and outside (non italic) of math mode. I tried to type an alpha with the Greek keyboard layout on Mac OS X 10.8 which worked, provided the font has a glyph for it, and I tried to change the font for Greek characters in math mode with the following:



usepackage{mathspec} 
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}


I'm using texlive 2012 with Texpad on Mac OS X 10.8. When trying the code above, xetex fails to typeset and seems to be stuck in an infinite loop. Commenting out the last line will make it typeset, but the used font for Greek letters will be Computer Modern. (Bembo Std doesn't contain any Greek glyphs (or at least my version doesn't) hence STIXGeneral.)



I've tried to find the cause of this problem in the log file, but I didn't get any wiser from reading it.



A minimal example:



RequirePackage[l2tabu, orthodox]{nag} 

% Opmaak
documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
% usepackage[artemisia]{textgreek}
usepackage[final,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}

% Wiskunde
usepackage{amsmath}
usepackage{amssymb}
usepackage{amsfonts}
usepackage[math]{mathspec}
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
% setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

% Varia
usepackage{polyglossia}
setdefaultlanguage{dutch}
usepackage{hyperref}

begin{document}

section{Les 8}
De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse letters. Zo staat boek I ook gekend als boek A, boek II als boek α $alpha$ (kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende Griekse letter toegewezen.

end{document}


How can I typeset Greek letters in mathmode in a different font? How can I typeset upright Greek letters with another font of my choice if the main font doesn't contain any glyphs for it?










share|improve this question
















I've recently changed from pdftex to xetex to be able to write documents in Bembo Std but I'm not quite there yet. While trying to typeset some notes from one of my classes, I tried to typeset Greek symbols both inside (italic) and outside (non italic) of math mode. I tried to type an alpha with the Greek keyboard layout on Mac OS X 10.8 which worked, provided the font has a glyph for it, and I tried to change the font for Greek characters in math mode with the following:



usepackage{mathspec} 
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}


I'm using texlive 2012 with Texpad on Mac OS X 10.8. When trying the code above, xetex fails to typeset and seems to be stuck in an infinite loop. Commenting out the last line will make it typeset, but the used font for Greek letters will be Computer Modern. (Bembo Std doesn't contain any Greek glyphs (or at least my version doesn't) hence STIXGeneral.)



I've tried to find the cause of this problem in the log file, but I didn't get any wiser from reading it.



A minimal example:



RequirePackage[l2tabu, orthodox]{nag} 

% Opmaak
documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
% usepackage[artemisia]{textgreek}
usepackage[final,kerning=true,spacing=true,factor=1100,stretch=10,shrink=10]{microtype}

% Wiskunde
usepackage{amsmath}
usepackage{amssymb}
usepackage{amsfonts}
usepackage[math]{mathspec}
setmainfont[Ligatures={Tex}]{Bembo Std}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo Std}
% setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

% Varia
usepackage{polyglossia}
setdefaultlanguage{dutch}
usepackage{hyperref}

begin{document}

section{Les 8}
De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse letters. Zo staat boek I ook gekend als boek A, boek II als boek α $alpha$ (kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende Griekse letter toegewezen.

end{document}


How can I typeset Greek letters in mathmode in a different font? How can I typeset upright Greek letters with another font of my choice if the main font doesn't contain any glyphs for it?







fonts xetex fontspec greek mathspec






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 14 hours ago









Sebastiano

10.4k42060




10.4k42060










asked Apr 28 '13 at 17:44









JohannesJohannes

18012




18012













  • mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

    – Toscho
    Apr 28 '13 at 18:04



















  • mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

    – Toscho
    Apr 28 '13 at 18:04

















mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

– Toscho
Apr 28 '13 at 18:04





mathspec, especially with Greek, most often yields errors, when I try using ist, that's why I use unicode-math, but if you want to use a non-OpenMath-font, you need mathspec. If you strip your MWE of everything in the preamble, except the 3 mathspec-related lines, you still get errors.

– Toscho
Apr 28 '13 at 18:04










1 Answer
1






active

oldest

votes


















3














This problem arises in connection with the shorthands in Babel style that were introduced in Polyglossia after mathspec was released.



Basically the shorthand active character " gets a definition that overrides the one given by mathspec and infinite loops are behind the corner.



documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
usepackage[final]{microtype}


% Wiskunde
usepackage{amsmath}
usepackage{amssymb}

usepackage{mathspec}
setmainfont[Ligatures=TeX]{Junicode}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Junicode}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

%%% this patch must go before loading polyglossia
makeatletter
begingrouplccode`~=`"
lowercase{endgroup
everymath{let~eu@active@quote}
everydisplay{let~eu@active@quote}
}
makeatother

usepackage{polyglossia}
setmainlanguage{dutch}

% Varia
usepackage{hyperref}


begin{document}

section{Les 8}

De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse
letters. Zo staat boek I ook gekend als boek A, boek II als boek α $α$ $alpha$
(kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende
Griekse letter toegewezen.

end{document}


I used Junicode as I don't have Bembo, but it's just the same. Also I showed that you can type both $α$ or $alpha$ getting the same symbol.



enter image description here






share|improve this answer
























  • Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

    – Johannes
    Apr 28 '13 at 21:29











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
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f111225%2fchanging-the-greek-math-font-with-mathspec%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









3














This problem arises in connection with the shorthands in Babel style that were introduced in Polyglossia after mathspec was released.



Basically the shorthand active character " gets a definition that overrides the one given by mathspec and infinite loops are behind the corner.



documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
usepackage[final]{microtype}


% Wiskunde
usepackage{amsmath}
usepackage{amssymb}

usepackage{mathspec}
setmainfont[Ligatures=TeX]{Junicode}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Junicode}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

%%% this patch must go before loading polyglossia
makeatletter
begingrouplccode`~=`"
lowercase{endgroup
everymath{let~eu@active@quote}
everydisplay{let~eu@active@quote}
}
makeatother

usepackage{polyglossia}
setmainlanguage{dutch}

% Varia
usepackage{hyperref}


begin{document}

section{Les 8}

De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse
letters. Zo staat boek I ook gekend als boek A, boek II als boek α $α$ $alpha$
(kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende
Griekse letter toegewezen.

end{document}


I used Junicode as I don't have Bembo, but it's just the same. Also I showed that you can type both $α$ or $alpha$ getting the same symbol.



enter image description here






share|improve this answer
























  • Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

    – Johannes
    Apr 28 '13 at 21:29
















3














This problem arises in connection with the shorthands in Babel style that were introduced in Polyglossia after mathspec was released.



Basically the shorthand active character " gets a definition that overrides the one given by mathspec and infinite loops are behind the corner.



documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
usepackage[final]{microtype}


% Wiskunde
usepackage{amsmath}
usepackage{amssymb}

usepackage{mathspec}
setmainfont[Ligatures=TeX]{Junicode}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Junicode}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

%%% this patch must go before loading polyglossia
makeatletter
begingrouplccode`~=`"
lowercase{endgroup
everymath{let~eu@active@quote}
everydisplay{let~eu@active@quote}
}
makeatother

usepackage{polyglossia}
setmainlanguage{dutch}

% Varia
usepackage{hyperref}


begin{document}

section{Les 8}

De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse
letters. Zo staat boek I ook gekend als boek A, boek II als boek α $α$ $alpha$
(kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende
Griekse letter toegewezen.

end{document}


I used Junicode as I don't have Bembo, but it's just the same. Also I showed that you can type both $α$ or $alpha$ getting the same symbol.



enter image description here






share|improve this answer
























  • Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

    – Johannes
    Apr 28 '13 at 21:29














3












3








3







This problem arises in connection with the shorthands in Babel style that were introduced in Polyglossia after mathspec was released.



Basically the shorthand active character " gets a definition that overrides the one given by mathspec and infinite loops are behind the corner.



documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
usepackage[final]{microtype}


% Wiskunde
usepackage{amsmath}
usepackage{amssymb}

usepackage{mathspec}
setmainfont[Ligatures=TeX]{Junicode}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Junicode}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

%%% this patch must go before loading polyglossia
makeatletter
begingrouplccode`~=`"
lowercase{endgroup
everymath{let~eu@active@quote}
everydisplay{let~eu@active@quote}
}
makeatother

usepackage{polyglossia}
setmainlanguage{dutch}

% Varia
usepackage{hyperref}


begin{document}

section{Les 8}

De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse
letters. Zo staat boek I ook gekend als boek A, boek II als boek α $α$ $alpha$
(kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende
Griekse letter toegewezen.

end{document}


I used Junicode as I don't have Bembo, but it's just the same. Also I showed that you can type both $α$ or $alpha$ getting the same symbol.



enter image description here






share|improve this answer













This problem arises in connection with the shorthands in Babel style that were introduced in Polyglossia after mathspec was released.



Basically the shorthand active character " gets a definition that overrides the one given by mathspec and infinite loops are behind the corner.



documentclass[11pt,oneside]{article}
usepackage[a4paper]{geometry}
usepackage[final]{microtype}


% Wiskunde
usepackage{amsmath}
usepackage{amssymb}

usepackage{mathspec}
setmainfont[Ligatures=TeX]{Junicode}
setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Junicode}
setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}

%%% this patch must go before loading polyglossia
makeatletter
begingrouplccode`~=`"
lowercase{endgroup
everymath{let~eu@active@quote}
everydisplay{let~eu@active@quote}
}
makeatother

usepackage{polyglossia}
setmainlanguage{dutch}

% Varia
usepackage{hyperref}


begin{document}

section{Les 8}

De boeken worden vaak aangeduid met Romeinse cijfers, maar ook met Griekse
letters. Zo staat boek I ook gekend als boek A, boek II als boek α $α$ $alpha$
(kleine alpha) en alle volgende boeken krijgen de alfabetisch hier op volgende
Griekse letter toegewezen.

end{document}


I used Junicode as I don't have Bembo, but it's just the same. Also I showed that you can type both $α$ or $alpha$ getting the same symbol.



enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 28 '13 at 21:24









egregegreg

724k8819173221




724k8819173221













  • Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

    – Johannes
    Apr 28 '13 at 21:29



















  • Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

    – Johannes
    Apr 28 '13 at 21:29

















Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

– Johannes
Apr 28 '13 at 21:29





Thank you for the explanation and showing the font Junicode which provides Greek glyphs.

– Johannes
Apr 28 '13 at 21:29


















draft saved

draft discarded




















































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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f111225%2fchanging-the-greek-math-font-with-mathspec%23new-answer', 'question_page');
}
);

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







Popular posts from this blog

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

Castillo d'Acher Características Menú de navegación