Why am I getting Unidcode Error for some equations when Microsoft got upgraded from 7 to 10?











up vote
2
down vote

favorite












I have upgraded Windows from 7 to 10. When I am compiling some latex files, which were already built in Windows 7 and worked fine -now in Windows 10- I am getting this Unicode error for some equations:



! Package ucs Error: Unknown Unicode character 8289 = U+2061,
(ucs) possibly declared in uni-32.def.
(ucs) Type H to see if it is available with options.


Using XeLaTex works well, but I prefer compiling tex files, to do any online edits.



Here is an example...
When compiling the below tex file, eq1 and eq2 are fine, while eq3 and eq4 are not!



Why and how can this tex file be compiled "in windows 10" without getting a Unicode error?



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{Scaled}=a+ frac{[x-min⁡(X)]}{[max⁡(X)-min⁡(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{Standardized}= frac{[x-mean⁡(X)]}{std(X)}
end{equation}

end{document}









share|improve this question




















  • 1




    This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
    – David Carlisle
    4 hours ago






  • 1




    "Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
    – aoi
    4 hours ago










  • I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
    – mhdella
    4 hours ago












  • If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
    – Henri Menke
    4 hours ago










  • is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
    – jfbu
    4 hours ago















up vote
2
down vote

favorite












I have upgraded Windows from 7 to 10. When I am compiling some latex files, which were already built in Windows 7 and worked fine -now in Windows 10- I am getting this Unicode error for some equations:



! Package ucs Error: Unknown Unicode character 8289 = U+2061,
(ucs) possibly declared in uni-32.def.
(ucs) Type H to see if it is available with options.


Using XeLaTex works well, but I prefer compiling tex files, to do any online edits.



Here is an example...
When compiling the below tex file, eq1 and eq2 are fine, while eq3 and eq4 are not!



Why and how can this tex file be compiled "in windows 10" without getting a Unicode error?



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{Scaled}=a+ frac{[x-min⁡(X)]}{[max⁡(X)-min⁡(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{Standardized}= frac{[x-mean⁡(X)]}{std(X)}
end{equation}

end{document}









share|improve this question




















  • 1




    This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
    – David Carlisle
    4 hours ago






  • 1




    "Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
    – aoi
    4 hours ago










  • I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
    – mhdella
    4 hours ago












  • If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
    – Henri Menke
    4 hours ago










  • is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
    – jfbu
    4 hours ago













up vote
2
down vote

favorite









up vote
2
down vote

favorite











I have upgraded Windows from 7 to 10. When I am compiling some latex files, which were already built in Windows 7 and worked fine -now in Windows 10- I am getting this Unicode error for some equations:



! Package ucs Error: Unknown Unicode character 8289 = U+2061,
(ucs) possibly declared in uni-32.def.
(ucs) Type H to see if it is available with options.


Using XeLaTex works well, but I prefer compiling tex files, to do any online edits.



Here is an example...
When compiling the below tex file, eq1 and eq2 are fine, while eq3 and eq4 are not!



Why and how can this tex file be compiled "in windows 10" without getting a Unicode error?



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{Scaled}=a+ frac{[x-min⁡(X)]}{[max⁡(X)-min⁡(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{Standardized}= frac{[x-mean⁡(X)]}{std(X)}
end{equation}

end{document}









share|improve this question















I have upgraded Windows from 7 to 10. When I am compiling some latex files, which were already built in Windows 7 and worked fine -now in Windows 10- I am getting this Unicode error for some equations:



! Package ucs Error: Unknown Unicode character 8289 = U+2061,
(ucs) possibly declared in uni-32.def.
(ucs) Type H to see if it is available with options.


Using XeLaTex works well, but I prefer compiling tex files, to do any online edits.



Here is an example...
When compiling the below tex file, eq1 and eq2 are fine, while eq3 and eq4 are not!



Why and how can this tex file be compiled "in windows 10" without getting a Unicode error?



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{Scaled}=a+ frac{[x-min⁡(X)]}{[max⁡(X)-min⁡(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{Standardized}= frac{[x-mean⁡(X)]}{std(X)}
end{equation}

end{document}






math-mode pdftex compiling unicode






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 3 hours ago









Mico

272k30369756




272k30369756










asked 5 hours ago









mhdella

847




847








  • 1




    This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
    – David Carlisle
    4 hours ago






  • 1




    "Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
    – aoi
    4 hours ago










  • I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
    – mhdella
    4 hours ago












  • If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
    – Henri Menke
    4 hours ago










  • is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
    – jfbu
    4 hours ago














  • 1




    This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
    – David Carlisle
    4 hours ago






  • 1




    "Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
    – aoi
    4 hours ago










  • I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
    – mhdella
    4 hours ago












  • If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
    – Henri Menke
    4 hours ago










  • is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
    – jfbu
    4 hours ago








1




1




This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
– David Carlisle
4 hours ago




This will be unrelated to the operating system, also it is generally better to avoid usepackage[utf8x]{inputenc}usepackage{ucs} unless you know you need that version and use the standard utf8 inputenc option (which is enabled by default in recent releases, so you don't need inputenc at all) How are you producing the file, why do you have U+2061 characters in the input?
– David Carlisle
4 hours ago




1




1




"Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
– aoi
4 hours ago




"Using XeLaTex works well, but I prefer compiling tex files, to do any online edits." I don't really understand this statement, your TeX distribution should presumably supply Xe(La)TeX, Lua(La)TeX, and pdf(La)TeX, so you shouldn't need to go to an online system to make use of XeLaTeX.
– aoi
4 hours ago












I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
– mhdella
4 hours ago






I used to click on the compile (F9) tap, to open the PDF Viewer in SumatraPDF and check out if there any editing touches are needed, and usually using pdf(La)TeX rather than XeLaTex.
– mhdella
4 hours ago














If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
– Henri Menke
4 hours ago




If I get strange encoding errors, I paste the offending text into r12a.github.io/uniview to see which characters are actually there.
– Henri Menke
4 hours ago












is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
– jfbu
4 hours ago




is this a duplicate posting of tex.stackexchange.com/questions/464238/… ?
– jfbu
4 hours ago










2 Answers
2






active

oldest

votes

















up vote
4
down vote













Your file contains hidden characters that LaTeX can't deal with, copy-paste in a good editor to see it. The following image shows these hidden characters shown as f() after min, max, and mean, remove these and recompile. Also min and max are typset in up roman, also mean and std.



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs,amsmath}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_text{Scaled}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_text{Standardized}= frac{[x-mathrm{mean}(X)]}{mathrm{std}(X)}
end{equation}

end{document}


The correct output:




enter image description here







share|improve this answer























  • Thanks very much indeed, AboAmmar
    – mhdella
    4 hours ago


















up vote
4
down vote













Compiling your code under LuaLaTeX (while also loading the unicode-math package) yields the following screenshot for equations 3 and 4:



enter image description here



I've highlighted the four occurrences of U+2061. Why is this character in your tex file to begin with?



I believe you should re-write your code using min and max along the following lines (to be compiled under pdfLaTeX):



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage{ucs} % is this really needed?
usepackage{amsmath}
DeclareMathOperator{mean}{mean}
DeclareMathOperator{std}{std}

begin{document}
begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+dots+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{mathrm{Scaled}}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{mathrm{Standardized}}= frac{[x-mean(X)]}{std(X)}
end{equation}
end{document}





share|improve this answer

















  • 2




    I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
    – egreg
    3 hours ago










  • Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
    – mhdella
    2 hours ago











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',
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%2f464393%2fwhy-am-i-getting-unidcode-error-for-some-equations-when-microsoft-got-upgraded-f%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote













Your file contains hidden characters that LaTeX can't deal with, copy-paste in a good editor to see it. The following image shows these hidden characters shown as f() after min, max, and mean, remove these and recompile. Also min and max are typset in up roman, also mean and std.



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs,amsmath}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_text{Scaled}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_text{Standardized}= frac{[x-mathrm{mean}(X)]}{mathrm{std}(X)}
end{equation}

end{document}


The correct output:




enter image description here







share|improve this answer























  • Thanks very much indeed, AboAmmar
    – mhdella
    4 hours ago















up vote
4
down vote













Your file contains hidden characters that LaTeX can't deal with, copy-paste in a good editor to see it. The following image shows these hidden characters shown as f() after min, max, and mean, remove these and recompile. Also min and max are typset in up roman, also mean and std.



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs,amsmath}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_text{Scaled}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_text{Standardized}= frac{[x-mathrm{mean}(X)]}{mathrm{std}(X)}
end{equation}

end{document}


The correct output:




enter image description here







share|improve this answer























  • Thanks very much indeed, AboAmmar
    – mhdella
    4 hours ago













up vote
4
down vote










up vote
4
down vote









Your file contains hidden characters that LaTeX can't deal with, copy-paste in a good editor to see it. The following image shows these hidden characters shown as f() after min, max, and mean, remove these and recompile. Also min and max are typset in up roman, also mean and std.



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs,amsmath}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_text{Scaled}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_text{Standardized}= frac{[x-mathrm{mean}(X)]}{mathrm{std}(X)}
end{equation}

end{document}


The correct output:




enter image description here







share|improve this answer














Your file contains hidden characters that LaTeX can't deal with, copy-paste in a good editor to see it. The following image shows these hidden characters shown as f() after min, max, and mean, remove these and recompile. Also min and max are typset in up roman, also mean and std.



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage[utf8x]{inputenc}
usepackage{ucs,amsmath}

begin{document}

begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+..+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_text{Scaled}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_text{Standardized}= frac{[x-mathrm{mean}(X)]}{mathrm{std}(X)}
end{equation}

end{document}


The correct output:




enter image description here








share|improve this answer














share|improve this answer



share|improve this answer








edited 4 hours ago

























answered 4 hours ago









AboAmmar

31.9k22781




31.9k22781












  • Thanks very much indeed, AboAmmar
    – mhdella
    4 hours ago


















  • Thanks very much indeed, AboAmmar
    – mhdella
    4 hours ago
















Thanks very much indeed, AboAmmar
– mhdella
4 hours ago




Thanks very much indeed, AboAmmar
– mhdella
4 hours ago










up vote
4
down vote













Compiling your code under LuaLaTeX (while also loading the unicode-math package) yields the following screenshot for equations 3 and 4:



enter image description here



I've highlighted the four occurrences of U+2061. Why is this character in your tex file to begin with?



I believe you should re-write your code using min and max along the following lines (to be compiled under pdfLaTeX):



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage{ucs} % is this really needed?
usepackage{amsmath}
DeclareMathOperator{mean}{mean}
DeclareMathOperator{std}{std}

begin{document}
begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+dots+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{mathrm{Scaled}}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{mathrm{Standardized}}= frac{[x-mean(X)]}{std(X)}
end{equation}
end{document}





share|improve this answer

















  • 2




    I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
    – egreg
    3 hours ago










  • Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
    – mhdella
    2 hours ago















up vote
4
down vote













Compiling your code under LuaLaTeX (while also loading the unicode-math package) yields the following screenshot for equations 3 and 4:



enter image description here



I've highlighted the four occurrences of U+2061. Why is this character in your tex file to begin with?



I believe you should re-write your code using min and max along the following lines (to be compiled under pdfLaTeX):



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage{ucs} % is this really needed?
usepackage{amsmath}
DeclareMathOperator{mean}{mean}
DeclareMathOperator{std}{std}

begin{document}
begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+dots+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{mathrm{Scaled}}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{mathrm{Standardized}}= frac{[x-mean(X)]}{std(X)}
end{equation}
end{document}





share|improve this answer

















  • 2




    I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
    – egreg
    3 hours ago










  • Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
    – mhdella
    2 hours ago













up vote
4
down vote










up vote
4
down vote









Compiling your code under LuaLaTeX (while also loading the unicode-math package) yields the following screenshot for equations 3 and 4:



enter image description here



I've highlighted the four occurrences of U+2061. Why is this character in your tex file to begin with?



I believe you should re-write your code using min and max along the following lines (to be compiled under pdfLaTeX):



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage{ucs} % is this really needed?
usepackage{amsmath}
DeclareMathOperator{mean}{mean}
DeclareMathOperator{std}{std}

begin{document}
begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+dots+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{mathrm{Scaled}}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{mathrm{Standardized}}= frac{[x-mean(X)]}{std(X)}
end{equation}
end{document}





share|improve this answer












Compiling your code under LuaLaTeX (while also loading the unicode-math package) yields the following screenshot for equations 3 and 4:



enter image description here



I've highlighted the four occurrences of U+2061. Why is this character in your tex file to begin with?



I believe you should re-write your code using min and max along the following lines (to be compiled under pdfLaTeX):



enter image description here



documentclass[12pt,a4paper]{article} 
usepackage{ucs} % is this really needed?
usepackage{amsmath}
DeclareMathOperator{mean}{mean}
DeclareMathOperator{std}{std}

begin{document}
begin{equation}label{eq 1}
F=W_{A}*M_{A}+W_{B}*M_{B}+dots+W_{N}*M_{N}
end{equation}

begin{equation}label{eq 2}
RR=frac{dP(t)}{dt}=frac{P(t)-P(t-D)}{D}
end{equation}

begin{equation}label{eq_3}
X_{mathrm{Scaled}}=a+ frac{[x-min(X)]}{[max(X)-min(X)]}*{b-a}
end{equation}

begin{equation}label{eq_4}
X_{mathrm{Standardized}}= frac{[x-mean(X)]}{std(X)}
end{equation}
end{document}






share|improve this answer












share|improve this answer



share|improve this answer










answered 4 hours ago









Mico

272k30369756




272k30369756








  • 2




    I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
    – egreg
    3 hours ago










  • Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
    – mhdella
    2 hours ago














  • 2




    I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
    – egreg
    3 hours ago










  • Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
    – mhdella
    2 hours ago








2




2




I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
– egreg
3 hours ago




I guess the OP is using some equation editor and the new version adds that Unicode invisible character (which makes sense for translations to MathML, I believe).
– egreg
3 hours ago












Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
– mhdella
2 hours ago




Thanks Mico for your response and correcting the tex file. Thanks egreg for the comment. I managed the Unicode error by just adding usepackage[utf8x]{inputenc} and DeclareUnicodeCharacter{"2061}{}
– mhdella
2 hours ago


















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.





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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f464393%2fwhy-am-i-getting-unidcode-error-for-some-equations-when-microsoft-got-upgraded-f%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

What visual should I use to simply compare current year value vs last year in Power BI desktop

Alexandru Averescu

Trompette piccolo