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

learn more… | top users | synonyms

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
26 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
54 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
135 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
109 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
73 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
61 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 ...
3
votes
1answer
107 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
78 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
37 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
290 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
31 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
43 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
80 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
124 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
83 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
168 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
228 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
74 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
44 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
74 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
67 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
40 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
200 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
67 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
202 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
117 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
126 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
31 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
78 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
76 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
232 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
97 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
155 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
164 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
90 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
119 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
167 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
157 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
380 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
54 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
72 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
118 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
84 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
85 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
138 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
33 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
29 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} ...