subsection command not working in elsevier LaTeX template












1















I am working on Elsevier template with a single column format, I am facing an issue with subsections command not working as they are displayed like a normal section with wrong numbering, for example



documentclass[a4paper,fleqn]{cas-sc}
begin{document}
section{A}
subsection{AA}
subsubsection{BB}
end{document}


The output is like this. All sections with no subsection numbering.



Can anyone help me on how to fix this issue?










share|improve this question























  • @campa sorry, I could not understand your response. What is correct?

    – Noman Bashir
    Feb 15 at 16:01











  • @campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

    – Phelype Oleinik
    Feb 15 at 16:01













  • campa replied to a comment I deleted, so it looked out of context.

    – Phelype Oleinik
    Feb 15 at 16:02













  • Okay, what is the final situation now?

    – Noman Bashir
    Feb 15 at 16:02











  • Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

    – Phelype Oleinik
    Feb 15 at 16:07


















1















I am working on Elsevier template with a single column format, I am facing an issue with subsections command not working as they are displayed like a normal section with wrong numbering, for example



documentclass[a4paper,fleqn]{cas-sc}
begin{document}
section{A}
subsection{AA}
subsubsection{BB}
end{document}


The output is like this. All sections with no subsection numbering.



Can anyone help me on how to fix this issue?










share|improve this question























  • @campa sorry, I could not understand your response. What is correct?

    – Noman Bashir
    Feb 15 at 16:01











  • @campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

    – Phelype Oleinik
    Feb 15 at 16:01













  • campa replied to a comment I deleted, so it looked out of context.

    – Phelype Oleinik
    Feb 15 at 16:02













  • Okay, what is the final situation now?

    – Noman Bashir
    Feb 15 at 16:02











  • Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

    – Phelype Oleinik
    Feb 15 at 16:07
















1












1








1








I am working on Elsevier template with a single column format, I am facing an issue with subsections command not working as they are displayed like a normal section with wrong numbering, for example



documentclass[a4paper,fleqn]{cas-sc}
begin{document}
section{A}
subsection{AA}
subsubsection{BB}
end{document}


The output is like this. All sections with no subsection numbering.



Can anyone help me on how to fix this issue?










share|improve this question














I am working on Elsevier template with a single column format, I am facing an issue with subsections command not working as they are displayed like a normal section with wrong numbering, for example



documentclass[a4paper,fleqn]{cas-sc}
begin{document}
section{A}
subsection{AA}
subsubsection{BB}
end{document}


The output is like this. All sections with no subsection numbering.



Can anyone help me on how to fix this issue?







elsevier






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 15 at 15:52









Noman BashirNoman Bashir

82




82













  • @campa sorry, I could not understand your response. What is correct?

    – Noman Bashir
    Feb 15 at 16:01











  • @campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

    – Phelype Oleinik
    Feb 15 at 16:01













  • campa replied to a comment I deleted, so it looked out of context.

    – Phelype Oleinik
    Feb 15 at 16:02













  • Okay, what is the final situation now?

    – Noman Bashir
    Feb 15 at 16:02











  • Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

    – Phelype Oleinik
    Feb 15 at 16:07





















  • @campa sorry, I could not understand your response. What is correct?

    – Noman Bashir
    Feb 15 at 16:01











  • @campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

    – Phelype Oleinik
    Feb 15 at 16:01













  • campa replied to a comment I deleted, so it looked out of context.

    – Phelype Oleinik
    Feb 15 at 16:02













  • Okay, what is the final situation now?

    – Noman Bashir
    Feb 15 at 16:02











  • Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

    – Phelype Oleinik
    Feb 15 at 16:07



















@campa sorry, I could not understand your response. What is correct?

– Noman Bashir
Feb 15 at 16:01





@campa sorry, I could not understand your response. What is correct?

– Noman Bashir
Feb 15 at 16:01













@campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

– Phelype Oleinik
Feb 15 at 16:01







@campa I just googled it (after commenting) and found it. Would you look at that, Elsevier switched to expl3 :). Well, then I think this is the expected behaviour...

– Phelype Oleinik
Feb 15 at 16:01















campa replied to a comment I deleted, so it looked out of context.

– Phelype Oleinik
Feb 15 at 16:02







campa replied to a comment I deleted, so it looked out of context.

– Phelype Oleinik
Feb 15 at 16:02















Okay, what is the final situation now?

– Noman Bashir
Feb 15 at 16:02





Okay, what is the final situation now?

– Noman Bashir
Feb 15 at 16:02













Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

– Phelype Oleinik
Feb 15 at 16:07







Your example is minimal and there is nothing wrong with it, so it's not your fault. I think you'd need to contact the Elsevier support and ask it there. There are two possibilities: 1) This is a design choice and you have to live with it. 2) It's a bug and they need to fix it (looks more like it). Either way, only they know the answer, unfortunately.

– Phelype Oleinik
Feb 15 at 16:07












1 Answer
1






active

oldest

votes


















1














Yes, definitely a bug :)



The definition of section, subsection, and subsubsection in cas-common.sty uses the same counter, section, for all three levels. (i.e.: @startsection{section}...). If you copy that definition and use the correct counters the output looks correct:




enter image description here




documentclass[a4paper,fleqn]{cas-sc}

begin{document}

