Tag Info

Hot answers tagged lists

5

\textbf makes the argument bold. An alternative is environment description: \documentclass{article} \begin{document} \begin{itemize} \item \textbf{src} contains the activities as well as the Java code. \item \textbf{gen} \item \textbf{assets} \item \textbf{bin} \end{itemize} \hrule \begin{description} \item[src] contains the activities as ...

5

The depth of the enumeration is confused by this proceeding, unless there's grouping: \documentclass{article} \usepackage{letltxmacro} \makeatletter \def\SavedEnum{} \let\BeginEnumerate\enumerate \def\enumerate{% \g@addto@macro\SavedEnum{\begingroup\BeginEnumerate}% \BeginEnumerate } \let\EndEnumerate\endenumerate \def\endenumerate{% ...

5

Have found an answer. \documentclass{article} \usepackage{enumitem} \newlist{longenum}{enumerate}{5} \setlist[longenum,1]{label=\Roman*.} \setlist[longenum,2]{label=\Alph*.} \setlist[longenum,3]{label=\arabic*.} \setlist[longenum,4]{label=\alph*.} \setlist[longenum,5]{label=(\roman*)} \begin{document} \section*{Enumerated list with 5 levels} ...

5

If it is to be used with itemize like this, here is an enumitem way using before=Entry \documentclass{article} \usepackage{enumitem} \setlength{\parindent}{0pt} \begin{document} \begin{itemize}[topsep=0pt,before=Entry] \item First Item \item Second Item \end{itemize} \end{document}

4

This is the enumitem way to do this, with \newlist{...}{enumerate}{5} and using specific \setlist commands for the various levels: \documentclass{article} \usepackage{enumitem} \newlist{mylist}{enumerate}{5} % Specify 5 Levels as clone of enumerate \setlist[mylist,1]{label={\Roman*.}} % Roman uppercase numbers I. \setlist[mylist,2]{label={\Alph*.}} % ...

4

It's not elegant, but it works. \documentclass{book} \usepackage{showframe} \begin{document} top of page \vfill \noindent\begin{minipage}{\textwidth} \begin{itemize} \item item 1 \item item 2 \item item 3 (I'd like this to be aligned with the last line on the facing page) \end{itemize} \end{minipage} \end{document} Aha! I found the culprit! One can ...

4

It's possible to use itemsep from enumitem with some negative values, to reduce the spacing. It holds for itemize as well: \documentclass{article} \usepackage{multicol} \usepackage{enumitem} \begin{document} \begin{itemize}[itemsep=-5pt] \item First \item Second \end{itemize} \hrule \vskip\baselineskip Normal vertical separation \begin{multicols}{2} ...

3

Your attempt fails because lists in the paralist package are not responsive to enumitem mechanism for customizations; instead, you can easily emulate compactitem using enumitem: kill the vertical spacing with nolistsep and now you can use all enumitem features. A little example: \documentclass{article} \usepackage{enumitem} \newlist{compitem}{itemize}{4} ...

3

your \SavedEnum is equivalent to \documentclass{article} \begin{document} \enumerate \item 1st level \item \enumerate \item 2nd level\endenumerate \item \enumerate \item 2nd level\endenumerate \endenumerate \end{document} when using commands first \endenumerate will end first \enumerate. Update Now try this \documentclass{article} \begin{document} ...

3

Your question seems to be about iterating on a list of undelimited macro arguments that contains an arbitrary amount of arguments in order to achieve some sort of foreach-loop. I can offer some fully expandable solutions where a marker for denoting the end of the list of arguments is not needed as the end of the list is determined by the emptiness of a ...

3

One option is to manually make the text you want bold. \begin{itemize} \item \textbf{src} contains the activities as well as the java code. \item \textbf{gen} \item \textbf{assets} \item \textbf{bin} \end{itemize} Furthermore, another option which gives you a new environment for bold prefixes (bolditemize), while keeping the bulleted list. ...

3

I suggest to define a new environment, so you can change its realization by just modifying the relevant definitions; enumitem is very handy for this when dealing with lists. \documentclass{article} \usepackage{enumitem} \usepackage{lipsum} % for mock text \newenvironment{descitemize} % a mixture of description and itemize ...

3

