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

learn more… | top users | synonyms

2
votes
1answer
154 views

How to move frame down in LaTeX?

I am writing one article using top and bottom margin. \usepackage[top=.5cm, bottom=.8cm, left=1cm, right=1cm, includefoot,showframe]{geometry} I observe some spacing between frame and footer ...
9
votes
3answers
479 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 ...
1
vote
0answers
108 views

mdframed everyline extended frame [closed]

In the following MWE, I have used everyline=true. Is there any way to ensure that the vertical distance between the bottom of the frame on Page 1 to the bottom of text to be the same as the vertical ...
4
votes
1answer
154 views

Incorrect vertical spacing inside a mdframed environment

I have some problems about vertical spacing before and after some environments inside a mdframed environment. It is as if topsep=0. The insertion of \setlengh{\topsep}{8pt plus 2pt minus 4pt} fixes ...
10
votes
1answer
423 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} ...
3
votes
2answers
209 views

Inserting non-indented mdframed object in outline

I want to be able to put an mdframed object inside of an outline environment without it being indented to the indentation level that I'm at, and so that I can continue the outline after the mdframed ...
5
votes
1answer
880 views

Set the background color of mdframed to a color from the Beamer theme

I want to draw rounded colored text box using mdframed. I'm trying to set background color to green or blue, used in example and theorem environments using \usebeamercolor: ...
8
votes
1answer
386 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} ...
10
votes
2answers
142 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 ...
5
votes
1answer
274 views

Strange behavior of mdframed with pstricks as framemethod

I load the mdframed package from a class of my own with the line \RequirePackage[framemethod=pstricks]{mdframed} When using the XeLaTeX engine I get a strange behavior from the mdframed environment ...
2
votes
1answer
326 views

Vertically centre the title in mdframed

I wonder how I can vertically centre the argument of \Title inside the frame in the following MWE. \documentclass[12pt]{report} \usepackage[english]{babel} \usepackage{tikz} ...
6
votes
4answers
1k views

mdframed: size frame to content

Consider this: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} \begin{document} \begin{mdframed}[innerrightmargin=0pt] TEXT\end{mdframed} \end{document} This produces a frame that ...
7
votes
2answers
450 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 ...
4
votes
1answer
258 views

mdframed and a title with a footnote

I have put the title of my text in mdframed, however the title has a footnote. After I LaTeX the file, the footnote appears inside the frame rather than in its usual place, i.e. at the bottom of the ...
4
votes
1answer
390 views

How to draw a simple 1mm thick page frame?

I'm trying to make a simple one-line 1mm thick page frame. Left line of that frame should be 2.5cm from edge and all other lines 0.5cm. Document includes tikz drawing, and text. The problem is that ...
4
votes
1answer
132 views

How can I justify without making a new line in mdframed?

\begin{mdframed}[backgroundcolor=green] \textbf{Theorem:} \begin{center} A set $E$ is {\bf open} $\iff E^c$ is {\bf closed} \end{center} \centerline{or equivalently,} ...
3
votes
0answers
2k views

Using mdframed: can't install xparse.sty [closed]

I have a latex document which uses the mdframed package (OBS: I can successfully compile it on another system). I installed the mdframed package (through tlmgr install mdframed) but when I try to ...
1
vote
0answers
83 views

Font style in mdframed [duplicate]

I use the following mdframed definition: \newmdenv[ rightline=false, leftline=true, topline=false, bottomline=false, innerbottommargin=11pt, innertopmargin=\topskip, ...
5
votes
1answer
177 views

How I can delete title after pagebreak in mdframed box?

How I can delete frametitle after pagebreak in mdframed box? I try to make a box with the title "Summary" by mdframed package. With the code I attach, the title "Summary" appears in the second page ...
2
votes
0answers
27 views

How I can delete frametitle after pagebreak in mdframed box? [duplicate]

Possible Duplicate: How I can delete title after pagebreak in mdframed box? I try to make a box with the title "Summary" by mdframed package. With the code I attach, the title "Summary" ...
0
votes
2answers
126 views

Updating packages in TeXLive 2011

I have TeXLive 2011 distribution on my Windows 7. I haven't updated it before. I downloaded it as an iso file. Anyway, I tried to use the mdframed package in an example document like below: ...
3
votes
2answers
98 views

Problem with mdframed and xepersian

When i use mdframed in latin mode, it works. but when i use package xepersian then it dose not show anythings. \documentclass{article} \usepackage{mdframed} \usepackage{xepersian} \begin{document} ...
3
votes
0answers
304 views

problem with mdframed commands [closed]

I was trying to highlight some text as shown in this post, but I'm having problems. the following works for me \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} \usepackage{lipsum} ...
6
votes
1answer
506 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
480 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
266 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 ...
6
votes
1answer
889 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
249 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 ...
5
votes
1answer
224 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
299 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
229 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 ...
19
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
2k 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
251 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
387 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
652 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
195 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
322 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
400 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
344 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 ...
3
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
180 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
112 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
696 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
803 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
151 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
174 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
223 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
139 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
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 ...