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

learn more… | top users | synonyms

15
votes
1answer
8k views

How to draw frame with rounded corners around box

Is it possible to simply draw a frame around a box which has rounded corners, and be able to control frame width, frame color, frame radius, box background colour (preferably without having to use the ...
5
votes
2answers
515 views

how to eliminate the horizontal spacing of the frame in the framed package?

I'm using the framed package and I found it difficult to adjust the width of a frame to adapt to the current environment, e.g. if I use a shaded environment within the enumerate environment, I will ...
4
votes
1answer
505 views

Issue with \newenvironment and framed and quotation

\documentclass[a4paper,10pt]{article} \usepackage{framed} \usepackage{lipsum} \newenvironment{nb} {\begin{framed}\begin{quotation}} {\end{framed}\end{quotation}} \begin{document} \begin{nb} ...
2
votes
2answers
4k views

Frame around minipage containing listing in beamer

I am working on the sheets of a course on LaTeX and would like to have several sheets in which you see on the left an example of a source document and on the right its output. I have this working now ...
17
votes
4answers
389 views

Frame with only crosses in two opposite corners

Is there one package to produce frames looking like the one above in the following ASCII example ? I don't want dashed lines. | ...
4
votes
2answers
714 views

Make all figures and tables framed by default? [duplicate]

Possible Duplicate: Rounded corner colored box around figure I'm interested in having all of my \begin{figure} and \begin{table} environments automatically get framed. Is there any way to ...
5
votes
1answer
404 views

mdframed: Put a line below the frame title and give it a shaded background

I like to use mdframed to make a framed environment with an optional title. The title has to be in its own box with a gray background, like this: I hope that this is possible. MWE ...
11
votes
4answers
4k views

Creating Page Border for Single Page only

I am digitizing a book and there is only a single page which has page border as shown in the attached image. How can I create border to a single page? Is there a library where I can choose a border ...
4
votes
1answer
698 views

How to avoid background / frame break in code listings with math / mathescape?

I have lots of C++ sources with LaTeX formulas in the comments. Ideal for using the listings packages to pretty print the source. However, most of the formulas break either, the background or the ...
5
votes
2answers
1k views

Framed minipage of dependent dimensions

I am trying to prepare handouts of a ppt (I know). I would like a slide to be shown on the left half of a page and comments regarding it in a framed box of the same size as the slide on the right ...
3
votes
1answer
519 views

Automatically framing (or drawing the bounding box of ) a PStricks non-text object

Is there a command or macro that can draw and automatically size the bounding rectangle of a pstricks object, for example a circle -- framing it tightly in effect, even when the object undergoes ...
4
votes
3answers
947 views

framed equations

I'm aware of possibilities to frame an "important" equation in Latex as the one suggested in mathmode for instance but I thought it would be nice to have a dedicated environment instead of putting ...
9
votes
2answers
1k views

Framed text with a float in it

I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it. \documentclass{article} \begin{document} \startfoo \begin{figure}[h] some float with a \caption{...} ...
1
vote
1answer
155 views

Is there a “proper” way to fix alignment of text in a \framebox?

The \framebox command aligns its contents vertically centered, but this has a tendency to produce results that are extremely visually displeasing. Case in point: \documentclass{article} ...
4
votes
2answers
470 views

listings: framebox shows breaks in font

Using the listings package in LaTeX seems to put lines in the frame box. This happens for all frame box options and if I use a shadow box it is even more apparent... Is there any way I can stop this ...
0
votes
3answers
2k views

Margins in \framebox

I have the following code: \documentclass{article} \usepackage{tikz} \begin{document} \framebox{\begin{tikzpicture}[color=black, line width=0.4mm] \draw (0,0) rectangle (5mm,5mm); ...
4
votes
1answer
1k views

How to make the frame dashed?

I am using \begin{framed} ... \end{framed} in my presentation, does anyone know how to make the frame dashed?
5
votes
3answers
910 views

Smaller frame with listings

I am using listings to put java code in my beamer slides. Sometimes, I want to frame the code but I do not want the frame to occupy the whole width of the page. I want the frame to occupy only the ...
2
votes
4answers
429 views

Debugging - any packages that will draw individual line (and word) frame boxes?

I was just wandering if there is a package (or an option to a package, like \usepackage[showframe]{geometry}) that could emphasize/draw borders(/lines/frame) around each (and every) word; and/or each ...
11
votes
3answers
13k views

Border or frame around figure

I'd like to place a border / frame around my figure. The figure is a bunch of equations: \begin{figure}[ht] \[ eqn 1 \] \[ eqn 2 \] \[ eqn 3 \] \caption{\label{myfig} My caption.} ...
11
votes
2answers
1k views

Different colorcoded theorems

I'm using this code to frame my theorems: \documentclass[a4paper,12pt]{scrreprt} \usepackage[table]{xcolor} \usepackage{latexsym} \usepackage{amsmath} \usepackage[amsmath,thmmarks,framed]{ntheorem} ...
3
votes
1answer
579 views

pdfpages package and \fbox collision

There seems to be a collision between pdfpages package and other packages that use \fboxrule, \fboxsep, etc. Here is an example: Using frame=true: \documentclass[a4paper,11pt]{article} ...
1
vote
2answers
528 views

Latex escape interrupts frame of listing

I am (ab)using a framed listings environment include an enumeration environment (by escaping to latex). This compiles fine but in the resulting pdf the frame around the listing is interrupted. ...
3
votes
5answers
3k views

How can I draw a border around a title page?

I want to draw a red page border only on the title page and signature page of my thesis. How can I achieve this. I tried the fancybox package but it has some conflict with fancyhdr package and ...
1
vote
2answers
2k views

Questions about \fbox

I would like to put a text and a math formula inside a \fbox, but I got an error:ERROR: LaTeX Error: Something's wrong--perhaps a missing \item. Also the\\ did not work, so the text and the formula ...
3
votes
2answers
333 views

Adding a frame and background color to floats in ConTeXt

I am trying to decorate the floats in my thesis as follows: each float shall have a top/bottom frame in a custom color, the caption and content of each float are supposed to have the same background ...
5
votes
1answer
459 views

File icon (folded corner rectangle) frame around text

I would like to present code listings with a "file icon box". Something like this: I'm aware of listings package allowing rectangle frames. My interest is in the specific shape of the frame. I think ...
2
votes
2answers
964 views

Figures with borders problem

I am writing my thesis in TexniCenter and I have the following problem. I want all my figures to have a border. So I use : \usepackage{float} \floatstyle{boxed} \restylefloat{figure} in the ...
0
votes
2answers
444 views

How to draw this figure?

The figure in the attached image contains mathematical formulae, some of which are aligned, also it is rounded by a box, could anyone tell me how to draw that? Thank you very much!
2
votes
1answer
1k views

Shaded with “continue on next page”

I am using the shaded environment in the framed package to wrap some text lines that may go across two different pages. If there is a crossing of pages, I'd like to automatically add a line "(continue ...
2
votes
1answer
167 views

Bug with framed, listings and xcolor are together

When using a combination of the packages framed, listings, and xcolor, that causes a strange bug, that I cannot manage to fix. The problem is that, when a box (made with the framed package, and ...
13
votes
3answers
11k views

How to draw a colored framebox without filling the background?

I like to draw a \fbox{..} which is colored. The xcolor package gives \fcolorbox{<frame color>}{<background color>}{<text>} But this forces me to set a background color. I like ...
8
votes
2answers
3k views

Regarding the leftbar environment

Does anyone know how to control the width and color of the left bar in the leftbar environment?
3
votes
1answer
383 views

Creating an environment able to span over multiple pages or columns

I'm trying to create an environment able to understand when it's on a single/two columns layout and to span over multiple pages or columns having different style for the two cases. I would want to ...
42
votes
4answers
45k views

How to add border for an image?

I use \includegraphics command to insert image to the document. But how can I add a border around this image w/o any margin between border lines and image? It seems to be very easy, but I can't find ...
17
votes
2answers
26k views

Attractive Boxed Equations

I often used \boxed{...} from the AMS math package to place a box around important equations. However, this approach often produces somewhat awkward looking output. Consider \documentclass{article} ...
1
vote
1answer
3k views

Figure inside leftbar environment generates error “Not in outer par mode”

! LaTeX Error: Not in outer par mode. I seek a solution to be able to make this figure inside leftbar environment work: \documentclass[12pt]{article} \usepackage{graphicx} \usepackage{framed} ...
1
vote
1answer
669 views

Framebox and minipage causes white space and is not float

I have a \framebox (I don't insist on using this command) and a minipage that causes whitespace, because the drawn box is not allowing any text before or after and it itself does not break over pages. ...
7
votes
3answers
1k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
12
votes
1answer
615 views

Page Bordering with an image?

I want a custom border for my document. I was thinking of doing something like this, creating a border with a graphics tool(only the outer frame) and then placing it in the beginning of the document, ...
5
votes
1answer
2k views

Boxed equation with empheq: adding text outside box

I'm trying to have a box around my align environment, so I do the following: \usepackage{empheq} \begin{empheq}[box=\fbox]{align} equations \end{empheq} This works fine, but I would like to have ...
8
votes
1answer
863 views

fancy text boxes like in Redhat documentation or mercurial book

I would like to have framed texts with an Icon on the side like the ones here http://www.centos.org/docs/5/html/5.5/Release_Notes/ar01s06.html or ...
2
votes
2answers
2k views

\fbox command destroys margin

I included a graphic the following way: \includegraphics[width=1\textwidth]{questionnaire1.png} Then I changed it so that a frame is drawn around the graphic: ...
18
votes
4answers
6k views

Draw true page border

Is there a way to draw a rectangle around every page? The problem is that my document (a Ph.D. thesis) is in a funny format (16x24cm). So to print it centered on A4 paper (for reviewing) I played ...
1
vote
1answer
768 views

How to set rulecolor in a listings frame only for the top line?

I use the following lstlisting (listings package): \documentclass{thesis} \usepackage{ucs} \usepackage[utf8]{inputenc} \usepackage{url} \usepackage{bbding} \usepackage{listings} \usepackage{tikz} ...
12
votes
1answer
9k views

Source code listing with frame around code?

I'd like to make my code listing looking more sexy. I found a good example on SO, but one problem is remaining: I would like to not only have a horizontal line at the bottom of the listing but also ...
6
votes
1answer
748 views

Print page margins of a document

Sometimes when I'm reviewing my document and rearranging images and tables, It would be sometimes great to see the page margins. Is there any easy way to print the page margins when reviewing a ...
4
votes
2answers
586 views

Making \footnote work in leftbar environment

Sorry, it's me again. Gonzalo has hinted me to the very nice leftbar environment in the framed package, which I now use for definitions, theorems and similar environment. Now I've got a new problem: ...
5
votes
2answers
865 views

Show pageframe for LNCS article class

I'm trying to see the "text boundaries" of an LNCS document to check whether my floats fit, as the package pageframe offers to do. I can't get it to work, unfortunately. ...
9
votes
1answer
3k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...