8
votes
2answers
97 views

Apply command to list of elements separated by \and

I am trying to build a command similar to the \author command. It takes one argument with is actually a list of arguments separated by \and. The command needs to apply another command like \underline ...
3
votes
1answer
62 views

Make a command start new line in a list if it is not currently at the end of another list

I am trying to typeset a structured proof as demonstrated by Leslie Lamport in his paper How to Write a 21st Century Proof. In particular, I am trying to typeset Figure 3 (shown below). My code and ...
2
votes
1answer
113 views

Defining a new command whose argument doesn't need braces

I created a \newcommand to allow me to quickly create one-item lists. \newcommand{\itemm}[1]{\begin{itemize}\item #1 \end{itemize}} When I used \item, I don't have to put braces around the text. Is ...
5
votes
1answer
169 views

Creating a simple list of symbols

Inspired by this great answer I tried to manually create a glossary-style environment for a simple list of symbols. Basically I wanted to create a command newsymbol that can be executed from anywhere ...
9
votes
1answer
125 views

Multilevel bullets

I want to write something that I could use for multilevel bullets, for example: I. Title Subtitle a. sub-subtitle ... In LaTex I got \def\startitems { \begingroup \parindent\z@ ...
5
votes
1answer
101 views

Can I make an environment that defaults to include \item\relax tags in front of paragraphs?

This certainly sounds lazy, but my use case is designing a crude template for power point presenters to use in converting their content to a company's specific presentation standard, without their ...
0
votes
0answers
33 views

Putting itemize environment in a tabular environment [duplicate]

I have a macro that makes an itemize environment. When I tried to use the macro in a tabular environment, I have this error message. ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. ...
3
votes
1answer
159 views

Create a custom heading in scrreprt (normal fontsize, boldface)

I finally managed to make an account here, but I have asked 2 questions before without making an account :) Ok my next question is the following: I am using the class scrreprt and the usual commands ...
4
votes
1answer
229 views

\newcommand with optional multi-line argument and implicit itemize environment

While drafting a text, I want to subdivide and group text pieces and keywords to easily reorder them throughout the document. Examples for such a group of text pieces would be: Example 1): Two ...
4
votes
1answer
222 views

Exercise enumeration

In order to make it easier to write hand-in assigments, I want to create two environments Subexc and subexc, where I can write the entire exercise down before starting. Subexc is supposed to be run ...
4
votes
1answer
238 views

\itemize vs. \begin{itemize} not behaving as expected

