List numbering order

Cara mengubah urutan penomeran (list numbering order) pada LaTeX.

Secara default, urutan penomeran numbering list (enumerate) pada LaTeX adalah sbb: 1.(a)i.A. Kita bisa mengubahnya dengan urutan lain, misal: 1.a.1)a).

LaTeX default list numbering order
LaTeX default list numbering order

Caranya: tambahkan baris berikut pada preamble

\renewcommand{\labelenumi}{\arabic{enumi}. } % 1, 2, 3, ...
\renewcommand{\labelenumii}{\alph{enumii}. } % a, b, c, ...
\renewcommand{\labelenumiii}{\arabic{enumiii}) } % 1), 2), 3), ...
\renewcommand{\labelenumiv}{\alph{enumiv}) } % a), b), c), ...

seperti ini:

\documentclass{article}
\renewcommand{\labelenumi}{\arabic{enumi}. } % 1, 2, 3, ...
\renewcommand{\labelenumii}{\alph{enumii}. } % a, b, c, ...
\renewcommand{\labelenumiii}{\arabic{enumiii}) } % 1), 2), 3), ...
\renewcommand{\labelenumiv}{\alph{enumiv}) } % a), b), c), ...
\begin{document}
\begin{enumerate}
\item Hello
	\begin{enumerate}
	\item Halo
		\begin{enumerate}
		\item Horas
			\begin{enumerate}
			\item Hola
			\end{enumerate}
		\end{enumerate}
	\end{enumerate}
\end{enumerate}
\end{document}

hasilnya seperti ini:

New list numbering order
New list numbering order

Contoh lain:

\documentclass{article}

\renewcommand{\labelenumi}{\arabic{enumi}. } % 1, 2, 3, ...
\renewcommand{\labelenumii}{\alph{enumii}. } % a, b, c, ...
\renewcommand{\labelenumiii}{\arabic{enumiii}) } % 1), 2), 3), ...
\renewcommand{\labelenumiv}{\alph{enumiv}) } % a), b), c), ...

\begin{document}

% 1, 2, 3, ...
\begin{enumerate}
\item What is Lorem Ipsum?

Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.

\item Where does it come from?

Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.

% a, b, c, ...
	\begin{enumerate}
	\item What is Lorem Ipsum?
	
	Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy 	text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
	
	\item Where does it come from?

	Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.

% 1), 2), 3), ...
		\begin{enumerate}
			\item What is Lorem Ipsum?
	
			Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
	
			\item Where does it come from?

			Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.

% a), b), c), ...
			\begin{enumerate}
				\item What is Lorem Ipsum?
	
				Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.
	
				\item Where does it come from?

				Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old.

			\end{enumerate}
		\end{enumerate}
	\end{enumerate}
\end{enumerate}

\end{document}
New listing order (with real wording)
New listing order (with real wording)

Selamat mencoba. Semoga bermanfaat.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s