6
votes
2answers
41 views

Environ's body doesn't allow for making an \item

As part of a document process/workflow, it's easier to work with environments. However, in some cases the environment contents needs specific formatting. As such, it's convenient to use the environ ...
2
votes
1answer
22 views

Passing arguments to mdwlist environments

I'm trying to make a description list more compact. I figured the easiest way to do this would be to use mdwlist's description* environment. This reduces the spacing between list items. I'd also ...
1
vote
1answer
46 views

How to align two entries of a list that appears in the center of the page?

Using the Beamer Presentation template I am creating slides, my aim is to make a list environment with the bullet points aligned in the center of the page. How can I do so? Thanks
5
votes
1answer
73 views

How to enable line breaking in the standard proof environment with amsmath?

I want to redefine the proof so it accepts linebreaks in the name \renewenvironment{proof}[1][\proofname]{\par \pushQED{\qed}% \normalfont \topsep6\p@\@plus6\p@\relax \trivlist ...
6
votes
3answers
174 views

Set enumeration level explicitly

I have the need for a custom list environment at the outermost level, defined as follows: \newboolean{odd} \setboolean{odd}{true} \usepackage{environ} \newcounter{exnum}[section]% Exercise counter ...
9
votes
3answers
440 views

How to start itemize on same line as text?

I've created a new environment called 'Example' like this: \newenvironment{example} {\textbf{Example:} \begin{itemize}} {\end{itemize}} The environment works fine, but the items are ...
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. ...
2
votes
1answer
118 views

Math-mode inception: creating a list environment for individually referenced equations

I'm trying to create a list-like environment properties that could be used as such: \begin{properties} \item[Lemonade Rule] \forall \text{lemons} \exists \text{lemonade} \item a^2 + b^2 = c^2 ...
6
votes
1answer
76 views

Bullets disappear in nested lists when using \newenvironment

I am trying to typeset interviews using lists. I have created environments for questions and answers to style the \items and their contained text. However, if I try to use these environments within a ...
4
votes
0answers
92 views

Indentation of Lists in Environments

Based on the answer of Markus Scharrer, I am using the custom lstnewenvironment to get code and Section with my environment. Since I use an environment in an environment (I know it may not be the best ...
5
votes
1answer
128 views

environment and newcommands

I am writing a summary of my methods in c++ where the outputstyle is always the same like that: TestFunc (Title as subsection) Method Boolean TestFunc(Integer MyPar) (this should be in a Lstlisting ...
14
votes
1answer
275 views

Theorem with separate tikz environments for header and body

My initial question: I'm writing my lecture notes in LaTeX and used some customized theorem environments with amsthm so far. Now I wanted to redesign those theorems with help of tikzpicture. That's ...
5
votes
1answer
1k views

How to define environments for questions and answers

I wish to do a simple question and answer sheet for my students. I'd like to have something like this: \section{Differential Equations} \begin{questions} \begin{question} ...
1
vote
0answers
39 views

How to implement a floating text box? [duplicate]

I'm trying to write an environment that creates a new float type for text boxes. These are used for example in some books to provide interesting tidbits that aren't really part of the main line of ...
5
votes
1answer
127 views

Automatic numbering of nested environments / items

I would like to have an environment, let's call it nested, which produces output like Case 1: top level item 1 Case 2: top level item 2 Case 2.1: nested item 1 Case 2.2: nested item 2 Case 2.2.1: ...
10
votes
3answers
306 views

Defining a list environment with multiple optional arguments

I'm trying to define a list environment with multiple optional arguments and with a default values for those arguments. For example, creating a new environment with a name newenv, which accepts two ...
1
vote
1answer
472 views

Problem using enumerate environment in a proof newenvironment definition

I want to define a simple environment to enclose my proofs, actually I just wanted to put a little square right at the end. So, I made this new environment definition: \newenvironment{Proof}{ ...
11
votes
2answers
916 views

A new environment based on enumerate

I have defined the following simple environment: \newenvironment{renumerate}{\begin{enumerate}\raggedright}{\end{enumerate}} I wonder how the above can be modified to use with, say, the following: ...
7
votes
1answer
108 views

Lists, counters, and refs

I'm trying to create an environment containing a single-instance, numbered list (so that I can easily control the spacing, etc.). The problem is that I cannot used \ref to cross-ref to the enumerated ...
3
votes
0answers
51 views

Two consecutive remarks on LyX [duplicate]

Possible Duplicate: Two math sections of the same type in a row? I am new to lyx, and I am searching for a way to create two remarks one after the other. When I create a remark, the only ...
3
votes
2answers
176 views

list environment to set different paragraphs within an item

I'm trying to create a document with exercies and solutions. Since exercises often come in different parts (such as (a), (b) and so on), I want to use lists for the solutions. However, solutions are ...
4
votes
1answer
251 views

more margin before block

I have the following: \documentclass{beamer} \usepackage{graphicx} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{xcolor} %\usepackage{colordef} ...
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
444 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) ...
12
votes
3answers
4k views

How do I generate a check-list?

Similar to the itemize or description environments I would like to have a check-list environment, with neat boxes on the right side, that I may check or uncheck. I guess I'm not the first having this ...
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 ...
3
votes
1answer
173 views

afterpage + list = missing \item

I'm trying to use the afterpage package to automatically insert text at the top of each page (please see my other question Section reminders at the top of each page?) but I'm having trouble. ...
22
votes
2answers
3k views

Definitive guide to trivlists

I create a lot of theorem-like environments, and I'm usually happy to employ a package (such as ntheorem, amsthm, etc) to do the work for me. After studying the ntheorem documentation, and reading ...
2
votes
1answer
271 views

Custom environment to accept \item

How can I create an environment that takes items in a way similar to lists? Example: \begin{myEnv} \item{AAA}{BBB} \item{CCC}{DDD} \end{myEnv} I'd like the above do something like ...
9
votes
1answer
1k views

Fancy Theorem Environment and Colors

I'm trying to make a boxed theorem environment with colors. I thought I had done it, but I was mistaken--lists were the wrong colors. In the picture above, I would like the "list" to be the same ...
6
votes
2answers
316 views

Environment for listing personal information or similar data

Following good typography, what is the proper environment or LaTeX code for displaying this kind of list? Name: Telephone: E-mail: Web site: The description environment never ...
6
votes
2answers
91 views

Redefining an environment or a command with an indefinite numbers of items

According to LaTeX's basic commands if I want to create a list of items I have to use the following concept code: \begin{itemize} \item first \item second \item third \end{itemize} To keep my ...
3
votes
2answers
141 views

Is it possible to know and use the number of items of one list?

The following code gives one way to use circled numbers in one list. For the moment this solution uses one parameter given by the user which is the "width" of the total number of items of the list. % ...
5
votes
1answer
94 views

Environment for different kinds of lists

I would like to have one environment so as to display numbered list or bullet/plus list. Here is a pseudo code. \begin{myList}[1)] \item Text... \item Text... \begin{myList}[bullet] ...
16
votes
3answers
1k views

Formatting FAQ lists in LaTeX

I want to format a list of "Question + Answer" pairs in a TeX-document. In HTML I use the <dl> command: http://www.w3.org/TR/html401/struct/lists.html, e.g.: <dl> ...
5
votes
2answers
306 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}} ...
8
votes
3answers
15k views