I want to write a wrapper macro for an itemize environment. I would like to use the enumitem package (though the MWE here doesn't use or need this package). The problem is the parameters that I'm ...
8
votes
3answers
116 views

Why doesn't my redefinition of `\item` recognize that it's been passed an optional argument?

I wanted to redefine \item temporarily, but also wanted to allow it to behave as much as the normal \item should. So, I thought by closely following the definition of \item, I would get the results I ...
7
votes
2answers
403 views

Vertical space before list environment within a macro

UPDATE My problem comes down to the following: vertical space is added before the \items of a list within a macro. The layout I want to use is based on the classicthesis-styled CV (currvita) template ...
5
votes
1answer
92 views

Empty List Environment

I created commands for resume fields. This is a simplified example of the desired outcome: Currently, I have to create two separate commands to do this, one with \begin{itemize} and the other ...
4
votes
1answer
89 views

Adding an asterisk to specific numbering in the multienum package

@egreg answered beautifully my question on adding an asterisk to an item locally by introducing the command \moditem. I am wondering if this is possible with specific items in the multienum package. ...
4
votes
1answer
84 views

Bold enumeration in multienum package

I am trying to bold the enumeration in the multienum package. The MWE illustrates what I have so far: \documentclass[letterpaper]{article} \usepackage{multienum} \begin{document} ...
5
votes
1answer
102 views

Formatting a comma separated list of values

I'm creating a set of mathematics worksheets, and I'd like to have an upside down "answer key" below a set of enumerated questions. Here is what I have at the moment: \usepackage{graphicx} Answers: ...
8
votes
1answer
105 views

What's the differences between the kernel commands \trivlist and \list?

LaTeX defines the two environments \trivlist and \list. Both can be used creating own environments. What exactly is the differences between \trivlist and \list?
3
votes
1answer
66 views

How can I create a list with arguments passed to a macro?

Straight forward question: \newcommand{\optaxis}[1][]{ \ifemptyarg{#1} {\begin{axis} [xtick={0}, xmin=-1, xmax =1, xticklabels={#2}, box plot width=5mm]} {\begin{axis} [xtick={0,1}, ...
0
votes
3answers
514 views

trivlist list environment \item command

My document class uses paralist and redefines \begin{enumerate}[(a)][abc] etc... environments to issue \label for each \item, given a second option (e.g., \abc{a}) that becomes a 1-parameter macro ...
1
vote
2answers
162 views

Macro to format text

Good morning, I have the following problem, I have a file with 8000 questions in the following format: COD: 7 ¿A qué número de revoluciones se alcanza la potencia máxima de un motor? A Al número de ...
3
votes
1answer
84 views

how to return protected command with one argument already validated in latex/tex?

I want a command that will create an unevaluated bit of LaTeX/TeX code (to be evaluated at the end of an environment, but this is not necessary information) that has been created using an evaluated ...
13
votes
3answers
700 views

Examples of list macros in plain TeX

I'm writing macros to typeset lists in plain TeX. Please can you suggest some examples of macros for numbered lists? I'd prefer examples from "living code", from CTAN packages and so on. But any kind ...
4
votes
1answer
298 views

How can I make a custom \item for use in a list?

I would like to change the color of an \item in a list and I would like the item to look like a regular item. \begin{itemize} \item item one \reditem item two \item item three \end{itemize} and ...
5
votes
1answer
83 views

Problem setting lengths in an environment (spilling outside of the environment)

I am having with spacing between paragraphs in my document, and I think I have been able to trace back to a custom environment I have defined. \makeatletter \def\remarkname{Remark} ...
21
votes
3answers
441 views

Comma-separated list environment

This question is somewhat of a follow up to an answer to a previous question (http://tex.stackexchange.com/a/11587/13522). I would like to create a list environment (similar to itemize and enumerate) ...
2
votes
2answers
483 views

Making more easy the itemized of item with tabulation system

Actually, isn’t not really a question. (Since my examinations get close, I don't really have the time to search for a solution to my problems.) Rather than using the common \item, I'd like to use ...
6
votes
4answers
509 views

Illegal parameter number with \docsvlist

I'm trying to define a macro that take as an input a CSV list and create an item list. etoolbox comes just handy for this and the macro I'm using is \begin{itemize} \renewcommand*{\do}[1]{\item[] ...
6
votes
1answer
131 views

Is it possible to scan until the end of the current `\item`

I do a lot of itemize lists in beamer presentation which, in a later step, I want to format nicely, for instance, typeset everything up to the first colon in boldface and the remaining part scriptsize ...
11
votes
2answers
694 views

Automatically itemize a paragraph

I'd like to use LaTeX for lecture notes but I use bullet lists extensively, and the itemize macro in LaTeX is too time consuming for lecture notes. But if I could teach LaTeX how to do it for me ...
28
votes
5answers
1k views

Using indentation to automatically begin and end itemize environments

This is a question one might answer with "Why the hell would you want to do it?!", sort of an experiment. What I am looking for is a way to write lists with many levels of nestings (notes for school) ...
5
votes
1answer
523 views

Warning when using a command as label argument for a list?

I'm having difficulties with a list where the label is defined as a command. Below is a minimal example: \documentclass[a4paper, 11pt]{article} \usepackage{enumerate} \newcommand{\myLabel}{1)} ...
5
votes
2answers
304 views

Redefining \enumerate using \let - why does it behave this way and what can I do to bypass it?

The following code produces a result, that I find quite strange: \documentclass{article} \let\origenumerate\enumerate \renewenvironment{enumerate}{\begin{origenumerate}}{\end{origenumerate}} ...
5
votes
2answers
2k views

Grey box code and lists

I've got that code from a website to make grey areas in my LaTeX document. % http://www.alfredklomp.com/programming/tex/macros/ \long\def\greybox#1{% \newbox\contentbox% \newbox\bkgdbox% ...
1
vote
2answers
234 views

Problem with the answers package.

I am using the answers package to build a series of exercises. The problem i have encountered is when going from \item $ 5x^2-x \geq 0 $ \begin{sol} $x \geq 1, x \leq 0$ \end{sol} to ...
5
votes
3answers
514 views

Is there a way for a command to have a scope within item?

I defined a command \newcommand{\done}{\color[RGB]{124, 124, 255}} Is there a way to use it as \item \done la-la instead of \item {\done la-la} It bothers me to put brackets all the time. ...
16
votes
2answers
917 views

Comma-separated list

I would like to produce comma-separated lists, like "a, b, c, d" or "a, b, c, and d". Requirements: In the Latex source code, each line of the source code should contain one list element, and as ...
24
votes
5answers
1k views

onlyitems? How to select specific items from an item list

I have the following setup, I have a file with some definitions, one of which is a list of items: \newcommand{\mylist}{ \item first item \item second item \item third item } I want to use \mylist ...
5
votes
2answers
562 views

Why do TeX list items use two backslashes?

In TeX packages one finds definitions of lists as: \def\l{\\\alpha\\\beta\\\gamma} The one backslash is understandable, it represent the active character for the macro i.e, \gamma, but what do the ...
7
votes
1answer
4k views

Define command for bold list-item

I have a set of commands for producing various kinds of specific list-items, such as \newcommand{\staritem}{\item[$\star$]} % not really, but you get the gist All the ones I currently have can be ...