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

learn more… | top users | synonyms

2
votes
0answers
20 views

Framed theorem environment spread across pages

I wanted to put a vertical line in front of examples to make them easier to distinguish from the regular text. For this I used mdframed, and it mostly seems to work. However, if an example happens to ...
3
votes
1answer
885 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 ...
19
votes
5answers
7k 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 ...
16
votes
5answers
38k 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, ...
0
votes
0answers
22 views

Border around image is clipped

I want to add a border around a PNG image so I followed the steps here: How to add border for an image? My resulting code is: \begin{figure} \centering {% \setlength{\fboxsep}{0pt}% ...
1
vote
1answer
154 views

Framed float box, spanning two columns in paracol

I'm looking for a simple, framed, float box-environment that has (or can have by construction) a star equivalent (like figure* or table*) so that it may span both columns in the paracol environment. ...
13
votes
4answers
3k views

lstlistings: framed code [closed]

I use lstlistings to write Pascal Code. I'd like my code to be numbered and framed. Here is what I have as of now : \lstset{numbers=left, numberstyle=\small, numbersep=8pt, frame = single, ...
3
votes
2answers
99 views

how to make fbox produce similar result to boxed from amsmath when used inside display math?

I use Scientific word to generate Latex, and from its GUI, it only supports \fbox to put a frame around a displayed equation. i.e. I select the equation from the GUI and click on a button which adds ...
0
votes
1answer
51 views

Framed box with border inside margin

I would like to use something like framed, but where the verticals borders are fully within the margins and the position and width of the actual content is unchanged, and with support for nesting the ...
0
votes
1answer
69 views

Chapter No. in Theorem style

I'm using \documentclass{book}. I'm also using the code below to create a theorem style, however, it only puts the title on top. I want to modify the code so that I get => Theorem ch. no. theorem no. ...
3
votes
3answers
127 views

No space before first section in framed box

I am looking for the correct way to lay out content in a framed box. In my opinion the space before the first section in a box looks odd in comparison to the same content at the start of a page. How ...
42
votes
8answers
10k 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} & ...
7
votes
2answers
972 views

Print page margins of a document

Sometimes when I'm reviewing my document and rearranging images and tables, It would be sometimes great to see the page margins. Is there any easy way to print the page margins when reviewing a ...
3
votes
1answer
68 views

Errors using mdframed and also framed packages with tex4ht to put a frame around text

I googled around, and did not see something about this. I just found out that one gets an error using mdframed with tex4ht. \documentclass{article}% \usepackage{mdframed} \begin{document} ...
1
vote
1answer
54 views

Framed environment covers caption of figure in afterpage

I'm using packages framed to create my own quote environment with a nice frame. However, when using the package afterpage to shift a figure to the next page and the first thing on the next page is a ...
5
votes
2answers
109 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 ...
0
votes
1answer
106 views

Add a black border to block quotations?

I have a Markdown file that I'm converting to PDF with Pandoc. And I'd like that the block quotation of the Markdown file get a 1px black border around them in the PDF. I already managed to edit the ...
1
vote
0answers
26 views

Work around 'Dimension too large' using `framed` with `listings`

I'm including an external source code file as an appendix using the listings package. The framed package is being used to ensure multi-page listings frames are fully closed. The problem is if my ...
3
votes
3answers
147 views

\begin{framed} with background-color

