{mdframed} is a package for creating framed boxes that can break across pages.
17
votes
2answers
340 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 ...
16
votes
1answer
402 views
framed or mdframed? (Pros/Cons)
I'm currently thinking about using shaded and framed sections in my document.
But for now, I couldn't clarify the differences between framed and mdframed (or other packages). Although the ...
12
votes
1answer
295 views
How this shading effect would be applied to an mdframed environment?
I'd like to apply the following shading effect
proposed in " Fake sheet effect " as a background for a mdframed environment. How can this be achieved?
12
votes
1answer
234 views
mdframed is causing wrong alignment at the bottom of pages
If you would be so kind to compile this LaTeX document:
\documentclass[a4paper,11pt]{book}
\usepackage[paper=a4paper,twoside=true,lmargin=4cm,
rmargin=4cm,bindingoffset=0cm]{geometry}
...
11
votes
3answers
873 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 ...
11
votes
3answers
966 views
how to get the current chapter name, section name, subsection name, etc?
How can one get the current name of the following: Chapter, Section, Subsection(s), frame, label, mdframed?
11
votes
1answer
2k 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 ...
10
votes
2answers
922 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 ...
10
votes
2answers
90 views
Writing a command to detect when in mdframed
I want to write a marginnote command that detects whether it is called within a mdframed environment, in particular I want to be able to distinguish the following
normal text
normal math
text in ...
10
votes
2answers
690 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:
...
10
votes
1answer
146 views
How to have the mdframed material flow in the top part of consecutive pages
Suppose you have the following layout:
The gray area represents normal text. The orange area consists of one or more text boxes (inserts) of given height.
Some textbook layouts present advanced or ...
10
votes
1answer
385 views
mdframed with label outside of box
I am looking to do two boxes with mdframed similarly to the following:
The first box is easy but I don't know how to place a label to the left of the second box. The positions of the dashed lines ...
10
votes
1answer
547 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 ...
9
votes
2answers
605 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?
9
votes
3answers
188 views
Rounded box with image and text
I'm trying to create a rounded box with both text and image. The desired result is as this:
Where the image is rounded at the left edges.
I have managed everything except the the image part using ...
9
votes
1answer
105 views
Why is parskip=half messing up the spacing in mdframed?
without parskip:
parskip=half:
\documentclass[parskip=half]{scrartcl}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
...
9
votes
1answer
72 views
Framed mdtheorem with qed symbol at the end
I'm trying to include a $\blacktriangle$ at the end of a framed environment using the mdframed package.
However, my code is somehow not working properly. Let me explain what I'm doing:
...
8
votes
1answer
414 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 ...
8
votes
1answer
321 views
mdframed nested frametitle bug
When nesting frames the inner most frametitle is used. The frametitle for all these is frame3.
\documentclass{book}
\usepackage{mdframed}
\begin{document}
\begin{mdframed}[frametitle={frame1}]
asdf
...
8
votes
1answer
381 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 ...
8
votes
1answer
406 views
Using mdframed after a section heading
The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
8
votes
1answer
118 views
“note environment” with mdframed
Here is what I have:
And here is what I would like:
The code to get what I currently have:
\documentclass[a4paper, 11pt]{article}
\usepackage[english]{babel}
\usepackage[utf8]{inputenc}
...
8
votes
2answers
499 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}
...
7
votes
2answers
183 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 ...
7
votes
1answer
297 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 ...
7
votes
2answers
185 views
Making mdframed paragraph behave like normal paragraphs in terms of spacing
I'm using the mdframed package to highlight a paragraph with rules on both sides. However, the mdframed-environment creates a box for the paragraph inside of it and so the spacing around it is ...
7
votes
1answer
416 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 ...
7
votes
1answer
66 views
mdframed being cut across pages
Is there a way to prevent this (see image) from happening when you are going onto another page?
7
votes
1answer
231 views
How to put footnotes in the page where they belong in a mdframed environment
I have a large bunch of text in a mdframed environment, that span more than one page.
As it seems reading the documentation, the mdframed environment put every footnotes at the end of the frame, by ...
7
votes
1answer
309 views
Rounded corners not working in \mdf@singleextra using mdframed with TikZ
I am creating new framed environments using the mdframed package (along with TikZ) based on the digression example given in mdframed-example-texsx.tex. My code is the following:
...
6
votes
2answers
393 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 ...
6
votes
1answer
186 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}
...
6
votes
1answer
1k 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 ...
6
votes
1answer
244 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
...
6
votes
1answer
74 views
How to remove space surrounding a colored theorem box?
This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
6
votes
1answer
178 views
\newmdtheoremenv-environment unnumbered
I would like to have a \newmdtheoremenv environment without any number, like I get it from \newtheorem*. How can I do this?
This is my \newmdtheoremenv environment at the moment.
...
6
votes
1answer
372 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 ...
6
votes
1answer
518 views
mdframed : Bug with page break?
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 :
...
6
votes
1answer
539 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}
...
6
votes
1answer
403 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}
...
6
votes
1answer
266 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 ...
6
votes
1answer
396 views
Issue with mdframed package
mdframed package creates a beautiful box around the content. And it has the capability to break between pages as in the image below
I have done the decoration of getting the concept 5 : algebraic ...
6
votes
1answer
166 views
Equation spacing issue with fleqn (amsmath) and frenchb (Babel)
This is a follow-up to this question.
Here is an exemple of the code I wrote to add a light gray background
to important equations:
\documentclass{article}
\usepackage[fleqn]{amsmath}
% ...
6
votes
1answer
243 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 ...
6
votes
1answer
202 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}
...
6
votes
0answers
53 views
Interaction with multicol and mdframed results in misaligned rows
This works fine with TeXLive2011 and was working fine with TeXLive2012 until I recently updated the packages. So with TexLive2011, this produces:
but with an updated TeXLive2012 this yields:
...
6
votes
0answers
204 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}
...
5
votes
2answers
191 views
Making the font size smaller in this mdframed, and turning into a reusable environment
I am very close to getting the mdframed setting that I want:
\documentclass[a4paper,10pt]{book}
\usepackage[paper=a4paper,twoside=true,lmargin=4cm,
rmargin=4cm,bindingoffset=0cm]{geometry}
...
5
votes
1answer
121 views
Decorative lines above and left of text
I would like to recreate this decoration, which is being placed at the top of every page:
So a thin line above the text, and a thicker line left of the text. I've been trying to do this using the ...
5
votes
1answer
295 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}
...
