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

learn more… | top users | synonyms

2
votes
1answer
89 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
171 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
383 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
657 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
201 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
125 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
266 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
160 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
110 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
228 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
172 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
80 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 ...
6
votes
1answer
902 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
99 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
399 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
181 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
166 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
404 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
198 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
157 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 ...
0
votes
0answers
81 views

How to surround portions of a tree with boxes

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
64 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 ...
12
votes
2answers
1k 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 ...
3
votes
2answers
404 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. ...
13
votes
3answers
717 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 ...
8
votes
2answers
430 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
1answer
166 views

Indented box that split in multiple pages

I am doing a document with exercises and corrections. I would like the corrections to be easily remarkable so that no student read it by accident and get its exercise spoiled. I have written an ...
9
votes
2answers
409 views

Boxed entries in matrices

I would like to create a formula or figure like this: I tried it simply with the pmatrix environment and the \boxed command, but the spacing looked horrible. I think it might be done with TikZ, but ...
5
votes
1answer
85 views

boxed equation but framed only some sides

I need to box part of an equation, but I need the frame to be open one side. In the following MWE I would need the left part of the equation not to have the right frame of the box and the right part ...
4
votes
1answer
191 views

footnote inside mbox

I know very similar questions have been asked, but I couldn't find a solution to my problem. My original problem started using the glossaries package, using an acronym inside the framed environment, ...
16
votes
2answers
718 views

Is it possible to create an adaptable golden ratio frame around equations?

I would like to create special frame around my equations. This frame should obey to the golden ratio rule. This means that its width divided by its height should give 1.61803398875. If possible, the ...
3
votes
1answer
106 views

Globally set the justification in a framed box

I want to show the text from a Python Interpreter in a Windows console. This should be plain text (like you see in a command line terminal). I also want to show Python code snippets with highlighting. ...
2
votes
2answers
913 views

Create environment out of eqnarray with frame box

Could you help me to create an environment out of this code: \smallskip\centering\framebox[0.9\textwidth]{ \begin{minipage}[c]{0.8\textwidth} \begin{eqnarray} I & = & ...
3
votes
1answer
349 views

lrbox with border in beamer

Can I have border around a \lrbox in beamer? I have a minipage inside the lrbox. I know I can use \fbox. Update Sorry for the confusion. I need a border around the block of data, it is inside a ...
1
vote
2answers
251 views

Drawing a rectangle box around code fragment

How to produce the effect of drawing a rectangle box surrounded the code, and put it in the figure? (Any methods including non-tikz-pgf method that helps is welcome)
0
votes
2answers
199 views

Creating a command similar to \vrule

Upon trying to create a new border similar to the \vrule command, I have the following: \documentclass{article} \usepackage{xcolor,framed,lipsum} \def\bulletfill{\vbox to ...
4
votes
1answer
180 views

Highlight elements in the matrix (continued)

Using @Stefan Kottwitz's solution of Highlight elements in the matrix, is it possible to select one single entry in the matrix? Where does one need to place the left and the right marks?
10
votes
2answers
146 views

Place a background relative to the position of an environment

I am trying to place a background that extends the entire page width and whose height depends on the height of the environment contained. For example, the following code provides something to what I ...
5
votes
3answers
293 views

Put a frame around all pages, except one, in a book

I am writing a book and would like to put a red, 5pt thick frame around all pages, except around one page in the middle of the book, which contains a figure that is bigger than the frame. The frame ...
0
votes
2answers
141 views

How do I make frame environment play nice with \textbf?

I am getting a strange error message when I put textbf into a frame environment. Minimal Example \documentclass{article} \listfiles \begin{document} \begin{frame} \textbf{Lemma 1} \end{frame} ...
4
votes
1answer
134 views

Help with a framed environment

Upon trying to create a framed environment using the framed package, I stumbled upon a problem I have not been able to resolve. What I am trying to achieve is the following: Unfortunately with the ...
1
vote
2answers
487 views

framebox does not work for lstlisting environment

I am looking a way to wrap something with a frame. I try different approaches but finally choose to use fancybox package and minipage (because I need to control the width of the frame). It works ...
3
votes
1answer
169 views

Setting a wavy sidebar

Is there a way to have framed.sty's sidebar environment to use a long wavy line, constructed, for example, using the mathabx.sty's \lfilet variable-sized delimiter?
2
votes
2answers
378 views

Framed floats and background colors for captions

i wanted to edit my floats. Found the package floatrow and got the desired frames easily for them. Now i would like to add a backgroundcolor to the captions. The problem is that the \parbox, i ...
5
votes
2answers
118 views

Frame individual cells in a table

I'm aiming to make an RPG character sheet in LaTeX, but I'm having a little trouble with the boxes one usually asociates with this kind of thing. Is there a way to individualy frame table cells in ...
16
votes
2answers
802 views

A special example environment

How can I define an environment named "example" so that: can be broken over pages has a horizontal line above "Example \chap.\no" (e.g. Example 4.10), and vertical line that is spread to the whole ...
3
votes
1answer
676 views

Numbering a “new theorem”

I have a (simple?) question. I use the ams theorem environment for most of my theorems, but I want to box my definitions and find here a nice way to do it, simpler for me than mdframed. My problem is ...
2
votes
1answer
112 views

Getting lbr frame lines in a listing up to the caption box above it

I have a document similar to this: \documentclass[twoside,11pt,titlepage,a4paper]{report} %unterscheidung zwischen gerade und ungerade seite, 11pkt, kp, kp \usepackage[T1]{fontenc} %inputcodierung ...
2
votes
1answer
287 views

Open ended frame with framed.sty

I made a frame using the framed package. When a pagebreak breaks it, it is divided in two separate frames. I would like the bottom and top of these two frames to be open, and an oframe option is ...