Does anybody know how to set the background-color of a framed element? \begin{framed} Let me have a background :( \end{framed}
0
votes
0answers
43 views

Framed environment: Define custom textwidth for a box

I discovered the framed package while I was loooking for a way to frame long paragraphs spanning over multiple pages. I need to to higlight certain passages, e.g. releace candidates, todos etc.: ...
3
votes
2answers
97 views

\framebox as \labelenumi

for a questionaire where possible answers appear as enumerate entries, I'm trying to have one document with plain squares and one where the squares are filled with either W or F. I tried ...
1
vote
1answer
39 views

How to remove image boundary while using LaTeX in wordpress [closed]

I'm using LaTeX in my blog in wordpress but the formulas are coming inside a rectangular box. Please refer here. How can I remove them?
9
votes
2answers
4k views

How to continue the framed text box on multiple pages?

I am using framed package to create text boxes using begin{framed} and end{framed}. My problem is that my framed box goes on for two pages, and I don't want the text box to complete itself at the end ...
6
votes
5answers
647 views

Formatting new environment with borders

I have defined myself a new environment as below: \newenvironment{myquote}{\list{}{\leftmargin=0.3in\rightmargin=0.3in}\item[]}{\endlist} What I would like to do here is to be able to format this ...
8
votes
2answers
306 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
1
vote
0answers
38 views

I want a Page Border around my Latex document. as in the image

I'm trying to make a project report and the format is the same as in the image below. I'm stuck where I need to give border to every page as shown below. I do not know anything about LaTeX so what I ...
6
votes
1answer
63 views

Getting shaded boxes in lists to indent

I'm trying to make a list which also contains theorems in shaded boxes. I'm currently using the framed package to do this. However, the shaded boxes do not properly "tab" inward to align with the ...
8
votes
1answer
926 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 ...
1
vote
0answers
54 views

making boxed or framed sections that flows to the next page

I want to enclose a text in a box and i want the box to overflow to the next page when the box cannot fit in one page. With my code the box immediately jumps to the next page and then omit the text ...
10
votes
1answer
355 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?
8
votes
1answer
90 views

Boxed notes in MusixTeX

I need to put a box around some notes in a MusixTeX score. I've tried with \fcolorbox, but I get a white background (not transparent), covering the staff lines. I've also tried with Tikz, but I don't ...
1
vote
1answer
59 views

How do I make uniform spacing for minipages in multicols

I'm trying to make a A3 page for the wall of our office, we have a coffee maker and with there are different options for each capsule. What I want to do is have an equally spread set of minipages ...
6
votes
2answers
245 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 ...
5
votes
2answers
205 views

SWOT Table - how to convert to an article?

I need a SWOT analyse in color, and I found this one at http://www.mostlycolor.ch/2013/10/colored-blocks-in-beamer.html : Can someone help me by converting the beamer, so I can use it in an ...
6
votes
1answer
157 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 ...
1
vote
0answers
47 views

Border/frame for special text in latex

I'm writing about hash strings like this: "1DGooBsCL8eBHRq4UHPwiYbvu2Weiuw837" etc. I would like to do some border box or decorations for hash strings. Is it possible in latex?
13
votes
4answers
8k 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 ...
5
votes
2answers
57 views

Move short keywords to the left of the text in box, not marginpar/marginnote

I am trying to create a command that moves (short) keywords to the left side of the text. They should be "right" aligned" with a fixed separation between the keyword and the text. The command below ...
5
votes
2answers
160 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, ...
0
votes
0answers
87 views

Rounded corner box with shading (one side round corner box)

Is possible to get the one side round corner with shaded box through PSTricks? I am using the command \psframe[linewidth=0.5pt,framearc=6,fillstyle=solid, fillcolor=gray!30,linecolor=gray!30] and I ...
5
votes
1answer
100 views

How to prevent frames on each groupplot in TikZ/pgfplots

I want to do a group of plots. However, I set the option \tikzset{every picture/.style={framed} at the begin of my document, because I want a frame around all my pictures. What I get now is a frame ...
4
votes
1answer
88 views

How to make a section without margin with the command “\exersize” like this:

‎ \documentclass[12pt‎ , ‎a4paper]{report}‎ \usepackage[framemethod=TikZ]{mdframed} \usepackage{xcolor}‎ \usepackage{titlesec}‎‎ ...
0
votes
0answers
34 views

Rounded corner box with shading [duplicate]

I wish to draw a rounded corner box (top-left side as a square, top-right side with 6pt radius curve and the bottom of two sides also with radius curve), in addition to that there should be shading, ...
11
votes
4answers
792 views

Put a box around an item (homework)

I am using the enumerate environment to do homework. In the following, first I write out the question, then I write out the answers to the first two parts. What I'd like to do is have a box around ...
4
votes
2answers
82 views

Intersection of equation with code frame in listings package

I used the listings package with single frame and I had an equation before my code. The problem is that the frame intersects a little with the equation and the output is ugly. This happens both when I ...
3
votes
1answer
77 views

Listings package split frame when the page ends

When I use the listings package with frame in my code the frame "breaks" when the page ends and it is open in the end of the page. I want the frame to be complete with four sides and continue in the ...
0
votes
0answers
38 views

Removing the box around an algorithm

I am using the Algorithm2e package for some algorithm in my reports: link However, there is a "frame" around the algorithm that I would like to remove. I don't find in documentation a way to remove ...
4
votes
3answers
75 views

Floats Analogue of framed

I have very little experience with LaTeX. So, pardon my ignorance, but is there a float equivalent of \framebox? Ideally, I'd like a simple construct for framed text that I can position at the top ...
9
votes
2answers
192 views

Framing cells vertically in a table

I want to add a box in a tabularx table that would frame several cells vertically. There is this post that shows how to frame cells horizontally (Framing cells in a table), but I cannot figure out how ...
3
votes
1answer
126 views

Add box to labeled sections

I want to add a box to a repeated section of a textbook, which provides question discussions. Is it possible to do it by adding "tex style setting" command(s) to the preamble? I am using the memoir ...