Text FormattingChanging the way enumerate looks

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Changing the way enumerate looks

Post by singlebinary »

I am a new user and I came to the forum because I am in the middle of writing my Ph.D thesis. It is quite likely I will visit this forum in the next few weeks and ask lots of questions! :-) Thank you all in advance!

I would like one of my subsection to begin with the following:

5.2.1 Step 1. Modeling the PSF

These following steps carry out the modeling of the PSF:
1.1 Co-align the telluric standard
1.2 Blah Blah

However the enumerate function does not allow me to have "1.1" or "1.2" It simply states it as "1" and "2". I would like to have 1.1 because it goes with the Step 1.

Could you please help!

Thank you!

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Changing the way enumerate looks

Post by frabjous »

Try the enumitem package like this:

Code: Select all

\documentclass{article} % or whatever
\usepackage{enumitem}
\begin{document}
\noindent These following steps carry out the modeling of the PSF: 
\begin{enumerate}[label={1.\arabic*},nolistsep,leftmargin=*]
\item Co-align the telluric standard
\item Blah Blah 
\end{enumerate}
\end{document}
It would be better to use the counter for "Step 1", whatever that is, rather than hard-coding the "1." leader, but I don't know what counter (if any) you're using for that. Perhaps use label={\arabic{subsection}.\arabic*} instead?
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Re: Changing the way enumerate looks

Post by singlebinary »

Thank you for your suggestion. It worked however the indent seems to have been gone! As you can see, I removed the "\noindent" suggested by you and added \indent but even then it does not seem to work. I would like to have the indent as it look clear with it than without. No, I have not used any counter for Step 1. Here is my code:

\subsection{Step 1. Modeling the PSF}

These following steps carry out the modeling of the PSF:

\begin{enumerate}[label={1.\arabic*},nolistsep,leftmargin=*]
\item Co-align telluric star ($\mathcal{T}$) with telluric model ($\mathcal{M}$)
\item Suggest a first guess of the PSF using Least Square Deconvolution of $\mathcal{T}$ with $\mathcal{M}$
\item Begin PSF modeling by the use of five Gaussians
\item Change line-depths in $\mathcal{M}$
\item Redo steps 1.2 -1.4 until the best fit between the $\mathcal{T}$ and $\mathcal{M}$ is achieved
\end{enumerate}
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Changing the way enumerate looks

Post by gmedina »

singlebinary wrote:...It worked however the indent seems to have been gone!..
Do you mean the indentation of the items? If so, replace

Code: Select all

\begin{enumerate}[label={1.\arabic*},nolistsep,leftmargin=*]
with, for example,

Code: Select all

\begin{enumerate}[label={1.\arabic*},nolistsep,leftmargin=1cm]
in the code provided by frabjous (change 1cm to the value that suits your needs).
1,1,2,3,5,8,13,21,34,55,89,144,233,...
singlebinary
Posts: 12
Joined: Fri Mar 12, 2010 5:43 pm

Re: Changing the way enumerate looks

Post by singlebinary »

gmedina and frabjous, thank you so much!!! The indentation and the numbering work! You both rock! :-)
Post Reply