enumerate, at least in its standard version from latex.ltx uses an \list internally too. The outer \list from the question environment` and the inner ones interfere, it's better to group them, to protect the list depth/enum depth counters. I don't understand why an outer \list is used at all. I've provided two ways -- with enumitem and its shortlabels ...

3

\edef\@currentlabel{#1} must be replaced by \protected@edef\@currentlabel{#1} otherwise the expansion of the argument fails. \documentclass{article} \usepackage{fontspec} % xelatex ext font support \usepackage{enumitem} % Add easy custom list support \usepackage{menukeys} % Demonstrate labeling of macros \usepackage{hyperref} % Add ref support ...

3

This is a short hack, for enumerate package using \AlphAlph as counter output format. (The \foreach is just the loop to generate 50 \item ) In a normal setup, enumerate[(A)] can use only the 26 characters of the Latin alphabet such that \Alph{enumi} would fail if the enumi counter has a value of 27 or greater. To prevent this, the [(A)] output must be ...

3

I suggest to use a separate unit key for the symbol unit and refer to it with \glsunit. (Alternative: Use the user1...user6 keys for this feature) In addition, this key must be used in the glossarystyle. I've defined a new style based on the already provided long3col style which displays the symbols in the requested order. \documentclass{scrbook} ...

3

Something like this? It is a bit hard to say how best to structure it without more context. Why, for example, are you not using \section*{} and \subsection*{} or similar? Assuming you do not want to do that for some reason, the following code produces the output above using a \NewEntryX{}{}{}{} command and a new unordered list, entries: ...

2

You should try the needspace package. Since it looks like 5 to 6 lines are occupied by the material that needs to be kept together, you might try: \documentclass{article} \usepackage{multicol,needspace} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %% how is the "\vysl" macro defined? \begin{document} \begin{enumerate} \item \dots \item týden ...

2

Remove the faulty \\ after #1 -- it does no good there. Leave an empty blank line to separate the items. In my point of view this however no really convincing way to use itemize etc. \documentclass{article} \usepackage{enumitem} \setlength{\parindent}{0pt} \newcommand{\NewEntry}[2]{% #1% #2% } \begin{document} \NewEntry{ENTRY} ...

2

You don't need xparse for this case and the facilities of enumitem are best suited. I have defined a new list parameters using \newlist (of enumitem). Also same enumitem provides before key using which, we can force a new line. We have to tell TeX to change the vertical mode. \documentclass{article} \usepackage{fontspec} \usepackage{enumitem} ...

2

It might be dangerous in some situations but a simple \unskip works here. \documentclass{book} \begin{document} dummy page 1 (to easily see the problem in the double page view) \newpage top of page 2 \vfill bottom of page 2 \newpage top of page 3 \vfill \begin{itemize} \item item 1 \item item 2 \item item 3 (this should be aligned with the last line on the ...

2

Do you need it just a few times? In this case you can jump to a normal enumerate after as many items as you want: % arara: pdflatex \documentclass{article} \usepackage[inline]{enumitem} \begin{document} \noindent Text before list. \begin{enumerate*} \item My first item. \end{enumerate*} \begin{enumerate} \setcounter{enumi}{1} \item My second item. ...

2

If I understand you want to add bullet for every section, subsection in the headline. You can do it with a minimal change in the definition of \insertsectionnavigation and \insertsubsectionnavigation The definitions of both commands in beamerbasenavigation.sty are: \def\insertsectionnavigation#1{% \hbox to #1{% \vbox{{\usebeamerfont{section in ...

2

We can restore maghrib form of numbers 1, 2, 3 instead of machriq ١،٢،٣ in case of default language set to arabic with \let\@arabic\orig@arabic Code \documentclass[12pt,oneside]{report} \usepackage{polyglossia} \setmainlanguage{arabic} \setotherlanguage{english} \newfontfamily\arabicfont[Script=Arabic]{Scheherazade} \makeatletter ...

2


2

You should update the counter in question manually in two ways: Stepping it, either with \stepcounter or \refstepcounter if you want proper referencing capability; Setting the appropriate format as the optional argument to \item[..]. \documentclass{article} \begin{document} \begin{enumerate} \item OK \begin{enumerate} \refstepcounter{enumii}% ...

2


2

Here is a solution with tikzmark: \documentclass{article} \usepackage{enumitem,tikz} \usetikzlibrary{tikzmark,calc} \begin{document} \begin{itemize}[label={}] \item First element of the outermost list \begin{itemize}[label={}] \item \tikzmark{s1}First element of a nested list \item Second element of a nested list ...

1

You can create your own environment datelist, where date is separated by colon after \item sequence. \def\dateliststart{\def\item##1:{\par \noindent\hbox to2em{\hss$\bullet$\hss}\hbox to6em{##1:\hss}% \hangindent=2em \ignorespaces}} \newenvironment{datelist}{\bgroup\dateliststart}{\par\egroup} \begin{datelist} \item June 2014: Stanford University ...

1

Here are two approaches. One uses a tabular and guarantees that the rows are lined up, and consequently requires a multirow to overlap lines. The other uses minipages and may or may not line up rows (font size change, over sized math expressions, etc.). \documentclass{article} \usepackage{multirow} \parskip=\baselineskip \begin{document} ...

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