Using the unicode prime character outside math mode with unicode-math and newunicodechar ...
Can I take recommendation from someone I met at a conference?
Network Switch Upgrade Planning questions
Recursive calls to a function - why is the address of the parameter passed to it lowering with each call?
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
Does GDPR cover the collection of data by websites that crawl the web and resell user data
Protagonist's race is hidden - should I reveal it?
Can a Wizard take the Magic Initiate feat and select spells from the Wizard list?
What could prevent concentrated local exploration?
What documents does someone with a long-term visa need to travel to another Schengen country?
Are bags of holding fireproof?
What is the definining line between a helicopter and a drone a person can ride in?
/bin/ls sorts differently than just ls
Does the Pact of the Blade warlock feature allow me to customize the properties of the pact weapon I create?
How to ask rejected full-time candidates to apply to teach individual courses?
Are there any AGPL-style licences that require source code modifications to be public?
tabularx column has extra padding at right?
What combination of kingdom cards makes for the fewest number of turns to end the game?
What's the connection between Mr. Nancy and fried chicken?
Should man-made satellites feature an intelligent inverted "cow catcher"?
Like totally amazing interchangeable sister outfit accessory swapping or whatever
How to break 信じようとしていただけかも知れない into separate parts?
Why doesn't the university give past final exams' answers?
xkeyval -- read keys from file
What is the ongoing value of the Kanban board to the developers as opposed to management
Using the unicode prime character outside math mode with unicode-math and newunicodechar
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)Invisible math characters with unicode-math and ntheoremIs direct utf8 input of combining diacritics in math mode possible with lualatex?unicode-math and tex4ht with utf-8 inputFixing mathit spacing with unicode-mathHow do I get the XITS font to work with unicode-math and hepnames in lualatexusepackage{newunicodechar} loads but commands have no effectDviluatex and unicode-math combination cannot find fontsVertical spacing between arrow and caption with unicode-mathDifficulties obtaining math (italic) style in mhchem aligned equations with unicode-mathProblem with prime and unicode-math package
I am trying to use unicode-math, newunicodechar and LuaLaTeX/XeLaTeX to write my LaTeX code making use of unicode characters in the source text.
This works fine, except for the prime character; if I try to use newunicodechar for it, it introduces errors if the prime is outside math mode.
documentclass{article}
usepackage{unicode-math}
setmathfont{XITS Math}
usepackage{newunicodechar}
newunicodechar{′}{any replacement character}
begin{document}
This prime causes “Missing $ inserted”: ′
end{document}
Unfortunately, I can't restrict my use of the prime character to just math mode; I am writing literate Agda and wish to use the prime character in my code, and the LaTeX source produced by Agda is not in math mode.
Is there any workaround for this problem? As it stands, my only solutions seem to be avoiding prime in my code or running a script to replace instances of prime in the Agda generated LaTeX source.
xetex luatex unicode-math newunicodechar
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
add a comment |
I am trying to use unicode-math, newunicodechar and LuaLaTeX/XeLaTeX to write my LaTeX code making use of unicode characters in the source text.
This works fine, except for the prime character; if I try to use newunicodechar for it, it introduces errors if the prime is outside math mode.
documentclass{article}
usepackage{unicode-math}
setmathfont{XITS Math}
usepackage{newunicodechar}
newunicodechar{′}{any replacement character}
begin{document}
This prime causes “Missing $ inserted”: ′
end{document}
Unfortunately, I can't restrict my use of the prime character to just math mode; I am writing literate Agda and wish to use the prime character in my code, and the LaTeX source produced by Agda is not in math mode.
Is there any workaround for this problem? As it stands, my only solutions seem to be avoiding prime in my code or running a script to replace instances of prime in the Agda generated LaTeX source.
xetex luatex unicode-math newunicodechar
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
unicode-mathredefines′at begin document. DoAtBeginDocument{newunicodechar{′}{any replacement character}}if you want to override it.
– egreg
9 mins ago
add a comment |
I am trying to use unicode-math, newunicodechar and LuaLaTeX/XeLaTeX to write my LaTeX code making use of unicode characters in the source text.
This works fine, except for the prime character; if I try to use newunicodechar for it, it introduces errors if the prime is outside math mode.
documentclass{article}
usepackage{unicode-math}
setmathfont{XITS Math}
usepackage{newunicodechar}
newunicodechar{′}{any replacement character}
begin{document}
This prime causes “Missing $ inserted”: ′
end{document}
Unfortunately, I can't restrict my use of the prime character to just math mode; I am writing literate Agda and wish to use the prime character in my code, and the LaTeX source produced by Agda is not in math mode.
Is there any workaround for this problem? As it stands, my only solutions seem to be avoiding prime in my code or running a script to replace instances of prime in the Agda generated LaTeX source.
xetex luatex unicode-math newunicodechar
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
I am trying to use unicode-math, newunicodechar and LuaLaTeX/XeLaTeX to write my LaTeX code making use of unicode characters in the source text.
This works fine, except for the prime character; if I try to use newunicodechar for it, it introduces errors if the prime is outside math mode.
documentclass{article}
usepackage{unicode-math}
setmathfont{XITS Math}
usepackage{newunicodechar}
newunicodechar{′}{any replacement character}
begin{document}
This prime causes “Missing $ inserted”: ′
end{document}
Unfortunately, I can't restrict my use of the prime character to just math mode; I am writing literate Agda and wish to use the prime character in my code, and the LaTeX source produced by Agda is not in math mode.
Is there any workaround for this problem? As it stands, my only solutions seem to be avoiding prime in my code or running a script to replace instances of prime in the Agda generated LaTeX source.
xetex luatex unicode-math newunicodechar
xetex luatex unicode-math newunicodechar
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
asked 14 mins ago
Mark ArmstrongMark Armstrong
11
11
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
New contributor
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
Mark Armstrong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
unicode-mathredefines′at begin document. DoAtBeginDocument{newunicodechar{′}{any replacement character}}if you want to override it.
– egreg
9 mins ago
add a comment |
unicode-mathredefines′at begin document. DoAtBeginDocument{newunicodechar{′}{any replacement character}}if you want to override it.
– egreg
9 mins ago
unicode-math redefines ′ at begin document. Do AtBeginDocument{newunicodechar{′}{any replacement character}} if you want to override it.– egreg
9 mins ago
unicode-math redefines ′ at begin document. Do AtBeginDocument{newunicodechar{′}{any replacement character}} if you want to override it.– egreg
9 mins ago
add a comment |
0
active
oldest
votes
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
});
}
});
Mark Armstrong is a new contributor. Be nice, and check out our Code of Conduct.
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%2f486120%2fusing-the-unicode-prime-character-outside-math-mode-with-unicode-math-and-newuni%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Mark Armstrong is a new contributor. Be nice, and check out our Code of Conduct.
Mark Armstrong is a new contributor. Be nice, and check out our Code of Conduct.
Mark Armstrong is a new contributor. Be nice, and check out our Code of Conduct.
Mark Armstrong is a new contributor. Be nice, and check out our Code of Conduct.
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%2f486120%2fusing-the-unicode-prime-character-outside-math-mode-with-unicode-math-and-newuni%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
unicode-mathredefines′at begin document. DoAtBeginDocument{newunicodechar{′}{any replacement character}}if you want to override it.– egreg
9 mins ago