2

How to apply point size, sffamily font and color for list text, already have option for List label, is there any way proper way for applying list text using enumitem package? Please find my MWE file:

\documentclass{book}
\usepackage{enumitem}
\usepackage{color}

\setlist[enumerate,1]{font={\rmfamily\bfseries\color{red}},labelsep=4.2pt,
leftmargin=*,itemsep=0pt,topsep=0pt,align=right,
parsep=0pt,partopsep=0pt,rightmargin=0pt,itemindent=0pt,}%widest=10.
}


\begin{document}

Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.
\begin{enumerate}
\item[1.] The discipline of focuses on the relationship between observable behaviours and
environmental stimuli.
\item[2.] Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.
\item[3.] Positive psychology was established in 1998 to focus specifically on people's virtues and
strengths (Peterson \& Seligman, 2004). Researchers in this field examine the traits that are associated
with life satisfaction and the predictors of healthy human functioning, then design interventions
to improve wellbeing.
\end{enumerate}

\end{document}
2

Using the before key for this is wrong - the changed font size will affect the baselineskip of previous paragraph. The correct key is the first key:

\documentclass{book}
\usepackage{enumitem}
\usepackage{color}

\setlist[enumerate,1]{
                      before={\sffamily\itshape\color{blue}\footnotesize}
                      }


\begin{document}


Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.

Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.
\begin{enumerate}
\item[1.] The discipline of focuses on the relationship between observable behaviours and
environmental stimuli.
\end{enumerate}

\setlist[enumerate,1]{
                      first={\sffamily\itshape\color{green}\footnotesize}
                      }

Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.

Emphasises that perception is an active experience of imposing order on
details by seeing them as parts of a larger whole.
\begin{enumerate}
\item[1.] The discipline of focuses on the relationship between observable behaviours and
environmental stimuli.
\end{enumerate}

\end{document}

enter image description here

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.