1

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} 
  • Welcome to TeX SX! Could you post a minimal code reproducing the problem, that we can play with? – Bernard Dec 20 '18 at 20:43
  • 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 Dec 20 '18 at 20:52
  • \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} – Cinna Dec 20 '18 at 20:56
  • is that enough code for you ? – Cinna Dec 20 '18 at 20:57
  • david carlisle I'm not going to lie i have no idea what you said xD – Cinna Dec 20 '18 at 20:58
1

Use prd as the journal.

\documentclass[
  prd,
  aps,
  superscriptaddress,
  twocolumn,
  10pt,
]{revtex4-1}

\usepackage{lipsum} % for context

\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

\section{Introduction} 

\lipsum[1-2]

\section{Tests} 

\lipsum

\end{document}

enter image description here

  • I still don't get it what does lipsum mean ? and why have you put the numbers 1-2 ?? – Cinna Dec 21 '18 at 0:28
  • @mavihs26 \lipsum[1-2] is just for producing dummy text. The package is not necessary for a real document. – egreg Dec 21 '18 at 0:30
  • Changing to prd fixed it nevermind. Thank you for your help – Cinna Dec 21 '18 at 0:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.