Senin, 09 Desember 2024

A Custom List In Latex Preview Source Code

Creating A Custom List In Latex > Creating A Custom List Using The List Environment

1. Open the Latex editor
2. Type this following Latex code in your Latex editor:
% !TEX TS-program=pdflatex
\documentclass[a4paper]{report}
%% Load Font packages
\usepackage{libertine}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{minipage}
\setlength\PreviewBorder{1pt}

\begin{document}
\begin{minipage}{\textwidth}
\medskip
\Huge{}
Numbering List using arabic \\number:
\huge{}
\begin{list}{\arabic{enumi}}{\usecounter{enumi}}
\item item 1 text
\item item 2 text
\item item 3 text
\item item 4 text
\item item 5 text
\end{list}
\medskip
\end{minipage}

\begin{minipage}{\textwidth}
\Huge{}
Numbering List using roman number in lowercase:
\huge{}
\begin{list}{(\roman{enumi})}{\usecounter{enumi}}
\item item 1 text
\item item 2 text
\end{list}
\medskip
\end{minipage}

\begin{minipage}{\linewidth}
\medskip
\Huge{}
Numbering List using roman number in uppercase:
\huge{}
\begin{list}{\Roman{enumi})}{\usecounter{enumi}}
\item item 1 text
\item item 2 text
\end{list}
\medskip
\end{minipage}

\begin{minipage}{\textwidth}
\Huge{}
Numbering List using alphabet in lowercase:
\huge{}
\begin{list}{(\alph{enumi})}{\usecounter{enumi}}
\item item 1 text
\item item 2 text
\end{list}
\medskip
\end{minipage}

\begin{minipage}{\textwidth}
\medskip
\Huge{}
Numbering List using alphabet in uppercase:
\huge{}
\begin{list}{\Alph{enumi})}{\usecounter{enumi}}
\item item 1 text
\item item 2 text
\end{list}
\medskip
\end{minipage}
\end{document}
3. Save file as CustomNumberListPreview1.tex
4. Then build or typeset the Latex code.

Output

to see the output, click Creating A Custom List In Latex >


to learn standard number list parameter, click Standard Counter Number List In Latex >

to suggest you to use one of Latex packages or several packages of Latex packages, with click the Latex Package To Handle Bullet And Numbering


Related Post

Tidak ada komentar:

Posting Komentar