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

learn more… | top users | synonyms

0
votes
0answers
35 views

FRAMING insights (could someone explain what I'm doing?)

I wanted to frame some pictures, algorithms, and tables. mdframe sometimes didn't work so I've copy pasted some stuff I've found and made my own frame. This was something I've really liked and what ...
1
vote
0answers
37 views

Layout with frames [duplicate]

This is my first post! I have been around this Forum for some time, but I never needed to ask a question. Unfortunately I can't find a answer suitable for me Problem this time. I am trying to re-...
2
votes
1answer
25 views

Fbox increase the spacing between the box and it content (inner margin)

Is there a way to control the top and bottom spacing between the box and it content (text)? and secondary about left and right spacing? in other words i am looking for the analogous of \arraystretch ...
4
votes
1answer
59 views

ConTeXt : show icon on frame corner

I am trying ConTeXt, and there is something I used to do in LaTeX that I am trying to reproduce : I used to define blocks with an icon superimposed on the top-left corner, such as in the following ...
2
votes
2answers
40 views

\framed and \itemize with custom item labels

This question is a slight extension of this previous post and in particular the answer by @knut. Unlike the situation in that post, I also have my own custom labels for each item, i.e. my code looks ...
2
votes
3answers
62 views

Filling in colors in frame macros

I am hoping the answer to this question is a simple, so apologies for my ignorance. Based on posts here, I was finally able to make the frame appear the exact way I wanted it to. I made the following ...
3
votes
2answers
51 views

Annotated Box around Figures and Tables

I have a Latex document where I need to put Figures and Tables in boxes. This can be accomplished with e.g. fbox, framed or mdframed. However, I need a solution that also allows me to annotate the box ...
0
votes
1answer
37 views

Putting a vertical line next to an exercise

I'm working with an existing environment (exercise) provided by the svmono documentstyle (springer monographs) and sometimes it is unclear where an exercise ends and the next paragraph begins. To ...
4
votes
1answer
43 views

How to confine a plot inside a frame?

I'm using \listplot to plot a datafile I made. The section of the plot I am interested in ranges from y=-40 to y=60 but there is a peak in this plot which goes way above y=100. I don't want to show ...
3
votes
1answer
87 views

How to create a fully customized and compatible LaTeX environment

I want to create a simple environment in LaTaX that's alike the following figure. If, for example, this environment has some spare comments like references or so, to be added above the environment (...
1
vote
2answers
72 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, ...
1
vote
1answer
27 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
31 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
69 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
59 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
166 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
45 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
69 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
187 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
85 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} \usepackage{...
1
vote
1answer
148 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 ...
4
votes
2answers
567 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
32 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
29 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
172 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}, &y=108\dfrac{-\phi^3+5\phi^...
2
votes
1answer
124 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 ...
4
votes
1answer
138 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
103 views

Reducing upper and lower margin in shaded environment

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?
3
votes
2answers
90 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
132 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
377 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
535 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} \setlength{...
3
votes
2answers
294 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
117 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; \end{...
2
votes
2answers
95 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} \usepackage{...
2
votes
2answers
213 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
616 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
452 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{}? \documentclass[a4paper]{...
1
vote
0answers
76 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, a4paper]{...
3
votes
2answers
243 views

Dotted frame around the text

I need to do a dotted frame, something this one: Is it possible to do?
2
votes
1answer
298 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, I ...
3
votes
1answer
45 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
127 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
741 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
148 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
117 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
270 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?
2
votes
2answers
224 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
719 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: \documentclass[tikz]{...
1
vote
1answer
169 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} \colorlet{shadecolor}{blue!...