As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
10 votes
1 answer
2k 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 ...
GRedner's user avatar
  • 105
3 votes
1 answer
2k 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 ...
Jan's user avatar
  • 629
10 votes
2 answers
900 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} \usepackage{mdframed} \...
Uiy's user avatar
  • 5,978
19 votes
2 answers
981 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 ...
Tobi's user avatar
  • 55.1k
9 votes
1 answer
1k 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 build ...
Tobi's user avatar
  • 55.1k
4 votes
2 answers
929 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} \...
Loic Rosnay's user avatar
  • 8,057
10 votes
1 answer
2k 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 : \documentclass{...
Loic Rosnay's user avatar
  • 8,057
4 votes
1 answer
957 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 ...
Peter Grill's user avatar
2 votes
1 answer
285 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 ...
DevSolar's user avatar
  • 7,717
6 votes
0 answers
652 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} \...
Romildo's user avatar
  • 4,073
9 votes
1 answer
3k 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} \...
Romildo's user avatar
  • 4,073
8 votes
2 answers
2k 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 ...
Peter Grill's user avatar
1 vote
1 answer
689 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} \...
Matthias Pospiech's user avatar
10 votes
1 answer
5k 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 shadow-...
cmhughes's user avatar
  • 99k
6 votes
1 answer
3k 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 ...
jkeirstead's user avatar
13 votes
1 answer
8k 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} \...
Matthias Pospiech's user avatar
8 votes
2 answers
2k 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 ...
szantaii's user avatar
  • 4,699
5 votes
1 answer
1k 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} \...
szantaii's user avatar
  • 4,699
4 votes
1 answer
758 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 starts ...
Tobi's user avatar
  • 55.1k
1 vote
1 answer
314 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 ...
Jan's user avatar
  • 629
2 votes
1 answer
1k 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 ...
Bastian Ebeling's user avatar
1 vote
0 answers
202 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. \...
pluton's user avatar
  • 16.2k
15 votes
2 answers
4k 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?
Dan's user avatar
  • 1,435
6 votes
1 answer
738 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 ...
user2473's user avatar
  • 3,018
3 votes
2 answers
1k 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 ...
pluton's user avatar
  • 16.2k
6 votes
1 answer
453 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 ...
TSGM's user avatar
  • 2,302
12 votes
3 answers
4k 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 ...
Dan's user avatar
  • 1,435
5 votes
1 answer
2k 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 \documentclass{...
Tobi's user avatar
  • 55.1k
1 vote
1 answer
584 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 %-----------------------------------------------------...
zampano's user avatar
  • 11
2 votes
1 answer
8k 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 ...
Peter's user avatar
  • 275
6 votes
1 answer
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 \...
mhp's user avatar
  • 8,502
15 votes
2 answers
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: \setlength{\...
Sadeq Dousti's user avatar
  • 4,360
7 votes
1 answer
768 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 ...
Seamus's user avatar
  • 72k
13 votes
1 answer
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 ...
c089's user avatar
  • 273
14 votes
3 answers
5k 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 environment....
Matt Groff's user avatar

1
12 13 14 15
16