Tagged Questions
2
votes
0answers
69 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
28 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
80 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
184 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
123 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}{ ...
10
votes
2answers
203 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
72 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
47 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
105 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
175 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
70 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}
...
18
votes
3answers
304 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) ...
9
votes
3answers
1k 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
306 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
141 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.
...
15
votes
2answers
1k 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
192 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
...
8
votes
1answer
761 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
219 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
87 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
116 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
84 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]
...
15
votes
3answers
456 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
207 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
3answers
8k 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
172 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
180 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, ...
2
votes
2answers
1k 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
386 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
108 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? ...
6
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
446 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
529 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 ...