{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.

learn more… | top users | synonyms

5
votes
1answer
121 views

How to create a text box that can be styled globally?

I'm writing a thesis and would like to add a box with text at the beginning of each chapter summarising main points. At the moment I'm using framed with itemize within it, which looks okay and does ...
11
votes
2answers
660 views

create a framed environment for a margin note

What am trying to achieve is the following: Of course, if this can be done so that there is a switch between even and odd pages. Currently I am only interested in the not appearing on the LHS ...
1
vote
1answer
266 views

Customize the size of the shaded box

I am using \begin{shaded} from \usepackage{framed}. The problem is I am using it for examples which come inside \begin{itemize}, the shaded box's margin does not begin with the \item margin instead ...
10
votes
2answers
240 views

Multi-line box around a sentence in a paragraph

I am trying to draw a polygon box around a sentence within a paragraph. This box would wrap over multiple lines and terminate exactly at the end of the sentence (i.e. without white space filling the ...
4
votes
1answer
612 views

Frame and background color for all figures

I want to have all my figure floats framed all through the text something like those in Wikipedia pages. A pale-coloured (grey) frame and very pale background too. I am using caption package to ...
6
votes
1answer
255 views

Frames around few line of code in a algorithm

I want to put a box around lines of code and to add comments inside the box. This is what I want it to achieve: This is the example of code I am using for the algorithm. \documentclass{article} ...
3
votes
1answer
210 views

How to combine framed and listings packages in new environment

I always use this LaTeX code to display a source code in my article. \begin{listingbox}{VB style} \begin{singlespace} \begin{lstlisting}[style=BASIC] Private Sub Form_Load() Dim tex As String ...
1
vote
0answers
135 views

How to surround portions of a tree with boxes [closed]

I need to group portions of a tree with boxes, and additionally label them, e.g. put "W1" on the side of the box, or in the top right corner of the box. The result I want to achieve is somewhat ...
1
vote
1answer
73 views

How to set \framed to make the baseline of the whole \framed as same as the first line in this \framed in ConTeXt?

An simple example: \starttext \setupframed[align=right,frame=off,offset=none] \framed{A\hskip3em\framed{B\\ C}} \stoptext How can I set the framed which contains B\\ C so that the baseline of ...
18
votes
2answers
2k views

Box around minted environment

I'm using the minted package to produce nice looking java-code but I would like to make a box around the code so it is easier to separate the code from the rest of the document. What is the easiest ...
3
votes
2answers
672 views

Text in framed boxes with arrows [duplicate]

A question similar to How can I construct a page layout with framed boxes? I need to construct a very simple flow chart with a few vertically and horizontally aligned boxes with arrows betweem them. ...
14
votes
3answers
1k views

How can I construct a page layout with framed boxes?

For a report I'm writing, I have got an MS Word template for a page that needs to be included. The page looks like this (print screen from Word): However, there are a few things that makes me not ...
8
votes
2answers
614 views

Combining `tikzpicture` and `lstlisting`

I'm working on a custom lstlisting environment, in which I use TikZ to add a frame and a title. Because of the widespread curly braces of node I cannot use newenvironment, so I have to resort to ...
5
votes
1answer
207 views

Indented box that split in multiple pages

I am doing a document with exercises and corrections. I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled. I have written an ...
9
votes
2answers
615 views

Boxed entries in matrices

I would like to create a formula or figure like this: I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
5
votes
1answer
137 views

boxed equation but framed only some sides

I need to box part of an equation, but I need the frame to be open one side. In the following MWE I would need the left part of the equation not to have the right frame of the box and the right part ...
4
votes
1answer
335 views

footnote inside mbox

I know very similar questions have been asked, but I couldn't find a solution to my problem. My original problem started using the glossaries package, using an acronym inside the framed environment, ...
16
votes
2answers
747 views

Is it possible to create an adaptable golden ratio frame around equations?

I would like to create special frame around my equations. This frame should obey to the golden ratio rule. This means that its width divided by its height should give 1.61803398875. If possible, the ...
3
votes
1answer
142 views

Globally set the justification in a framed box

I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
2
votes
2answers
1k views

Create environment out of eqnarray with frame box

Could you help me to create an environment out of this code: \smallskip\centering\framebox[0.9\textwidth]{ \begin{minipage}[c]{0.8\textwidth} \begin{eqnarray} I & = & ...
3
votes
1answer
453 views

lrbox with border in beamer

Can I have border around a \lrbox in beamer? I have a minipage inside the lrbox. I know I can use \fbox. Update Sorry for the confusion. I need a border around the block of data, it is inside a ...
1
vote
2answers
317 views

Drawing a rectangle box around code fragment

How to produce the effect of drawing a rectangle box surrounded the code, and put it in the figure? (Any methods including non-tikz-pgf method that helps is welcome)
0
votes
2answers
222 views

Creating a command similar to \vrule

Upon trying to create a new border similar to the \vrule command, I have the following: \documentclass{article} \usepackage{xcolor,framed,lipsum} \def\bulletfill{\vbox to ...
5
votes
1answer
256 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
10
votes
2answers
154 views

Place a background relative to the position of an environment

I am trying to place a background that extends the entire page width and whose height depends on the height of the environment contained. For example, the following code provides something to what I ...
5
votes
3answers
328 views

Put a frame around all pages, except one, in a book

I am writing a book and would like to put a red, 5pt thick frame around all pages, except around one page in the middle of the book, which contains a figure that is bigger than the frame. The frame ...
0
votes
2answers
172 views

How do I make frame environment play nice with \textbf?

I am getting a strange error message when I put textbf into a frame environment. Minimal Example \documentclass{article} \listfiles \begin{document} \begin{frame} \textbf{Lemma 1} \end{frame} ...
4
votes
1answer
156 views

Help with a framed environment

Upon trying to create a framed environment using the framed package, I stumbled upon a problem I have not been able to resolve. What I am trying to achieve is the following: Unfortunately with the ...
1
vote
2answers
870 views

framebox does not work for lstlisting environment

I am looking a way to wrap something with a frame. I try different approaches but finally choose to use fancybox package and minipage (because I need to control the width of the frame). It works ...
3
votes
1answer
221 views

Setting a wavy sidebar

Is there a way to have framed.sty's sidebar environment to use a long wavy line, constructed, for example, using the mathabx.sty's \lfilet variable-sized delimiter?
2
votes
2answers
595 views

Framed floats and background colors for captions

i wanted to edit my floats. Found the package floatrow and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the \parbox, i ...
5
votes
2answers
134 views

Frame individual cells in a table

I'm aiming to make an RPG character sheet in LaTeX, but I'm having a little trouble with the boxes one usually asociates with this kind of thing. Is there a way to individualy frame table cells in ...
16
votes
2answers
898 views

A special example environment

How can I define an environment named "example" so that: can be broken over pages has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole ...
3
votes
1answer
947 views

Numbering a “new theorem”

I have a (simple?) question. I use the ams theorem environment for most of my theorems, but I want to box my definitions and find here a nice way to do it, simpler for me than mdframed. My problem is ...
2
votes
1answer
147 views

Getting lbr frame lines in a listing up to the caption box above it

I have a document similar to this: \documentclass[twoside,11pt,titlepage,a4paper]{report} %unterscheidung zwischen gerade und ungerade seite, 11pkt, kp, kp \usepackage[T1]{fontenc} %inputcodierung ...
2
votes
1answer
462 views

Open ended frame with framed.sty

I made a frame using the framed package. When a pagebreak breaks it, it is divided in two separate frames. I would like the bottom and top of these two frames to be open, and an oframe option is ...
10
votes
5answers
751 views

Is there any package similar to verbatim but with support for icons?

I am looking for a package that provides verbatim environments but also supports different background color, frame style and icons (tips, error, warning etc.) shown on the upper-left corner.
4
votes
2answers
4k views

Putting pseudocode in a framed box

I added some pseudocode to my document in this style: \usepackage{algpseudocode} \begin{algorithmic}[1] \If {$i\geq maxval$} \State $i\gets 0$ \Else \If {$i+k\leq maxval$} \State $i\gets i+k$ ...
3
votes
1answer
438 views

How to avoid the break of framed/shaded?

I have a problem with the framed environment. I am writing a document (article), and several parts of it have a gray background. Unfortunately, when a new page comes, such a shaded environment is cut ...
4
votes
2answers
438 views

Removing vertical lines from the table header

This is what I already have, but for the moment. In the left corner and the right corner there are two little vertical lines, I don't want them, but I don't know how to delete them. Anyone who can ...
6
votes
3answers
581 views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
1
vote
1answer
221 views

How can I add borders

Given this, how can I add a border around? \begin{ttfamily} \begin{lstlisting} g@g0001:~$ cd Desktop g@g0001:~/Desktop$ cat script.sh #!/bin/bash echo $1 `date` g@g0001:~/Desktop$ ./script.sh ...
6
votes
1answer
1k views

rounded corners using the framed package

Is it possible to create a frame, using the framed package, with rounded corners? I know for a fact that there are other packages such as the mdframed package but what I am looking for is an ...
6
votes
1answer
173 views

How to obtain the space left to bottom of page

Since it is impossible to use \vfill inside a framebox, is there any way of getting the current height position of text? I want to fill in a framebox so that it uses all the space left on a page, ...
4
votes
1answer
477 views

How to draw a simple 1mm thick page frame?

I'm trying to make a simple one-line 1mm thick page frame. Left line of that frame should be 2.5cm from edge and all other lines 0.5cm. Document includes tikz drawing, and text. The problem is that ...
1
vote
0answers
58 views

Drawing a box around certain parts of a matrix [duplicate]

Possible Duplicate: Highlight elements in the matrix i have a matrix: \begin{equation} \begin{bmatrix} 1 & 5 & 4 & 2 & 1 \\ 1 & 5 & 4 & 2 & 1 \\ ...
3
votes
2answers
1k views

Framebox with long paragraph and line break

I want to make a border to a paragraph, so I use \framebox to do it. But I have a problem that my paragraph is so long, I can't insert a line break and my paragraph cross the frame. ...
8
votes
3answers
1k views

Creating uniformly sized boxes around text

I want to put individual words in to boxes next to each other. I've used the \framebox command, but this has produced different sized boxes around each word. How could I get all the boxes to be the ...
13
votes
1answer
601 views

Design that imitate Google browser

I would like to write some tutorials about HTML, and I would like to do it efficiently without using too many screenshots. What I would like to obtain is a frame which looks like a web browser, such ...
3
votes
1answer
2k views

Adding figure in framed or shaded environment

I am currently using the shaded environment from the framed package for large calculation digressions in my papers. \usepackage{framed} \newenvironment{digression}[1]{\begin{shaded} ...