How to refer to a subsection of a starred section?How to label-ref an un-numbered...

How to prevent YouTube from showing already watched videos?

What will be the benefits of Brexit?

Proof of Lemma: Every integer can be written as a product of primes

Simple image editor tool to draw a simple box/rectangle in an existing image

Meta programming: Declare a new struct on the fly

What (else) happened July 1st 1858 in London?

Simulating a probability of 1 of 2^N with less than N random bits

Installing PowerShell on 32-bit Kali OS fails

How can I raise concerns with a new DM about XP splitting?

How will losing mobility of one hand affect my career as a programmer?

Java - What do constructor type arguments mean when placed *before* the type?

Bob has never been a M before

What is Sitecore Managed Cloud?

Is there an wasy way to program in Tikz something like the one in the image?

Teaching indefinite integrals that require special-casing

Can I rely on these GitHub repository files?

What does the "3am" section means in manpages?

How to interpret the phrase "t’en a fait voir à toi"?

What to do when my ideas aren't chosen, when I strongly disagree with the chosen solution?

What if somebody invests in my application?

Why does this part of the Space Shuttle launch pad seem to be floating in air?

Are taller landing gear bad for aircraft, particulary large airliners?

word describing multiple paths to the same abstract outcome

Who must act to prevent Brexit on March 29th?



How to refer to a subsection of a starred section?


How to label-ref an un-numbered sectionsubsection{citeauthor{some-bib-ref}} => “Token not allowed in PDF string”Reference to an unnumbered sectionPut a link to the last section of a documentHow to refer to a figure or table and have its number printed instead of the section number?tocloft cross-references a section as a subsectionReferencing formula before defining itRefer to section containing a labeled subsectionCross-referencing page range of the whole section with one labelHow to identify and fix wrong hyperref local PDF links?Include section number in reference to subsection













0















In How to label-ref an un-numbered section, Nathan Grigg pointed out that one could use the hyperref commmand to create a link to a starred section as follows



documentclass{article}
usepackage{hyperref}
begin{document}
section*{Preface to the article}
label{s:intro}
hyperref[s:intro]{Introduction}
end{document}


My question now is how to create a link to a numbered subsection of that starred section?










share|improve this question
















bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Using phantomsection?

    – marmot
    Feb 23 at 5:34











  • Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

    – Mico
    Feb 23 at 5:52













  • How do you number subsections of an unnumbered section?

    – egreg
    Feb 23 at 10:04
















0















In How to label-ref an un-numbered section, Nathan Grigg pointed out that one could use the hyperref commmand to create a link to a starred section as follows



documentclass{article}
usepackage{hyperref}
begin{document}
section*{Preface to the article}
label{s:intro}
hyperref[s:intro]{Introduction}
end{document}


My question now is how to create a link to a numbered subsection of that starred section?










share|improve this question
















bumped to the homepage by Community 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.











  • 1





    Using phantomsection?

    – marmot
    Feb 23 at 5:34











  • Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

    – Mico
    Feb 23 at 5:52













  • How do you number subsections of an unnumbered section?

    – egreg
    Feb 23 at 10:04














0












0








0








In How to label-ref an un-numbered section, Nathan Grigg pointed out that one could use the hyperref commmand to create a link to a starred section as follows



documentclass{article}
usepackage{hyperref}
begin{document}
section*{Preface to the article}
label{s:intro}
hyperref[s:intro]{Introduction}
end{document}


My question now is how to create a link to a numbered subsection of that starred section?










share|improve this question
















In How to label-ref an un-numbered section, Nathan Grigg pointed out that one could use the hyperref commmand to create a link to a starred section as follows



documentclass{article}
usepackage{hyperref}
begin{document}
section*{Preface to the article}
label{s:intro}
hyperref[s:intro]{Introduction}
end{document}


My question now is how to create a link to a numbered subsection of that starred section?







hyperref cross-referencing starred-version






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 23 at 6:15









Mico

284k31388778




284k31388778










asked Feb 23 at 5:26









schremmerschremmer

8981015




8981015





bumped to the homepage by Community 8 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 8 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.










  • 1





    Using phantomsection?

    – marmot
    Feb 23 at 5:34











  • Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

    – Mico
    Feb 23 at 5:52













  • How do you number subsections of an unnumbered section?

    – egreg
    Feb 23 at 10:04














  • 1





    Using phantomsection?

    – marmot
    Feb 23 at 5:34











  • Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

    – Mico
    Feb 23 at 5:52













  • How do you number subsections of an unnumbered section?

    – egreg
    Feb 23 at 10:04








1




1





Using phantomsection?

– marmot
Feb 23 at 5:34





Using phantomsection?

– marmot
Feb 23 at 5:34













Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

– Mico
Feb 23 at 5:52







Why not cross-reference such a subsection the usual way, i.e., via label and ref (or autoref)? The "number" that gets used in such a cross-reference will look slightly odd, but that's because subsection numbers look odd too.

– Mico
Feb 23 at 5:52















How do you number subsections of an unnumbered section?

– egreg
Feb 23 at 10:04





How do you number subsections of an unnumbered section?

– egreg
Feb 23 at 10:04










