{framed} is about framed document elements, e.g., boxes and environments. A popular package is {mdframed}.
37
votes
8answers
5k 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} & ...
13
votes
1answer
1k views
Box around a few items in an itemize environment
I'm using beamer and want to call out a few items in a list by drawing a box around them, and, ideally, having a small comment appear next to the box, like this:
20
votes
1answer
913 views
How to place a shaded box around a section label and name
In working with a publisher, I need to format section headings like this (using ASCII art):
+-----+-------------------------------------+
| 1.2 | Section name |
...
11
votes
2answers
11k 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}
...
13
votes
1answer
515 views
How to choose which sides of the border to draw in a `framebox`?
If, for example, you only want to draw the top and bottom border of a box, or perhaps the left and bottom only, is there a simple package to do this or must one resort to using tables or heavy-weight ...
32
votes
4answers
23k 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 ...
6
votes
2answers
700 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
...
10
votes
4answers
3k views
Creating Page Border for Single Page only
I am digitizing a book and there is only a single page which has page border as shown in the attached image.
How can I create border to a single page? Is there a library where I can choose a border ...
16
votes
4answers
4k views
Draw true page border
Is there a way to draw a rectangle around every page?
The problem is that my document (a Ph.D. thesis) is in a funny format (16x24cm). So to print it centered on A4 paper (for reviewing) I played ...
10
votes
1answer
5k 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 ...
21
votes
3answers
8k views
Can I have framed blocks in beamer?
Is there a simple way to have the body of a block environment in beamer to have a frame around it, rather than having a background colour? I tried putting a \fbox inside the block, but it just wrote ...
17
votes
4answers
311 views
Frame with only crosses in two opposite corners
Is there one package to produce frames looking like the one above in the following ASCII example ? I don't want dashed lines.
|
...
9
votes
3answers
3k views
box around theorem statement
Is there an easy way to put a box around a theorem in LaTeX? For example to state an important theorem.
I tried using page 20 of the ntheorem documentation ...
7
votes
2answers
187 views
Box around minted environment
I'm using the minted package to produce nice looking java-code but I would like to make a box around the code so it is easier to separate the code from the rest of the document.
What is the easiest ...
8
votes
1answer
349 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} ... ...
8
votes
3answers
3k 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 ...
8
votes
3answers
2k 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 ...
4
votes
0answers
288 views
How to format an email conversation?
I am currently writing my thesis and need to include a bunch of email conversions. I am using classicthesis. I wonder, how you would format stacked conversions. Moreover, how would you deal with the ...
16
votes
1answer
461 views
framed or mdframed? (Pros/Cons)
I'm currently thinking about using shaded and framed sections in my document.
But for now, I couldn't clarify the differences between framed and mdframed (or other packages). Although the ...
9
votes
2answers
889 views
Framed text with a float in it
I'd like to frame the text between \startfoo and \stopfoo, but there is a float in it.
\documentclass{article}
\begin{document}
\startfoo
\begin{figure}[h]
some float with a \caption{...}
...
7
votes
3answers
210 views
Creating uniformly sized boxes around text
I want to put individual words in to boxes next to each other. I've used the \framebox command, but this has produced different sized boxes around each word. How could I get all the boxes to be the ...
5
votes
1answer
314 views
mdframed: Put a line below the frame title and give it a shaded background
I like to use mdframed to make a framed environment with an optional title. The title has to be in its own box with a gray background, like this:
I hope that this is possible.
MWE
...
4
votes
2answers
453 views
Make all figures and tables framed by default? [duplicate]
Possible Duplicate:
Rounded corner colored box around figure
I'm interested in having all of my \begin{figure} and \begin{table} environments automatically get framed. Is there any way to ...
3
votes
2answers
467 views
Is there an \arrayrulecolor-like command to change the rule color of \fbox?
The question has been written above.
2
votes
2answers
599 views
Multiple border around page
I was thinking about giving a finishing touch to my resume by adding a border to the document in black color. I tried using \fancybox but not impressed with the output.
...
12
votes
3answers
377 views
How can I construct a page layout with framed boxes?
For a report I'm writing, I have got an MS Word template for a page that needs to be included. The page looks like this (print screen from Word):
However, there are a few things that makes me not ...
20
votes
1answer
545 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 ...
17
votes
2answers
351 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
2answers
680 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}{
...
11
votes
2answers
748 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}
...
11
votes
3answers
7k views
How to draw a colored framebox without filling the background?
I like to draw a \fbox{..} which is colored. The xcolor package gives
\fcolorbox{<frame color>}{<background color>}{<text>}
But this forces me to set a background color. I like ...
7
votes
2answers
2k views
Regarding the leftbar environment
Does anyone know how to control the width and color of the left bar in the leftbar environment?
16
votes
6answers
3k views
Text in squared box
I'd like to bot a square box around some text. I'd like to denote a labelled object of size 1, in combinatorics this is often symbolised by something like \boxed{1}. It would be nicer if the box was a ...
12
votes
4answers
965 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 ...
10
votes
4answers
428 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
5answers
949 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 ...
8
votes
2answers
171 views
Combining `tikzpicture` and `lstlisting`
I'm working on a custom lstlisting environment, in which I use TikZ to add a frame and a title. Because of the widespread curly braces of node I cannot use newenvironment, so I have to resort to ...
5
votes
2answers
726 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.
...
13
votes
1answer
5k views
How to draw frame with rounded corners around box
Is it possible to simply draw a frame around a box which has rounded corners, and be able to control frame width, frame color, frame radius, box background colour
(preferably without having to use the ...
11
votes
3answers
920 views
Framing section headings
I'm attempting to put a frame around my section headings. I am using the package mdframed which adds functionality to the framed package. It basically draws a box around an object, in an ...
8
votes
3answers
17k 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, ...
6
votes
3answers
203 views
Putting a coloured background behind text without adding whitespace
Consider this:
I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
6
votes
4answers
4k views
How to use the quote environment inside a \framebox?
Now I run into a problem with frameboxes. Why is the following
not valid LaTeX code?
\framebox{
The following text was taken from:
\begin{quote}
Erik Pickles: How it will end
\end{quote}
}
I get ...
4
votes
1answer
553 views
Indentation in \leftbar Environment
How do I control/remove the indentation automatically generated in the \leftbar environment?
\documentclass[11pt,letterpaper]{amsbook}
\usepackage{xcolor}
\definecolor{lightgray}{gray}{0.90}
...
4
votes
1answer
443 views
How to avoid background / frame break in code listings with math / mathescape?
I have lots of C++ sources with LaTeX formulas in the comments. Ideal for using the listings packages to pretty print the source. However, most of the formulas break either, the background or the ...
4
votes
1answer
698 views
How to make the frame dashed?
I am using \begin{framed} ... \end{framed} in my presentation, does anyone know how to make the frame dashed?
2
votes
4answers
318 views
Debugging - any packages that will draw individual line (and word) frame boxes?
I was just wandering if there is a package (or an option to a package, like \usepackage[showframe]{geometry}) that could emphasize/draw borders(/lines/frame) around each (and every) word; and/or each ...
12
votes
1answer
513 views
Page Bordering with an image?
I want a custom border for my document.
I was thinking of doing something like this, creating a border with a graphics tool(only the outer frame) and then placing it in the beginning of the document, ...
9
votes
1answer
121 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}
...
7
votes
2answers
1k 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 ...

