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

learn more… | top users | synonyms

0
votes
0answers
68 views

How can I change figure size in mdframed environment?

Alenanno helped me with the code here Using multicol for framed figure to insert figures in article document class using mdframed environment. This works fine for me, however I have not been able to ...
2
votes
1answer
60 views

Mdframed as Chapter Title

I am trying to compile exercises into on sheet of paper each, and treat the Exercises as Chapter. And then I will \begin{enumerate} \item Hi Mom \item Hi Dad \item Hi there \end{enumerate} ...
3
votes
2answers
109 views

Including figures in custom environments.

In my preamble I have the following custom environment that is counted. \newtheorem{exmp}{Example}[section] When I call this in the text I always write the following piece of code, \begin{exmp} \...
1
vote
1answer
76 views

Code involving mdframed and scrlttr2 that compiled with TL 2014 but does not compile with 2015

The following code used to compile with TeX Live 2014, but does not compile with TeX Live 2015. I now get the error: ! Missing \endgroup inserted. <inserted text> \endgroup l....
1
vote
1answer
63 views

How can I change margins of mdframed boxes that enclose ExSheets questions?

I successfully enclosed my ExSheets questions with mdframed boxes by using the following code line: \SetupExSheets{question/pre-body-hook=\mdframed,question/post-body-hook=\endmdframed} Now, I ...
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
30 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
68 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
71 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
445 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
48 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
60 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
49 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
38 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
77 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
46 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
34 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
67 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
271 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
123 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
82 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
68 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
137 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
89 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
308 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
33 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
46 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
92 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
150 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
99 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
200 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
294 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
88 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
89 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
73 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 ...
5
votes
2answers
247 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
77 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
241 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
147 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
140 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
38 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
86 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
84 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
277 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 ...