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

learn more… | top users | synonyms

1
vote
2answers
35 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, ...
0
votes
1answer
17 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
29 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
52 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
29 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
123 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: ...
1
vote
1answer
35 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
46 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? ...
3
votes
1answer
112 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
59 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} ...
1
vote
1answer
102 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 ...
3
votes
2answers
258 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
20 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
28 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
165 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}, ...
2
votes
1answer
101 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
107 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} ...
1
vote
1answer
72 views

Reducing upper and lower margin in shaded enviroment

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?
2
votes
2answers
70 views

Framed minipage and `comments` package

I am preparing a classroom workbook with two versions: one with answers and one without. The student version has big, empty, framed boxes to handwrite their answers. The teacher version has suggested ...
2
votes
2answers
78 views

LaTex: Adding cell padding to a text frame

I'm trying to create a box as below in LaTeX. \framebox[40em][c]{ I certify that the work presented in the dissertation is my own unless referenced. } I want a little bit padding between the text ...
6
votes
2answers
356 views

How to create a page like this?

I'm a LaTeX newbie. I want to create a page layout like in the picture below on every page. Can someone help please? Thanks.
4
votes
1answer
329 views

Why is listings' frame width a little larger then \textwidth?

Here is the sample code: \documentclass[]{article} \usepackage{listings} \lstset{ basicstyle=\ttfamily\footnotesize, frame=single, % adds a frame around the code } \begin{document} ...
3
votes
2answers
266 views

How can I write framed formulas in my LaTeX document?

I am interested in this thing because I think that the framed formulas make my document more beautiful. For example how can I make this formula framed? $F=m\cdot a$ I would like to make a light ...
2
votes
1answer
82 views

lstlisting framed with the caption inside the frame

How do I made a lstlistings look like following? The best I could get was: The code for the second image is: \begin{lstlisting}[caption=id(in), frame=single] out <- in; return out; ...
2
votes
2answers
81 views

using framed within itemize or enumerate

I have the following code: \documentclass[a4paper,11pt]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{lmodern} \usepackage{classicthesis} \usepackage{hyperref} ...
1
vote
2answers
168 views

How to force the tcolorbox package to cover the upper and lower part of pages?

The code \documentclass{book} \usepackage[many]{tcolorbox} \usepackage{lipsum} \begin{document} \chapter{Foo bar} \lipsum[1-2] \begin{tcolorbox}[size=tight,oversize, sharp corners, breakable, ...
1
vote
2answers
372 views

How to abbreviate “\begin{frame}”, “\end{frame}”, and “\frametitle”?

Aware abbreviating those commands need not always be helpful, I would like to know how to abbreviate them? The following is what I tried, which does not work: \documentclass[11pt,handout]{beamer} ...
8
votes
2answers
352 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{}? ...
1
vote
0answers
70 views

Exclude a line of text in a tabular environment

I have this problem: inside a framebox there is a line of text which should not be a part of the tabular enviromnent because it widens the first tab. Here is the code \documentclass[12pt, ...
3
votes
2answers
148 views

Dotted frame around the text

I need to do a dotted frame, something this one: Is it possible to do?
2
votes
1answer
181 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, ...
3
votes
1answer
38 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 ...
8
votes
1answer
119 views

Framed environment with striped background

Dear friends, I have the following environment in a document: which is produced the following code, except the dark green line, I kept it back for keeping my the minimal component in my MWE. :) ...
1
vote
3answers
578 views

Aligned equations in a colored box

I would like to put a set of aligned equations into a colored box. After a quick search on tex.stackexchange, I have found the following solution to put (apparently) one equation in a color box : ...
1
vote
2answers
116 views

Box around equations in align environment and no indentation

I have the following code and I want to do two things to it.First, I want to have the output maximally on the left, that is I do not want any indentation of the stuff in the align environment, I want ...
4
votes
3answers
82 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} ...
1
vote
2answers
195 views

Package for framed boxes

I saw the following framed box in a Tex-generated PDF and was wondering what package had been used to make it: Does anybody recognize it?
1
vote
2answers
166 views

How to add a frame around a float with caption?

I've created a new float element to define examples: \usepackage{float} \floatstyle{plain} \newfloat{example}{thp}{lop} \floatname{example}{\textsc{Example}} I want to set my example in an frame. ...
2
votes
3answers
495 views

Colored frame in includegraphics environment

I like using \includegraphics[<your options>,frame]{image} to create a tight border around my images. How can I change the color of the border? Minimal working example: ...
1
vote
1answer
130 views

How to decrease vertical space of shaded(\usepackage{framed}) environment?

How to decrease the vertical space of shaded environment in preamble? Here is the code: \documentclass[a4paper,12pt]{article} \usepackage{color,xcolor} \usepackage{framed} ...
3
votes
2answers
91 views

Frame numbering

I'd like to change numbering of this beamer document: \documentclass[landscape,9pt]{beamer} % COMANDI INIZIALI \usepackage[italian]{babel} % ...
0
votes
1answer
67 views

Box aligned equation under (deep) itemization

\documentclass[11pt]{article} \usepackage{amsmath} \usepackage{empheq} \newcommand*\widefbox[1]{\fbox{\hspace{2em}#1\hspace{2em}}} \begin{itemize} \item[1.] zz \begin{itemize} \item[1.1] ...
2
votes
2answers
115 views

How to box aligned equations

\boxed{ \begin{align*} x &= 1 \\ y &= 1 \end{align*} } obviously doesn't work/compile.. \begin{framed} \begin{align*} x &= 1 \\ y &= 1 \end{align*} \end{framed} sort of work, but ...
0
votes
0answers
44 views

No page break in framed [duplicate]

I am trying to avoid framed boxes to break when they span on multiple pages (usually 2). Essentially they should get pushed down when the box is too long to fit on the page. This code for example ...
0
votes
0answers
22 views

Framing equations [duplicate]

Is there any simple way of framing an equation? I often use \framebox{$ mathematics $}, but wish to use the frame around a numbered equation, not fussed whether the numbering appears inside the frame ...
3
votes
1answer
125 views

How do you make a tight box using \begin{framed} and how do you skiplines in it?

I cant fit a tight box using this code: \begin{framed} \begin{flushleft} \# Description of the data \\ summary(training) \end{flushleft} \end{framed} and I dont manage to skip lines. Can anyone ...
3
votes
3answers
154 views

Remove par indent from environment

The real problem here is that I can't figure out how to modify an existing environment. The concrete thing I want to achieve follows below. I'm pretty happy with what the framed package gives me with ...
1
vote
1answer
100 views

add frame to matrix [duplicate]

I want to enclose my matrix by a box. I have followed the instructions in this link but couldnt get the borders correct. Here is how the frame looks like and the code. \begin{frame} ...
3
votes
3answers
192 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 ...
1
vote
1answer
122 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 ...