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

learn more… | top users | synonyms

6
votes
1answer
568 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. ...
1
vote
1answer
533 views

mdframed and minipage

I'm trying to find a way to use mdframed to make separation of the frame to the next page but low knowledge does not help me. My effort is try and effect .... no results so far. I know there have ...
1
vote
1answer
310 views

In Lyx, I am trying to create a module for “Illustration”

I am trying to create Illustration drop down in Lyx. For this I am creating a module in the lines of theorems-ams-bytype.module and theorems-ams-bytype.inc. This is the code inside it: Style Example ...
7
votes
1answer
975 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 ...
4
votes
1answer
255 views

mdframed+tikz to display overfullrule

This may or may not be a bug, so I'll first ask it here before reporting. In the following test case: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \overfullrule=5pt ...
6
votes
1answer
234 views

mdframed behaves differently in TeXlive 2011 and TeXlive 2012

I've noted some inconsistencies between TeXlive 2011 and TeXlive 2012. I'm maintaining a documentclass which I suddenly realized was not working perfectly after updating to TeXlive 2012. The problem ...
6
votes
1answer
335 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} % ...
4
votes
1answer
237 views

How to frame/shade a whole section?

Simple Question, but it seems to tricky for me. I don't know how to redefine the sectioning in a way, that the whole content (incl. subsections, ...) assigned to one \section{...} command would be ...
20
votes
1answer
1k 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 ...
3
votes
1answer
3k views

How to get mdframed package working correctly?

On a fresh Ubuntu 12.04 64 bits system, I wanted to add the mdframed package to my texlive distribution. After searching in Ubuntu standard repositories without success, I went to the CTAN website to ...
5
votes
1answer
300 views

How to prevent pagebreak for a custom environment?

I use the following custom environment emailHeader and macros to format an email header (credits belong to egreg). \definecolor{emailHeaderBackground}{RGB}{225,225,225} ...
12
votes
1answer
406 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?
4
votes
1answer
757 views

External margins of embedded newmdenv environments

In the code: \documentclass{article} \usepackage[framemethod=default]{mdframed} \newmdenv[backgroundcolor=red]{tBox} \newmdenv[leftmargin=1cm,linecolor=blue]{aBox} \begin{document} ...
5
votes
1answer
208 views

Space between two instances of a self-defined environment

I have created an environment for my excercises. The problem now is, that if I have different excercises (Excercise 1, Excercise 2 and so on) there is always a little space between them. I have a ...
13
votes
1answer
328 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} ...
6
votes
2answers
437 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} ...
3
votes
1answer
387 views

Colorboxes that break across pages

I am trying to build an environment/command that allows me to place comments in the text. The idea is to have colored box that can break across pages and use the \ttfamily font with hyphenation. I ...
4
votes
1answer
1k views

How to insert title in mdframed?

How to insert title in mdframed? In my example does not work. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[framemethod=TikZ]{mdframed} \begin{document} ...
2
votes
1answer
192 views

Hyperref problem with mdframed+pdflatex

I'm encountering a problem when I use hyperref with mdframed and pdflatex. Below is a MWE which gives the following error: ! Missing \endcsname inserted. <to be read again> ...
2
votes
1answer
114 views

Wrong width of environment after includegraphics

I have created an own environment with the mdframed package. My problem is, if I insert a picture in the self defined envrionment, the width of the color box is wrong. Here is the code: ...
7
votes
1answer
764 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
1answer
906 views

Textwidth wrong after wrapfigure

I have included a picture with wrapfigure and everything is fine - the problem is that in my next formula environment, the formula is totally wrong! It seems to me, that the width which I set in the ...
1
vote
1answer
175 views

mdframed undefined sequence [closed]

I implemented the mdframed package and I wanted to create a new envrionment, but I get the following error message: Writing index file book.idx ! Undefined control sequence. l.80 \newmdtheoremenv ...
10
votes
1answer
180 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 ...
2
votes
1answer
240 views

using mdframed with multicol causes some sort of overflow

I'm trying to make a cheatsheet in the style of the OpenGL Quick Reference Card by using multicol and mdframed. It seems to work fine, but at times mdframed's frames are seemingly-randomly cut off, ...
2
votes
0answers
144 views

Easy way to port environment defined in framed to mdframed? [closed]

I've been working on environment based on framed package, but wanted to port to mdframed due to fact that it plays better with footnotes and has more features and more active development. The issue is ...
4
votes
2answers
216 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
310 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
254 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
217 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 ...
21
votes
5answers
5k 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
383 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
161 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
328 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
156 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
389 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
345 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
363 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
366 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
440 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
590 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
880 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
1k 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
612 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
6k 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
681 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
501 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
373 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 ...