How to display a chapter / section reference in the pattern (chapter n section m), where n is the chapter...

Where was Karl Mordo in Infinity War?

Can this function be rewritten with a regex?

Find the next monthly expiration date

Must a tritone substitution use a dominant seventh chord?

Book where the good guy lives backwards through time and the bad guy lives forward

How to count occurrences of Friday 13th

How can atoms be electrically neutral when there is a difference in the positions of the charges?

What is the difference between ashamed and shamed?

How can I be pwned if I'm not registered on that site?

Auto Insert date into Notepad

Most significant research articles for practical investors with research perspectives

How do I construct an nxn matrix?

I encountered my boss during an on-site interview at another company. Should I bring it up when seeing him next time?

Is there any relevance to Thor getting his hair cut other than comedic value?

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Called into a meeting and told we are being made redundant (laid off) and "not to share outside". Can I tell my partner?

What is the difference between throw e and throw new Exception(e)?

Are small insurances worth it

Make me a metasequence

Is there a German word for “analytics”?

Why does Starman/Roadster have radial acceleration?

Should I choose Itemized or Standard deduction?

How can I handle a player who pre-plans arguments about my rulings on RAW?

Why might Google Analytics report a sudden, but persistent, drop in bounce rate (70% to 12%)



How to display a chapter / section reference in the pattern (chapter n section m), where n is the chapter number and m the section path


how to get the current chapter name, section name, subsection name, etc?Reference that includes section number and nameHow to reference an unnumbered section by writing a number?Automatically insert “in the next [chapter/section/subsection]” if reference is sequentialDisplay Chapter Label and Number Below Chapter Title in Memoir ClassHow to hide number of every chapter?Cross-reference differently depending on whether we are in the same part/chapter/sectionRenumbering chapter after part, include part number as suffix in cross-reference to chapter numberAdd the chapter number when referencing a section (without the chapter number in the section name)How to reference the section and part number of an object using the label of the object













0















I have the following content structure:



chapter{Kapitel 1}
label{ch:c_1}
section{Abschnitt 1}
subsection{Unterabschnitt 1}
subsection{Unterabschnitt 2}
label{ch:u_a_2}


The goal is a chapter reference. When I want to refer to a chapter (ch:c_1) the output should look like this:



In Chapter 1 you can see...



When I want to refer to a section or subsection (ch:u_a_2) the output should look like this:



In Chapter 1 Section 1.2 you can see...



Is there any package I can use?




The Answer


With the package cleveref you can write cref{ch:c_1} cref{ch:u_a_2}
If you want to change the naming of the default ones you can use crefname in the following way (german example):



crefname{chapter}{Kapitel}{Kapitel}
crefname{section}{Abschnitt}{Abschnitte}









share|improve this question









New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

    – Christian Hupfer
    14 hours ago













  • And this is surely a duplicate

    – Christian Hupfer
    14 hours ago











  • I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

    – dodo978
    14 hours ago











  • As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

    – Christian Hupfer
    14 hours ago











  • The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

    – Christian Hupfer
    14 hours ago


















0















I have the following content structure:



chapter{Kapitel 1}
label{ch:c_1}
section{Abschnitt 1}
subsection{Unterabschnitt 1}
subsection{Unterabschnitt 2}
label{ch:u_a_2}


The goal is a chapter reference. When I want to refer to a chapter (ch:c_1) the output should look like this:



In Chapter 1 you can see...



When I want to refer to a section or subsection (ch:u_a_2) the output should look like this:



In Chapter 1 Section 1.2 you can see...



Is there any package I can use?




The Answer


With the package cleveref you can write cref{ch:c_1} cref{ch:u_a_2}
If you want to change the naming of the default ones you can use crefname in the following way (german example):



crefname{chapter}{Kapitel}{Kapitel}
crefname{section}{Abschnitt}{Abschnitte}









share|improve this question









New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

    – Christian Hupfer
    14 hours ago













  • And this is surely a duplicate

    – Christian Hupfer
    14 hours ago











  • I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

    – dodo978
    14 hours ago











  • As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

    – Christian Hupfer
    14 hours ago











  • The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

    – Christian Hupfer
    14 hours ago
















