Latex distinguishes between three different enumeration/itemization environments. Each of them provide four levels, which means you can have nested lists of up to four levels.
Enumerate:
\begin{enumerate} \item ... \end{enumerate}
The enumerate-environment is used to create numbered lists.
If you like to change the appearance of the enumerator, the simplest way to change is to use the enumerate-package, giving you the possibility to optionally choose an enumerator.
\usepackage{enumerate} ... \begin{enumerate}[I]%for capital roman numbers. \item \end{enumerate}
\begin{enumerate}[(a)]%for small alpha-characters within brackets. \item \end{enumerate}
Itemize:
\begin{itemize} \item ... \end{itemize}
Itemization is probably the mostly used list in Latex. It also provides four levels. The bullets can be changed for each level using the following command:
\renewcommand{\labelitemi}{$\bullet$} \renewcommand{\labelitemii}{$\cdot$} \renewcommand{\labelitemiii}{$\diamond$} \renewcommand{\labelitemiv}{$\ast$}
Amongst the more commonly used ones are $\bullet$
(), $\cdot$
(), $\diamond$
(), $-$
(), $\ast$
() and $\circ$
().
Description:
\begin{description} \item[] ... \end{description}
The description list might be the least known. It comes in very handy if you need to explain notations or terms. Its neither numbered nor bulleted.
Example:
\begin{description} \item[Biology] Study of life. \item[Physics] Science of matter and its motion. \item[Psychology] Scientific study of mental processes and behaviour. \end{description}
And in a PDF it would look like this:
Nested lists:
Lists can be nested. In other words, it is possible to have a sub-list for an item of a list. Usage is straight forward, different environments can be mixed (see example) and the maximum depth (number of levels) is 4. Here is an example:
\begin{itemize} \item First level, itemize, first item \begin{itemize} \item Second level, itemize, first item \item Second level, itemize, second item \begin{enumerate} \item Third level, enumerate, first item \item Third level, enumerate, second item \end{enumerate} \end{itemize} \item First level, itemize, second item \end{itemize}
The space between different items can be controlled with the \itemsep command (can only be added just after “begin”):
\begin{itemize}\itemsep2pt \item \end{itemize}
mbork
Well, I used to use the enumerate package too – but only until I found out about another one, called enumitem. It’s way more flexible and (in some cases) easier to use. (For example, it’s a bit tricky to obtain enumerations with _bold_ letters: (a), (b) etc with the enumerate package – try it! With enumitem, it’s much easier.)
Also, I hardly ever use itemize and description – and enumerate all the time.
nguyenminhhaivn
Thanks a lot, your blog is very helpful. Btw, do you know how to insert pieces of source code into documents? I have tried some packages already, but they are a little ugly. Perhaps I have not figured out how to configure them yet :(.
Oskar
You should try \usepackage{listings} and, depending on which computer language you use, to configure a “style” for it (including colorized output) with \lstset{}.
An example is provided on:
http://en.wikibooks.org/wiki/LaTeX/Packages/Listings
tom
Hi there,
Thanks for your comment. Please check my post on how to include source code into your documents here.
Cheers,
Tom
Joe Python
Is it possible to create fancy frames like the one you created in your html for the description list?
tom
Hi Joe,
It is possible to crate fancyframes using \mbox or the fancybox package. Nevertheless, I think you will have problems creating a frame similar to the html above, as figure is a floating environment, which can’t be put into a box.
Tom.
Ana
Hi Ana,
I moved your comment here.
Thanks,
Tom
joana
Hi!
Is it possible to begin the enumeration with 0?
0. something
1. something
2. something
Thanks!
tom
Hi Joana,
Use this piece of code before your first “item”:
Tom
Asha Ram
Hi Tom, Many thanks for the command.
DIYANA
how to tab the item in the itemize.
i want to move the item a bit right.
1 cm to the right, then start the itemize.
tom
One thing you can do is to use
\hspace{1cm}
between your \item and its content. However this will separate the dot (or whatever you are using) from the text which is probably not what you are looking for.If so, try this:
Cheers, Tom.
Wouter
Hello Tom,
Your solution does only works partially. When your description has a text length longer then
\textwidth
, the text wont be cut of at\textwidth
but at\textwidth + 1cm
Do you maybe have a solution which prevents that? I tried to use…
but that doesn’t work since it can’t do the math 😛
tom
You are right of course. Thanks for pointing this out. Try the following instead:
Sorry for that, Tom.
Zeratul
Simply:
Tamer
Is there any way to get enumeration as follows:
A1.
A2.
A3.
Thanks.
tom
Hi!
Probably the easiest way is to use the optional argument of
\item[]
, which lets you customize your list and would look something like this:However, if you have many items and don’t want to adapt the number for each item, you can also redefine the counter of the list. This is done through the following line of code:
anas
Hi Tom
I was looking for this, thanks for the solution. Although answered in 2011, still useful in 2016.
tom
Thanks for the feedback, appreciate it. Best, Tom
El Moro
In 2019, and still was looking for it, thanks mate! 🙂
Karthajee
Still relevant in 2020 – Thanks, Tom!
Brit
Hi
Hope you can help. When I use enumerate and change the counter the indent disapeares. When I don’t add a counter there is an indent.
This:
Looks like this:
Some text
a. text 1
b. text 2
c. text 3
Some more text.
But I would like:
Some text
(space here)a. text 1
b. text 2
c. text 3
Some more text.
How do I get that?
Brit
tom
Hi Brit!
This is how you indent items in your enumerate:
Cheers, Tom.
Simon Schläpfer
use
instead of enumerate
sharad
Is there any way to get enumeration as follows:
[1] Text should be followed like this as
next line should start just below the first word of first line (for example, below the Text)
tom
Is this what you are looking for:
If not, please post a text example.
Cheers, Tom.
sharad
Dear Tom,
Thanks for reply,
But I am looking for to get enumerate like this (as described below) ”
[1] This is my first item.
On several lines.
[2] This is my second item.
On several lines.
[3] This is my third item.
On several line
tom
Hi!
Add this line to your preamble. This will change the style of your enumeration accordingly.
Cheers, Tom.
sharad
Hi,
I tried your suggestion but it looks like:
1. This is my first item.
On several lines.
2. This is my second item.
But I want like:
[1] This is my first item.
On several lines.
[2] This is my second item.
Snap
Hi,
I wonder if it is possible to do something like this:
—————————————-
1. First Section Big Heading
Some normal text followed by a list numbered by section then item number:
1.1 First list item
1.2 Second list item (which will be referenced)
2. Second Section Big Heading
Some more normal text.
2.1 Another other item
2.2 A reference to a previous list item in this list (see item 2.1)
2.3 A reference to a previous list item in a different list (see item 1.2)
—————————————-
I want to be able to label and refer to items in the list, much like they way that equations are numbered. Thanks in advance!
tom
You can use
\label{itm:item1}
and\ref{itm:item1}
just like for figures, equations, etc.Besides, to get the numbering as proposed in your example (section.item), use:
Cheers, Tom.
Snap
Thanks! Worked perfectly! You’re such a guru!
Sameer
I am using MikTex…and I want 4th level of numbers like shown below..How to get that…I am just 5 day old MikTex user..!
1. Topic
1.1 Subtopic
1.1.1 Sub-Sub Topic
1.1.1.1 Sub-Sub-Sub Topic
-Sameer
tom
Hi Sameer,
The following code explains how to produce up to six levels in depth including numbering as well as adding the headings to the table of contents.
Cheers, Tom.
Adam
I’m running into a bit of difficulty with all this. When I try to reference an embedded enumeration, rather than getting just “I” I get “Ia”. Here’s my big long preamble, but I think the only relevant package for this problem is the enumerate package.
Then when I go to enter something like
and then something like
and then I later try to reference this, the reference to “Numbers and Basic Operations” comes out perfect but the reference to “NatNum” comes out “Ia” when I want it to come out just “I”.
Any ideas?
tom
Hi Adam,
I can’t really reproduce your issue, it works for me. Here is the code, maybe it helps:
Have you tried deleting all meta-files that are generated when typesetting?
Another thing that I would recommend is using relative values for the minipage width:
Best, Tom.
Helpfull bits of information on LaTeX usage @ Bogdan's Webspace
[…] is a link that describes in some detail how to use the usepackage{enumerate} http://texblog.wordpress.com/2008/10/16/lists-enumerate-itemize-description-and-how-to-change-them/ […]
Adam
Hello Tom,
Im using the enumerate command and noticed that the list has 1.5 line spacing between lines. How can I chance the justification to 1 line spacing?
Thanks,
Adam
tom
Hi Adam
What a coincidence you are asking me this. I just posted an article on line spacing two days ago.
Tom.
Amber
I would really like to do something like the following, but when I try to embed a 5th level, I get errors. Is there any way to change settings to allow this:
Thanks for your helpful post
tom
Hi Amber,
You can either use an
itemize
-environment within if you are comfortable with having bullets instead of numerated items for one level. If not, theenumitem
package provides commands that let you define a list with a custom depth. Make sure you have the latest version (version 3.0 or higher), as some stuff was only added recently.Use this code in your preamble, remove the label definitions from your code and replace all
enumerate
-environments withlongenum
.Hope it helps, Tom.
Nicolai
Hey Tom.
I was wondering if you had an idea, how to use enumerate if I want to get the item to look like this:
[1]
[2]
[3]
etc.
Thanks ahead.
tom
Hi Nicolai,
You can either do it the classic way:
Or using the
enumitem
-package:Best, Tom.
fbd
Thanks a lot Tom…. you are very good
Mariam
Hi how can ı write this rows with latex?
ı mean how to enumerate
thank you.
There are two option :
a) a maximum b) a minimum
tom
Try this:
Best, Tom.
Alison
Hi Tom,
How would I begin enumerating a later number than 1?
e.g.
3.
4.
5.
Cheers.
tom
Hi Alison,
Set the counter to 2, so your first item will have index 3:
Cheers, Tom.
Jesse
I am trying to get a continuous list of examples throughout the document – i.e., all the examples are in sequence but with lots of text in between:
…
…
(1) ___
(2) ___
….
…
..
.
(3) ___
(4) ___
(5) ___
…
Is this possible to do automatically? It seems so basic, but I can’t figure it out. Thanks.
tom
Hi Jesse,
I think what you are looking for is this. Hope it helps. Let me know if you have any questions. Tom.
Andreas
I think you might be looking for the suspend/resume commands provided by the mdwlist package:
tom
Hi Andreas,
Neat, thanks!
Cheers, Tom.
ofer
is there a possibility to reveres the order of enumerated list
tom
I was a little surprised by your question, but there is indeed a package called
etaremune
(enumerate backwards). It’s usage is straight forward:You’ll have to typeset the document twice for the numbers to be correct. Also, there is another package that offers similar functionality, called revnum, but my distribution at least doesn’t come with it by default. So you would probably have to manually install it.
You can find the package documentation here.
Best, Tom.
molom
Hi Tom,
and thanks for all the updates.
I recently learnt about etaremune environment. But want I am not succeeding with it is to have square brackets ([]) in the items:
[3] item 3
[2] item 2
[1] item 1
Thanks again!
tom
Hi there!
The following code should do the trick. Cheers, Tom.
molom
Thanks a lot Tom.
I just tried it and it was perfect!
tom
Great, glad it worked. Cheers, Tom.
Reverse enumerate or etaremune « LaTeX Matters
[…] I stumbled across this package recently thanks to a comment by ofer. […]
txinitomandarin
I love the snowflakes
milemist
Quick question: Is it possible to change the colour of the bullets in the itemize environment?
I am using coloured headings, and it would look much better if I can add colour to bullet points and footnote lines, but for the time being, I’d be happy with bullets (or numbers).
Thanks!
tom
Hi there,
Try this:
Cheers, Tom.
asd
>Each of them provide four levels, which means you can have nested lists of up to four levels.
And how do you create such levels?
tom
Just nest the lists, e.g.:
Best, Tom.
reseroJAvier D'Alessandro
I was looking for this, it should be in the main post, it’s not obvious for a newbie how to come out with the levels.
tom
You are right, thanks! I added a short paragraph to the main post on nested lists. Tom.
kala
Hi, is it possible to put label to math equation in every item? e.g.
i) x+y=z (1)
ii) k-l=2 (2)
tom
Hey Kala,
Try the code below. I hope it’s roughly what you were looking for.
Best, Tom.
kala
Thank you very much, Tom. And do you know how put equations in the left side not in the center?
tom
The
amsmath
package can left-align equations through the package optionfleqn
:Best, Tom.
Emilio.
Hi Tom, I have used
but my problem is the format. I expect
(i) First line
(ii) Second line
but instead I have
(I) First line
(II) Second line
that is, capital romans, but they are smaller than the original ones.
I am using Kile, in Ubuntu 11.04. Okular as my default pdf viewer.
Do you know what is the possible problem?
Greetings,
Emilio
tom
Hi Emilio,
Thanks for the comment with the code example. From your description it seems as if you are using small capitals, e.g.:
Would you mind providing a complete minimal example? It may be due to a package you are loading or some other code you use.
Best, Tom.
asvhen
That’s solution:
es-lcroman
\roman (o “i”) pasa a minúsculas (recuérdese que en español esto es una falta de ortografía).
Mark
Hi,
I would like to use my own item labels \item[…], but I want the labels to flush left, rather than flush right, ie
Main text:
short label: blahblah….
loooooooooong label: blahblah….
rather than what seems to be the default,
Main text:
short label: blahblah….
loooooooooong label: blahblah….
Ooops, the webpage doesn’t like my formatting. In the second example, the colons align, and loooooooong label sticks into the margin
Thanks, Mark
tom
Hi Mark,
Have a look at the examples below using the
tabular
anddescription
environments. I’m sure, from there you’ll be able to adapt the examples to your needs. You may also find the enumitem documentation useful.Best, Tom.
kokorins
Hi, you might now how to add something like this:
But
[step 1] [step 2]
should be aligned to left, not to the center as it’s by defaulttom
Hello!
There was a very similar question in the previous comment. Here is a minimal example:
If you don’t need your text to start from the same position, use the following line of code instead:
Best, Tom.
Shehab
I wanted to use the following:
My document starts like as follows:
I am using TeXworks Version 0.2.3 (r.466) on Ubuntu.
I am getting the following error.
! LaTeX Error: Environment description undefined.
Please help.
tom
Hi Shehab,
Try using
itemize
, it seems thedescription
environment is not available in this particulardocumentclass
.Cheers, Tom.
Humberto
Hi Tom,
How I can enumerate chapters and sections (Ex. Chapter I, I.1) in Roman numbers, and figures, tables and equations in arabic numbers (Ex. Figure 2.1, Table 4.1, (5.1))?
Thanks
Humberto
tom
Hi Humberto,
Here is a minimal example. It works similarly for tables and equations.
Best, Tom
Kshatresh
Hi Tom,
How can I list my content such that second line of item starts with some space i.e after one two word of Ist line of item.
Thanks in advance
Kshatresh
tom
Hi!
Use
itemindent
of the enumitem package to create hanging indent in lists.Best, Tom.
Colin
I am having a problem where my enumerated list is running over my page width. I get the error: Overfull \hbox. Any ideas how to fix that?
Thanks,
Colin
tom
Hi Colin,
Unless you are using long words that are hard to hyphenate (e.g. hyperlinks), LaTeX will automatically line-breaks when the text reaches the margin. See my minimal working example below. Can you provide some code to illustrate the problem?
Thanks, Tom.
Colin
I think you were right and it just had to do with long words at the end of the sentence. I just added manual line breaks for the 2 words that caused the problems. Thanks for the reply.
tom
Glad you found a solution that worked for you. Cheers, Tom.
Radoslav
Hi guys, I have one question.. How can I insert in Latex an enumerator like this (*) to indicate my equation? And is there any way to insert a matrix (for example) and write a title “My matrix” below it.
Best,
Rado
tom
Referencing equations can be done as shown in the code below. Concerning matrices in LaTeX, please see my answer to your other question.
Cheers, Tom.
Radoslav
And the other thing that I forgot to ask .. how to insert a text into the matrix..I want to get something like this:
(text textfafaf)
(text text )
That is a matrix with 2 rows.
tom
Hi Rado,
You can use
\textnormal{}
in any math environment form normal text.Best, Tom.
Saiman
How can I get the look of \begin{description} … as shown in the article… but also as numbered list, i.e. something like below:
1. Biology: Study of life.
2. Physics: Science of matter and its motion.
3. Psychology: Scientific study of mental processes and behaviour.
Thanks in advance.
tom
Hi Saiman,
Thanks for your question. Here is an example I got from this google group:
Cheers, Tom.
nash
how do i write this in latex
1) AAAAAAAAAA
1.1 AAAA
1.2 AAAAAAA
1.3 AAAAAAA
2) AAAAAA
2.1AAAAAAA
2.2Uaaaaaaaa
2.3aaaaaaa
3 bbbbbbbbbbbb
some test here
tom
Hi Nash,
Here is one way to do it by redefining the counters:
Hope that helps!
Best, Tom.
aravindbm
Quoted text “The space between different items can be controlled with the \itemsep command (can only be added just after “begin”):
Is there a similar option in enumerate, to control the space between adjacent items. Thanks.
tom
Works exactly the same way.
Cheers, Tom.
aravindbm
Thanks. This worked. I would like to know, if we can change the space between the nested lists, as there is too much space left between the first level items and second level items. Thanks again.
tom
Hi!
The example below illustrates how to change the vertical space between nested list items. Cheers, Tom.
aravindbm
I would like to develop a skip pattern for my questionnaire. If I have to write three questions
1.
2.
.
.
.
13. Employment (a)1st option (b)2nd option (c)3rd option
14. If Q13 answered (a) or (b), your most recent occupation, ______________
For this I used enumerate to create the items 1 – 14 and so on…
But if I add or remove any items above the 13th, the ”if Q13 answered..” part of the 14th question needs editing. How can I automate this? Thanks.
tom
Hey!
You can use
\label
and\ref
.Best, Tom.
aravindbm
This syntax is not giving the reference as the proper Q number.
Results display
If Q?? answered (a) or (b), your most recent occupation
Instead of
If Q1 answered (a) or (b), your most recent occupation.
I think there is some error in the syntax.
Thanks.
tom
Like for any reference in LaTeX (figures, tables, etc.) you’ll have to typeset the document twice. The first time, LaTeX collects the
\ref
commands and after that it updates the numbers…aravindbm
Typesetting twice… worked like magic. Thanks again.
Regards,
Dr Manoj Aravind.
tom
Great! Best, Tom.
okkes
Hi Tom,
Is there any way to do as follows
question
1)
a)
b)
solution
1)
a)
b)
Thanks in advance
tom
Hi Okkes
The code below is a minimal working example showing how I would do it. Is that more or less what you had in mind? Best, Tom.
okkes
yes Tom, thanks a lot..
lailame
Thank you very helpful post
Ankhi Sena Mun
Thanks.. the description of {description} was really helpful… 😀
tom
Cool, thanks for the feedback. Tom.
Nikita
Hi,
how can I put the items in the same paragraph, and following the main text? I mean just like in this example itself: a) item-a, b) item-b, c) item-c.
Nikita
Hi again,
I was using paralist package and inparaenum environment, but in order to achieve more compatibility with translators (i.e. pandoc), the question is if it is possible to make it with enumerate package. Thanks a lot in advance.
tom
Hi Nikita,
Use the starred list provided by the enumitem package. Here is a minimal example:
Please see the package documentation for more details.
Best, Tom.
sonia
Hi.
can we have this itemize in latex (portable):
– test test test test
– ttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttttt….
ttttttttttttttttttttt.
– BBBB.
– CCC.
I want to margin bullet. if the item is long, starts after bullet (has a space) like up example
tom
Hi Sonia,
If I understand your question correctly, you would like to indent multi-line items. I wrote the example below and it seems this is the standard behavior. Could you provide a minimal working example similar to the one below to illustrate your problem.
Thanks, Tom.
Bel
Hi,
usually in my articles for the \documentclass[journal]{IEEEtran}, I use the “description” environment without any error,i.e. \begin{description} … \end{description}.
However, when I used the \documentclass{bioinf} for the Oxford Bioinformatics journal I got an error stating that the description environment is undefined.
Thanks in advance.
tom
Hi Bel,
Interestingly, the description environment is defined by the document class and the journal either had a reason not to define it or simply forgot.
However, if you look at the class file, they defined the environment
unlist
which you could use. Something like this should work:Francisco Burgos
Hi:
I have a question.
How you can change item separation but in the whole document?
Not only in the present list, put \itemsep 1pt after \begin{itemize}.
I know that is a little complicate but i dont know how many complicate.
Thanks at advances
tom
Hi Francisco,
The enumitem package provides a way to change the default setting for certain parameters. The code below illustrates how to change
itemsep
. See page 5 of the documentation for more details.HTH, Tom.
Susannah
I am using the mdwlist package with the report format. I have two list levels, the first list has arabic numerals, the second (nested) list is alphabetical. My second lists has increased to more than 26 items. Is there a way to convince LaTeX to number items 27-40 with aa, bb, cc, etc.?
Unfortunately, I cannot change the shorter list to alphabetical and the longer one to numerical.
tom
Hi Susannah,
How about using the alphalph package?
Javid
very helpful! Thanks Muck.
Nirvana
HI,
I realised that when using Description, the items are indented to the left.
i.e. the words [charism] and [elusive] are not aligned with Vocabularies.
How can I align them up?
Thx in advance.
Cheers,
Tim
tom
Hi Tim,
Either remove the indentation on “Vocabulary”:
or add these two lines to your preamble for automatic indention of description items:
Cheers, Tom
np0187
Hi,
I’m a beginner and I’ll be glad if you help me with this problem.
I’m creating lists using the itemize function as follows :
My problem is that since the name in my description i.e. “Operating frequency x Mhz” is quite large , most of it is not visible in the document generated.
Can you help me with this problem ?
Thanks in advance
tom
Hi!
First of all, you probably want to use
description
instead ofitemize
. It will automatically highlight text within “[]”. The enumitem package has lots of options for customization of lists. For example, it has adescription
style, newline, which automatically adds a linebreak after the text in “[]” in case it’s too long. I used that style in your code example below.Jeroen Schillewaert
Hi Tom,
is it possible to get the items printed in reverse order, this since I have
ordered my talks etc, in chronological order, but now I think it is more useful to list my newest ones first. However, changing the items manually around will be quite a task.
So what I have for now is
and I would like the output
New
Not so old
Oldest
Thanks a lot for your help,
Jeroen
tom
Hi Jeroen,
That’s an interesting but rather unusual problem. I don’t know of any package which does that. The etaremune package (see my post here) reverses the numbering in
enumerate
, but not the actual order of items.If you are keen enough, you might want to write your own macro to do that.
Best, Tom
Michiel
Hi!
I’m strugling with creating a list of symbols by using the description environment:
I want something like:
A first letter
B second letter
C third
However, the spacing between symbol and description is unequal (because the line spacing is constant but the length of symbols is not):
A First
B Second
C Third
Is there a simple solution for this problem?
Best and thanks in advance,
Michiel
tom
Hi Michiel,
Thanks for your question. The enumitem package provides options to keep the space between description item and paragraph constant. Below is an example. Increase or reduce the space by changing
leftmargin
.muiz
How to created itemize for multiple chooice test option, like
a). Item 1 d) Item 4
b). Item 2 e) Item 5
e). Item 3
Thanks a lot for your help,
Muiz
tom
Hi Muiz,
If you question is just about numbering the items, use
enumerate
instead ofitemize
. If you are asking how to place items next to each other, try the multicol package.Here is an example:
John
Hi Tom,
How do I created a nested enumerate where the second enumerate does not drop to a line line? i.e. I’d like it to resemble this:
a) i) Hello
ii) Hello
b) i) Hello
Could you help please?
Many thanks,
John
tom
Hi John,
You could use the
compactenum
environment of the paralist package. See code below for an example.Jong
Hi Tom, I would like to know how to
1. Adjusting the size of the $\bullet$ (make it smaller than usual bullet size
2. Set the position of bullets so that bullets are aligned.
It looks something like this.(suppose * is bullet)
* Item1 * Item2
* This is Item 3 * This is Item4 with long name
* Item 5 is here * I want this bullet start in the same position as above
Please note that I would like to have two items on a the same line and I would like to specifically define the position of bullet so it aligns nicely bullet to start at the same position even if I move to the next line.
Could I do that using ‘list’ or ‘itemize’?
tom
Hi Jong,
Thanks for this interesting question. Some people propose to go with the multicol package. However, this way the list gets filled in vertically instead of horizontally. Probably not what you’d like. I quite like the solution proposed here which uses the
tabular
environment. Here is a minimal example (including an option to change the bullet size):I hope you find this useful. I’m curious which solution you’ll go with!
Tom
Jong
Hello Tom, That was really helpful to me. Thank you so much for your help.
I am very new to the LaTex as well. I understood most of the codes but just wondering…. is the reason you used
\newenvironment{listable}
because we didn’t want to write out\begin{tabular}{ll}
each time?tom
Yes, that’s right. Also, it is a good practise, as it assures consistency. Finally, using a different name makes the environment searchable in a large document.
Tom.
Chris
How can I remove the space that comes after the \end{enumerate}?
i.e. I want my text to look like this:
1. Biology is fun
2. Physics is fun
Science is fun because scientific subjects are fun!
But currently, after \end{enumerate}, it looks like this:
1. Biology is fun
2. Physics is fun
Science is fun because scientific subjects are fun!
tom
I can think of two possible ways to do that:
1. Manually remove the space at the end of the last
item
:2. Using the enumitem package and the
nolistsep
option:Chris
Thank you! The first way worked. I’m not sure if it is my code specifically but the second method did not work just FYI
tom
Glad to hear, thanks for the feedback! Tom
Severus
Hallo, Tom! When using enumrate, the options [i], [a] etc. are clear. How does one generate ones own symbol-set? I am looking for a macro-def-command sort of like \newenumlistcounter{g}{$\alpha$,$\beta$,$\gamma$,$\delta$,$\epsilon$}, so that when one enters \begin{enumerate}[(g)], this symbolset is used. Any ideas?
tom
Hi Severus,
You might find the moreenum package useful.
Cheers,
Tom
sufipeace
Enumeration with [ as the 1st character does not work. How to resolve it?
[ as the 1st character of a \item has special meaning. How to override it? For example, if I have:
How to get the output: [alpha]?
tom
Hi Sufipeace,
Interesting questions, thanks!
\item
takes an optional argument, seedescription
environment. You can escape it with backslash-space.Himanshu Kumar
If i wish to start a line just below just below something, how will i do it?
Suppose i have to write
a=x+y+x
=2x+y
tom
You can use the
align
environment, which is provided by the amsmath package. See example below. Cheers, Tom.JanFeb
Hey
I wanted to create a question answer list like this:
1. Question 1 here
Ans: Answer here
2. Question 2 here
Ans: Answer here
.
.
. (long list)
How to do this? I want “Ans:” to be written directly below the item number.
tom
Hi there,
My suggestion would be to write a macro. See example code below. Hope this helps, Tom.
Neeraj Bhanot
Hi,
I am facing an issue in itemise environment. I need to maintain double spacing in between text. It is possible to maintain double spacing in between two consecutive bullets but I am not able to get double spacing in between long text of one bullet itself and it remains to single space only. the example is shown as follows:
So I am able to get double space in between two bullets using item sep but when this long text goes in to next line, the space between two lines of one bullet remains to single space only.
Can anyone please guide for it ?
Thanking in anticipation.
Regards
Neeraj
tom
Hi Neeraj,
Thanks for your question.
You can set a different line spacing locally through
setstrech{2}
(setspace
package, see below). If you need this for multiple lists, it may be worthwhile to define your own list environment through\newenvironment{}
.HTH,
Tom.
Neeraj Bhanot
Hello Sir,
I just wish to add to my previous comment that when I mentioned
\openup 1em, instead of \setstretch{2}; it did my required task.
Kind Regards
Neeraj
tom
Dear Neeraj,
Thanks for your comment with the solution that worked for you.
Best, Tom
irshad alam
How can you add DESCRIPTION and ENUMERATE together? Ie the output would show:
1. Group1: XXXXX
2. Grouip 2: XXXXXXX
tom
Hi there,
Use the enumitem package to add a counter in front of each description item.
irwan
thanks alot..
Uros Veljkovic
Hi, i have problems putting items (from itemize) next to each other…something like this:
+Red +Blue +Green
(just the bullets are there instead of pluses)
tom
Hi Uros,
Thanks for the comment. I wrote about inline lists some time ago. Below is a minimal working example.
Hope this helps,
Tom
Jaime
I came across an issue with an article using MikTEX and the begin{itemize} bullets. When the line is longer than the line provides, it drops to the second line below, but is aligned with the bullet, not the text. How can I fix this so that the text aligns with the text on the previous line?
tom
Hi Jaime,
You can adjust the
\leftmargin
and\itemindent
using the enumitem package. See the package documentation for more details. If you need more specific help, please provide a minimal working example to illustrate the problem. See the example below.Best, Tom