Memoir: treating a section as an appendixAppendix changes sections and figures numberingMissing section links...
You look catfish vs You look like a catfish?
Is Cola "probably the best-known" Latin word in the world? If not, which might it be?
How to scale a verbatim environment on a minipage?
Can commander tax be proliferated?
How to assert on pagereference where the endpoint of pagereference is predefined
When and why did journal article titles become descriptive, rather than creatively allusive?
What is the most remote airport from the center of the city it supposedly serves?
Why do freehub and cassette have only one position that matches?
How did Arya manage to disguise herself?
Packet sniffer for MacOS Mojave and above
Is it cheaper to drop cargo than to land it?
Can a cyclic Amine form an Amide?
Power LED from 3.3V Power Pin without Resistor
Junior developer struggles: how to communicate with management?
Field Length Validation for Desktop Application which has maximum 1000 characters
CRT Oscilloscope - part of the plot is missing
Why are there synthetic chemicals in our bodies? Where do they come from?
A non-technological, repeating, phenomenon in the sky, holding its position in the sky for hours
How to efficiently calculate prefix sum of frequencies of characters in a string?
Can fracking help reduce CO2?
Why does my Macbook overheat and use so much CPU and energy when on YouTube?
Does hiding behind 5-ft-wide cover give full cover?
What was the state of the German rail system in 1944?
Pigeonhole Principle Problem
Memoir: treating a section as an appendix
Appendix changes sections and figures numberingMissing section links in table of contents (memoir class, custom section headings)How to change the title alignment just for the appendix sections?KOMA-Script's scrreprt and appendixMake appendix files work for both book and article document classesHow to number subsection of a nonumber section?Formatting Appendix Labels and its TOC Entry in the Report Document ClassBefore first section in a chapter, how to make numbering 1.x instead of 1.0.x?Adjust section numbering in table of contectsRename appendix section in a single chapter
We have an in-house document class which is based on memoir. For some smaller documents we don't want chapters so we effectively promote sections to be chapters as in my MWE. My question is how can I create an Appendix in this case? The appendix command formats subsequent chapters as appendices, but I don't have chapters and I want subsequent sections to become appendices.
My MWE gets some of the way there (for simplicity using memoir itself, not our class based on it):
documentclass{memoir}
usepackage{hyperref}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change the section commands because we don't have chapters %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
renewcommand{thesection}{arabic{section}}
renewcommand{thesubsection}{arabic{section}.arabic{subsection}}
renewcommand{thesubsubsection}{arabic{section}.arabic{subsection}.arabic{subsubsection}.}
renewcommand{thechapter}{thesection}
mainmatter
section{Helium}
section{Alpha particles}
See autoref{app:numden}
appendix
renewcommand{thesection}{Alph{section}}
section{Number densities}
label{app:numden}
end{document}
The appendix command restarts the section numbering from 1, and I can change this to "A" using renewcommand{thesection}{Alph{section}}
. However, when I reference the appendix, as I do with autoref{app:numden}
, It says "section A" where I want this to say "Appendix A". Of course I could faff around with how I typeset the cross-reference at that point, but how do I get a section to be properly treated as an appendix as it would in the article class?
sectioning cross-referencing memoir appendices
bumped to the homepage by Community♦ 48 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
We have an in-house document class which is based on memoir. For some smaller documents we don't want chapters so we effectively promote sections to be chapters as in my MWE. My question is how can I create an Appendix in this case? The appendix command formats subsequent chapters as appendices, but I don't have chapters and I want subsequent sections to become appendices.
My MWE gets some of the way there (for simplicity using memoir itself, not our class based on it):
documentclass{memoir}
usepackage{hyperref}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change the section commands because we don't have chapters %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
renewcommand{thesection}{arabic{section}}
renewcommand{thesubsection}{arabic{section}.arabic{subsection}}
renewcommand{thesubsubsection}{arabic{section}.arabic{subsection}.arabic{subsubsection}.}
renewcommand{thechapter}{thesection}
mainmatter
section{Helium}
section{Alpha particles}
See autoref{app:numden}
appendix
renewcommand{thesection}{Alph{section}}
section{Number densities}
label{app:numden}
end{document}
The appendix command restarts the section numbering from 1, and I can change this to "A" using renewcommand{thesection}{Alph{section}}
. However, when I reference the appendix, as I do with autoref{app:numden}
, It says "section A" where I want this to say "Appendix A". Of course I could faff around with how I typeset the cross-reference at that point, but how do I get a section to be properly treated as an appendix as it would in the article class?
sectioning cross-referencing memoir appendices
bumped to the homepage by Community♦ 48 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Have you looked at memoir'ssubappendices
environment and thenamedsubappendices
command?
– gusbrs
May 4 '18 at 13:19
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21
add a comment |
We have an in-house document class which is based on memoir. For some smaller documents we don't want chapters so we effectively promote sections to be chapters as in my MWE. My question is how can I create an Appendix in this case? The appendix command formats subsequent chapters as appendices, but I don't have chapters and I want subsequent sections to become appendices.
My MWE gets some of the way there (for simplicity using memoir itself, not our class based on it):
documentclass{memoir}
usepackage{hyperref}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change the section commands because we don't have chapters %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
renewcommand{thesection}{arabic{section}}
renewcommand{thesubsection}{arabic{section}.arabic{subsection}}
renewcommand{thesubsubsection}{arabic{section}.arabic{subsection}.arabic{subsubsection}.}
renewcommand{thechapter}{thesection}
mainmatter
section{Helium}
section{Alpha particles}
See autoref{app:numden}
appendix
renewcommand{thesection}{Alph{section}}
section{Number densities}
label{app:numden}
end{document}
The appendix command restarts the section numbering from 1, and I can change this to "A" using renewcommand{thesection}{Alph{section}}
. However, when I reference the appendix, as I do with autoref{app:numden}
, It says "section A" where I want this to say "Appendix A". Of course I could faff around with how I typeset the cross-reference at that point, but how do I get a section to be properly treated as an appendix as it would in the article class?
sectioning cross-referencing memoir appendices
We have an in-house document class which is based on memoir. For some smaller documents we don't want chapters so we effectively promote sections to be chapters as in my MWE. My question is how can I create an Appendix in this case? The appendix command formats subsequent chapters as appendices, but I don't have chapters and I want subsequent sections to become appendices.
My MWE gets some of the way there (for simplicity using memoir itself, not our class based on it):
documentclass{memoir}
usepackage{hyperref}
begin{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Change the section commands because we don't have chapters %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
renewcommand{thesection}{arabic{section}}
renewcommand{thesubsection}{arabic{section}.arabic{subsection}}
renewcommand{thesubsubsection}{arabic{section}.arabic{subsection}.arabic{subsubsection}.}
renewcommand{thechapter}{thesection}
mainmatter
section{Helium}
section{Alpha particles}
See autoref{app:numden}
appendix
renewcommand{thesection}{Alph{section}}
section{Number densities}
label{app:numden}
end{document}
The appendix command restarts the section numbering from 1, and I can change this to "A" using renewcommand{thesection}{Alph{section}}
. However, when I reference the appendix, as I do with autoref{app:numden}
, It says "section A" where I want this to say "Appendix A". Of course I could faff around with how I typeset the cross-reference at that point, but how do I get a section to be properly treated as an appendix as it would in the article class?
sectioning cross-referencing memoir appendices
sectioning cross-referencing memoir appendices
edited May 4 '18 at 12:26
Troy
11.1k62368
11.1k62368
asked May 4 '18 at 11:17
Simon RichardsSimon Richards
211
211
bumped to the homepage by Community♦ 48 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 48 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Have you looked at memoir'ssubappendices
environment and thenamedsubappendices
command?
– gusbrs
May 4 '18 at 13:19
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21
add a comment |
Have you looked at memoir'ssubappendices
environment and thenamedsubappendices
command?
– gusbrs
May 4 '18 at 13:19
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21
Have you looked at memoir's
subappendices
environment and the namedsubappendices
command?– gusbrs
May 4 '18 at 13:19
Have you looked at memoir's
subappendices
environment and the namedsubappendices
command?– gusbrs
May 4 '18 at 13:19
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21
add a comment |
1 Answer
1
active
oldest
votes
I'm not sure if it's bad form to answer my own question, but on the specific point of referencing the appendix as "Appendix A" a solution is to define a new command:
newcommand{appref}[1]{hyperref[#1]{Appendix~ref{#1}}}
and us this in place of autoref. However, if anyone has a more elegant solution to the issue of getting appendix to treat section as an appendix in memoir (or I guess any class with chapters) I would still be interested.
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%2f430027%2fmemoir-treating-a-section-as-an-appendix%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
I'm not sure if it's bad form to answer my own question, but on the specific point of referencing the appendix as "Appendix A" a solution is to define a new command:
newcommand{appref}[1]{hyperref[#1]{Appendix~ref{#1}}}
and us this in place of autoref. However, if anyone has a more elegant solution to the issue of getting appendix to treat section as an appendix in memoir (or I guess any class with chapters) I would still be interested.
add a comment |
I'm not sure if it's bad form to answer my own question, but on the specific point of referencing the appendix as "Appendix A" a solution is to define a new command:
newcommand{appref}[1]{hyperref[#1]{Appendix~ref{#1}}}
and us this in place of autoref. However, if anyone has a more elegant solution to the issue of getting appendix to treat section as an appendix in memoir (or I guess any class with chapters) I would still be interested.
add a comment |
I'm not sure if it's bad form to answer my own question, but on the specific point of referencing the appendix as "Appendix A" a solution is to define a new command:
newcommand{appref}[1]{hyperref[#1]{Appendix~ref{#1}}}
and us this in place of autoref. However, if anyone has a more elegant solution to the issue of getting appendix to treat section as an appendix in memoir (or I guess any class with chapters) I would still be interested.
I'm not sure if it's bad form to answer my own question, but on the specific point of referencing the appendix as "Appendix A" a solution is to define a new command:
newcommand{appref}[1]{hyperref[#1]{Appendix~ref{#1}}}
and us this in place of autoref. However, if anyone has a more elegant solution to the issue of getting appendix to treat section as an appendix in memoir (or I guess any class with chapters) I would still be interested.
answered May 4 '18 at 12:00
Simon RichardsSimon Richards
1
1
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%2f430027%2fmemoir-treating-a-section-as-an-appendix%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
Have you looked at memoir's
subappendices
environment and thenamedsubappendices
command?– gusbrs
May 4 '18 at 13:19
Just as a matter of style, memoir allows to use the class option 'article'. With this option, chapters are styled as section headers. Maybe that solves your problem, that seems like a mix between visual appeareance and meaning of instructions.
– djnavas
Jul 29 '18 at 7:21