0












0








0








I have the following content structure:



chapter{Kapitel 1}
label{ch:c_1}
section{Abschnitt 1}
subsection{Unterabschnitt 1}
subsection{Unterabschnitt 2}
label{ch:u_a_2}


The goal is a chapter reference. When I want to refer to a chapter (ch:c_1) the output should look like this:



In Chapter 1 you can see...



When I want to refer to a section or subsection (ch:u_a_2) the output should look like this:



In Chapter 1 Section 1.2 you can see...



Is there any package I can use?




The Answer


With the package cleveref you can write cref{ch:c_1} cref{ch:u_a_2}
If you want to change the naming of the default ones you can use crefname in the following way (german example):



crefname{chapter}{Kapitel}{Kapitel}
crefname{section}{Abschnitt}{Abschnitte}









share|improve this question









New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have the following content structure:



chapter{Kapitel 1}
label{ch:c_1}
section{Abschnitt 1}
subsection{Unterabschnitt 1}
subsection{Unterabschnitt 2}
label{ch:u_a_2}


The goal is a chapter reference. When I want to refer to a chapter (ch:c_1) the output should look like this:



In Chapter 1 you can see...



When I want to refer to a section or subsection (ch:u_a_2) the output should look like this:



In Chapter 1 Section 1.2 you can see...



Is there any package I can use?




The Answer


With the package cleveref you can write cref{ch:c_1} cref{ch:u_a_2}
If you want to change the naming of the default ones you can use crefname in the following way (german example):



crefname{chapter}{Kapitel}{Kapitel}
crefname{section}{Abschnitt}{Abschnitte}






cross-referencing chapters






share|improve this question









New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 14 hours ago







dodo978













New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 14 hours ago









dodo978dodo978

12




12




New contributor




dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






dodo978 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

    – Christian Hupfer
    14 hours ago













  • And this is surely a duplicate

    – Christian Hupfer
    14 hours ago











  • I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

    – dodo978
    14 hours ago











  • As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

    – Christian Hupfer
    14 hours ago











  • The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

    – Christian Hupfer
    14 hours ago





















  • Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

    – Christian Hupfer
    14 hours ago













  • And this is surely a duplicate

    – Christian Hupfer
    14 hours ago











  • I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

    – dodo978
    14 hours ago











  • As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

    – Christian Hupfer
    14 hours ago











  • The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

    – Christian Hupfer
    14 hours ago



















Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

– Christian Hupfer
14 hours ago







Cref{ch:c_1} Cref{ch:u_a_2}, using the cleveref package in conjunction with the ngerman option of the babel package. The naming scheme of your labels is error-prone, however. Make sure to load the cleveref package as the last one of all

– Christian Hupfer
14 hours ago















And this is surely a duplicate

– Christian Hupfer
14 hours ago





And this is surely a duplicate

– Christian Hupfer
14 hours ago













I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

– dodo978
14 hours ago





I thought it would be possible in just one command. Thank you everything worked fine. Is there a possibility to change the naming of chapter and section?

– dodo978
14 hours ago













As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

– Christian Hupfer
14 hours ago





As I wrote: Use the ngerman option to the document class and babel and you will get Kapitel etc. Please see the manual as well -- reading it does not hurt ;-)

– Christian Hupfer
14 hours ago













The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

– Christian Hupfer
14 hours ago







The plural form of Kapitel is Kapitel, not Kapitel, as well Abschnitte and not Abschnitts ;-)

– Christian Hupfer
14 hours ago












0






active

oldest

votes











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
});


}
});






dodo978 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477659%2fhow-to-display-a-chapter-section-reference-in-the-pattern-chapter-n-section-m%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes








dodo978 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















dodo978 is a new contributor. Be nice, and check out our Code of Conduct.













dodo978 is a new contributor. Be nice, and check out our Code of Conduct.












dodo978 is a new contributor. Be nice, and check out our Code of Conduct.
















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.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f477659%2fhow-to-display-a-chapter-section-reference-in-the-pattern-chapter-n-section-m%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

El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

Castillo d'Acher Características Menú de navegación

Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...