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

learn more… | top users | synonyms

4
votes
2answers
200 views

How to add mdframed in footer?

I am working on fancyhdr in report generation. Currently I am using fancyhdr which produces one line and I can add left, center and right footers below to this line. But I need an mdframed as footer ...
2
votes
1answer
280 views

enumerate item within an custom environment and mdframed

I'm trying to define a custom environment within mdframed for handling questions in a document. The reason for the question-solution structure is to enable parsing into other formats (html etc). The ...
4
votes
2answers
231 views

Disable warning from mdframed [duplicate]

Possible Duplicate: Is there a way to avoid repetitive compiler warning messages? When debugging some stuff I sometimes have empty mdframes and I get the log file littered with tons of ...
2
votes
1answer
209 views

add “tag” to every page containing mdframed

Suppose I have an mdframed that spans several pages. Each mdframed will have a title but because one frame may span many pages what actually is under discussion in the frame may be lost by the reader ...
19
votes
3answers
4k 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?
3
votes
0answers
353 views

mdframed frametitle no page break [closed]

How can one prevent the frame title from breaking? I'm getting a break right between the title and the contents which looks silly. I still want the content to be broken as normal but I want the frame ...
2
votes
1answer
153 views

How to add newline while using everyline in mdframed?

I am working on mdframed and found solution of using mdframed on multiple pages by using everyline but it new box has no margin or newline. So it starts from beginning which looks odd? ...
1
vote
0answers
50 views

How to control mdframed on multiple pages? [duplicate]

Possible Duplicate: Conserve the frame in a mdframed box that spans more than one page I am using mdframed for writing citation information but citation list is too long which comes in 2-3 ...
4
votes
1answer
303 views

Using sidenotes in mdframed environment

I get problems when I try to use sidenotes in an mdframed environment: \documentclass{tufte-book} \usepackage{xcolor} \usepackage{mdframed} \newtheorem{mdtheorem}{Theorem} \newenvironment{theorem}% ...
0
votes
1answer
142 views

large contents in mdframed

I know this might not be an intended use case, but I get odd page breaks with the following MWE (tested with todays version 1.6c as well): \documentclass{article} \usepackage{mdframed} ...
5
votes
0answers
370 views

mdframed: large texts with equation arrays skipping pages in \documentclass{memoir} (or book) [closed]

The package mdframed works very well enclosing plain texts with decorated frames: even when they span many pages the frame breaks accordingly! :-) Unfortunately that is not yet the case when the ...
2
votes
1answer
326 views

mdframed: New bug with page break?

The package mdframed works well breaking framed plain texts. I am trying hard to make it work also when the text contais equation arrays, but I keep getting strange compilation errors! My last try ...
7
votes
1answer
319 views

Frame over multicol columnbreak

Hello everybody out there using TeX, Is there a possibility to draw a frame over a columnbreak when using for example the multicol package? I've already tried several possibilities and done ...
9
votes
1answer
356 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 ...
5
votes
1answer
392 views

mdtheorem is only framing the bottom-half of my text

I'm using the mdtheorem environment and for some reason the boxes seem to not print out correctly when I compile and open my pdf file. Everything compiles fine, but I get that my theorem is only ...
4
votes
1answer
546 views

How to align frame title of mdframed on custom place?

mdframed has an option of frametitlealignment, but the manual does not list possible values. I wonder if it accepts values other than left, right and center (apart from derivatives like raggedleft). ...
3
votes
1answer
807 views

Floating TikZ picture within text in mdframed

When there is not enough space for TikZ picture at the end of a text, it will goes to the next page, and leaves an empty space after the text. Is there a standard method for putting TikZ picture in ...
5
votes
1answer
934 views

Two columns within mdframed frame

I want to add a simple two-column text within framed frame. I tried multicols as \begin{mdframed} \setlength{\columnsep}{10pt} \begin{multicols}{2} \begin{itemize} TEXT \end{itemize} ...
10
votes
1answer
560 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 ...
5
votes
0answers
68 views

How to have nested mdframes with different frame titles [duplicate]

Possible Duplicate: mdframed nested frametitle bug This issue is fixed in version 1.6b mdframed at github It seems as if the frame title used in the mdframed environment can only ...
2
votes
3answers
5k views

How to put text in minipage top-centered?

I am working on LaTeX and R. I want to put text (here itemize top aligned) in minipage. In the attached image (dummy image with itemize text), how can I put itemize . First line . Second line on ...
4
votes
1answer
639 views

Conserve the frame in a mdframed box that spans more than one page

I am using mdframed to create big boxes that span more than one page, but they just leave an unframed side at the top and down of the page. Is there a way to solve this? \documentclass{article} ...
3
votes
1answer
466 views

Align \item labels at top of mdframed box

By default, enumerate's \item labels align with the top of the text: However, if the text happens to be a mdframed box, the labels align with the bottom of the box which does not look so good: ...
5
votes
1answer
343 views

Replace \item with \MyItem to box each list member with an mdframed

Since it was pointed out that redefining \item can be dangerous in strange interaction between `mdframed` and `\item`, I am wondering if there are going to be problems with this solution. My goal is ...
3
votes
0answers
340 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 ...
7
votes
2answers
380 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
385 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
362 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
272 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
292 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
434 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
376 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
5k 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
634 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
608 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
481 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 ...
5
votes
1answer
543 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} ...
7
votes
1answer
406 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 ...
8
votes
2answers
1k 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
907 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
621 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
455 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
474 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
520 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
297 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} ...
8
votes
1answer
821 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 : ...
3
votes
1answer
373 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
188 views

mdframed and supertabular disagreeing on positioning (supertabular bug?)

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
280 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} ...
7
votes
1answer
786 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} ...