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

learn more… | top users | synonyms

5
votes
2answers
80 views

An environment for fixed figures

I am trying to create an environment that I can use to include "figures" within a framed environment. Because floats aren't allowed inside framed environments, I want to create a new environment ...
3
votes
1answer
186 views

Adding “continued” text to framed paragraphs using tikz and framed

I trying to adapt the following example: http://www.texample.net/tikz/examples/framed-tikz/ So far I have managed to change the colour scheme and replace the irregular edges with a simple rounded ...
2
votes
1answer
58 views

How to insert mathematical symbols between frame boxes side by side?

I want to put two frame boxes containing some text side by side and put a mathematical symbol (e.g. a plus sign) in between them. How do I do that? Here is the code: \documentclass{article} ...
10
votes
1answer
347 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?
4
votes
1answer
84 views

how can I make an fbox like command with certain color, shape and width of border?

I am using a style file that has a certain color for section headers. I want to create a macro, which will behave the same like fbox, only: There will be some (predefined) padding below, above, ...
5
votes
1answer
59 views

Small box just surrounding the equation, not the whole line?

The following example makes a huge box that's the full width of the text, including the equation number: \begin{framed} \begin{equation} x=y \end{equation} \end{framed} Is there a way to get a ...
4
votes
1answer
362 views

using fbox in a newenvironment [duplicate]

