Tag Info

New answers tagged

1

Although the OP uses enumerate package way I wanted to show an enumitem solution, applying the easy to use \setlist command. \documentclass{article} \usepackage{enumitem} \setlist[enumerate,2]{label=\roman*)} % Setting the 2nd level list to use lower case roman `numbers` as label \begin{document} \begin{enumerate} \item First \begin{enumerate} ...


3

The simplest is to use the wide= option. Here are two variants: \documentclass[multi={minipage}, border=5]{standalone} \usepackage{enumitem} \begin{document} \begin{minipage}{500bp} \fontsize{20}{24} \selectfont \begin{enumerate}[wide =1em] \item{Lorem ipsum dolor sit amet, consectetur adipisicing elit. Ut enim ad minim veniam, quis nostrud ...


4

\documentclass[multi={minipage}, border=5]{standalone} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \begin{minipage}{500bp} \begin{enumerate}[ topsep=0pt, itemsep=-1ex, partopsep=1ex, parsep=1ex, leftmargin=0ex, itemindent=3ex ] \item \lipsum[1] \item \lipsum[2] \end{enumerate} \end{minipage} \end{document}


4

This shows no indentation at all after the first line of each item, perhaps you want to indent to the label position? \documentclass[multi={minipage}, border=5]{standalone} \usepackage{enumitem} \begin{document} \begin{minipage}{500bp} \fontsize{20}{24} \selectfont \begin{enumerate}[topsep=0pt,itemsep=-1ex,partopsep=1ex,parsep=1ex,leftmargin=0pt, ...


1

a label must be associated with a counter. description list items don't have counters. so the most recent counter is attached to the label; that counter could be a section, a figure, an equation, ..., but not a description item.


11

LuaTeX is ideal for such tasks. LuaTeX has a socket library, that can be used to fetch data from urls. In ConTeXt, almost all file related commands (\readfile, \typefile, \externalimage, etc) can fetch data from URLs as well. However, for getting IMDB ratings, it is easier to use an API rather than parse data from the HTML page. One unofficial API from IMDB ...


5

The difference is in the fact that beamer redefines itemize to have an optional argument, which isn't done for enumerate. Thus your attempt to patch \itemize adds the code in the wrong place. With xpatch it works: \documentclass{beamer} \usepackage{tikz} \usepackage{xpatch} \usepackage{polyglossia} \setdefaultlanguage[numerals=maghrib]{arabic} ...


4

Append \singlespacing to the start code of every exe environment: \documentclass[12pt]{article} \usepackage[margin=1in, left=1.25in, right=1.25in,headheight=14.5pt]{geometry} \usepackage{fancyhdr} \usepackage{setspace} \usepackage{url} \usepackage{gb4e} \usepackage{etoolbox} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \fancyhf{} \fancyhead[R]{Name ...


4

You can put \singlespacing inside \begin{exe} so that the effect is local \documentclass[12pt]{article} \usepackage[margin=1in, left=1.25in, right=1.25in,headheight=16pt]{geometry} \usepackage{fancyhdr} \pagestyle{fancy} \renewcommand{\headrulewidth}{0pt} \rhead{Name \thepage} \cfoot{} \usepackage{setspace} \doublespacing \usepackage{geometry} ...


4

Why doesn’t \documentclass{article} \usepackage[T1]{fontenc} \newcommand\DoSomething[1]{Hello, #1} \begin{document} \begin{description} \renewcommand*{\makelabel}[1]{\textbf{\DoSomething{#1}}} \item[Duck] ([Hello, Duck] is the label.) \end{description} \end{document} fulfill your needs?


5

Without any packages as wanted by OP. \documentclass{article} \renewcommand{\theenumi}{\arabic{enumi}.} \renewcommand{\labelenumi}{\theenumi} \renewcommand{\theenumii}{(\alph{enumii})} \renewcommand{\labelenumii}{\theenumii} \renewcommand{\theenumiii}{\roman{enumiii}.} \renewcommand{\labelenumiii}{\theenumiii} \renewcommand{\theenumiv}{\Alph{enumiv}.} ...


2

The entrylist environment and \entry command are defined like this in friggeri-cv: \newenvironment{entrylist}{% \begin{tabular*}{\textwidth}{@{\extracolsep{\fill}}ll} }{% \end{tabular*} } \renewcommand{\bfseries}{\headingfont\color{headercolor}} \newcommand{\entry}[4]{% #1&\parbox[t]{11.8cm}{% \textbf{#2}% \hfill% ...


1

I can show how to set this feature in plain TeX with OPmac. The \begitems and \enditems are redefined. First one reads the data from REF file (this is similar like aux in LaTeX). The result of such reading is the \lastitem macro where the number of items in the current items-list is stored. The second one (\enditems) saves the \itemnum (i.e. the number of ...


4

This is because of the way lists a physically built: label boxes are right-aligned at the list left margin, having the effect of an \llap{labelbox} command. The solution consists in setting the align=left key from the enumitem package and suppressing the label indent from the page left margin: \documentclass{article} \usepackage[showframe]{geometry} ...



Top 50 recent answers are included