Text FormattingEnumerating between [ ]

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Enumerating between [ ]

Post by amegahed3 »

Hi All,

How can I enumerate item, but have the numbers put between [ ]?

I tried to use the package "enumitem", but couldn't know the correct parameters!

Also, I would like a way that guarantees having the same enumeration when cross referencing any enumerated item.

Finally, does anyone know of an easy tutorial for BIBtex? because I couldn't understand it from most of the documentations I found online!
Thanks in advance!

Aly

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Enumerating between [ ]

Post by Stefan Kottwitz »

Hi Aly,

use for instance

Code: Select all

\begin{enumerate}[label={[\arabic*]}]
Stefan
LaTeX.org admin
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Re: Enumerating between [ ]

Post by amegahed3 »

Thanks a lot. But why does the [ ] seem a bit large? Is there a way to have it smaller?

Aly
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: Enumerating between [ ]

Post by Stefan Kottwitz »

That depends on the font you are using. Just compare how [...] is looking in your normal text. Of course you could try commands like \small etc. or change the font, if it's really necessary.

Stefan
LaTeX.org admin
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Enumerating between [ ]

Post by amegahed3 »

Actually, that's all what I have before \begin {document}:

Code: Select all

\documentclass[12pt,letter,english]{article}%{amsart}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{babel}
\usepackage[includeheadfoot,margin=2cm]{geometry}
\usepackage[font=small,labelfont=bf,tableposition=top]{caption}
\usepackage{booktabs,multirow}
\usepackage{lscape}
\usepackage{amsfonts}
\usepackage{amsmath, amsthm, amssymb}
\usepackage{enumitem}
And I never change the font inside the text. Also, all what I need is to enumerate the references. So, in order to make that [1], [2],...etc enumeration look as the professional standard, what should I do? or it already is?

Thanks a lot, Stefan for your continuous help. I really appreciate it!

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

Enumerating between [ ]

Post by localghost »

amegahed3 wrote:[…] Also, all what I need is to enumerate the references. So, in order to make that [1], [2],...etc enumeration look as the professional standard, what should I do? […]
You can create a bibliography manually by using the thebibliography environment and the corresponding \bibitem command. For bibliographies based on databases you should use BibTeX or the biblatex package. In all the cases you don't have to worry about enumeration of the references any more because it is done automatically in the shape you want.


Best regards
Thorsten
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
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Enumerating between [ ]

Post by Stefan Kottwitz »

Hi Aly,

I would prefer the way mentioned by Thorsten, you would get a standard appearance by that.

If you still want to use an enumitem and if you really want to get smaller [] here's a quick workaround:

Code: Select all

\usepackage{relsize}
\newcommand*\leftbracket{\raise1.2pt\hbox{\textsmaller{[}}}
\newcommand*\rightbracket{\raise1.2pt\hbox{\textsmaller{]}}}
...
\begin{enumerate}[label=\leftbracket\arabic*\rightbracket]
...
\end{enumerate}
I've made the brackets smaller and raised them by 1.2pt, of course you could change that.

Stefan
LaTeX.org admin
amegahed3
Posts: 15
Joined: Wed Feb 25, 2009 11:20 am

Re: Enumerating between [ ]

Post by amegahed3 »

I agree that the way of Thorsten is the suitable one for what I want to do. I actually used thebibliography, and it worked perfectly.

But I also wanted to use the BibTeX, but I couldn't find a clear tutorial or documentation. Does anyone of you guys know of an easy clear one?

Thanks a lot for all your great help!

Aly
Post Reply