I am trying to write a new enviroment to add text into a \fbox, when I use \fbox on its own, it works quite nicely \fbox{\begin{minipage}{0.9\textwidth} does this work, I would love if it did ...
0
votes
0answers
49 views

How can I apply a style to \frame{} that is similar to the style of mdframed?

I am often using a "mdframed" package to frame my paragraphs or important statements. I usualy do it like this (MWE): \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
354 views

How to change the margins and insert the university banner in a poster?

I'm trying to build up a poster. This is the template I have to use: %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Jacobs Landscape Poster % LaTeX Template % Version 1.0 (29/03/13) % % Created by: % ...
3
votes
1answer
62 views

How to keep the first item invisible before I click the screen?

See the picture. The current situation is that the frame title and the first item appears at the same time. But I only want to let the frame title visible at first, and after I click the screen, the ...
2
votes
2answers
244 views

how to write make rectangle box and write in it

\documentclass{article} \usepackage{graphicx} \usepackage{amssymb} \begin{document} \title{GROUP THEORY}\bfseries \maketitle \section{ALGEBRIC SYSTEM :} NOTE: The algebraic system define over operator ...
5
votes
2answers
205 views

How to typeset a frame with the title across the boundary?

How could I typeset a frame like: ? I've always used mdframed or tcolorbox to typeset frames but I cannot find mention of such functionality. Is there a simple way of achieving this effect with ...
7
votes
2answers
260 views

How to make a semi - shading stripe in resume with LaTeX

I want to make some semi-shading strips in resume to highlight each field, like this image: However, the template code which I use is as below: \newcommand{\resitem}[1]{\item #1 \vspace{-2pt}} % ...
2
votes
0answers
169 views

How to highlight words or sentences? [duplicate]

I would like to create something similar to . To begin with, I would like to create a rounded and background-colored highlight of a word (or a short series of words). What package should I use ? ...
2
votes
1answer
881 views

Space just before minipage

This is my .tex file: \documentclass{article} \usepackage{framed} \setlength{\FrameSep}{3pt} \begin{document} \noindent{}The king\\ \begin{minipage}{0.9\textwidth} is dead, ...
3
votes
1answer
142 views

How to wrap text around framed floats in ConTeXt?

The goal is to embed an image into a coloured box with text. I tried with \placefigure and \starthangaround. They work fine outside a frame, but once put inside a frame the text collides with the ...
4
votes
1answer
273 views

Snugshade Environment too wide

I'm using the snugshade environment to draw a quote box, but it's a little to wide and not flush with the text on both sides. I have absolutely no idea if i can fix this with this environment or if i ...
3
votes
1answer
80 views

Use deeptextcommand and custom register in ConTeXt

Background Looking to emphasize the first letter of the index chapter title. Code The following code does not work as expected: \defineframed[StyleChapterFramed][ frame=off, ] ...
5
votes
2answers
239 views

Nested boxes of different thickness

I would like to create nested boxes in LaTeX that look like this: I know how to create the outside boxes, but I don't know how to create the thick black box inside.
3
votes
1answer
87 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?
6
votes
3answers
739 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? ...
2
votes
1answer
522 views

Self-defined Width of the Pseudocode Box with algorithmicx?

This post has beautifully shown how to make the algorithm pseudocode box as wide as one column or two columns. I am now writing a pseudocode with many if layers. So a one-column box cannot suffice. ...
7
votes
1answer
745 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} ...
7
votes
3answers
717 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 | | ...
5
votes
3answers
133 views

\framebox and tabbing not working together

I wanted to frame in a box a text which includes tabbing. Both \framebox and tabbing works fine separately but cannot make them work together. \framebox{ \begin{tabbing} \textit{Input:} ...
2
votes
0answers
188 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 ...
5
votes
1answer
1k 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 ...
2
votes
1answer
117 views

How to prevent the source code overflow over the frame in a listing? [duplicate]

I am trying to ident my source code in a frame using the listing package. An example code is given below: \documentclass[article]{llncs} \usepackage[english]{babel} ...
3
votes
1answer
219 views

How to obtain formatted page number in ConTeXt?

Problem The \pagenumber macro does not reflect the conversion attribute value within the context of front matter vs. body matter. The front matter uses Roman numerals, the body matter uses regular ...
2
votes
2answers
637 views

Remove extra space from framed environment

I would like to remove or better said have the framed environment (box) aligned with the content in the description. Notice below how the box is out of alignment and aligns with the margin. See a MWE: ...
5
votes
3answers
1k views

I can't seem to get \fbox and \itemize to work together

I'm trying to place some text inside of a box, here's what I'm writing that is not working: \fbox{The \textit{two-step} model of XMCD: \begin{itemize} \item[In the \textit{first step}, circularly ...
7
votes
1answer
256 views

Spacing with framed and mdframed packages

I have a slight problem with the framed package when combined with the itemize environment: \documentclass[parskip]{scrartcl} \usepackage{fancybox} \usepackage{framed} \newenvironment{simpages}% ...
8
votes
1answer
147 views

Decrease padding in \boxed

I am using \boxed to draw a small box around a symbol in math mode. I would, however, like to decrease the padding between the symbol and the box. While I found solutions involving other ...
3
votes
2answers
299 views

TikZ frame paragraph span across pages in ConTeXt

I tried to reproduce the following example in ConTeXt: http://www.texample.net/tikz/examples/framed-tikz/ How can I substitute the LaTeX framed package, that is make the frame span across multiple ...
3
votes
1answer
193 views

Moving the chapter name in a titlesec frame?

I'm messing around with titlesec to make a frame with the chapter name in it. I can't figure out how to move the chapter name ("Chapter Foo" in the example). Here's the MWE: ...
4
votes
1answer
124 views

Adding captions and “cont.” to framed quotations broken across multiple pages

I have to include transcriptions of interviews I had conducted in my thesis, and the institute to which I'll be submitting said thesis is imposing some limitations. The rules are: Excerpts should be ...
2
votes
1answer
286 views

Creating a question box

We are writing a book for kids, and it has some question & answer boxes like the following, I'm not sure how to achieve this. Is there any built-in command for this purpose? Or should I create ...
1
vote
1answer
201 views

How to to set a padding around the page body, draw a frame/border around it, and then add some margin?

What if I want to set a padding around the page body (on all pages), draw a frame/border around it, and then add some margin? The geometry package doesn't seem to have an option for this among its ...
1
vote
0answers
97 views

Footnotes in tables and shaded environment [closed]

I have a problem with having my footnotes on the same page with the footnotemark. What I use to have them inserted into the table or a shaded box is \footnotemark and \footnotetext pair. But the text ...
18
votes
1answer
1k views

Draw custom frame around text

I would like to obtain a custom frame, which is different from the ones given by mdframed. Here is the image comes from the package fancytikzposter, which consists in a minipage inside a tikzpicture ...
8
votes
1answer
1k views

Wrapping text inside framebox

I would like to wrap the text inside a \framebox, such that it continues on the next line instead of running out of the margins. A minimum working example: \documentclass[]{report} \begin{document} ...
5
votes
1answer
115 views

How to create a text box that can be styled globally?

I'm writing a thesis and would like to add a box with text at the beginning of each chapter summarising main points. At the moment I'm using framed with itemize within it, which looks okay and does ...
10
votes
2answers
508 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 ...
1
vote
1answer
219 views

Customize the size of the shaded box

I am using \begin{shaded} from \usepackage{framed}. The problem is I am using it for examples which come inside \begin{itemize}, the shaded box's margin does not begin with the \item margin instead ...
10
votes
2answers
202 views

Multi-line box around a sentence in a paragraph

I am trying to draw a polygon box around a sentence within a paragraph. This box would wrap over multiple lines and terminate exactly at the end of the sentence (i.e. without white space filling the ...
4
votes
1answer
499 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 ...
6
votes
1answer
225 views

Frames around few line of code in a algorithm

I want to put a box around lines of code and to add comments inside the box. This is what I want it to achieve: This is the example of code I am using for the algorithm. \documentclass{article} ...
3
votes
1answer
180 views

How to combine framed and listings packages in new environment

I always use this LaTeX code to display a source code in my article. \begin{listingbox}{VB style} \begin{singlespace} \begin{lstlisting}[style=BASIC] Private Sub Form_Load() Dim tex As String ...
1
vote
0answers
113 views

How to surround portions of a tree with boxes [closed]

I need to group portions of a tree with boxes, and additionally label them, e.g. put "W1" on the side of the box, or in the top right corner of the box. The result I want to achieve is somewhat ...
1
vote
1answer
68 views

How to set \framed to make the baseline of the whole \framed as same as the first line in this \framed in ConTeXt?

An simple example: \starttext \setupframed[align=right,frame=off,offset=none] \framed{A\hskip3em\framed{B\\ C}} \stoptext How can I set the framed which contains B\\ C so that the baseline of ...