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

learn more… | top users | synonyms

9
votes
2answers
836 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
200 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
448 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, ...
17
votes
2answers
783 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
171 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
2k 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
557 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
398 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
256 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
334 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
159 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
381 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
199 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
194 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
3answers
1k 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
263 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?
3
votes
2answers
768 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
142 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
1k 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
1k 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
177 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
589 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
902 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
5k 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
578 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
541 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
724 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
255 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
2k 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
179 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
605 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
60 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
2k 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. ...
9
votes
3answers
2k 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
634 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
3k 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} ...
2
votes
1answer
286 views

Reduce the size of horizontal line

I want to reduce the size of horizontal line. \begin{frame} \restylealgo{boxed} \begin{algorithm}[H] \Setline \nl i\; \end{algorithm} \end{frame}
10
votes
1answer
292 views

fbox drawn incorrectly after \noindent

What's going on here that the first and last \fbox are not getting drawn correctly when immediately following \noindent? \documentclass{article} \usepackage{pst-node} \pagestyle{empty} ...
5
votes
1answer
744 views

colored full width box with some verbatim text inside?

I would like to create a text box of "reminders" for my readers. I'd like the box to be gray, go full text width, and have both normal and verbatim text in it. Reminder ensure blah blah ...
6
votes
2answers
326 views

Generate a square and line

how should i write a command to automatically place a box on the left side wherein this box can contain text and beside the box are lines which depends on an argument.
7
votes
1answer
395 views

Redefining the \part environment to add a page border

How can I redefine the \part environment, in a book documentclass, to add a page border at the page margins? By the way, it must be possible (since everything is possible in LaTeX) to get a shaded ...
1
vote
1answer
503 views

Place framed text at top of page

I have chapters (using the standard "report" class), and I would like to place a frame of text - which gives succinct meta-details on the chapter - at the top of the first page of the chapter. What I ...
2
votes
1answer
812 views

How do I create a variant of the snugshade box from the framed package to wrap my definition environments in a blue box?

I'm already using snugshade to wrap my theorem environments in a grey box, but I'd like to have another bounding box just like snugshade to wrap my definitions in a blue box instead. Here is my ...
8
votes
1answer
689 views

lstlisting border bug when breaking lines

I have a certain bug regarding listings. I have used the \lstset command to configure my lstlisting environment. Somehow, when I have a line that is too long to fit into one row the listing breaks ...
2
votes
1answer
314 views

hbox out of margin, beamer

I wanna put a round image in a presentation il LaTeX out from the margin. I would like to show it just as a 1/4 of the image in the left bottom corner. I tried: \begin{frame} \tableofcontents ...
9
votes
2answers
305 views

Multicolumn block is narrower than the surrounding text

I need to typeset blocks of text in a multicolumn environment, with a title above, and framed with full line width. I'm using the multicol package for that. The issue I face is that the block of text ...
5
votes
1answer
1k views

Formatting – title with underline and box around paragraph

Can you help me please with formatting? I like this format: How can I define this title with grey underline (width of all page)? Font is sans serif (Arial). And how can I make grey box around some ...
3
votes
1answer
609 views

Wrapfig isn't working in my fcolorbox minipage

I'm trying to get text to wrap around my figure. This works fine in the main body of my text, but when I put it inside an \fcolorbox the text simply overwrites the image. I've reduced my code to the ...
2
votes
0answers
777 views

Problem with drawing borders around slides in latex beamer handouts with Adobe Reader [closed]

I am using the LaTeX beamer package and handoutWithNotes package to create a presentation with notes and rectangle around each slide. \documentclass[handout]{beamer} \usetheme{Madrid} ...
5
votes
1answer
336 views

nag complains about \centerline in environment “shaded” from package framed

Running this with Miktex, pdflatex, Windows, TeXnicCenter, everything fully up to date: \documentclass{article} \usepackage[l2tabu]{nag} \usepackage{xcolor} \usepackage{framed} ...