How to number sections in LaTeX?












0














Hello I'm new to latex so don't know much. I'm writing my lab report (prl,aps,revtex4-1 etc) and I want the sections to be numbered in Roman numerals but I can't seem to figure it out. For example my first section is introduction so I've done



section{Introduction}



so it just says introduction and it's not numbered



I've tried many things but nothing seems to work however i found this works



setcounter{secnumdepth}{5}



However I am also being marked on my coding (I'm a first year uni student)



I was wondering if this is the correct code for numbering sections and I'm not entirely sure what the number at the end means either please help.



Thank you :)



begin{document}



title{Example Lab Report}
date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE}
author{A. Student (and L. Partner)}
affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day}



begin{abstract}



ABSTRACT HERE



end{abstract}



maketitle
thispagestyle{plain} % produces page number for front page



setcounter{secnumdepth}{1}
section{Introduction}










share|improve this question









New contributor




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




















  • Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
    – Bernard
    27 mins ago












  • in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
    – David Carlisle
    18 mins ago










  • begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
    – mavihs26
    14 mins ago










  • is that enough code for you ?
    – mavihs26
    13 mins ago










  • david carlisle I'm not going to lie i have no idea what you said xD
    – mavihs26
    13 mins ago
















0














Hello I'm new to latex so don't know much. I'm writing my lab report (prl,aps,revtex4-1 etc) and I want the sections to be numbered in Roman numerals but I can't seem to figure it out. For example my first section is introduction so I've done



section{Introduction}



so it just says introduction and it's not numbered



I've tried many things but nothing seems to work however i found this works



setcounter{secnumdepth}{5}



However I am also being marked on my coding (I'm a first year uni student)



I was wondering if this is the correct code for numbering sections and I'm not entirely sure what the number at the end means either please help.



Thank you :)



begin{document}



title{Example Lab Report}
date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE}
author{A. Student (and L. Partner)}
affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day}



begin{abstract}



ABSTRACT HERE



end{abstract}



maketitle
thispagestyle{plain} % produces page number for front page



setcounter{secnumdepth}{1}
section{Introduction}










share|improve this question









New contributor




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




















  • Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
    – Bernard
    27 mins ago












  • in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
    – David Carlisle
    18 mins ago










  • begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
    – mavihs26
    14 mins ago










  • is that enough code for you ?
    – mavihs26
    13 mins ago










  • david carlisle I'm not going to lie i have no idea what you said xD
    – mavihs26
    13 mins ago














0












0








0







Hello I'm new to latex so don't know much. I'm writing my lab report (prl,aps,revtex4-1 etc) and I want the sections to be numbered in Roman numerals but I can't seem to figure it out. For example my first section is introduction so I've done



section{Introduction}



so it just says introduction and it's not numbered



I've tried many things but nothing seems to work however i found this works



setcounter{secnumdepth}{5}



However I am also being marked on my coding (I'm a first year uni student)



I was wondering if this is the correct code for numbering sections and I'm not entirely sure what the number at the end means either please help.



Thank you :)



begin{document}



title{Example Lab Report}
date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE}
author{A. Student (and L. Partner)}
affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day}



begin{abstract}



ABSTRACT HERE



end{abstract}



maketitle
thispagestyle{plain} % produces page number for front page



setcounter{secnumdepth}{1}
section{Introduction}










share|improve this question









New contributor




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











Hello I'm new to latex so don't know much. I'm writing my lab report (prl,aps,revtex4-1 etc) and I want the sections to be numbered in Roman numerals but I can't seem to figure it out. For example my first section is introduction so I've done



section{Introduction}



so it just says introduction and it's not numbered



I've tried many things but nothing seems to work however i found this works



setcounter{secnumdepth}{5}



However I am also being marked on my coding (I'm a first year uni student)



I was wondering if this is the correct code for numbering sections and I'm not entirely sure what the number at the end means either please help.



Thank you :)



begin{document}



title{Example Lab Report}
date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE}
author{A. Student (and L. Partner)}
affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day}



begin{abstract}



ABSTRACT HERE



end{abstract}



maketitle
thispagestyle{plain} % produces page number for front page



setcounter{secnumdepth}{1}
section{Introduction}







sectioning numbering






share|improve this question









New contributor




mavihs26 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




mavihs26 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 12 mins ago





















New contributor




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









asked 30 mins ago









mavihs26

11




11




New contributor




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





New contributor





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






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












  • Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
    – Bernard
    27 mins ago












  • in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
    – David Carlisle
    18 mins ago










  • begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
    – mavihs26
    14 mins ago










  • is that enough code for you ?
    – mavihs26
    13 mins ago










  • david carlisle I'm not going to lie i have no idea what you said xD
    – mavihs26
    13 mins ago


















  • Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
    – Bernard
    27 mins ago












  • in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
    – David Carlisle
    18 mins ago










  • begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
    – mavihs26
    14 mins ago










  • is that enough code for you ?
    – mavihs26
    13 mins ago










  • david carlisle I'm not going to lie i have no idea what you said xD
    – mavihs26
    13 mins ago
















Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
– Bernard
27 mins ago






Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with?
– Bernard
27 mins ago














in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
– David Carlisle
18 mins ago




in the standard classes sections have level 1 and secnumdepth is 3 so sections are numbered by default, presumably you are using a non standard class that sets it (to 0?) to stop sections being numbered.
– David Carlisle
18 mins ago












begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
– mavihs26
14 mins ago




begin{document} title{Example Lab Report} date{Submitted: today{}, Date of Experiment: EXPERIMENT DATE} author{A. Student (and L. Partner)} affiliation{normalfont L1 Discovery Labs, Lab Group XXX, Lab Day} begin{abstract} ABSTRACT HERE end{abstract} maketitle thispagestyle{plain} setcounter{secnumdepth}{1} section{Introduction}
– mavihs26
14 mins ago












is that enough code for you ?
– mavihs26
13 mins ago




is that enough code for you ?
– mavihs26
13 mins ago












david carlisle I'm not going to lie i have no idea what you said xD
– mavihs26
13 mins ago




david carlisle I'm not going to lie i have no idea what you said xD
– mavihs26
13 mins ago















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


}
});






mavihs26 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%2f466762%2fhow-to-number-sections-in-latex%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes








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










draft saved

draft discarded


















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













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












mavihs26 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.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • 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%2f466762%2fhow-to-number-sections-in-latex%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

Lallio

Futebolista

Jornalista