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

learn more… | top users | synonyms

10
votes
2answers
141 views

Alignment of environment inside enumeration

I defined an environment to add notes, i.e. pieces of text that are not strictly relevant to the question at hand but perhaps still interesting to read, via \usepackage[framemethod=tikz]{mdframed} \...
1
vote
1answer
27 views

Why aren't leftmargin and rightmargin values (in mdfdefinestyle) having any effect on my theorem box? [duplicate]

I changed the value of leftmargin and rightmargin below from 1 cm to 15 cm, but there is no output change. My theorem box remains with the same width. \documentclass[a4paper,10pt]{book} \usepackage{...
2
votes
1answer
54 views

Image position related to table position

How can it be that an image and a table, that are places incide of the same mdframe are positioned differently? And how can it be resolved. This screen dump shows the problem: I would have expected ...
3
votes
1answer
66 views

How to define a new environment of two text blocks with number?

Hi, I want to define a new environment like the figure above. It has two text blocks with different background color. Block 1 has a short numbered title, such as 'Note' or 'Definition'. Block 2 has a ...
3
votes
1answer
70 views

List of Boxes Detail

I was wondering if someone knows how to "tell" LaTeX to print an Index of Boxes ("Recuadros" for me), in a similar way to the regular Index of Tables. In the last case there is an extra space between ...
5
votes
1answer
430 views

Inspired beautiful box from Indesign

I found these beautiful box in Math ebooks which is created by Adobe Indesign, I tired mdframed, tcolorbox but I didn't try Tikz. So could someone create them using LaTeX please? \documentclass[...
1
vote
0answers
45 views

Have different thickness and colour for each line in a mdframed box

I want to have a different thickness and color for each of the left line, right line, top line, and bottom line of my mdframe box. How can I achieve that? I am new to LaTeX, really appreciate any help!...
1
vote
1answer
52 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} \usepackage[framemethod=tikz]{...
1
vote
1answer
37 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
74 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
45 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
32 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
63 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
245 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
120 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
81 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, left=2cm,...
1
vote
1answer
67 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
124 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
84 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
305 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
48 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} \usepackage[...
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 \documentclass[a4paper,11pt]{...
1
vote
1answer
45 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
90 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
55 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
145 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
95 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
185 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
285 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 \vspace{-...
3
votes
1answer
87 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
46 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
82 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
72 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? \documentclass[a4paper,11pt,oneside,openany,showtrims,...
1
vote
0answers
46 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
235 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. \documentclass[11pt]{...
1
vote
0answers
73 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. Here'...
3
votes
0answers
234 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
144 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}} \DeclarePairedDelimiter\abs{\lvert}{\rvert}...
3
votes
2answers
135 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
34 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
85 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
83 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
270 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
110 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
167 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
175 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
98 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
125 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. :) \...