General ⇒ Help with enumerate and description
Help with enumerate and description
I have some problem creating the Layout I want: in most of my books examples are written like this:
TextTextTextTextTextTextTextTextTextTextTextText
_____(a)____Example ExampleExampleExample
TextTextTextTextTextTextTextTextText
how do I recreate this layout?
one possible solution is by using the enumerate command and add to each item the letters a,b,c etc. in brackets. is there another way to do this?
To explain my problem a bit better: i want to enumerate each example in my document just like mathematical formulas are in the equasion environnement, but with the brackets to the left.
Thanks for your help!
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Help with enumerate and description
Code: Select all
\documentclass{article}
\usepackage{enumitem}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\begin{enumerate}[label=(\alph*)]
\item First item
\item Second item
\end{enumerate}
text text text text text text text text text text text
\end{document}
Re: Help with enumerate and description
I forgot to write that I already tried your solution but for som unknown reason it doesn't work: every time I want to use options for the enumerate command, latex stops compiling.
i'm using the following packages
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
on the newest version of Texlive
Help with enumerate and description
Code: Select all
\documentclass{article}
\usepackage[ngerman]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{enumitem}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text
\begin{enumerate}[label=(\alph*)]
\item First item
\item Second item
\end{enumerate}
text text text text text text text text text text text
\end{document}
Re: Help with enumerate and description
strange ???
Thanks a lot!
Help with enumerate and description
I've a problem, and I couldn't find any solution yet. I try to create a definition list, but the hyphenotaion doesn't work within the item (I mean here: \item[hyphenation doesn't work here]). What could be the problem? On my previous laptop it was OK, but now it doesn't work either on Ubuntu nor on Vista

Here is my preambulum :
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[hungarian]{babel}
\usepackage{fontenc}
\usepackage{graphicx}
\date{2008-06-10}
Help with enumerate and description
Code: Select all
\documentclass[a4paper,10pt]{article}
\begin{document}
%this will cause an overfull \hbox
\begin{description}
\item[A somehow unusual very very very very very very very very very very very very long descriptor] First item
\item[A regular descriptor] Second item
\end{description}
%this will prevent the overfull \hbox
\begin{description}
\item[\parbox{.9\linewidth}{A somehow unusual very very very very very very very very very very very very long descriptor}] First item
\item[A regular descriptor] Second item
\end{description}
\end{document}