5
votes
2answers
101 views

How can I add lists and similar in a savebox?

I'd like to have a savebox (or savebox-like functionality) that contains some 'simple' formatting, for example lists. \documentclass{article} \begin{document} This is a sentence \begin{itemize} ...
6
votes
1answer
112 views

Vertical alignment of lrbox with minipage inside

I'm trying to make an environment that prints highlighted notes, and I can't get the vertical alignment right. Here's a minimal example: \documentclass{article} \usepackage{xcolor} ...
3
votes
1answer
90 views

Vertically stack parboxes in a cell of a table

I need to insert an enumerate environment in a table. Following hints from this page: itemize in a tabular environment, I used \parbox to prevent error (Putting itemize environment in a tabular ...
5
votes
3answers
1k views

I can't seem to get \fbox and \itemize to work together

I'm trying to place some text inside of a box, here's what I'm writing that is not working: \fbox{The \textit{two-step} model of XMCD: \begin{itemize} \item[In the \textit{first step}, circularly ...
5
votes
1answer
277 views

Box around several but different items in an itemize environment

I am trying to highlight, at the end of my slide, several items in a list with a box in something similar as in the method shown in Box around a few items in an itemize environment. The difference ...
3
votes
1answer
171 views

vertical spacing on enumitem

In the example below I want the enumerate list to essentially be ``inline'' with the word Example from the example environment. It works perfectly with text or enumerate* (inline list), but I cannot ...
6
votes
2answers
228 views

Saving a list in a re-usable box

Pardon me if this is a dumb question, but I am a bit rusty about this. I want to store a list like one generated by the enumerate environment in a re-usable box that I may re-use within a TikZ ...
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 ...
3
votes
1answer
176 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. ...
5
votes
3answers
1k views

Can't I put a list inside an \lrbox?

I want to have a list in my saved box. Why doesn't the following work? \documentclass{article} \usepackage{setspace} \newsavebox{\mybox} \newenvironment{myenv}{% \begin{lrbox}{\mybox}% ...
1
vote
1answer
118 views

How can I append code to an item-label(-box)?

For executing code after the end of a parameterless macro there are \ltx@GlobalAppendToMacro and \ltx@LocalAppendToMacro from the ltxcmds-package. For executing code after the end of an environment ...
11
votes
2answers
1k views

Box around single element in list

Is there any way in latex to create a simple box around one item in a list? I tried both \framebox, and \fbox, none of them worked \begin{enumerate}[label=\Alph*),ref=\Alph*] {\color{red}\item ...
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
1answer
499 views

Problem with mbox command

I have the following simple code which causes some problems, would be great if someone could point out what is going wrong here: \begin{compactenum} \item Perform addition over all bits \[ ...
2
votes
2answers
1k views

Draw a rectangle

How to draw a highlighted box around a bulleted item.
8
votes
3answers
2k views

Create a series of connected, list-filled boxes (flowchart?)

I would like to create a series of horizontally linked 'text boxes', with arrows between each one. Each box will contain some text (probably a list with a title). I would like it to look something ...
1
vote
1answer
355 views

Moving a framed environment to the left

I want to move the following remark environment, which nicely splits over pages :), towards the left so that it is not centered anymore. I have been unsuccessfully trying for a while: would you please ...