section numbering in tex4ht using memoir class with article optionFirst paragraph of section becomes indented...
What is this high flying aircraft over Pennsylvania?
Unable to disable Microsoft Store in domain environment
Cumulative Sum using Java 8 stream API
Telemetry for feature health
Anime with legendary swords made from talismans and a man who could change them with a shattered body
Deciphering cause of death?
I'm just a whisper. Who am I?
Limit max CPU usage SQL SERVER with WSRM
ContourPlot — How do I color by contour curvature?
Isometric embedding of a genus g surface
Proving a complicated language is not a CFL
Possible Eco thriller, man invents a device to remove rain from glass
Why would five hundred and five be same as one?
Ways of geometrical multiplication
What is the meaning of "You've never met a graph you didn't like?"
Has the laser at Magurele, Romania reached a tenth of the Sun's power?
How to get directions in deep space?
Would this string work as string?
How would a solely written language work mechanically
Should I warn a new PhD Student?
Origin of pigs as a species
What's the name of the logical fallacy where a debater extends a statement far beyond the original statement to make it true?
What happens if I try to grapple mirror image?
Are Captain Marvel's powers affected by Thanos breaking the Tesseract and claiming the stone?
section numbering in tex4ht using memoir class with article option
First paragraph of section becomes indented after setting setbeforesecskip (memoir class)How do I prevent duplicate Glossaries section title when redefining page styles in Memoir class?How to have an amsart-like subsection styleUsing section*{} messes up equation numbering?tex4ht fails to compile footnote when there is blank line with scrartcl classHanging styled section numbers in memoir classTeX4ht fails to insert </div> at end{center} with standalone classMemoir: treating a section as an appendixRe-displaying section headings after page-breaks (memoir documentclass)Reledmac and Memoir: Line numbering and sidenotes do not work with sections/chapters
tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when outputting to .odt using tex4ht (but not when using xetex).
Is this a bug? If not, is there a way for me to modify this behavior?
sectioning memoir tex4ht latex-to-word
add a comment |
tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when outputting to .odt using tex4ht (but not when using xetex).
Is this a bug? If not, is there a way for me to modify this behavior?
sectioning memoir tex4ht latex-to-word
Oops, I realized that I was totally confused about this one. I had assumed that thearticleoption was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to getxetexto do it right. And nowtex4htdoes it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?
– Alex Roberts
Feb 10 at 1:37
1
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday
add a comment |
tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when outputting to .odt using tex4ht (but not when using xetex).
Is this a bug? If not, is there a way for me to modify this behavior?
sectioning memoir tex4ht latex-to-word
tex4ht seems to ignore the article option in the memoir class. I say this because section numbers (and the corresponding cross-references) appear as 0.1, 0.2, etc. instead of 1, 2, etc. when outputting to .odt using tex4ht (but not when using xetex).
Is this a bug? If not, is there a way for me to modify this behavior?
sectioning memoir tex4ht latex-to-word
sectioning memoir tex4ht latex-to-word
asked Feb 8 at 23:57
Alex RobertsAlex Roberts
624311
624311
Oops, I realized that I was totally confused about this one. I had assumed that thearticleoption was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to getxetexto do it right. And nowtex4htdoes it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?
– Alex Roberts
Feb 10 at 1:37
1
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday
add a comment |
Oops, I realized that I was totally confused about this one. I had assumed that thearticleoption was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to getxetexto do it right. And nowtex4htdoes it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?
– Alex Roberts
Feb 10 at 1:37
1
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday
Oops, I realized that I was totally confused about this one. I had assumed that the
article option was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to get xetex to do it right. And now tex4ht does it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?– Alex Roberts
Feb 10 at 1:37
Oops, I realized that I was totally confused about this one. I had assumed that the
article option was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to get xetex to do it right. And now tex4ht does it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?– Alex Roberts
Feb 10 at 1:37
1
1
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday
add a comment |
1 Answer
1
active
oldest
votes
As I mentioned in a comment, I realized that the problem had nothing to do with tex4ht but rather I was simply mistaken about memoir's default. So the answer is:
To achieve the desired output, one must add the line renewcommand*{thesection}{arabic{section}} to the preamble.
MWE:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[12pt,article,oldfontcommands]{memoir}
renewcommand*{thesection}{arabic{section}}
begin{document}
section{first section}
Should be section 1 but is instead section 0.1.
end{document}
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%2f474002%2fsection-numbering-in-tex4ht-using-memoir-class-with-article-option%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
As I mentioned in a comment, I realized that the problem had nothing to do with tex4ht but rather I was simply mistaken about memoir's default. So the answer is:
To achieve the desired output, one must add the line renewcommand*{thesection}{arabic{section}} to the preamble.
MWE:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[12pt,article,oldfontcommands]{memoir}
renewcommand*{thesection}{arabic{section}}
begin{document}
section{first section}
Should be section 1 but is instead section 0.1.
end{document}
add a comment |
As I mentioned in a comment, I realized that the problem had nothing to do with tex4ht but rather I was simply mistaken about memoir's default. So the answer is:
To achieve the desired output, one must add the line renewcommand*{thesection}{arabic{section}} to the preamble.
MWE:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[12pt,article,oldfontcommands]{memoir}
renewcommand*{thesection}{arabic{section}}
begin{document}
section{first section}
Should be section 1 but is instead section 0.1.
end{document}
add a comment |
As I mentioned in a comment, I realized that the problem had nothing to do with tex4ht but rather I was simply mistaken about memoir's default. So the answer is:
To achieve the desired output, one must add the line renewcommand*{thesection}{arabic{section}} to the preamble.
MWE:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[12pt,article,oldfontcommands]{memoir}
renewcommand*{thesection}{arabic{section}}
begin{document}
section{first section}
Should be section 1 but is instead section 0.1.
end{document}
As I mentioned in a comment, I realized that the problem had nothing to do with tex4ht but rather I was simply mistaken about memoir's default. So the answer is:
To achieve the desired output, one must add the line renewcommand*{thesection}{arabic{section}} to the preamble.
MWE:
%!TEX TS-program = xelatex
%!TEX encoding = UTF-8 Unicode
documentclass[12pt,article,oldfontcommands]{memoir}
renewcommand*{thesection}{arabic{section}}
begin{document}
section{first section}
Should be section 1 but is instead section 0.1.
end{document}
answered 6 mins ago
Alex RobertsAlex Roberts
624311
624311
add a comment |
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%2f474002%2fsection-numbering-in-tex4ht-using-memoir-class-with-article-option%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
Oops, I realized that I was totally confused about this one. I had assumed that the
articleoption was supposed to do the trick, but now I realize that I needed to add an extra line (renewcommand*{thesection}{arabic{section}}) to getxetexto do it right. And nowtex4htdoes it right too. What is the right TeX.SE protocol? Should I delete/close this question? Should I "answer" my own question and thus close it? Or should I just leave it as is with apologies for being too quick to post it?– Alex Roberts
Feb 10 at 1:37
1
I think it would be best to add your own answer with the correct code, to help people with the same issue in the future.
– michal.h21
yesterday