Why the specific symbols don't show up in my equations?
I was unable to get the equations with specific symbols to appear correctly.
The code is like this
bm{sigma}(t)=bm{sigma}^{vol}+bm{sigma}^{dev}(t)=Ktext{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
What I expected was to get a pdf like this
However, the pdf seems to hate me...
Could anybody help me resolve this issue?
Here I post the minimal part of the compiled text that works,
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}usepackage{lmodern}usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{caption}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{fancyhdr}
usepackage{graphics}
usepackage{lastpage}
usepackage{mathptmx}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}`
Best,
math-mode equations symbols
|
show 2 more comments
I was unable to get the equations with specific symbols to appear correctly.
The code is like this
bm{sigma}(t)=bm{sigma}^{vol}+bm{sigma}^{dev}(t)=Ktext{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
What I expected was to get a pdf like this
However, the pdf seems to hate me...
Could anybody help me resolve this issue?
Here I post the minimal part of the compiled text that works,
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}usepackage{lmodern}usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{caption}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{fancyhdr}
usepackage{graphics}
usepackage{lastpage}
usepackage{mathptmx}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}`
Best,
math-mode equations symbols
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
2
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
2
you specify multiple fonts (lmodern
font andnewtxtext
andnewtxmath
). i am not an expert, but try to remove the last two and see what you get.
– Yorgos
Mar 9 at 13:23
|
show 2 more comments
I was unable to get the equations with specific symbols to appear correctly.
The code is like this
bm{sigma}(t)=bm{sigma}^{vol}+bm{sigma}^{dev}(t)=Ktext{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
What I expected was to get a pdf like this
However, the pdf seems to hate me...
Could anybody help me resolve this issue?
Here I post the minimal part of the compiled text that works,
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}usepackage{lmodern}usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{caption}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{fancyhdr}
usepackage{graphics}
usepackage{lastpage}
usepackage{mathptmx}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}`
Best,
math-mode equations symbols
I was unable to get the equations with specific symbols to appear correctly.
The code is like this
bm{sigma}(t)=bm{sigma}^{vol}+bm{sigma}^{dev}(t)=Ktext{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
What I expected was to get a pdf like this
However, the pdf seems to hate me...
Could anybody help me resolve this issue?
Here I post the minimal part of the compiled text that works,
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[utf8]{inputenc}
usepackage[T1]{fontenc}usepackage{lmodern}usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{caption}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{fancyhdr}
usepackage{graphics}
usepackage{lastpage}
usepackage{mathptmx}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}`
Best,
math-mode equations symbols
math-mode equations symbols
edited Mar 9 at 13:07
Rilin Shen
asked Mar 9 at 11:58
Rilin ShenRilin Shen
134
134
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
2
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
2
you specify multiple fonts (lmodern
font andnewtxtext
andnewtxmath
). i am not an expert, but try to remove the last two and see what you get.
– Yorgos
Mar 9 at 13:23
|
show 2 more comments
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
2
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
2
you specify multiple fonts (lmodern
font andnewtxtext
andnewtxmath
). i am not an expert, but try to remove the last two and see what you get.
– Yorgos
Mar 9 at 13:23
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
2
2
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
2
2
you specify multiple fonts (
lmodern
font and newtxtext
and newtxmath
). i am not an expert, but try to remove the last two and see what you get.– Yorgos
Mar 9 at 13:23
you specify multiple fonts (
lmodern
font and newtxtext
and newtxmath
). i am not an expert, but try to remove the last two and see what you get.– Yorgos
Mar 9 at 13:23
|
show 2 more comments
1 Answer
1
active
oldest
votes
The offending packages seem to be the combination of mathptmx
and newtxmath
here (or more generally loading another font after newtxmath
). As Yorgos already mentioned you load quite a few competing font packages and you might want to simplify things by removing the ones you don't really need (for example newtxmath
and newtxtext
would overwrite most of lmodern
's effects). The following slimmed down preamble should work (I also removed some packages which were loaded twice):
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
%usepackage{lmodern} % removed in favour of newtxtext and newtxmath
usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
%usepackage{mathptmx} % removed because it causes your issue in combination
% with newtxmath
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{lastpage}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested witharticle
. Sorry for the inconvenience. Ifnewtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.
– Skillmon
Mar 9 at 13:41
@Yorgos loadinglmodern
afternewtxmath
leads to the same problems. So your guess was correct :)
– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
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%2f478569%2fwhy-the-specific-symbols-dont-show-up-in-my-equations%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
The offending packages seem to be the combination of mathptmx
and newtxmath
here (or more generally loading another font after newtxmath
). As Yorgos already mentioned you load quite a few competing font packages and you might want to simplify things by removing the ones you don't really need (for example newtxmath
and newtxtext
would overwrite most of lmodern
's effects). The following slimmed down preamble should work (I also removed some packages which were loaded twice):
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
%usepackage{lmodern} % removed in favour of newtxtext and newtxmath
usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
%usepackage{mathptmx} % removed because it causes your issue in combination
% with newtxmath
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{lastpage}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested witharticle
. Sorry for the inconvenience. Ifnewtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.
– Skillmon
Mar 9 at 13:41
@Yorgos loadinglmodern
afternewtxmath
leads to the same problems. So your guess was correct :)
– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
add a comment |
The offending packages seem to be the combination of mathptmx
and newtxmath
here (or more generally loading another font after newtxmath
). As Yorgos already mentioned you load quite a few competing font packages and you might want to simplify things by removing the ones you don't really need (for example newtxmath
and newtxtext
would overwrite most of lmodern
's effects). The following slimmed down preamble should work (I also removed some packages which were loaded twice):
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
%usepackage{lmodern} % removed in favour of newtxtext and newtxmath
usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
%usepackage{mathptmx} % removed because it causes your issue in combination
% with newtxmath
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{lastpage}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested witharticle
. Sorry for the inconvenience. Ifnewtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.
– Skillmon
Mar 9 at 13:41
@Yorgos loadinglmodern
afternewtxmath
leads to the same problems. So your guess was correct :)
– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
add a comment |
The offending packages seem to be the combination of mathptmx
and newtxmath
here (or more generally loading another font after newtxmath
). As Yorgos already mentioned you load quite a few competing font packages and you might want to simplify things by removing the ones you don't really need (for example newtxmath
and newtxtext
would overwrite most of lmodern
's effects). The following slimmed down preamble should work (I also removed some packages which were loaded twice):
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
%usepackage{lmodern} % removed in favour of newtxtext and newtxmath
usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
%usepackage{mathptmx} % removed because it causes your issue in combination
% with newtxmath
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{lastpage}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}
The offending packages seem to be the combination of mathptmx
and newtxmath
here (or more generally loading another font after newtxmath
). As Yorgos already mentioned you load quite a few competing font packages and you might want to simplify things by removing the ones you don't really need (for example newtxmath
and newtxtext
would overwrite most of lmodern
's effects). The following slimmed down preamble should work (I also removed some packages which were loaded twice):
documentclass[Journal,letterpaper]{ascelike-new}
usepackage[T1]{fontenc}
usepackage[utf8]{inputenc}
%usepackage{lmodern} % removed in favour of newtxtext and newtxmath
usepackage{graphicx}
usepackage[figurename=Fig.,labelfont=bf,labelsep=period]{caption}
usepackage{subcaption}
usepackage{newtxtext,newtxmath}
%usepackage{mathptmx} % removed because it causes your issue in combination
% with newtxmath
usepackage{bm}
usepackage{soul}
usepackage{tikz}
usepackage{ulem}
usepackage{color}
usepackage{cancel}
usepackage{dsfont}
usepackage{framed}
usepackage{amsmath}
usepackage{amssymb}
usepackage{wrapfig}
usepackage{amsfonts}
usepackage{enumitem}
usepackage{lastpage}
usepackage{multirow}
usepackage{setspace}
usepackage{algorithm}
usepackage{algpseudocode}
usepackage[mathscr]{euscript}
usepackage{textcomp}
usepackage{setspace}
usepackage{lineno}
linenumbers
usepackage{pgfplots}
pgfplotsset{compat=1.14}
usepackage{fancyhdr} % Needed to define custom headers/footers
setlength{headheight}{15pt}
usepackage[colorlinks=true,citecolor=red,linkcolor=black]{hyperref}
begin{document}
begin{equation}
bm{sigma}(t) = bm{sigma}^{vol} + bm{sigma}^{dev}(t) = K text{tr}
({bm{varepsilon}})bm{I}+2int_{0}^{t}G(t-tau)dot{bm{e}}(tau)dtau,
end{equation}
end{document}
edited Mar 9 at 13:43
answered Mar 9 at 13:32
SkillmonSkillmon
23.4k12045
23.4k12045
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested witharticle
. Sorry for the inconvenience. Ifnewtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.
– Skillmon
Mar 9 at 13:41
@Yorgos loadinglmodern
afternewtxmath
leads to the same problems. So your guess was correct :)
– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
add a comment |
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested witharticle
. Sorry for the inconvenience. Ifnewtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.
– Skillmon
Mar 9 at 13:41
@Yorgos loadinglmodern
afternewtxmath
leads to the same problems. So your guess was correct :)
– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
Hi, I tried what you suggested but it doesn't work. But if I comment newtxtext and newtxmath, It works well. so I'm confused ....
– Rilin Shen
Mar 9 at 13:37
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@egreg points that the problem was font-related. i made the (almost) right guessing on the fonts :)
– Yorgos
Mar 9 at 13:38
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested with
article
. Sorry for the inconvenience. If newtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.– Skillmon
Mar 9 at 13:41
@RilinShen this might be the case because the class does load other fonts, too. I don't have access to this class, so I tested with
article
. Sorry for the inconvenience. If newtxmath
doesn't work with that class, you should remove it in favour of the other packages, of course.– Skillmon
Mar 9 at 13:41
@Yorgos loading
lmodern
after newtxmath
leads to the same problems. So your guess was correct :)– Skillmon
Mar 9 at 13:42
@Yorgos loading
lmodern
after newtxmath
leads to the same problems. So your guess was correct :)– Skillmon
Mar 9 at 13:42
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
@Skillmon@Yorgos, Thanks, it helps me a lot.
– Rilin Shen
Mar 9 at 13:47
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%2f478569%2fwhy-the-specific-symbols-dont-show-up-in-my-equations%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
Welcome to TeX.SE! Can you please show us a short compilable code? Then we have not to guess which documentclass and relevant packages you use ...
– Kurt
Mar 9 at 12:01
2
Welcome to TeX.SX! As it currently is, your question can't really be answered, because we don't know what you're using that could lead to this behaviour. Can you please try to minimize the preamble of the document this occurs in by commenting out every line that doesn't cause this issue (bisectioning should be a good approach to find the lines at fault reasonably fast)?
– Skillmon
Mar 9 at 12:03
My guess is that you're loading conflicting font packages. Please, add your document preamble and we can diagnose the issue.
– egreg
Mar 9 at 12:18
Sorry, I just get a chance to update the description. This could be the simplest code block I could create. The issue stays there.
– Rilin Shen
Mar 9 at 13:09
2
you specify multiple fonts (
lmodern
font andnewtxtext
andnewtxmath
). i am not an expert, but try to remove the last two and see what you get.– Yorgos
Mar 9 at 13:23