Tag Info

Hot answers tagged

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} ...


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}.} ...


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?


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

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

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} ...


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, ...


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}


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 ...


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% ...


2

With some help from xparse (to easily define a \source command with a *-variant) and array for a new column type: \documentclass{article} \usepackage{xparse,array} \NewDocumentCommand{\source}{sm}{% \IfBooleanTF{#1}{\bracedsource{#2}}{#2 &}% } \NewDocumentCommand{\bracedsource}{m}{% \global\setbox9=\hbox{% ...


2

\documentclass{article} \begin{document} \begin{description} \item[C]ommon infrastructure \item[L]ocation independence \item[O]nline accessibility \item[U]tility pricing \item[\llap{on-}D]mand resources \end{description} \end{document}


1

You can save the \itemsep as \myitemsep and then use it for inner list. \documentclass{llncs} \usepackage{enumitem} \newlength{\myitemsep} \setlength{\myitemsep}{\itemsep} \begin{document} \begin{itemize}[itemsep=2em] \item \textbf{L11}: This is level 1 item \begin{itemize}[itemsep=\myitemsep] \item \textbf{L21}: This is level 2 ...


1

You wouldn't see this effect with a standard class like article, as it defines the commands for the inner lists so that they reset \itemsep. But you can add a similar feature when using llncs: \documentclass{llncs} \usepackage{etoolbox} \makeatletter \appto\@listii{\itemsep=0pt} \makeatother \begin{document} \begin{itemize} \itemsep2em \item ...


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 ...


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.



Only top voted, non community-wiki answers of a minimum length are eligible