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

learn more… | top users | synonyms

4
votes
1answer
105 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
161 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
22 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
40 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
63 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, ...
0
votes
2answers
69 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} ...
1
vote
0answers
57 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
66 views

Dotted frame around the text

I need to do a dotted frame, something this one: Is it possible to do?
3
votes
0answers
23 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 ...
7
votes
1answer
81 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
191 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
56 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 ...
1
vote
2answers
96 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
66 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
106 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
47 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
68 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
56 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
73 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
33 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 ...
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
59 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
98 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
72 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
117 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 ...
0
votes
0answers
68 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
179 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
284 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
301 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
220 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
244 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 ...
1
vote
3answers
92 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}}} ...
4
votes
1answer
64 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} ...
3
votes
1answer
119 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
47 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
48 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
84 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
60 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 ...
3
votes
1answer
149 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
115 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
33 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
251 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
183 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
80 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} ...
7
votes
3answers
262 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} ...
3
votes
1answer
87 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 ...
3
votes
1answer
80 views

Create page break for entire frame without breaking the text flow

I'm including a large, one page box using framed package, with simplest example being: \documentclass{report} \usepackage{framed} \begin{document} Some text ...
1
vote
1answer
47 views

Control the height and the length of a frame

By using the following code, I draw a framed figure that contains an array of 3 rows: \usepackage{framed} \usepackage{float} \begin{document} \begin{figure}[h] \begin{framed} \[ ...
2
votes
0answers
56 views

Framed theorem environment spread across pages [closed]

I wanted to put a vertical line in front of examples to make them easier to distinguish from the regular text. For this I used mdframed, and it mostly seems to work. However, if an example happens to ...