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

learn more… | top users | synonyms

2
votes
0answers
29 views

Can I take a photograph and change it's background in mdframed, includegraphics setting?

Is there a way to change the background colour of a photograph within the \begin{mdframed}, \begin{figure} and \includegraphics{filename}. My mdframed environment is coloured, but my photograph has a ...
0
votes
1answer
24 views

how to create a list for mdframed example boxs

So i found the question Make an Example and shaded box like in the book which fitted to my desires. I modified the box and counter so it fits to my whishes. (first number is the chapter second number ...
2
votes
1answer
26 views

small caps in mdframed frametitle

I have defined an mdframed environment as in the MWE below. I would like "Box" in the frametitle to be in small caps. How do I achieve that? ...
1
vote
0answers
19 views

Undesired page-breaks, mdframed and long table

I have a problem. I am creating MSDS sheets using LaTeX, (actually a web-application that creates a LaTeX code). The basic setup of the sheet is such that for each section (there are 16 sections) a ...
4
votes
2answers
90 views

List of Boxes in Table of Contents

I am creating titled boxes using mdframed environment. How do I add a List of Boxes after the Table of Contents (as List of Tables and List of Figures)? Here is my MWE. ...
1
vote
0answers
30 views

xcolors cellcolor overlays tikz background

I'm using mdframed with the tikz option to define my own environment. Unfortunately, if I'm using a tabularx environment with xcolor's \cellcolor command, it is overlaying the header of my box. ...
3
votes
0answers
70 views

Avoid pagebreak in mdframed environment

I created a document with two columns which contains almost exclusively mdframed environments. In general, splitting up the frames over the columns or a page is welcomed and works. However, situations ...
7
votes
1answer
72 views

Make nested boxes have a darker background color

I am using the mdframed package to create these boxes: \usepackage[framemethod=tikz]{mdframed} % Shorthands \newcommand*\iffdef{\overset{\text{def}}{\iff}} ...
3
votes
2answers
78 views

How to store an mdframe in a savebox?

The title question is the last piece of information I would need, to solve my problem my way. Putting a \sbox or lrbox-environment around a mdenvironment yields a ! Missing \endgroup inserted. ...
1
vote
1answer
16 views

Combine mdframed, xparse and cleveref

Inspired by this post: Typesetting a definition, I wanted to define some fancy theorem-like environments. Contrary to the examples given in this post, I need a definition environment with a counter ...
0
votes
0answers
30 views

Lyx File Not Found

I'm using Lyx to edit a book. I am using the mdframed package and have been using it. I could always compile the PDF (using Cmd-R). Now all of a sudden, without having changed anything Lyx complains ...
1
vote
1answer
46 views

Example Environment Indented

I am trying to use an "example environment" defined using the mdframed package as follows (taken from another answer here on StackExchange): \newmdtheoremenv[ hidealllines=true, leftline=true, ...
4
votes
1answer
129 views

Font color is always black in mdframed

When building the MWE below in Linux (Centos, TeXLive 2013, mdframed=1.9b,2013/07/01) I get the expected red text on pale yellow inside red rounded rectangle in the body, and red on full yellow in the ...
3
votes
1answer
52 views

Erratic behavior of mdframed environment right after headings

First of all, I have seen and read this question it appears to be a different albeit potentially related issue. I'm using mdframed 1.9b from 2013 with LuaLaTeX. Now the problem I encounter can be ...
5
votes
1answer
108 views

Add text inside a box inside another box

Problem: Trying to create a label for programming code by using text inside a color box inside another color box. However, I am not sure of the best practices regarding putting one box inside the ...
3
votes
1answer
126 views

A point P in a complex example with TikZ

I discover the mdframed package today and the examples with TikZ. In these examples there is a complex example with TikZ and a point P is used for positionning the title of the exercise. I suppose ...
3
votes
2answers
52 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
7
votes
1answer
82 views

Framed environment with striped background

Dear friends, I have the following environment in a document: which is produced the following code, except the dark green line, I kept it back for keeping my the minimal component in my MWE. :) ...
1
vote
2answers
68 views

How to add a frame around a float with caption?

I've created a new float element to define examples: \usepackage{float} \floatstyle{plain} \newfloat{example}{thp}{lop} \floatname{example}{\textsc{Example}} I want to set my example in an frame. ...
1
vote
1answer
56 views

Theorem without number using mdframed

I am working on a text that involves some theorems and I am using mdframed I want a theorem whit just the optional title \begin{teorema}[title desired] Some text \end{teorema} so far I've seen ...
3
votes
3answers
235 views

How to create a custom front/title page of a thesis?

I have tried to do a front page to my thesis using mdframe after have read it here. Here it was I have done so far but I am stuck. How do I get the frame over the whole left page and how do a get a ...
0
votes
0answers
30 views

Package mdframed Warning: correct box splittet fails

I get the error message in the title from this box: \begin{mdframed} \begin{multicols}{2} \begin{enumerate}[label=\bfseries\thechapter.\arabic*., series=fra0og1tiltekstogbilde] \item Hvorfor ...
4
votes
1answer
42 views

Nested `mdframed` environments and footnotes

Suppose that you have two mdframed environments, one nested inside the other, and a footnote in the first mdframed environment but not in the second. See the MWE example below. ...
2
votes
2answers
51 views

hspace not working inside mdframed

I am trying to use \hspace to align text inside mdframed box. However, \hspace seems to not working inside mdframed box. Text in the mdframed is somehow is aligned to center. Why is \hspace not ...
3
votes
1answer
33 views

Positioning mdframed box on page using book class

I'm trying to create a template for a book that I'm planning to write, however, I'm having difficulty placing the box created using mdframed at the bottom of the page. I have tried the obvious \vfill ...
5
votes
1answer
52 views

How to prevent mdframed from typesetting a widow line that contains just a bit vspace with colored background?

The code below produces a nice box around an equation or a few lines of text but continues the boxes on the following page with an absurd horizontal rule. Of course I can get rid of this outrageous ...
2
votes
1answer
65 views

mdframed or shaded inside mdframed?

I have an mdframed environment and i want another frame, just with background color, inside it but i don't wish to have the above title inherited. That's why i used the shaded environment. My problem ...
0
votes
0answers
31 views

Break a large theorem using mdframed on beamer [duplicate]

I am using mdframed to write theorems and I've been dealing with this theorem that is quite long and hao 4 equations in it. I have tried using [allowframebreaks] and using \framebreak in a specific ...
0
votes
0answers
21 views

Changing footer in documentclass ltxmdf

In the following working example I change the footer via \ifoot. Is this the correct approach? \documentclass[parskip=false,english,11pt]{ltxmdf} \usepackage{blindtext} \ifoot[]{} \begin{document} ...
0
votes
0answers
60 views

Using mdframed package with pstricks option in pdflatex possible?

I want to use the mdframed package with the pstricks option (for dashed lines etc) with pdflatex. But doing so threw an Undefined control sequence ... \c@lor@to@ps error. The internet tells me, ...
2
votes
1answer
70 views

mdframed box, cross-reference, paragraph spacing

I'm trying to create an environment that provides a framed box within a report. My current problems are: The interparagraph spacing does not match the body text spacing (the space within the box is ...
0
votes
0answers
40 views

Different titles on different pages of an mdframed box

I would like to have a titled mdframed box. The following works. But I would like the title on the second and subsequent pages to mention "Continued" along with the title [someting like Title ...
4
votes
2answers
46 views

How to set line-spacing inside environments defined by the mdframed package?

In the code below, how can I apply a \baselineskip=.8cm to the theorem environment? I want to do this somehow in the \mdfdefinestyle or \mdtheorem commands, not in the body every times by hand. Also I ...
2
votes
0answers
47 views

Boxes produced by `mdframed` do not completely outline a region in certain PDF viewers? [closed]

I am using Adobe Acrobat Professional v. 9, on Windows 8.1. Here's a minimum (not) working example: \documentclass{article} \usepackage{mdframed} % noteboxes, boxes, etc. ...
1
vote
1answer
74 views

Nested mdframed

How to change the theo environment in that way, that a inner mdframed will not inherit the style of theo? \documentclass[parskip=false,english,11pt]{ltxmdf} \usepackage{mathtools} ...
2
votes
2answers
63 views

How to prevent a page break between this colored box and its subsequent text?

In the following code, how to prevent a page break between the colored box and its subsequent text? \documentclass[a4paper]{book} \usepackage{lipsum} \usepackage[showframe]{geometry} ...
2
votes
2answers
103 views

mdframed does not attempt to stretch or shrink vertical spaces within its content

When the content in an mdframed environment is overfull, mdframed will rather break the page instead of iteratively shrinking the vertical length up to the specified minimum. The following output ...
1
vote
1answer
110 views

How can I setup my mdframed boxes to automatically break over column breaks in multicol?

Apparently there is a known issue with using mdframed inside a multicol environment. For me it seems to work fine including page breaks, but column breaks act all funny and typically push the entire ...
3
votes
1answer
92 views

Conflict between mdframed and arabic babel

I'm trying to make a template for an Arabic book. I wish to use the babel package with pdflatex as I'm not familiar with xelatex. I was hoping to arabianize the legend orange template ...
1
vote
0answers
74 views

Nested mdframed environment problems

I have a problem concerning a mdframed into an other mdframed. If the content of the second mdframed is too important, the result is horrible: it's separated by one page and the content of the second ...
2
votes
1answer
93 views

Vertical spacing problem using mdframed environment

I want to use mdframed to add a frame around a text. But the vertical spacing is not as expected. I found the following help page: Vertical spacing problem related to the mdframed environment The ...
0
votes
0answers
41 views

How can I trace a problem with hyphenation inside special environments?

For quite some time now I've been having trouble with the hyphenation of Turkish text in mdframed environments. I have been unable to come up with a sane MWE that exhibits the problem. It only seems ...
1
vote
1answer
41 views

Why does mdframed “hidealllines” actually show all lines?

I'm trying to use the hidealllines key for mdframed, but it's not working, either as a local argument or in an \mdfsetup. It works when I set all the topline=false, etc., but not when I just use ...
3
votes
1answer
130 views

Need help for fancy theorems using mdframed

I've been working with LaTex for a while and with Tikz I've done stuff nothing fancy just things for homework but now I will write my thesis I want some elegant cool theorem box using mdframed and ...
2
votes
1answer
58 views

tikz mdframed environment: lemma/excursus skips pages

I used the example code under this link [TikZ mdframed environment: close box at end of page and continue on next to successfully create a nice excursus section in an a4 onesided environment. However, ...
0
votes
0answers
43 views

landscape/sidewaystable inside mdframed box containing text and another table

I would like a landscape/sideways table in an mdframed box which contains some other text. I would like to insert a sidewaystable in it. The table is too wide to fit in the portrait mode of the ...
1
vote
1answer
136 views

Tufte Fullwidth Bibliography across pages

I am trying to print the bibliography in a tufte-book using the whole width of the page, since I don't intend to put marginalia into the bibliography. Edit: I am using an updated version of tufte ...
2
votes
1answer
287 views

mdframed box containing text captioned tables and figures

I would like to create a framed boxes containing arbitrary text, captioned tables and captioned figures. But mdframed does not allow floats inside. How does one achieve this? Something like this does ...
5
votes
1answer
72 views

How can I fix the title height in mdframed boxes?

I am trying to write a LaTeX document involving a lot of definitions. For this reason, I decided to create a mdframed environment (see below), and place my definitions one after the other in a ...
1
vote
0answers
54 views

Problems with framemethod global option to mdframed package

I'm using a colleague's template for a beamer poster but I'm having trouble getting it to compile. The error I'm getting is ! Package xkeyval Error: `framemethod' undefined in families `mdf'. I ...