Using the unicode prime character outside math mode with unicode-math and newunicodechar ...
Is Vivien of the Wilds + Wilderness Reclimation a competitive combo?
Import keychain to clean macOS install?
What kind of capacitor is this in the image?
/bin/ls sorts differently than just ls
Is it OK if I do not take the receipt in Germany?
Compiling and throwing simple dynamic exceptions at runtime for JVM
Etymology of 見舞い
"Destructive force" carried by a B-52?
Trying to enter the Fox's den
What is the ongoing value of the Kanban board to the developers as opposed to management
How to renew schengen visas
false 'Security alert' from Google - every login generates mails from 'no-reply@accounts.google.com'
Magento 2 Editing phtml files in Production Mode
Is there a verb for listening stealthily?
What is the evidence that custom checks in Northern Ireland are going to result in violence?
Assertions In A Mock Callout Test
What is the definining line between a helicopter and a drone a person can ride in?
Why aren't these two solutions equivalent? Combinatorics problem
Unix AIX passing variable and arguments to expect and spawn
Can this water damage be explained by lack of gutters and grading issues?
Can a Knight grant Knighthood to another?
What's the connection between Mr. Nancy and fried chicken?
Why did Europeans not widely domesticate foxes?
Can the van der Waals coefficients be negative in the van der Waals equation for real gases?
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
2 mins ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs 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 7 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
2 mins ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs ago
add a comment |
unicode-mathredefines′at begin document. DoAtBeginDocument{newunicodechar{′}{any replacement character}}if you want to override it.
– egreg
2 mins ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs ago
unicode-math redefines ′ at begin document. Do AtBeginDocument{newunicodechar{′}{any replacement character}} if you want to override it.– egreg
2 mins ago
unicode-math redefines ′ at begin document. Do AtBeginDocument{newunicodechar{′}{any replacement character}} if you want to override it.– egreg
2 mins ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs 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
2 mins ago
Great! That works. Thank you very much.
– Mark Armstrong
8 secs ago