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

learn more… | top users | synonyms

0
votes
0answers
34 views

Footnote within a double column float

I have a double-column float that is used to insert a full-page box in a document. However, when I place footnotes in this box, the footnotes appear within the box (which is desired) but not in a ...
3
votes
1answer
47 views

Unable to get a framed title using mdframed

\documentclass[12pt,twoside,notitlepage,reqno]{amsbook}% \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{xcolor} \usepackage{thmtools} ...
1
vote
1answer
33 views

mdframed: bug (with roundcorner) when a style for theorem is used within an environment without topline, rightline, etc

When a style for theorem is used within an environment and that this environment a line but topline=false, rightline=false, etc. then some attributes of the theorem are not used. Here, an MWE for ...
2
votes
0answers
72 views

XeLaTeX and the changbar package

Does anyone know if there has been an update to changebar or a workaround that will get it to work with XeLaTeX? I found two conversations from years ago about the topic but have not found anything ...
1
vote
0answers
41 views

mdframed produce blank pages

I'm trying to compile a code like this one. \documentclass[spanish, a4paper, 12pt, twoside]{report} %-----Español---------- \usepackage[activeacute,spanish,es-lcroman]{babel} \usepackage[T1]{fontenc} ...
1
vote
0answers
27 views

“Floating” figure/table within a full page box

I am writing a twocolumn landscape report with occasional full-page boxes. In these full-page boxes, there are typically figures, which I am currently manually placing. I would prefer that the figure ...
1
vote
0answers
59 views

how to get longtable in mdframed to show more than firsthead?

I have a document that wraps tables (or rather, tabular/tabulary) with mdframed. This works quite happily whether the table is shown inline or floated to another page (mdframed inside the table*, ...
0
votes
1answer
169 views

\vspace not working as expected

I have a code block using minted and mdframed and a caption afterwards. \begin{mdframed} \begin{minted}[tabsize=4]{c++} some code \end{minted} \end{mdframed} \begingroup\captionof{listing}{some ...
4
votes
0answers
113 views

What is this strange package conflict between `mdframed`, `euscript`, and `amssymb`? [closed]

I came across the following curious package conflict. I was using euscript to load Euler calligraphic letters, mdframed to create pretty frames, amssymb to get blackboard-bold letters, and \small to ...
2
votes
1answer
76 views

Frame with two columns and one title

I need to produce a frame with two boxes and only one title as shown in this figure: My current code is the following: \documentclass{article} \usepackage{array} \usepackage[top=1cm, ...
1
vote
1answer
63 views

mdframed gives a blank pages

Good time of the day! After I use mdframed in the following example, there is no text after use \begin{mdframed} \tableofcontents \end{mdframed} , no TOC, not chapter heading, and no ...
4
votes
1answer
110 views

Customized frame with title over frame

I'm trying to have sections within titled-boxes in my document. My minimum almost-working example is: \documentclass[a4paper]{article} \usepackage{lipsum} ...
2
votes
1answer
81 views

How to put a bar in the margin beside a portion of text in a paragraph

I want to indicate only part of the text in a paragraph using a bar in the left margin. I would like to have something like the below example but without line breaks, and the text wrapping as though ...
0
votes
1answer
40 views

Adding a second frametitle separated from the first in an mdframed environment

Could you help me in adding a second frametitle into the mdframed environment? It's for the citation and it should be something like 15pt / 20pt further to the right than the first title of the ...
10
votes
1answer
293 views

Boxes for SMS Conversation

How can I render a box to emulate an SMS conversation on a mobile device? Something looking like this (only the inner boxes containing the actual conversation): Note that I would like this to be ...
0
votes
0answers
47 views

Mdframed theorem with math expression and equality sign

How can I have something like "n = 3, \alpha = 0 with $\alpha$ is there" as a frametitle of a mdframed proposition as in Code \documentclass[a4paper,11pt]{scrreprt} \usepackage{tikz} ...
1
vote
1answer
32 views

Mdframed kills all my references / labels

I use the mdframed environment for my propositions / theorems and stuff. But now that i have done that the labeled theorems cannot be referenced in the text as in Code ...
1
vote
1answer
44 views

Mdframed and newtheorems with same counter and quotes in the header

I have the following problem: I want to use the same counter in a \newtheorem like Code \newtheorem{thm}{Theorem}[chapter] \theoremseperator{\smallskip} \newtheorem{prop}[thm]{Proposition} as in ...
1
vote
1answer
83 views

New mdframed environment with section numbering

Could you please help me with the following problem. Code \documentclass[a4paper,11pt]{scrreprt} \usepackage{tikz} \usepackage[framemethod=tikz]{mdframed} \usetikzlibrary{calc} \usepackage{ntheorem} ...
3
votes
1answer
52 views

Why is the parskip package messing up the spacing in mdframed?

Consider the following MWE: \documentclass{article} \usepackage{amsthm} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} %\usepackage[parfill]{parskip} \newtheorem{theo}{Theorem} ...
6
votes
2answers
133 views

Environment color within mdframed change after page break

I am creating teaching notes with examples and solutions. At the begining of the course, I provide to the students the lecture notes with the examples but blank solutions so they can fill the box ...
4
votes
1answer
87 views

Define newenvironment using mdframed and align

I would like my math equations to have a gray background. My initial attempt at this was to simply "sandwich" my align environment by a mdframed environment. It would seem far easier to me though if I ...
4
votes
1answer
174 views

Automatic margin curly braces & text on multiple pages

I'm building a command to mark long texts & class them in other part of my document (with help of Malipivo). I managed to do it with collect, multido & mdframed packages. The excellent ...
6
votes
1answer
243 views

How to remove vertical spacing below mdframed boxes?

I've set skipbelow=0pt. I still have vertical spacing below every box. I think this has to do with the paragraph spacing. Is there a way to disable this for mdframed? I'd like to avoid using ...
3
votes
1answer
80 views

Symbols of footnotes not raised inside mdframed

I want to change the symbols of footnotes inside mdframed. I found there is quite simple solution for that, in this very very helpful answer to the same problem. I applied it and it works but the ...
2
votes
0answers
45 views

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

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
76 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
68 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
42 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
212 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
68 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
209 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 ...
8
votes
1answer
128 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
129 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
32 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
83 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
78 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, ...
5
votes
1answer
252 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 ...
4
votes
1answer
102 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
158 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
168 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
94 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 ...
8
votes
1answer
120 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. :) ...
2
votes
2answers
187 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
167 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
395 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
58 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 ...
5
votes
1answer
81 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
123 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
90 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 ...