Questions tagged [lists]

{lists} is about list environments. If your question deals with a specific list environment, such as {itemize}, {enumerate}, or {description}, add that tag along with this one. {enumitem} is a popular package for customizing lists. For registers like a "List of figures", use {table-of-contents} instead.

Filter by
Sorted by
Tagged with
1 vote
2 answers
24 views

Whitesace in Leading Zeroes in Enumerate Environment

I've been trying to make an enumerate environment with this format: "N09 P###.", where ### is a list of zero-padded items from 1 to 200 (001-200). I was using this answer to help me with ...
user avatar
0 votes
1 answer
25 views

How can I have two spaces before the broken lines in inputlisting?

I am using the solution from How can I write line numbers inside boxed code. Its code with slightly changes: \begin{filecontents*}{\jobname.sol} function hello_world(uint a, uint b, uint c, uint d,...
user avatar
  • 420
1 vote
2 answers
45 views

How define a command with argument to specify which list to return?

I want to define a command that returns one or another list, as a list enclosed in braces, that, in my real document and not this MWE, I can use as an argument to something else (namely, the list over ...
user avatar
  • 6,557
0 votes
0 answers
54 views

How to have better tab and alignment in maths equations?

Instead of typing the \hspace{30mm} or otherwise to set the space, are there any other ways to efficiently 'tabbing' different equations in different alignment environments? Sorry if the code is bad, ...
user avatar
1 vote
2 answers
41 views

Multiple List Columns with Images

I've seen answers as to how to make multiple columns, but I have Venn diagrams that go with each item in the list, and I want to make two columns of two items and their diagrams rather than one column....
user avatar
0 votes
0 answers
31 views

What is the difference of using \list vs. \begin{list} and \endlist vs. \end{list} [duplicate]

When creating environments based on list I have seen two implementations: \documentclass{report} \newenvironment{examplea}{% \begin{list}{}{% stuff here }} {\end{list}} \newenvironment{exampleb}{% \...
user avatar
  • 2,136
0 votes
1 answer
20 views

How do I globally adjust/stretch the in-between vertical spacing of items in lists only when they include display style fractions in inline math mode?

Here's my MWE compiled using LuaLaTeX: \documentclass[oneside,DIV=12]{scrbook} \usepackage{scrhack} \usepackage[automark]{scrlayer-scrpage} \usepackage[english]{babel} \usepackage[babel]{microtype} \...
user avatar
0 votes
1 answer
44 views

Aligning Text within a List with Different Length Text to Start Each Line

For my discrete structures class I often find myself creating lists which contain equations or propositional statements, with a description needed on the same line but further to the right. I want to ...
user avatar
2 votes
1 answer
40 views

How to skip the item body in an inline description* list?

I am having a simple doc: \documentclass[a4paper,12pt]{article} \usepackage{enumitem} \newlist{inlinedesc}{description*}{1} \setlist[inlinedesc]{itemjoin={{ $\odot$ }}, itemjoin*={{ and }}} \...
user avatar
  • 203
1 vote
0 answers
31 views

How to make inline description* list left-aligned and hyphenated?

I am having a simple doc: \documentclass[a4paper,12pt]{article} \usepackage{enumitem} \newlist{inlinedesc}{description*}{1} \setlist[inlinedesc]{itemjoin={{ $\odot$ }}, itemjoin*={{ and }}} \...
user avatar
  • 203
1 vote
1 answer
113 views

How Can I Remove White Splace Caused by a List in a LaTeX Table

I created this table: \begin{table}[!h] \caption{\label{tab:choix-de-carriere-different}Choix de carrière: ingénieur logiciel} \centering \begin{tabularx}{\linewidth}{|p{10 em}|X|} \hline \textbf{...
user avatar
1 vote
1 answer
31 views

List of abbreviations using setlist and enumitem package

I am writing a list of abbreviations. This is the format that I use. So I use this configuration \usepackage{enumitem} \newlist{abbrv}{itemize}{1} \setlist[abbrv,1]{label=,labelwidth=1in,align=...
user avatar
  • 25
0 votes
2 answers
59 views

How to save variable values into list [closed]

I want to save the content of a token into a list like this. \documentclass{article} \usepackage{etoolbox} \begin{document} \def\abc{1} \listgadd{\lista}{\abc} \def\abc{2} \listgadd{\...
user avatar
0 votes
1 answer
28 views

Inconsistent line breaking in list environment

The following test code \documentclass[8pt]{article} \usepackage{extsizes} \usepackage{setspace} \setlength{\parindent}{0pt} \setstretch{0.75} \begin{document} \begin{itemize} \item[] ...
user avatar
  • 791
1 vote
1 answer
37 views

How do I align the start of each \item in an enumerate environment with left-aligned labels?

Here's my MWE using LuaLaTeX and the scrbook KOMA-Script class: \documentclass[% % draft, twoside, headings=openany, % parts/chapters start on any page whether it's odd or even DIV=15, % division ...
user avatar
0 votes
1 answer
28 views

Remove vertical space above list in cell with color

When a list is the first item in a cell, it has a big vertical space above. In order to remove this space, classical answers are based on inserting \@minipagetrue before the list. Unfortunately, this ...
user avatar
1 vote
1 answer
30 views

Listing something as table with one column

This is more a question on general design of something than a technical question. I want to list parameters that are used in a model. Since I have 7 parameters I think it wouldn't be readable if I ...
user avatar
4 votes
3 answers
817 views

Smarter way to write bullet point notes?

when I take notes by hand I typically write them in a "bullet list" fashion, something like main phrase -> hence A -> since A follows B -> since A follows also C -> also from ...
user avatar
  • 37
1 vote
0 answers
74 views

How can I cancel the unpleasant indentation of the enumerate environment?

I want to change the default indentation of the enumerate environment, so I use the enumitem package. Here is my code: \documentclass{article} \usepackage{enumitem} \usepackage[default-range=1]{lipsum}...
user avatar
0 votes
1 answer
21 views

How to Increase the Separation of the Numbering and Caption on a List of Definitions to Avoid Overlays

I'm working with a list of definitions (LOD) that wich, in essence, is the one presented in the following pice of code (except for the numbering). I am running into the issue that, for large numbers, ...
user avatar
0 votes
0 answers
22 views

\fltitem does not work properly when I compile large document

I've used the \fltitem to avoid the list problems recently. The \fltitem works very well when I compile a small document, however, the \fltitem does not work properly when I compile a large document ...
user avatar
  • 15
2 votes
2 answers
167 views

How can I write line numbers inside boxed code

I am trying to show a code-piece inside a box. I was wondering is it possible to has its line numbers inside the box as well, shifting code little to the right? I have following code: \expandafter\def\...
user avatar
  • 420
0 votes
1 answer
32 views

List with the first item equals the last number in another list + 1 [duplicate]

I want to set the first item in a list equal to the last item (a number) in a previous list plus 1 such that if I change the length in the list it will automatically update. My attempt: with the ...
user avatar
  • 103
0 votes
1 answer
35 views

How to define a custom description environment?

I want to define a new "custom-description" environment, say my description that taken in one length argument and produces the result that is achieved by the following code: \documentclass{...
user avatar
  • 297
7 votes
2 answers
237 views

Nested lists with roman numerals

I have seen here how roman numerals can be used in enumerate lists. How could I create nested lists with roman numerals, to get something like this? (i) ... (i.i) ... (i.ii) ... (ii) ...
user avatar
6 votes
3 answers
333 views

How to make it so that newcommand takes the rest of my line as argument?

I declared a new command to format list elements in LaTeX as follows: \newcommand{\sitem}[1]{\item \makefirstuc{#1},} \newcommand{\eitem}[1]{\item \makefirstuc{#1}.} This works OK, but now I have to ...
user avatar
  • 1,382
0 votes
0 answers
36 views

How to parameterize enumeration item indent by its level number?

I want to use the wide option of the enumitem package with indent depending on the level number. Is it possible to parameterize indent value of an enumeration element by its level number ? \setlist[...
user avatar
3 votes
3 answers
130 views

How to change interline spacing only inside lists?

If I do the following: \documentclass{article} \usepackage[T1]{fontenc} \usepackage{setspace} \usepackage{enumitem} \setstretch{2} \setlist[itemize]{topsep=.1em,itemsep=.1em,parsep=0em,partopsep=0em} \...
user avatar
  • 818
3 votes
1 answer
119 views

How to remove vertical space after numbered item?

I am using the mcexam package. How to remove the yellow space shown in the picture? \documentclass[11pt]{article} % Packages \usepackage[a4paper,margin=1.5cm, portrait]{geometry} \usepackage{amsmath}...
user avatar
0 votes
0 answers
18 views

Both bibliography and citations are not showing up in the text using Tekmaker

I have tried all the solutions found online but nothing helped. Infact the same bib file worked well for the other two other templates I had used but the problem arose while using the template for the ...
user avatar
  • 1
2 votes
1 answer
70 views

Nested lists consistent vertical spacing with Beamer

When inserting nested lists inside the beamer package the vertical spacing between the items is not equal -- i.e. inconsistent. What is the reason for this behaviour? And is there a way to avoid the ...
user avatar
  • 909
4 votes
3 answers
182 views

Customizing the Labels of a Multienum Display

This question is a follow-up to Pairing Items for Display in Two Columns I have the code \documentclass{book} \usepackage{multienum} \begin{document} \thispagestyle{empty} \begin{multienumerate} \...
user avatar
2 votes
1 answer
37 views

Trying to modify the appearance of a description environment

I have to do something like this but I don't know how to do it. I tried with \newcommand and \newenvironment but it seems that it's the wrong solution if you have any idea please tell me.
user avatar
  • 21
2 votes
1 answer
65 views

Pairing Items for Display in Two Columns

I have am putting together a list of enumerated items in which I would like to pair consecutive items: 1,2 ; 3,4; 5,6; etc. so that the odd numbered item appears on the left hand side of a two-column ...
user avatar
0 votes
1 answer
43 views

How to change the delimiter for last item using datatool?

This is a follow up question on two other questions I am struggeling with: How to change the delimiter for a final item in a clist? Looping through values from other database using the ID (primary ...
user avatar
1 vote
1 answer
51 views

Can anyone help me to explain the \list, \endlist and \item \commands in the newenvironment

\newenvironment{resumelist}[1] {{\noindent\normalfont\bfseries #1} \list{}{\labelwidth\z@ %% what's the meaning of the command \list{} \leftmargin 4\ccwd \...
user avatar
0 votes
0 answers
33 views

How to have a line beside a bulleted list

Normally a list looks just like this: text here some sub text some sub text 2 text again But I would like a line through the text - some text | - hello | - hi - another text - another part of the ...
user avatar
0 votes
1 answer
21 views

Multi numbering system for lists

I'm quite new to latex and I've been trying to create a multi level numbering of my list of items, and it turned out to be too 'complex' for me. I tried a few things already, but with no good outcomes....
user avatar
0 votes
1 answer
47 views

How to modify a template?

I have the below template that I am using to write my thesis. The template produce the text in Content and List of figures and List of tables in red color. It's defined in the template as mdtRed. I ...
user avatar
  • 219
1 vote
1 answer
40 views

indent entire item block in enumerate

I have the following MWE: \documentclass{article} \usepackage{lipsum} \begin{document} \newenvironment{tight_enumerate}{ \begin{enumerate} \setlength{\itemindent}{-1.5em} \setlength{\itemsep}{...
user avatar
6 votes
1 answer
123 views

Detect if is currently in a list

Is there anyway to detect if the code is currently inside a list, no matter itemize, enumerate or description? Note: I'm using enumitem for configuring lists. Motivation: The reason I'm asking this is ...
user avatar
  • 6,190
0 votes
1 answer
44 views

Curly brackets around items in a list (in source code) or not?

To make a list, all LaTeX info that I see (for example learnlatex.com) suggest the following style (I'll take itemize as example): \documentclass{article} \begin{document} \begin{itemize} \item An ...
user avatar
1 vote
1 answer
59 views

Underline list item to page width

I am currently working on my thesis template, which requires the title to be formatted as shown below: The title begins with a fixed "THESIS:" label, and the title itself is placed with ...
user avatar
  • 13
4 votes
1 answer
72 views

How to Delineate All Index Entries Under a Heading Horizontally as a Paragraph

Consider the code \documentclass{article} \usepackage{imakeidx} \makeindex \usepackage{idxlayout} \usepackage{xcolor} \begin{document} \Large Some words.\index{Heading@\textbf{Heading}! 1. This is ...
user avatar
  • 5,305
0 votes
3 answers
41 views

Strikeout numbers from an enumerated list

I would like to have a simple enumerated list like \begin{enumerate} \item First item \item Second item \end{enumerate} where I strike through "(1)" and "(2)" but not the ...
user avatar
0 votes
1 answer
39 views

How to customize enumerate list with resuming numbering on second level using customize item command?

I have a customized enumerate list which defines workpackages. Everything works fine even for the first nested level. But at the next lower nested level the numbering is not continuing: I have ...
user avatar
0 votes
1 answer
42 views

What are the preset numbered lists available in enumitem?

I use enumitem lists all the time for unnumbered lists, bulleted lists, checkboxes, etc, and I know that [label=\arabic*] changes the default numbering to give me `regular' numbers. What I would like ...
user avatar
  • 195
1 vote
1 answer
53 views

Subitem indentation

How can I ensure that when the text goes on a new line it starts at the level of the \Subitem instead of the intendation level of \item as it does it now? \documentclass[a4paper, 12pt]{report} \...
user avatar
  • 29
0 votes
0 answers
29 views

Pandoc problem reading custom latex environment inside of a custom list

I want to compile a Latex document with the following structure in Pandoc: \documentclass{article} \newenvironment{myenumerate}{\begin{enumerate}}{\end{enumerate}} \newenvironment{myenvironment}{}{} ...
user avatar
  • 1,081
0 votes
1 answer
38 views

Multi-column, aligned acronym list with acro package (article class and acro version 3.x)

To make a long story short, I have the same question as already mentioned in acro 3.3 format listing and How to make a multi-column acronym list with acro package, aligned and with short definition in ...
user avatar

1
2 3 4 5
55