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

learn more… | top users | synonyms

5
votes
2answers
871 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. ...
16
votes
3answers
966 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 ...
2
votes
3answers
53 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: ...
7
votes
3answers
1k views

Create Beamer-Theorem like boxes

I would like to create frames / boxes for equations or text like in the Beamer class: outisde of the beamer documentclass, for example in the article class. Is there any package or trick to do this? ...
0
votes
1answer
26 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} ...
1
vote
3answers
76 views

How to add a framed box inside a paragraph?

I'm using little markers in some parts of my text and I wanted to add one of those to a paragraph entitling a list: \newcommand{\hip}{{\color{BlueViolet}\framebox[1.1\width]{HIP}}} ...
0
votes
1answer
48 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] ...
3
votes
2answers
54 views

Frame numbering

I'd like to change numbering of this beamer document: \documentclass[landscape,9pt]{beamer} % COMANDI INIZIALI \usepackage[italian]{babel} % ...
2
votes
2answers
46 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
21 views

No page break in framed

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 ...
3
votes
1answer
323 views

Single-column framed minipage spanning two or more slides in Beamer

I searched and could not find an easy non-labour intensive solution to this one. In making a Beamer presentation, I have some framed minipages with various arbitrary content I am transferring from a ...
10
votes
3answers
378 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
1answer
59 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} ...
5
votes
4answers
1k 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 ...
8
votes
2answers
1k views

Black and white emphasis for \boxed?

I am using \boxed to place emphasis on important equations in an assignment I am typing up, and would like to give the final answer a bit of extra emphasis. I'm using \begin{equation} ... ...
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
35 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 ...
1
vote
1answer
106 views

Framed environment covers caption of figure in afterpage

I'm using packages framed to create my own quote environment with a nice frame. However, when using the package afterpage to shift a figure to the next page and the first thing on the next page is a ...
3
votes
3answers
80 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 ...
3
votes
3answers
87 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 ...
6
votes
2answers
597 views

Framed answer environment

