Questions tagged [framed]

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

Filter by
Sorted by
Tagged with
23
votes
1answer
40k views

Fix the height/length of a minipage

I have 2 columns in 1 slide. On the left hand, it is a tabbing inside a minipage in a framed. Some sentences are shown one by one by overlay, that results in the height/length of the whole minipage ...
10
votes
1answer
13k views

Create a frame for a title page

I have already created my title page with \begin{titlepage} command and I want to put a single boxed frame around it. I've tried fbox, framebox, makebox and a few others and none of them put the frame ...
18
votes
2answers
796 views

How to make mdframed ignore descenders in last line

How can we make mdframed to ignore the descenders of the last line in the calculation of the innerbottomsep. In my eyes there are two reasons to desire this: Inner margin The optical bottom sep is ...
12
votes
1answer
14k 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 ...
10
votes
2answers
3k 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} ... \end{...
9
votes
1answer
1k views

fancy text boxes like in Redhat documentation or mercurial book

I would like to have framed texts with an Icon on the side like the ones here http://www.centos.org/docs/5/html/5.5/Release_Notes/ar01s06.html or http://hgbook.red-bean.com/read/collaborating-with-...
9
votes
2answers
1k views

CSS border-top, border-bottom, border-right LaTeX equivalent

Is there an equivalent in LaTeX to the CSS border-top, border-bottom, border-right properties? I would like to underline and overline text with with a border on the right, not simply underline or ...
4
votes
1answer
6k 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} \noindent\textbf{...
6
votes
1answer
972 views

Create box around text without creating a paragraph and with line breaking

I want to draw a box (no rounded corners, keep it simple ^^) around one or multiple words. There are two special things: 1) the box should support line break and 2) the box should not cover multiple ...
3
votes
2answers
1k 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 ...
19
votes
4answers
47k views

Border or frame around figure

I'd like to place a border / frame around my figure. The figure is a bunch of equations: \begin{figure}[ht] \[ eqn 1 \] \[ eqn 2 \] \[ eqn 3 \] \caption{\label{myfig} My caption.} ...
6
votes
2answers
4k views

How to add a box of a fixed size (width and height) around a graphic of varying sizes?

I've found lots of references for ways to create a box around text, but none for around graphics. I want the border frame around the graphic to all be the same size, with a graphic inside the box, ...
5
votes
2answers
8k views

Trying to put a box around a collection of subfigures

I'm trying to have a bounding box around the following figure: \begin{figure}[htp] \begin{center} \subfigure[Process with no error]{\label{noerror}\includegraphics[width=1.5in]{noerror-process}} \...
5
votes
2answers
445 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.
5
votes
1answer
346 views

Listing with two columns in a single fancy frame

I am playing a little with lstlistings and I wonder whether such a thing would be achievable for all my listings: How to achieve this kind of things? Note : I am searching for a solution I can apply ...
1
vote
1answer
390 views

endless loop with mdframed

The following code leads to an endless loop. pdflatex is at 100% CPU and the log is constantly increasing with number counted upwards. \documentclass{article} \usepackage{mdframed} \begin{document} \...
10
votes
1answer
623 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} \begin{...
8
votes
3answers
2k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
5
votes
1answer
1k 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 ...
5
votes
1answer
2k views

Shaded with “continue on next page”

I am using the shaded environment in the framed package to wrap some text lines that may go across two different pages. If there is a crossing of pages, I'd like to automatically add a line "(continue ...
5
votes
1answer
2k views

Beamer ovalbox frame thickness

I'm working with Beamer and I would like to create boxes with round corners. I use \ovalbox, but I would like to control the thickness of the line. How can I do this? I also tried \thinlines, but I ...
4
votes
2answers
1k views

Is there an \arrayrulecolor-like command to change the rule color of \fbox?

The question has been written above.
3
votes
2answers
4k 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} \...
3
votes
1answer
1k views

Frame for a title page

The cover of Gonzalo Medina from here : Presentation Beamer [title page] is beautiful and bright i tried to do it like him but in \documentclass[a4paper,12pt]{report} here is my try \...
2
votes
1answer
136 views

How to make a frame like below picture?

Where to find or how to make a frame like below picture with optional width and height?
2
votes
1answer
969 views

How to change global figure setting?

I did \floatstyle{boxed} \restylefloat{figure} so all of my figures are with frames. This works well, but there is a place I do not want frame, how can I change it locally?
2
votes
2answers
927 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. ...
1
vote
0answers
70 views

How to do the memoir headings fix but not have my text going over the page bottom margins?

I am using a fix \setlength{\headheight}{14.0pt} for the memoir package I found on Memoir : Warnings "The material used in the headers is too large" w/ accented titles but when I use it, my ...
0
votes
1answer
339 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 ...
16
votes
2answers
5k views