1 Answer
1






active

oldest

votes


















0














Somehow, it was egreg's comment that gave me the hint. This is using cleveref AFTER hyperref:



documentclass{book}
usepackage{hyperref}
usepackage{cleveref}
crefname{subsection}{Subsection}{Subsections}
begin{document}
chapter{ONE}label{1-0-0}
section*{Starred Section}label{STR:1-0-0}
subsection{First subsection of the starred section}label{STR:1-0-1}
section{First emph{Non}-Starred Section}label{1-1-0}
subsection{First subsection of the first emph{non}-starred section}label{1-1-1}

cref{STR:1-0-1} nameref{STR:1-0-1} of the hyperref[STR:1-0-0]{Starred Section} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

cref{1-1-1} nameref{1-1-1} of cref{1-1-0} nameref{1-1-0} labelcref{1-1-0} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

end{document}


SubStarredSection






share|improve this answer























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


    }
    });














    draft saved

    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476280%2fhow-to-refer-to-a-subsection-of-a-starred-section%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









    0














    Somehow, it was egreg's comment that gave me the hint. This is using cleveref AFTER hyperref:



    documentclass{book}
    usepackage{hyperref}
    usepackage{cleveref}
    crefname{subsection}{Subsection}{Subsections}
    begin{document}
    chapter{ONE}label{1-0-0}
    section*{Starred Section}label{STR:1-0-0}
    subsection{First subsection of the starred section}label{STR:1-0-1}
    section{First emph{Non}-Starred Section}label{1-1-0}
    subsection{First subsection of the first emph{non}-starred section}label{1-1-1}

    cref{STR:1-0-1} nameref{STR:1-0-1} of the hyperref[STR:1-0-0]{Starred Section} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

    cref{1-1-1} nameref{1-1-1} of cref{1-1-0} nameref{1-1-0} labelcref{1-1-0} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

    end{document}


    SubStarredSection






    share|improve this answer




























      0














      Somehow, it was egreg's comment that gave me the hint. This is using cleveref AFTER hyperref:



      documentclass{book}
      usepackage{hyperref}
      usepackage{cleveref}
      crefname{subsection}{Subsection}{Subsections}
      begin{document}
      chapter{ONE}label{1-0-0}
      section*{Starred Section}label{STR:1-0-0}
      subsection{First subsection of the starred section}label{STR:1-0-1}
      section{First emph{Non}-Starred Section}label{1-1-0}
      subsection{First subsection of the first emph{non}-starred section}label{1-1-1}

      cref{STR:1-0-1} nameref{STR:1-0-1} of the hyperref[STR:1-0-0]{Starred Section} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

      cref{1-1-1} nameref{1-1-1} of cref{1-1-0} nameref{1-1-0} labelcref{1-1-0} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

      end{document}


      SubStarredSection






      share|improve this answer


























        0












        0








        0







        Somehow, it was egreg's comment that gave me the hint. This is using cleveref AFTER hyperref:



        documentclass{book}
        usepackage{hyperref}
        usepackage{cleveref}
        crefname{subsection}{Subsection}{Subsections}
        begin{document}
        chapter{ONE}label{1-0-0}
        section*{Starred Section}label{STR:1-0-0}
        subsection{First subsection of the starred section}label{STR:1-0-1}
        section{First emph{Non}-Starred Section}label{1-1-0}
        subsection{First subsection of the first emph{non}-starred section}label{1-1-1}

        cref{STR:1-0-1} nameref{STR:1-0-1} of the hyperref[STR:1-0-0]{Starred Section} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

        cref{1-1-1} nameref{1-1-1} of cref{1-1-0} nameref{1-1-0} labelcref{1-1-0} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

        end{document}


        SubStarredSection






        share|improve this answer













        Somehow, it was egreg's comment that gave me the hint. This is using cleveref AFTER hyperref:



        documentclass{book}
        usepackage{hyperref}
        usepackage{cleveref}
        crefname{subsection}{Subsection}{Subsections}
        begin{document}
        chapter{ONE}label{1-0-0}
        section*{Starred Section}label{STR:1-0-0}
        subsection{First subsection of the starred section}label{STR:1-0-1}
        section{First emph{Non}-Starred Section}label{1-1-0}
        subsection{First subsection of the first emph{non}-starred section}label{1-1-1}

        cref{STR:1-0-1} nameref{STR:1-0-1} of the hyperref[STR:1-0-0]{Starred Section} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

        cref{1-1-1} nameref{1-1-1} of cref{1-1-0} nameref{1-1-0} labelcref{1-1-0} of cref{1-0-0} nameref{1-0-0} on cpageref{1-0-0}

        end{document}


        SubStarredSection







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 24 at 0:21









        schremmerschremmer

        8981015




        8981015






























            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.




            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476280%2fhow-to-refer-to-a-subsection-of-a-starred-section%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

            Paper upload error, “Upload failed: The top margin is 0.715 in on page 3, which is below the required...

            Emraan Hashmi Filmografia | Linki zewnętrzne | Menu nawigacyjneGulshan GroverGulshan...

            How can I write this formula?newline and italics added with leqWhy does widehat behave differently if I...