LaTeX enumerate - bold item with non-bold text

I'm trying to customize the environment enumerate where the \item is bold but the text is not bold. What I've tried is (at the suggestion of one of the google-results): \let\origitem\item ...
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 ...
2
votes
2answers
224 views

Looking for a numbered List, with parameter, custom label and custom reference text

I will give an example of what I need exactly. The output should look like the default description list, with numbered labels. REQ-ABC-001 Lorem Ipsum ... if the text is longer than a line, ...
3
votes
2answers
2k views

In LyX, how to have itemize inside a proof?

LyX is great. I use it to write everyday documents. But it seems that its environment can only have one type; different types of environments can't be mixed. For example, you can't have itemize inside ...
7
votes
1answer
1k views

Twocolumn part in document

I'd like to stretch long lists into two or more columns. Like: Some single-column text. Lorem 4. Sit Ipsum 5. Amet Dolor Another single-column text. Or: Some ...
3
votes
1answer
118 views

Changing the entries of a list environment

If I have a new list environment like so: \newenvironment{textblockX} { \begin{list} {Question} {} } { \end{list} } How would I refer to an item of the list within the environment? ...
8
votes
1answer
2k views

Defining my own description environment

I need help writing my own description environment. The only thing I want to change is the appearance of description label. I can achieve what I want universally just fine with the following bit in ...
2
votes
2answers
1k views

LaTeX verbatim environment inside lists

I am using LaTeX and I have a verbatim environment inside an enumerate one. However, there is much whitespace between the verbatim text and the following list item. What I have now is something like ...
5
votes
2answers
670 views

How to get rid of vertical space before and behind the lists

I cannot get rid of the vertical space before and behind the lists. I have code like below: \begin{list}{-}{% \setlength{\itemsep}{0pt} \setlength{\parskip}{0pt} \setlength{\parsep}{0pt} } ...
4
votes
2answers
2k views

Replacing itemize by mdwlist's itemize* throughout?

Most of my documents start with a couple of quick hacks that save me literally a couple of keystrokes a month: \let\cite\texcite \let\epsilon\varepsilon and so on. Now, I'd like to do a similar ...