How to create a warning box like this (see the figure to get the idea)?

Scenario I want to create a warning box (or pitfall box) that satisfies the following creteria: It can be broken across pages. It can contain images, displayed equations, begin{minipage}, \begin{...
8
votes
1answer
3k views

Fancy box around equation

I am trying to get my equations to show up like: This is my attempt thus far: \documentclass[11pt,fleqn]{book} \usepackage[top=3cm,bottom=3cm,left=3.2cm,right=3.2cm,headsep=10pt,a4paper]{geometry} ...
15
votes
2answers
5k views

framed or colored box with text and margin notes

I am using pdfTeX and I have in my text an example which just is a kind of a short story. What I want is: The story should be visually distinct from the normal text, by frame or background colour. I ...
13
votes
2answers
2k views

Different colorcoded theorems

I'm using this code to frame my theorems: \documentclass[a4paper,12pt]{scrreprt} \usepackage[table]{xcolor} \usepackage{latexsym} \usepackage{amsmath} \usepackage[amsmath,thmmarks,framed]{ntheorem} ...
13
votes
3answers
14k views

How to make a box around a section

I'm trying to put a box around a section, both the title and the contents. I've found ways of doing one or the other, but not both. +-----------------------+ | Title | | ...
9
votes
2answers
12k views

Colored frame for the framed environment

I'm using the framed environement to put a text in a framed box. I'm using it because I like its formating more than fbox. Now I would like to color the frame's border and I didn't find anything on ...
17
votes
4answers
2k views

Creating stackoverflow like tags

I'm trying to create stackoverflow like tags. Currently I'm using an \fbox{text} to create the tags, which works, but not all boxes have the same height (it seems that letters like 'p' make a box take ...
12
votes
2answers
2k views

Gray box around figure with a separate gray box around caption

My university requires that all figures in a thesis follow this pattern: I'm very new to LaTeX, so far my best attempt has been this: \begin{SCfigure} \colorbox{darkgray}{ \begin{...
10
votes
1answer
634 views

Does some one know how to create a specific kind of block on Beamer?

I would like to create a block in Beamer exactly as the one illustrated below. Does someone know how to do it?
9
votes
3answers
1k 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} \pagestyle{...
26
votes
4answers
43k views

How to draw a frame box around an arbitrary large piece of text/figures/whatever?

The command fbox{...} can be used to draw a box around a piece of text, and apparently also a figure. However, I've not been able to use it if the "text" contains environments such as minipages and ...
19
votes
1answer
1k views

Highlight equations in a typographically correct manner

I am presenting a model composed of a dozens of equations, some of them requiring a somewhat lengthy derivation. The equation that continue the actual model appears progressively along the derivation ...
11
votes
6answers
2k views

Suggestions on how to place a sentence of text inside a box with a border around it

I have an "XYZ's Law" quote that I'd like to show somewhere on a page vertically centered in a box with some form of simple border around it. Basically I'm trying to achieve the LaTeX equivalent of ...
7
votes
1answer
2k views

framed frame in beamer?

Below is an example of the layout I am trying to make for a beamer presentation: just a simple rounded black frame in which I could insert some contents (e.g. text or images). I have looked at ...
10
votes
3answers
6k views

How can one prevent \fbox from running off the page?

I am using the \fbox command to box a large chunk of text: \fbox{Four score and seven years ago our fathers brought forth on this continent, a new nation, conceived in Liberty, and dedicated to the ...
10
votes
4answers
731 views

Creating simple frames

I want some of my text to be "framed". So far, I have horizontal lines generated by the \separate command in the following MWE: \documentclass{article} \newcommand\separate{\medskip\hrule\medskip} % ...
9
votes
2answers
7k views

How do I make one minipage the same size as another?

I'm writing a LaTeX document into which I want to put two boxes, in a row next to each other, which will contain varying length content. I want each box to be the same height, and that height needs ...
8
votes
1answer
2k views

Frame and background color for all figures

I want to have all my figure floats framed all through the text something like those in Wikipedia pages. A pale-coloured (grey) frame and very pale background too. I am using caption package to ...
7
votes
2answers
16k views

frame around image and caption

I have an image wich is beside some text, and I would want to frame the image and the caption. My code is for now: \begin{wrapfigure}[4]{r}{8cm} \centering \fbox{\includegraphics[width=7cm]{...
6
votes
2answers
4k 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. ...
6
votes
2answers
1k views

Show pageframe for LNCS article class

I'm trying to see the "text boundaries" of an LNCS document to check whether my floats fit, as the package pageframe offers to do. I can't get it to work, unfortunately. \documentstyle[pageframe]{...