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

learn more… | top users | synonyms

0
votes
0answers
34 views

FRAMING insights (could someone explain what I'm doing?)

I wanted to frame some pictures, algorithms, and tables. mdframe sometimes didn't work so I've copy pasted some stuff I've found and made my own frame. This was something I've really liked and what ...
13
votes
6answers
18k views

How to draw box around text that contains a verbatim block?

Typically, to box in some text, I use the following: \fbox { \parbox{\linewidth}{ This is some text! Blah blah blah... } } However, say I have a verbatim block within that. It will ...
1
vote
0answers
37 views

Layout with frames [duplicate]

This is my first post! I have been around this Forum for some time, but I never needed to ask a question. Unfortunately I can't find a answer suitable for me Problem this time. I am trying to re-...
9
votes
1answer
7k views

How to control the vertical height of boxes

I would like to create boxes where I can control the height of the boxes. Right now I have used the command. \colorbox{calcclr}\makebox[\textwidth-2\fboxsep][l]{#1}}} This gives me a box that ...
110
votes
5answers
128k 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 ...
2
votes
1answer
25 views

Fbox increase the spacing between the box and it content (inner margin)

Is there a way to control the top and bottom spacing between the box and it content (text)? and secondary about left and right spacing? in other words i am looking for the analogous of \arraystretch ...
4
votes
1answer
59 views

ConTeXt : show icon on frame corner

I am trying ConTeXt, and there is something I used to do in LaTeX that I am trying to reproduce : I used to define blocks with an icon superimposed on the top-left corner, such as in the following ...
2
votes
2answers
39 views

\framed and \itemize with custom item labels

This question is a slight extension of this previous post and in particular the answer by @knut. Unlike the situation in that post, I also have my own custom labels for each item, i.e. my code looks ...
2
votes
3answers
62 views

Filling in colors in frame macros

I am hoping the answer to this question is a simple, so apologies for my ignorance. Based on posts here, I was finally able to make the frame appear the exact way I wanted it to. I made the following ...
39
votes
4answers
84k 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} ...
3
votes
2answers
50 views

Annotated Box around Figures and Tables

I have a Latex document where I need to put Figures and Tables in boxes. This can be accomplished with e.g. fbox, framed or mdframed. However, I need a solution that also allows me to annotate the box ...
0
votes
1answer
37 views

Putting a vertical line next to an exercise

I'm working with an existing environment (exercise) provided by the svmono documentstyle (springer monographs) and sometimes it is unclear where an exercise ends and the next paragraph begins. To ...
4
votes
1answer
43 views

How to confine a plot inside a frame?

I'm using \listplot to plot a datafile I made. The section of the plot I am interested in ranges from y=-40 to y=60 but there is a peak in this plot which goes way above y=100. I don't want to show ...
16
votes
2answers
11k views

How to highlight important parts (with a gray background)

In the below link http://www.math.uiowa.edu/~goodman/algebrabook.dir/bookmt.pdf the author highlights anything which is important using a greyish color background. For example, if you see ...
3
votes
3answers
214 views

Part title framed

I was wondering how I could put a blue ({cmyk}{1,0.80,0.30,0.05}) coloured frame around my chapter titles, leaving out "PART 1" and just give the part title name itself, as is depicted in the picture ...
3
votes
1answer
87 views

How to create a fully customized and compatible LaTeX environment

I want to create a simple environment in LaTaX that's alike the following figure. If, for example, this environment has some spare comments like references or so, to be added above the environment (...
35
votes
6answers
94k views

How to put a framed box around text + math environment

I am looking for something like \fbox but it seems that you cannot use it when a math environment is included. However its not only a math environment (then you could use \boxed I know) but also text, ...
1
vote
1answer
101 views

Reducing upper and lower margin in shaded environment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
10
votes
3answers
679 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
1
vote
2answers
72 views

Framed paragraph with double-line frame

Regarding various ways but most requires rigorous settings to embed a paragraph of words in a box or a frame with double-line box, I try to use a single commend to acquire the effect. However, ...
11
votes
5answers
25k views

How can I insert a newline in a framebox?

I have several frameboxes in my document, using the following command: \framebox(115,115){ R-Sq: \newline For example} I want to force a new line, but neither \newline or \\ appear to work. Is ...
8
votes
3answers
943 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 ...
1
vote
1answer
25 views

divider line inside framed environment

Adding a horizontal rule inside the framed environment, the line only spans the text area. But i want the line to span the complete box width. How do i do that? Current Code: \begin{framed} Foo.\\ \...
1
vote
2answers
31 views

How i can make a box figure with this alignments as attached?

I have a framed environment in a double column article. Inside the frame i have some lists i want to display. The problem is that i want the size of the frame to be expanded within the two columns. I ...
0
votes
2answers
69 views

Framed picture and framed caption

I need to insert picture in Latex book file, but picture must to be framed, and caption after picture also. That frame is not the same, picture and caption need horizontal line between. But picture ...
2
votes
1answer
59 views

Customize size for drawing box in matrix

\documentclass{beamer} \usetheme{Madrid} \usepackage{amsmath,tikz} \usetikzlibrary{matrix} \begin{document} \begin{frame}{Matrix} This is an example of a matrix. \begin{tikzpicture} \matrix [matrix ...
2
votes
3answers
164 views

How to make fbox around minipage fit the whole minipage inside it?

I have long equation, Ax=b that I want to put a frame around. I can't use mdframed since I need to also compile this with tex4ht, which still does not support mdframed. So I use this trick setup: \...
52
votes
9answers
19k views

Highlight elements in the matrix

I have a matrix and need to highlight some elements in the matrix. I have found how to highlight a single element (I want to put the cell in the square): $$ A = \begin{bmatrix} \fbox{0} & \fbox{0}...
21
votes
5answers
18k views

What is the easiest way to get borders around a page in LaTeX?

I want my document to have borders in all pages. I imagine I can do that using TikZ, but is there an easier way to do it? I also asked this question here, but as the main question was something else,...
1
vote
1answer
45 views

Nested boxes around cells in a table

I would like to nest two boxes in my table. It looks like this: content content content content content +----------------------+ content | content content | ...
0
votes
1answer
69 views

Frame only around theorem in scientific two column poster

I am creating a poster in beamer, I would like to have frame only around my theorem, not to the end of the page (especially having two columns), if anyone know how to modify the code to do that? \...
8
votes
2answers
1k views

SWOT Table - how to convert to an article?

I need a SWOT analyse in color, and I found this one at http://www.mostlycolor.ch/2013/10/colored-blocks-in-beamer.html : Can someone help me by converting the beamer, so I can use it in an article?...
1
vote
1answer
140 views

Beamer: transparency of a picture on section frame depending of section number

I'm a new Beamer user. The following code is there just to explain what I intent to do: Put on the "sectionpage" frames a picture with transparency, the transparency level being function of the ...
3
votes
1answer
45 views

How do lines of \framebox'es line up?

I want to stack boxes. The frame lines of the boxes should be exactly on top of each other. The original question However, when I define two boxes, so that one starts where the other ends (spatially ...
2
votes
2answers
986 views

How to create protocol flows inside a centred box?

Could you please give some directions how to create the following figure in latex? It is the situation of describing a two parties protocol centered in a box. It is like a 3X4 table but i have ...
2
votes
1answer
123 views

Simple frame around page

I need add a frame around all page in latex. If I search on google, I find many options, but anything work well for me. Also I need that page would be A4 and have margin 1.27cm. And on the top of ...
3
votes
1answer
183 views

Adding a border around beamer poster

I am trying to find a simple way to add a uniform border around a LaTeX poster, made in beamer, preferably in such a way that it is easy to modify the thickness. Here is the first part of the ...
2
votes
1answer
84 views

putting algorithm in box

Below is my code snippet. Please help me to put a framed box in my algorithm. \documentclass[journal,12pt]{IEEEtran} \usepackage{algorithmic} \usepackage{graphicx} \usepackage{algorithm} \usepackage{...
1
vote
1answer
148 views

How we can design our own boxed titles?

\begin{tcolorbox} \centering I am a fool..\\ I dont know How to make this box small as text has. \end{tcolorbox} I am using the above code to create boxed titles in my notes.. My output is ...
4
votes
2answers
559 views

framebox and margins

I have 2 minipages, the second of which is \frameboxed. The \framebox command seems to push the minipage out into the right margin, as you can see. [This is not the same as a previous question: ...
0
votes
0answers
32 views

Shadowboxing theorem environment

This is how I would like to redefine my theorem environment. %\newenvironment{sbtheorem} % {\shabox{ \begin{minipage}{0.8\textwidth} \begin{theorem}} % {\end{theorem} \end{minipage} }} ...
1
vote
2answers
29 views

Putting a line into a frame with proper positioning

I wanted to use a header which looks like the image attached below. At first I tried using a fbox with a parbox but I had issues with the right widths because the text wasn't properly aligned at all. ...
7
votes
2answers
172 views

Align mathematics equation in a box

I have the following code of maths equation in a box : \begin{framed} \begin{align*} &C_\star \rightarrow E_\star : &x=3\dfrac{5\phi^2+24\phi+12v+24}{\phi^2}, &y=108\dfrac{-\phi^3+5\phi^...
4
votes
3answers
276 views

fbox without additional v-space

it's a little bit related to Non-invasive replacement for \fbox? , but not really. think: \documentclass[12pt]{article} \begin{document} \footnotesize \begin{tabular}{lc} a & 1\\ a & 1\\ ...
4
votes
3answers
206 views

Horizontal placement of a framebox

I would like to horizontally offset a framed paragraph of text so that the sides of the frame coincide precisely with left and right margins of 2em on a page with a text-width of 6.5 inches. ...
1
vote
0answers
25 views

how to put Verbatim inside minipage that has fbox around it? “Paragraph ended before \FV@BeginScanning was complete. }” [duplicate]

I am surprised that I get an error when I add Verbatim to content of minipage that had \fbox around it. Removing the \fbox removes the error. But I need to put frame around the minipage. I can't use ...
4
votes
3answers
115 views

How can I set the horizontal separation only in a framebox?

I'm using the command \fcolorbox to add a framebox around an image. I want to set the horizontal separation only. With \fboxsep I set the separation all around. \documentclass[oneside]{article} \...
2
votes
1answer
295 views

Frame with padding/margins (without using mdframed)

I'm wondering how to add paddings in a frame (as you can see, left and right paddings are the same, but not the same as top and bottom paddings). I know it can be done using mdframed, but sometimes, I ...
8
votes
2answers
448 views

Difference between \framebox{$$} and \boxed{}

I want to put an equation in a frame box. Is it the same that if I create a framed text box environment first then put the equation inside or use the environment \boxed{}? \documentclass[a4paper]{...
4
votes
1answer
138 views

Customized frame with title over frame

I'm trying to have sections within titled-boxes in my document. My minimum almost-working example is: \documentclass[a4paper]{article} \usepackage{lipsum} ...