tex4ht doesn't render not correctly











up vote
3
down vote

favorite












I tried to htlatex the following code:



documentclass{article}

usepackage{amssymb}

begin{document}

Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Anotsubseteq B$.

end{document}


It compiles $notsubseteq$ to something like $/subseteq$. Is there a simple fix for that? Thanks.



EDIT:
I refer to subseteq just make things concrete (see an answer below for the usage of nsubseteq. I wonder whether generally, not could be modified to work for a general binary relation.










share|improve this question
























  • what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
    – michal.h21
    Nov 27 at 14:32















up vote
3
down vote

favorite












I tried to htlatex the following code:



documentclass{article}

usepackage{amssymb}

begin{document}

Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Anotsubseteq B$.

end{document}


It compiles $notsubseteq$ to something like $/subseteq$. Is there a simple fix for that? Thanks.



EDIT:
I refer to subseteq just make things concrete (see an answer below for the usage of nsubseteq. I wonder whether generally, not could be modified to work for a general binary relation.










share|improve this question
























  • what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
    – michal.h21
    Nov 27 at 14:32













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I tried to htlatex the following code:



documentclass{article}

usepackage{amssymb}

begin{document}

Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Anotsubseteq B$.

end{document}


It compiles $notsubseteq$ to something like $/subseteq$. Is there a simple fix for that? Thanks.



EDIT:
I refer to subseteq just make things concrete (see an answer below for the usage of nsubseteq. I wonder whether generally, not could be modified to work for a general binary relation.










share|improve this question















I tried to htlatex the following code:



documentclass{article}

usepackage{amssymb}

begin{document}

Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Anotsubseteq B$.

end{document}


It compiles $notsubseteq$ to something like $/subseteq$. Is there a simple fix for that? Thanks.



EDIT:
I refer to subseteq just make things concrete (see an answer below for the usage of nsubseteq. I wonder whether generally, not could be modified to work for a general binary relation.







tex4ht






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 27 at 12:48

























asked Nov 27 at 11:33









Frank Science

1446




1446












  • what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
    – michal.h21
    Nov 27 at 14:32


















  • what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
    – michal.h21
    Nov 27 at 14:32
















what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
– michal.h21
Nov 27 at 14:32




what is strange is that a correct symbol is rendered in the html5 output, or with epub3.
– michal.h21
Nov 27 at 14:32










2 Answers
2






active

oldest

votes

















up vote
4
down vote



accepted










You can try the uni-html4 option for tex4ht. It configures some characters to use the Unicode encoding:



tex4ebook filename.tex "uni-html4"


I've modified the tex4ebook sources to use this option by default, as it uses the Unicode output anyway.



The result:



enter image description here



<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A</span>⊈<span
class="cmmi-10">B</span>.
</p>





share|improve this answer





















  • Just out of curiosity: can we pass "uni-html4" to htlatex and how?
    – Frank Science
    Nov 27 at 15:31










  • @FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
    – michal.h21
    Nov 27 at 16:32


















up vote
3
down vote













You can use $nsubseteq$ instead of $notsubseteq.



MWE



documentclass{article}
usepackage{amssymb}
begin{document}
Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Ansubseteq B$.
end{document}


HTML Source:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="temp245.tex">
<link rel="stylesheet" type="text/css" href="temp245.css">
</head><body
>
<!--l. 6--><p class="noindent" >Given two sets <span
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A </span><span
class="msbm-10">⊈ </span><span
class="cmmi-10">B</span>.
</body></html>


Rendered HTML:



Given two sets A,B such that A is not a subset of B, i.e., AB.






share|improve this answer





















  • Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
    – Frank Science
    Nov 27 at 12:46










  • @FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
    – David Purton
    Nov 27 at 12:51










  • Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
    – Frank Science
    Nov 27 at 12:55











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%2f461980%2ftex4ht-doesnt-render-not-correctly%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



accepted










You can try the uni-html4 option for tex4ht. It configures some characters to use the Unicode encoding:



tex4ebook filename.tex "uni-html4"


I've modified the tex4ebook sources to use this option by default, as it uses the Unicode output anyway.



The result:



enter image description here



<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A</span>⊈<span
class="cmmi-10">B</span>.
</p>





share|improve this answer





















  • Just out of curiosity: can we pass "uni-html4" to htlatex and how?
    – Frank Science
    Nov 27 at 15:31










  • @FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
    – michal.h21
    Nov 27 at 16:32















up vote
4
down vote



accepted










You can try the uni-html4 option for tex4ht. It configures some characters to use the Unicode encoding:



tex4ebook filename.tex "uni-html4"


I've modified the tex4ebook sources to use this option by default, as it uses the Unicode output anyway.



The result:



enter image description here



<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A</span>⊈<span
class="cmmi-10">B</span>.
</p>





share|improve this answer





















  • Just out of curiosity: can we pass "uni-html4" to htlatex and how?
    – Frank Science
    Nov 27 at 15:31










  • @FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
    – michal.h21
    Nov 27 at 16:32













up vote
4
down vote



accepted







up vote
4
down vote



accepted






You can try the uni-html4 option for tex4ht. It configures some characters to use the Unicode encoding:



tex4ebook filename.tex "uni-html4"


I've modified the tex4ebook sources to use this option by default, as it uses the Unicode output anyway.



The result:



enter image description here



<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A</span>⊈<span
class="cmmi-10">B</span>.
</p>





share|improve this answer












You can try the uni-html4 option for tex4ht. It configures some characters to use the Unicode encoding:



tex4ebook filename.tex "uni-html4"


I've modified the tex4ebook sources to use this option by default, as it uses the Unicode output anyway.



The result:



enter image description here



<!--l. 7--><p class="noindent" >Given two sets <span 
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A</span>⊈<span
class="cmmi-10">B</span>.
</p>






share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 27 at 14:54









michal.h21

28.8k445103




28.8k445103












  • Just out of curiosity: can we pass "uni-html4" to htlatex and how?
    – Frank Science
    Nov 27 at 15:31










  • @FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
    – michal.h21
    Nov 27 at 16:32


















  • Just out of curiosity: can we pass "uni-html4" to htlatex and how?
    – Frank Science
    Nov 27 at 15:31










  • @FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
    – michal.h21
    Nov 27 at 16:32
















Just out of curiosity: can we pass "uni-html4" to htlatex and how?
– Frank Science
Nov 27 at 15:31




Just out of curiosity: can we pass "uni-html4" to htlatex and how?
– Frank Science
Nov 27 at 15:31












@FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
– michal.h21
Nov 27 at 16:32




@FrankScience sure, htlatex filename.tex "xhtml,uni-html4". the html5 option loads the Unicode declarations as well, which explain why make4ht produced a different output to tex4ebook - it uses the html5 output by default.
– michal.h21
Nov 27 at 16:32










up vote
3
down vote













You can use $nsubseteq$ instead of $notsubseteq.



MWE



documentclass{article}
usepackage{amssymb}
begin{document}
Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Ansubseteq B$.
end{document}


HTML Source:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="temp245.tex">
<link rel="stylesheet" type="text/css" href="temp245.css">
</head><body
>
<!--l. 6--><p class="noindent" >Given two sets <span
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A </span><span
class="msbm-10">⊈ </span><span
class="cmmi-10">B</span>.
</body></html>


Rendered HTML:



Given two sets A,B such that A is not a subset of B, i.e., AB.






share|improve this answer





















  • Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
    – Frank Science
    Nov 27 at 12:46










  • @FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
    – David Purton
    Nov 27 at 12:51










  • Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
    – Frank Science
    Nov 27 at 12:55















up vote
3
down vote













You can use $nsubseteq$ instead of $notsubseteq.



MWE



documentclass{article}
usepackage{amssymb}
begin{document}
Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Ansubseteq B$.
end{document}


HTML Source:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="temp245.tex">
<link rel="stylesheet" type="text/css" href="temp245.css">
</head><body
>
<!--l. 6--><p class="noindent" >Given two sets <span
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A </span><span
class="msbm-10">⊈ </span><span
class="cmmi-10">B</span>.
</body></html>


Rendered HTML:



Given two sets A,B such that A is not a subset of B, i.e., AB.






share|improve this answer





















  • Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
    – Frank Science
    Nov 27 at 12:46










  • @FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
    – David Purton
    Nov 27 at 12:51










  • Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
    – Frank Science
    Nov 27 at 12:55













up vote
3
down vote










up vote
3
down vote









You can use $nsubseteq$ instead of $notsubseteq.



MWE



documentclass{article}
usepackage{amssymb}
begin{document}
Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Ansubseteq B$.
end{document}


HTML Source:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="temp245.tex">
<link rel="stylesheet" type="text/css" href="temp245.css">
</head><body
>
<!--l. 6--><p class="noindent" >Given two sets <span
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A </span><span
class="msbm-10">⊈ </span><span
class="cmmi-10">B</span>.
</body></html>


Rendered HTML:



Given two sets A,B such that A is not a subset of B, i.e., AB.






share|improve this answer












You can use $nsubseteq$ instead of $notsubseteq.



MWE



documentclass{article}
usepackage{amssymb}
begin{document}
Given two sets $A,B$ such that $A$ is not a subset of $B$, i.e., $Ansubseteq B$.
end{document}


HTML Source:



<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"  
"http://www.w3.org/TR/html4/loose.dtd">
<html >
<head><title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="generator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<meta name="originator" content="TeX4ht (http://www.tug.org/tex4ht/)">
<!-- html -->
<meta name="src" content="temp245.tex">
<link rel="stylesheet" type="text/css" href="temp245.css">
</head><body
>
<!--l. 6--><p class="noindent" >Given two sets <span
class="cmmi-10">A,B </span>such that <span
class="cmmi-10">A </span>is not a subset of <span
class="cmmi-10">B</span>, i.e., <span
class="cmmi-10">A </span><span
class="msbm-10">⊈ </span><span
class="cmmi-10">B</span>.
</body></html>


Rendered HTML:



Given two sets A,B such that A is not a subset of B, i.e., AB.







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 27 at 12:33









David Purton

8,4611834




8,4611834












  • Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
    – Frank Science
    Nov 27 at 12:46










  • @FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
    – David Purton
    Nov 27 at 12:51










  • Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
    – Frank Science
    Nov 27 at 12:55


















  • Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
    – Frank Science
    Nov 27 at 12:46










  • @FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
    – David Purton
    Nov 27 at 12:51










  • Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
    – Frank Science
    Nov 27 at 12:55
















Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
– Frank Science
Nov 27 at 12:46




Thanks. In fact, I knew nsubseteq. I am, however, trying to understand whether we can make not generally working.
– Frank Science
Nov 27 at 12:46












@FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
– David Purton
Nov 27 at 12:51




@FrankScience, oh! Sorry, misunderstood. I don't know, but interesting question.
– David Purton
Nov 27 at 12:51












Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
– Frank Science
Nov 27 at 12:55




Well, that's due to the fact that I did not succeed to properly phrase the question, not a mistake from your part. And this answer should be useful for others (for example, it will be shown in the result of googling tex4ebook not subseteq).
– Frank Science
Nov 27 at 12:55


















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%2f461980%2ftex4ht-doesnt-render-not-correctly%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

AnyDesk - Fatal Program Failure

How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

QoS: MAC-Priority for clients behind a repeater