I am trying to write a simple environment for the solutions of assessments I give. The code below defines such an environment: \newenvironment{answerenv}[1][Answer]{% Sets the default "Answer" but ...
0
votes
0answers
52 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 ...
1
vote
1answer
131 views

Draw page frame with words in margin

I am currently making exam papers using latex exam class. I would like to have the page frame with the word `Answer written in the margins will not be marked' on both margins, and the header or footer ...
3
votes
1answer
183 views

How to add double line border to a page?

I'm looking for options to add double line border to a page ; left hand top corner of border is mentioned below (border will be continous for entire page width and height).
7
votes
3answers
275 views

drawing an orthonormal frame with semi circles

Hi, I have a problem in drawing this frame, and with colors, especially using tikz programs or the hobby the program don't compile with hobby. Can anyone help me in drawing this pic? thank you. i ...
4
votes
3answers
168 views

How to make a framebox around paragraph title

I would like to have a framebox around some paragraph titles. Something like the diagram below. I would like the framebox to have a background color (e.g. cyan), round corners, and shade if possible. ...
3
votes
2answers
130 views

overpic overlap box frame

.Hello tex.se community, I have a problem when I put a\frame around an overpic environment. The top border of the frame is overlapped by the picture. Is it a bug or a wrong use of\frame command ? I ...
15
votes
2answers
12k 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 ...
4
votes
1answer
58 views

framed package change math?

This code : \documentclass{article} %\usepackage{framed} \begin{document} bla bla bla $\cap_{i\in I} X_i.$ \end{document} produces : and the same code with the line \usepackage{framed} ...
19
votes
6answers
51k views

How to put a framed box around text + math enviroment

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
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
73 views

Changing frame size in mdframed

I am trying to place a box around a definition. Using the package mdframed, I have managed to do so. However, the box is too large, in particular too tall, and it is covering up text appearing above ...
1
vote
1answer
36 views

Header and footer for a figure

(I'm new to latex and don't know the right keywords to search.) I would like to put a header and footer lines to my figures (floats), instead a framebox, since they sometimes takes longer than a whole ...
1
vote
1answer
39 views

size of framed environment in memoir

I am using the memoir package and the 'framed' environment. It seems that the vertical white spacing differs depending whether it is a single equation or the 'multiline' environment. Please, compare ...
0
votes
0answers
38 views

Framing and colorizing a LaTeX command [duplicate]

I normally use \verb|\LaTeXe| to typeset the command \LaTeXe in my document. But now I want to frame or/and colorize the command \LaTeXe. How can we do that? \documentclass{article} ...
1
vote
1answer
73 views

Framed text and pageboundary

I use in my environment file the following definition for framed text: \defineframed[achtergrond] [frame=off, background=color, backgroundcolor=gray, width=fit, height=fit, ...
3
votes
2answers
49 views

Center and box itemize list with formulas

I'm trying to center and box the formulas under the subsection Properties of Definite Integrals; however, the box is not wrapping to just the formulas it's extending to the right a bit and I can't get ...
2
votes
1answer
86 views

Using titleformat, “frame” is supposed to result as “hang”, but in a box (numbers followed by text)

\documentclass{book} \usepackage{titlesec} \usepackage{color} \definecolor{darkblue}{rgb}{0,0.08,0.45} \titleformat{\chapter}[frame] % was display {\normalfont\Large\sffamily\bfseries} ...
4
votes
1answer
99 views

Box environment created with frame box

I am creating the box environment using packages environ and float. But I will try to put the \BODY part after the caption and also try to fix the "framebox environment" by using \fbox{} command. ...
0
votes
1answer
30 views

Border around a caption but not the figure

I'm looking to get a border/box around the captions for my figures and tables, but without wanting to border the figure/table itself as well. I currently have something that works, but the box takes ...
3
votes
2answers
164 views

Frame for lstinputlisting but not lstlisting

I'm using listings for a document which contains code examples within the TeX file and also inputed from external files. I'd like horizontal lines above and below the latter but not the former, but ...
10
votes
2answers
175 views

How to frame unevenly a heading?

The image below shows a textual template that I am working on and which has been produced with the MWE code listing. I would prefer the heading to be 'boxed in' as shown in the figure below which ...
2
votes
1answer
75 views

My frame is too big for the limits margins, How do I add more space. to have all my content complete in my presentation

My frame is too big for the limits margins, How do I add more space. to have all my content complete in my presentation. This is the code \documentclass[aspectratio=169,draft]{beamer} ...
5
votes
1answer
199 views

Add box to labeled sections

I want to add a box to a repeated section of a textbook, which provides question discussions. Is it possible to do it by adding "tex style setting" command(s) to the preamble? I am using the memoir ...
12
votes
4answers
7k views

LaTeX is putting a border around my figures

I'm trying to embed a few images in a figure, but LaTeX keeps putting a border around three of the sides. Is there any way for me to keep it from adding this border? The code that I used to create ...
7
votes
3answers
198 views

two different framed box in running head using fancyhdr

I would like to get the two different filled framed box in the odd and even side running head. Expected are: my MWE is: \documentclass{book} \usepackage{fancyhdr} \usepackage{tikz,lipsum} ...
9
votes
4answers
1k views

Stretching a framebox over the whole page

Does anyone know how to stretch a (framed) box down to the end of the page? In effect something like \documentclass{scrartcl} \begin{document} sometext ...
13
votes
4answers
6k views

lstlistings: framed code [closed]

I use lstlistings to write Pascal Code. I'd like my code to be numbered and framed. Here is what I have as of now : \lstset{numbers=left, numberstyle=\small, numbersep=8pt, frame = single, ...
3
votes
1answer
81 views

ConTeXt: How to enforce spacing below a columnsetspan?

I'm using columnsets with floating columnsetspans, and I would like to enforce a small amount of vertical space below a columnsetspan and the following text, outside the frame. Here are some example ...
2
votes
1answer
571 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 ...