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

learn more… | top users | synonyms

2
votes
0answers
32 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
33 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
20 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
44 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
35 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 ...
2
votes
0answers
82 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
58 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
21 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
26 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
91 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
47 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
93 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
28 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
45 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
65 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
68 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
66 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
80 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
72 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
80 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
56 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
147 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
26 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
85 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
30 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
67 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
64 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
53 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
40 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
40 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
77 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
40 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
136 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
130 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
89 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
74 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
61 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
117 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
117 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
69 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
51 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
341 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
91 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} ...
3
votes
1answer
89 views

New environment based on two existing environments (mdframed, spverbatim)

I would like to define an environment that puts verbatim text using the spverbatim package into a frame defined by the mdframed package. Here's my (naive) approach: \documentclass{scrreprt} ...
2
votes
0answers
58 views

braces marks with \framed & \tikz

I'm trying to mark some paragraphs with boxes, braces, brackets or parentheses coupled with notes in margin… My first test was using \makebox & minipage according to this discussion as you can see ...
2
votes
1answer
68 views

Misnumbering of examples

I am trying to use the mdframed package to create a boxed numbered Example environment. This is my first foray into environment definition, so I may be making a rookie mistake. Why doesn’t the ...
0
votes
0answers
37 views

mdframed with calculated innertopmargin

I would like to define my own mdframed style where the innertopmargin and innerbottommargin are the same. First I tried to get zero margin: \newmdenv[ hidealllines=true, innertopmargin=0em, ...
4
votes
1answer
94 views

\newmdtheoremenv environment without numbering without caption

I would like to make a frame around content that breaks across pages. For that I use mdframed package. Note that in that frame I also have \section and \subsection markers (because I am writing a ...
4
votes
0answers
98 views

Wrong vertical alignment using mdframed with tight margins

When using the mdframed environment with absolutely tight margins (all set 0pt), there is too much negative vertical space of split md-frames that are placed at the top of a page. To illustrate this, ...
1
vote
0answers
21 views

How to continue a framed box which is defined in floating environment [duplicate]

I have defined a floating environment. It defines a framed box using \mdframe. Here is the code I used. \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \usepackage{caption} ...