makeatletter
renewcommandsection{@startsection{section}{1}{z@}%
{15pt @plus 3p@ @minus 3p@}%
{4p@}%
{%let@hangfromrelax
sectionfontraggedrighthst[13pt]}}
renewcommandsubsection{@startsection{subsection}{2}{z@}%
{10pt @plus 3p@ @minus 2p@}%
{.1p@}%
{%let@hangfromrelax
ssectionfontraggedright }}
renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
{10pt @plus 1p@ @minus .3p@}%
{.1p@}%
{%let@hangfromrelax
sssectionfontraggedright}}
makeatother

section{A}
subsection{AA}
subsubsection{BB}

end{document}





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%2f475049%2fsubsection-command-not-working-in-elsevier-latex-template%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









    1














    Yes, definitely a bug :)



    The definition of section, subsection, and subsubsection in cas-common.sty uses the same counter, section, for all three levels. (i.e.: @startsection{section}...). If you copy that definition and use the correct counters the output looks correct:




    enter image description here




    documentclass[a4paper,fleqn]{cas-sc}

    begin{document}

    makeatletter
    renewcommandsection{@startsection{section}{1}{z@}%
    {15pt @plus 3p@ @minus 3p@}%
    {4p@}%
    {%let@hangfromrelax
    sectionfontraggedrighthst[13pt]}}
    renewcommandsubsection{@startsection{subsection}{2}{z@}%
    {10pt @plus 3p@ @minus 2p@}%
    {.1p@}%
    {%let@hangfromrelax
    ssectionfontraggedright }}
    renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
    {10pt @plus 1p@ @minus .3p@}%
    {.1p@}%
    {%let@hangfromrelax
    sssectionfontraggedright}}
    makeatother

    section{A}
    subsection{AA}
    subsubsection{BB}

    end{document}





    share|improve this answer




























      1














      Yes, definitely a bug :)



      The definition of section, subsection, and subsubsection in cas-common.sty uses the same counter, section, for all three levels. (i.e.: @startsection{section}...). If you copy that definition and use the correct counters the output looks correct:




      enter image description here




      documentclass[a4paper,fleqn]{cas-sc}

      begin{document}

      makeatletter
      renewcommandsection{@startsection{section}{1}{z@}%
      {15pt @plus 3p@ @minus 3p@}%
      {4p@}%
      {%let@hangfromrelax
      sectionfontraggedrighthst[13pt]}}
      renewcommandsubsection{@startsection{subsection}{2}{z@}%
      {10pt @plus 3p@ @minus 2p@}%
      {.1p@}%
      {%let@hangfromrelax
      ssectionfontraggedright }}
      renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
      {10pt @plus 1p@ @minus .3p@}%
      {.1p@}%
      {%let@hangfromrelax
      sssectionfontraggedright}}
      makeatother

      section{A}
      subsection{AA}
      subsubsection{BB}

      end{document}





      share|improve this answer


























        1












        1








        1







        Yes, definitely a bug :)



        The definition of section, subsection, and subsubsection in cas-common.sty uses the same counter, section, for all three levels. (i.e.: @startsection{section}...). If you copy that definition and use the correct counters the output looks correct:




        enter image description here




        documentclass[a4paper,fleqn]{cas-sc}

        begin{document}

        makeatletter
        renewcommandsection{@startsection{section}{1}{z@}%
        {15pt @plus 3p@ @minus 3p@}%
        {4p@}%
        {%let@hangfromrelax
        sectionfontraggedrighthst[13pt]}}
        renewcommandsubsection{@startsection{subsection}{2}{z@}%
        {10pt @plus 3p@ @minus 2p@}%
        {.1p@}%
        {%let@hangfromrelax
        ssectionfontraggedright }}
        renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
        {10pt @plus 1p@ @minus .3p@}%
        {.1p@}%
        {%let@hangfromrelax
        sssectionfontraggedright}}
        makeatother

        section{A}
        subsection{AA}
        subsubsection{BB}

        end{document}





        share|improve this answer













        Yes, definitely a bug :)



        The definition of section, subsection, and subsubsection in cas-common.sty uses the same counter, section, for all three levels. (i.e.: @startsection{section}...). If you copy that definition and use the correct counters the output looks correct:




        enter image description here




        documentclass[a4paper,fleqn]{cas-sc}

        begin{document}

        makeatletter
        renewcommandsection{@startsection{section}{1}{z@}%
        {15pt @plus 3p@ @minus 3p@}%
        {4p@}%
        {%let@hangfromrelax
        sectionfontraggedrighthst[13pt]}}
        renewcommandsubsection{@startsection{subsection}{2}{z@}%
        {10pt @plus 3p@ @minus 2p@}%
        {.1p@}%
        {%let@hangfromrelax
        ssectionfontraggedright }}
        renewcommandsubsubsection{@startsection{subsubsection}{3}{z@}%
        {10pt @plus 1p@ @minus .3p@}%
        {.1p@}%
        {%let@hangfromrelax
        sssectionfontraggedright}}
        makeatother

        section{A}
        subsection{AA}
        subsubsection{BB}

        end{document}






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 15 at 16:16









        Phelype OleinikPhelype Oleinik

        23.5k54586




        23.5k54586






























            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%2f475049%2fsubsection-command-not-working-in-elsevier-latex-template%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

            How to change which sound is reproduced for terminal bell?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents

            Can I use Tabulator js library in my java Spring + Thymeleaf project?