Text FormattingWord Counters

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Word Counters

Post by QwareeqMathematics »

Hi ;

How to get enumerating like this :

One, Two , Three , Four ,...etc

Thank you :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Word Counters

Post by gmedina »

Hi,

you can use the optional argument of the \item command ans some of the options that the enumitem package provides to control the labels' position:

Code: Select all

\documentclass{book}
\usepackage{enumitem}

\begin{document}

\begin{enumerate}[leftmargin=*,widest=Three]
  \item[One] First item.
  \item[Two] Second item.
  \item[Three] Third item.
  \item[Four] Fourth item.
\end{enumerate}

\end{document}
Refer to the package documentation for further information.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Word Counters

Post by QwareeqMathematics »

Hi ;

In fact gmedina , I need to change the counter in chapter from arabic to words counter [One, Two , Three,...etc]

I could change it from arabic to any well-known format in \LaTeX [Roman, ...etc].

So, How ??
Thank you
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Word Counters

Post by localghost »

QwareeqMathematics wrote:[...] In fact gmedina , I need to change the counter in chapter from arabic to words counter [One, Two , Three,...etc] [...]
You better choose the right terms to describe the problem correctly from the beginning. Thinking of enumeration, the enumerate environment is also the first that comes to my mind.

I once worked out a solution to get chapters numbered the way you want [1]. It is also possible to get a numbering with small greek letters [2]. It works the same way.

[1] View topic: Spelled-out chapter numbers
[2] View topic: greek letters as page numerals
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Word Counters

Post by QwareeqMathematics »

Sorry, I was thinking there is a special word to that as \Roman ,...etc. Since I can change the enumeration in chapter like

Code: Select all

\renewcommand{\thechapter}{\Roman{chapter}}

Thank u .
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Word Counters

Post by localghost »

QwareeqMathematics wrote:Sorry, I was thinking there is a special word to that as \Roman ,...etc. Since I can change the enumeration in chapter like [...]
Once again. We are not talking about enumeration but about numbering. Just try the solution for spelled numbering as introduced in the thread I referred to in my last reply.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
QwareeqMathematics
Posts: 68
Joined: Mon Jul 06, 2009 7:44 pm

Re: Word Counters

Post by QwareeqMathematics »

O.k.

Thx :mrgreen:
Post Reply