{mdframed} is a package for creating framed boxes that can break across pages.

learn more… | top users | synonyms

3
votes
0answers
451 views

How can I make mdframed boxes break at the bottom of the page? [closed]

I'm trying to get mdframed to split at the bottom of my page, such that there is no white space between the bottom of the frame and the footer. At the moment I have this: I'd like to have mdframed ...
8
votes
2answers
568 views

Different width of frame across page bounadries with mdframed

When a mdframed frame begins with a display math, and the break occurs just at the end of the display math environment, the widths of the frame are different across the page break boundary: Also ...
1
vote
1answer
515 views

mdframed digressionarrows style with custom header

Using the mdframed package, I've been trying to figure out how to add an option for changing the header in their digression-environment (example 6 here: ...
3
votes
1answer
514 views

mdframed package + align gives extra vertical space

I think I may have stumbled upon a bug in the mdframed package. I have an mdframed environment with just one align environment inside it. Consider this minimum working example: ...
6
votes
1answer
478 views

How to align mdframed inside another frame?

I tried to create a child frame inside a parent frame by mdframed as \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \begin{document} ...
7
votes
1answer
416 views

Using enumitem inside mdframed

I tried to use enumitems within mdframed as \documentclass{article} \usepackage{mdframed} \usepackage{enumitem} \usepackage{pifont} \newcommand{\pitem}[1]{{\item {\small #1}}} \begin{document} ...
7
votes
1answer
565 views

How to display mdframed title in header?

I have a series of mdframed frames in the document. Some frames are few pages long, and some pages have two frames within. How can I display the frametitle of the corresponding page in the header as ...
2
votes
1answer
516 views

Frame breaks inside mdframed environment with beamer class

The mdframed environment fails to break into several pages (slides) when used in a frame environment from the beamer class. In the other hand, the boitecoloriee environment from the boites package ...
3
votes
1answer
10k views

A working example of mdframed

I tried to make the basic examples of mdframed given in the corresponding documentation, but I get an error stating ! You can't use a prefix with `\begingroup'. The example is ...
9
votes
1answer
1k views

mdframed-Put something on the start of one vertical left rule

I would like to obtain something like in the following picture (I've put Z! instead of the danger symbol). In the following code, I would like to put the danger symbol on the vertical rule. I ...
9
votes
1answer
823 views

Excursus environment using mdframed: Issue with page breaks

This question is a follow-up question to: Access mdframed node coordinates with TikZ? @MarcoDaniel: Awesome package (mdframed)! Nice clean code, too. @Tobi: I really like your new excursus ...
5
votes
3answers
639 views

Is it possible to define a multicolumn environment with a background colour

EDIT: I should have given a MWE based on memoir (which I am using) where the inner and outer margins are initially different. I would like the margins to be the same in that new environment. (Inner ...
6
votes
1answer
976 views

How to use table in mdframed?

I am working on report format using mdframed and I need to add table inside mdframed. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{array,ragged2e} ...
10
votes
1answer
660 views

How to arrange mdframed side by side?

How to arrange mdframed side by side, like mdframed1 mdframe2 \begin{mdframed}[roundcorner=10pt] table 1 \end{mdframed} \leavevmode \hspace{2cm} \begin{mdframed}[roundcorner=10pt] table 2 ...
9
votes
2answers
2k views

\prevdepth error with mdframed and listings

I get strange errors with the last versions of mdframed (v 1.4) and listings (v 1.4). Here is a minimal example: \documentclass{minimal} \usepackage{mdframed} \usepackage{listings} \begin{document} ...
10
votes
1answer
1k views

How to produce a tight box with a fancy border?

I'd like to be able to typeset a tightly-boxed formula with a fancy border. My progress so far has been to produce a box (with mdframed) with the fancy border I want (with tikz), but instead of being ...
2
votes
1answer
1k views

mdframed around figure with threeparttable

I'm trying to draw a border around a figure (using mdframed) with a threeparttable. However, the size of the border is not adjusted correctly. How can I adjust the border to correctly wrap around the ...
10
votes
2answers
628 views

mdframed nested frametitle bug

This issue is fixed in version 1.6b mdframed at github When nesting frames the inner most frametitle is used. The frametitle for all these is frame3. \documentclass{book} ...
18
votes
2answers
613 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 ...
8
votes
1answer
707 views

Access mdframed node coordinates with TikZ?

Is it possible to get a (breakable) frame like this with mdframed? Or as a more general question. Can one access the coordinates of the frame that is drawn with TikZ? With a pagebreak in it: I ...
4
votes
2answers
447 views

strange interaction between `mdframed` and `\item`

I would like to understand (and to find a solution for it) the following problem. First, the MWE : \documentclass{article} \usepackage{mdframed} \usepackage{fancybox} \newsavebox{\mcBox} ...
10
votes
1answer
1k views

mdframed : Bug with page break? [closed]

I'm trying to use the package mdframed to handle framed boxes, that allow page breaking when the content of the box is too large. Nevertheless, i encounter the following difficulty : ...
3
votes
1answer
461 views

Inconsistent horizontal width of mdframed with only display math content

Update 2012-03-09: With an version of mdframed updated today, this is now fixed in the package and no longer requires the workaround provided below. In Excess vertical space in mdframed ending with ...
2
votes
1answer
225 views

mdframed and supertabular disagreeing on positioning (supertabular bug?) [closed]

Finding that a certain table in my document had to span several pages, and that longtable doesn't fit the bill because I have to change the running header mid-table, I turned to supertabular. To get ...
6
votes
0answers
408 views

mdframed font option is not working [closed]

Although the mdframed manual (v1.3a) mentions the general option font, it is not being obeyed, as can be verified with the test document below. \documentclass{standalone} \usepackage{mdframed} ...
8
votes
1answer
1k views

mdframed with tikz method: putting line numbers outside of frame

I want to number the lines in a mdframed environment with the line numbers appearing on the left of the frame, outside of it. \documentclass{article} \usepackage[framemethod=latex]{mdframed} ...
7
votes
2answers
817 views

Excess vertical space in mdframed ending with display math environment

When the mdframed environment ends with an align there is excess vertical spacing at the bottom. I would like to adjust the MyBoxedEnvironment environment such that the vertical space at the bottom ...
1
vote
1answer
323 views

endless loop with mdframed

The following code leads to an endless loop. pdflatex is at 100% CPU and the log is constantly increasing with number counted upwards. \documentclass{article} \usepackage{mdframed} \begin{document} ...
10
votes
1answer
3k views

drop shadow framed environment using mdframed & tikz

I'm attempting to make a drop shadow environment using mdframed and tikz. So far, I have (perhaps naively) tried \newmdenv[tikzsetting={fill=green!20,drop shadow}]{myshadowbox} I know that ...
3
votes
1answer
1k views

Numbered mdframed environment but without using theorem hacks

I'm trying to make an mdframed environment for numbered multi-page boxes. The problem I'm having is that I can't seem to make the formatting and the numbering work as I want it to. I've tried the ...
8
votes
1answer
2k views

Margins of mdframed without any effect

This code \documentclass[]{scrbook} \usepackage{mdframed} % \usepackage{boxedminipage} \begin{document} \noindent \begin{boxedminipage}{1.0\textwidth} Box of 100 \% width \end{boxedminipage} ...
4
votes
2answers
648 views

Paragraph indenting in an mdframed environment

I'm using the mdframed package and I've defined my own environment. But it seems that paragraph indentation doesn't work inside a mdframed environment. I've used the settings option of mdframed to ...
4
votes
1answer
925 views

Create a verbatim mdframed environment

I'd like to use and mdframed environment with verbatim in it. I've read the both documentations, googled but I've found nothing regarding this matter. MWE below: \documentclass[10pt]{article} ...
4
votes
1answer
596 views

Suppress top skip between own frame environment and itemize

I need to typset a book with a given definition of {itemize} and I added a {framed} environment by using mdframed. If the first line inside {framed} is normal text everything is fine but if it ...
1
vote
1answer
253 views

mdframed and colortbl Connection problem

I'm using mdframed for bordered tables. Additionally I'd like to change the bg-colour of some columns using the package colortbl. However when I try to load colortbl with \usepackage, the document ...
2
votes
1answer
653 views

mdframed theorems within beamerarticle script

I need to use framed theorem environments the way they are made in Make an Example and shaded box like in the book. The realization with \usepackage[framemethod=TikZ]{mdframed} is working fine. But ...
1
vote
0answers
189 views

multline and mdframed bug [closed]

I do not think this bug has been reported anywhere. At least, I could not find such a report. Below is a piece of code to see the problem. The frame in the right margin is improperly calculated. ...
11
votes
2answers
2k views

Transparent background for mdframed environment?

Is it possible to specify a transparent background colour for the mdframed environment, so that anything which might be underneath will be visible?
6
votes
1answer
441 views

Overfull \hbox when using the mdframed package

UPDATE: 2011-12-12 As of 2011-12-12, I can confirm this issue has been resolved on TeXLive-2011. When using the mdframed package to generate nice frames for my chemical reactions, I encounter the ...
3
votes
2answers
691 views

mdframed and ntheorem counters

In the code below, counters defined by mdframed seem to not be accessible to ntheorem environments which is problematic but ntheorem counters can be read by mdframed. I could not find a work around ...
6
votes
1answer
389 views

Bug in the mdframed package (workaround?)

I've discovered what appears to be a bug in the mdframed package. My goal was to use a package which allows me to create shaded theorem environments which span multiple pages (thmtools does not allow ...
10
votes
2answers
2k views

How to put round cornered frame around an image

I want a nice colored frame around an image which has rounded corners. Here is my attempt, using mdframed, but, as you can see, the inner edge of the frame is a right-angle, and not rounded. I would ...
5
votes
1answer
678 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 ...
1
vote
1answer
458 views

mdframed causes “too many floats” error

I defined a new environemnt examples for a book I am writing. I would like examples to be with a framed grey box, and use the following construct ...
2
votes
1answer
4k views

Errors thrown when trying to use the mdframed package

I am running Ubuntu, so unfortunately I don't get the nice Console way of installing new LaTeX packages, I have to install them manually. From CTAN, I found the mdframed package, downloaded and ...
5
votes
1answer
1k views

Vertical spacing problem related to the mdframed environment

I use the mdframed package with option style=1, which means that TikZ is responsible for drawing frames: \documentclass{article} \usepackage[style=1]{mdframed} \begin{document} \noindent Text ...
15
votes
2answers
2k views

mdframed and wrapfig

Before starting the question, I apologize for the large pictures. I had to use some long text to demonstrate the problem. To generate something like: I used the following command: ...
7
votes
1answer
567 views

mdframed options style=1 or style=3 fail to draw frames

The mdframed package offers the options style=1 and style=3 to have the frames drawn by tikz or pstricks respectively. Using either of these options means that the frames around my boxes just aren't ...
13
votes
1answer
5k views

Is there an debian/ubuntu package containing mdframed.sty?

I found several answers on this site recommending the mdframed package. However, I can't find a ubuntu texlive package that includes this. Do I have to install this manually or am I overlooking ...
11
votes
3answers
3k 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 ...