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

learn more… | top users | synonyms

5
votes
1answer
21 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
22 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 ...
1
vote
1answer
70 views

Difficult mdframed example

I want to do this mdframed model: Which is the example 6 of the page 21 and 22 of this pdf: http://texdoc.net/texmf-dist/doc/latex/mdframed/mdframed.pdf My question is if it is correct or not, ...
3
votes
1answer
35 views

Changing frame size in mdframed

I am trying to place a box around a definition. Using the package mdframed, I have managed to do so. However, the box is too large, in particular too tall, and it is covering up text appearing above ...
2
votes
1answer
38 views

Conflict between mdframed and amsthm packages with the use of czech babel

I would like to have theorems in boxes. I am working with amsthm and mdframded packages (I use the syntax utilized in Legrand Orange template). It works well with different babels (english, spanish, ...
2
votes
1answer
33 views

thmtools: Custom Header

I'm using amsthm and thmtools to customize theorem-like environments. I want a theorem enviroment that has a header that looks like the following: . I tried to use something like headformat = ...
2
votes
1answer
27 views

No Background Title in mdframed

I'm dealing with mdframed. I wrote some text in a grey background frame. Then I want to display the frame title, but I don't want that the box which contains the frame title is visible (actually it's ...
2
votes
0answers
43 views

mdframed package with tikz rendering lines poorly

I'm using TeX Live 2014 on Windows 8.1, and I'm having some trouble setting up a visually appealing definition environment. I'm trying to use the mdframed package with tikz, and I'm using an example ...
0
votes
0answers
45 views

mdframed error line 96 missing begin{document}

All the my MWE, in mdframed.sty error line 96, Missing \begin{document}. I am sure easy to solving but I can't do it. Also I did anyting in related page. Where did I do wrong? Maybe, did I wrong ...
0
votes
0answers
29 views

mdframed forces new page in the middle of a frame, solved by \clearpage. Why?

This is somehow a poor question, as I don't have an MWE... I have a problem with an mdframed environment. The environment breaks to a new page for apparently no reason. A screen shot of the effect is ...
2
votes
1answer
60 views

Alltt inside mdframed longtable

I am trying to achieve the following: I have text material which is to be put in verbatim form. This material also has some mathematics, so I am using the alltt package. This text needs to be in a ...
2
votes
2answers
45 views

Make a frame around text and include a header

I'd like to make a frame (probably using mdframed) as in the example picture I included. I looked around on this website and tried to google the think, but I don't even know how to desrcibe this in ...
3
votes
1answer
105 views

An annoying overflow in mdframed environment with tufte-handout

I'd like to highlight a text block in a Tufte style document. I defined myblock environment based on mdframed package. \documentclass{tufte-handout} \definecolor{MyGray}{rgb}{0.95,0.95,0.98} ...
5
votes
2answers
74 views

Adjust frame title rule with tcolorbox

I have been unable to locate an example using tcolorbox which sets the color and width of the line below the frame title independent of the background color of the frame title. With mdframed one can ...
3
votes
1answer
24 views

mdframed gobbles item label from description environement when \foreach is used

The following works: description in mdframed. foreach in description. but there is some strange behavior when using foreach in description in an mdframed environment in that the \item labels ...
0
votes
0answers
33 views

Split a page horizontally with page breaks

I am looking for an adequate package to split horizontally all pages of an article into two parts with page breaks. The expected behaviour shall be as in following picture: I already try with the ...
3
votes
3answers
96 views

Hereditary properties with nested frames (mdframed and tikz)

When nesting an mdframed environment in a mdframed environment that uses tikz, it seems that the nested mdframed environment takes on many of the properties of the environment isn't being nested in, ...
5
votes
2answers
58 views

Issues with using \nameref (hyperref) and \mdtheorem (mdframed) together

When using the \mdtheorem command (from mdframed) with \nameref (from hyperref), it seems that labels applied to an theorem made using \mdtheorem will not appropriately take the title given to the ...
6
votes
2answers
111 views

Defining a two-column box with mdframed

I would like to have mdframed boxes which have a picture on the left and some written explanation on the right. Right now I have used the column environment in Beamer but would like to have the ...
2
votes
1answer
32 views

mdframed innertopmargin should be same to next page

I have using mdframed and expecting output is same innertopmargin space is continued to next page: My MWE is: \documentclass{book} \usepackage{mathptmx,lipsum,mdframed,showframe} ...
5
votes
1answer
51 views

mdframed breaks vskip option in quoting

Csonsider the following MWE. Without the call to \surroundwithmdframed, the vskip argument to quoting works. With it, it doesn't. Can anyone suggest a workaround or fix? Thanks. ...
3
votes
1answer
75 views

TikZ mdframed environment: close box at end of page and continue on next

I used the Excursus environment as a template to create my own box like this: \usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed} \newenvironment{boxtype1}{% ...
1
vote
1answer
72 views

top of the page ribbon box in mdframed

I would like to expect the framebox (like 1B) in the top of the each page when exercise environment is started to ending the exercise environment (i.e., page 2 and 3 only and not page 1, because ...
1
vote
2answers
71 views

mdframed rounded corner on left side only

I would like to get the roundered corners on only leftside instead of top, bottom, right, bottom. How to achieve this. \documentclass{book} \usepackage{xcolor,lipsum} \usepackage{mdframed} \mdfsetup{ ...
2
votes
1answer
84 views

image height reduce/increase automatically

I have the below boxed environment. The image should place in the marginpar width. When my environment is going long the image should automatically increase upto my enviroment, when is going to low it ...
2
votes
1answer
82 views

mdframed top box fixing using tikz

How do get the top box value in 1-3 and 3(1/2) in mdframed. Please refer screenshot below: ![enter image description here][1] my MWE is: \documentclass{article} \usepackage[tikz]{mdframed} ...
2
votes
1answer
91 views

This Question environment with XeLaTeX

I am still converting my pdflatex codes to XeLaTeX. Minimal case \documentclass{article} % The Question -environment works with these two lines % \usepackage{amsfonts, amssymb, textcomp, mathtools, ...
3
votes
1answer
63 views

Split roundered corner using mdframed

I would like to create splitted rounder corner with separate frametitle (attached below) using mdframed or mdframed with tikz. My MWE is: \documentclass[10pt]{article} \usepackage{amsmath} ...
3
votes
3answers
154 views

Enclose Code in Latex with single user-defined command

I am using the following to enclose my code in a box and I like the formatting but I have the problem that everytime I have to write a lot of stuff. Before the begin{document} I have defined: ...
0
votes
0answers
28 views

mdframed package bug version 2.0?

I've found that using mdframed package v2.0 is having an error: see error below \DeclareListParser*{\mdf@dolist}{, } What should be the correct version that has no ...
4
votes
1answer
90 views

How to insert title in innerrightmargin using mdframed

I have tried to insert title in innerrightmargin using mdframed and found How to insert title in mdframed? this example. But this is only for top of the frame. My MWE is: \documentclass{article} ...
2
votes
1answer
34 views

Force heading and mdframe onto same page

I use mdframed to quote the problem set. This is very often done at the beginning of a section, which gives occasionally breaks over two pages, like so: This seems neither useful nor beautiful to ...
5
votes
1answer
76 views

Combine todonotes with mdframed to highlight paragraphs and write notes

I am trying to combine todonotes with mdframed to create a unifying command that allows to write todos and and highlight paragraphs at the same time. The syntax is ...
4
votes
2answers
84 views

Adding a Caption to \lstnewenvironment using \mdframed

I found on the Internet the piece of LaTeX code I really liked : \documentclass{article} \usepackage{listings,mdframed,xcolor} \definecolor{codeBackground}{rgb}{0.9, 0.9, 0.8} ...
3
votes
1answer
56 views

Boxes with two different border widths

I'm making a box with text inside. For it I use the package mdframed. Essentially I want a box with the left border width 2pt and the rest of the borders width 1pt. What I've got so far: ...
2
votes
0answers
43 views

Framed theorem environment spread across pages

I wanted to put a vertical line in front of examples to make them easier to distinguish from the regular text. For this I used mdframed, and it mostly seems to work. However, if an example happens to ...
4
votes
1answer
42 views

Why is the space underneath my theorems not showing up?

I styled my amsthm theorems with mdframed. I tried to add some space before and underneath my theorems with skipabove and skipbelow as stated here on page 6. \documentclass{article} ...
5
votes
1answer
89 views

how to indent the first line of an mdframed environment?

i've been requested to indent the first paragraph in an environment defined with mdframed. i've looked at the question Paragraph indenting in an mdframed environment, and while it provides a ...
4
votes
1answer
43 views

How to prevent my theorems from breaking off at a pagebreak?

I styled the theorems in my document a bit, using the mdframed package. I'm glad with the result, but the frame sometimes breaks off incorrectly. I've created a sample to show you what's going wrong. ...
2
votes
1answer
154 views

To make Question environment Discussion environment

About minimal thing developed originally mostly by Gonzalo Medina in earlier discussions of mine (one of them here) \documentclass{article} \usepackage[framemethod=tikz]{mdframed} ...
2
votes
1answer
139 views

Background colors with mdframed: is this behavior normal?

Introduction With the help of this answer, I tried to define a semi-transparent background for a theorem-like environment. Here is my solution: \documentclass{article} ...
1
vote
2answers
95 views

How to create framed Text with background color

The example picture is what I desire to create in Latex. I have managed to create something similar but without the rectangular gray background. I am also a total rookie to latex. I would look ...
2
votes
1answer
80 views

mdframed margins

I'm new using mdframed package and I stumbled upon with \mdtheorem so I created a definition and I want to use it at the beginning of the page, but the problem is that there is a space in blank ...
5
votes
1answer
67 views

Weird spacing with mdframed

I'm using mdframed to make a framed theorem environment but I'm having some trouble with the spacing below the theorem. This is my MWE: \documentclass{article} \usepackage{amsmath} ...
1
vote
2answers
122 views

mdframed, TikZ and zigzag decoration [duplicate]

I would like to have a zigzag decoration around a box created with mdframed. Minimal example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} ...
7
votes
1answer
122 views

Forbid page break after the title in mdframed

I use mdframed for my theorems like this \mdfdefinestyle{theoremstyle}{% %adjustable lengths %inner margins innertopmargin=\topskip, % outter margins skipabove= 0.1in, skipbelow= 0.1in, ...
3
votes
1answer
74 views

How to combine mdframed and tabu

\documentclass[a4paper,10pt]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{multicol} \usepackage{tabu} \mdfdefinestyle{graybox}{ innertopmargin=2mm,% innerbottommargin=2mm,% ...
3
votes
1answer
58 views

mdframed cannot reduce margin

\documentclass[a4paper,10pt]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \usepackage{multicol} \mdfdefinestyle{graybox}{ splittopskip=0,% splitbottomskip=0,% ...
5
votes
2answers
464 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
3
votes
1answer
102 views

how to use several style for boxed theorem and remark with mdframed?

I have modified this code Issue with mdframed package in order to satisfy my taste: \documentclass[a4paper,10pt]{memoir} \usepackage{xcolor} \usepackage[framemethod=tikz]{mdframed} ...