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

learn more… | top users | synonyms

3
votes
1answer
28 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
22 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
26 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} ...
4
votes
1answer
36 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 ...
3
votes
0answers
24 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
90 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
102 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
65 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
46 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
48 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
84 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} ...
6
votes
1answer
98 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
63 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
45 views

mdframed cannot reduce margin

\documentclass[a4paper,10pt]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \usepackage{multicol} \mdfdefinestyle{graybox}{ splittopskip=0,% splitbottomskip=0,% ...
4
votes
2answers
104 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
71 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
54 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
48 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
60 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
24 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
64 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
78 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} ...
2
votes
1answer
52 views

mdframed environment not breaking over pages

I apologise in advance because I cannot provide an MWE. I am writing a book with a custom (Springer) format and I wish to use mdframed to provide an example environment. I adapted an example from the ...
8
votes
2answers
87 views

Package csquotes does not seem to work within a mdframed box defined via a macro

If I define a macro which uses a mdframed box, this seems to disable csquotes (red box). But using mdframed directly (i.e., without defining it via a macro), then the csquotes package can do its job ...
2
votes
0answers
25 views

Custom table with mdframed and parcolumns: LaTeX Error: Something's wrong--perhaps a missing \item

I am building my own table environment using parcolumns and mdframed. \documentclass{report} \usepackage{parcolumns} \usepackage{mdframed} \newenvironment{mytable}[1] ...
0
votes
1answer
59 views

Html color in mdframed

I want to make mdframed with linecolor set using HTML color model. How can i do it? I want something like \begin{mdframed}[linecolor=\color[HTML]{FF0013}] text \end{mdframed}
1
vote
0answers
28 views

Cannot load the “pstricks” option in mdframed package [duplicate]

I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes: ...
3
votes
1answer
41 views

skipbelow does not work for combination of mdframed and thmtools

I am trying to alter the space below a theorem box, which is created using thmtools and mdframed. \documentclass{scrartcl} % % \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} % ...
3
votes
1answer
71 views

Prevent double-frame with mdframed/tikz

I want to create a digression using mdframed. I want it to have rounded corners, so I load it with option [framemethod=tikz]. Because of this, the problem arises that the standard framebox I use for ...
4
votes
2answers
130 views

To label Question environment

My minimum code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{ans}{ linecolor=cyan, backgroundcolor=yellow!20, frametitlebackgroundcolor=green!40, ...
7
votes
2answers
179 views

How to add “continued from previous page” hint to page breaking **mdframed**?

Follow-up question to the accepted answer here and here. The latter seems promising, with the caveat that it doesn't work. I'm using mdframed with tikz - but without "theorems". However, I too would ...
2
votes
0answers
71 views

Remove thin border around mdframed title

I get a thin border around the title of a mdframed environment which has the color of the actual content area: I want to get rid of this thin red line around the title. MWE: ...
2
votes
1answer
29 views

Printing value of a unique counter outside mdframed

I have defined commands for a unique counter, i can retrieve the values if the counter unique name is not defined inside mdframed, what could be the problem, i cant seem to retrive the value if ...
1
vote
1answer
107 views

How to make an environment same as itembox environment in ascmac package by using mdframed package

I want to make the output same as what I can make from the code shown below. But for some reasons (e.g. some frames extend to multiple pages etc.), I do not want to use ascmac package but mdframed ...
2
votes
0answers
36 views

Collect text in mdframed and print at the bottom of the next page

am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. all text is always enclosed in a frame and the frame can span multiple pages but the collected fruits ...
4
votes
0answers
81 views

Collect in mdframed and print at the bottom of the next page

I am trying to collect say fruits mentioned in a page and print them at the bottom of the next page. All text is always enclosed in a frame and the frame can span multiple pages but the collected ...
3
votes
1answer
68 views

Errors using mdframed and also framed packages with tex4ht to put a frame around text

I googled around, and did not see something about this. I just found out that one gets an error using mdframed with tex4ht. \documentclass{article}% \usepackage{mdframed} \begin{document} ...
5
votes
2answers
42 views

get rid of whitespace after postheadhook thmtools

I want to get rid of the stupid white space after the postheadhook \newline (see before asdasd) in the following example: %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % ...
1
vote
0answers
62 views

mdframed: option thmmarks of ntheorem affects vertical skip after theorem

I define a framed theorem environment with the mdframed package. I experience the following problem: There is no vertical skip between the bottom of the frame and the text of the following paragraph ...
2
votes
1answer
78 views

Why is thmtools and mdframed not working with parskip

I have the following MWE: %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % DEFINITIONS =================================================== \documentclass[ 12pt, a4paper, ...
3
votes
1answer
42 views

mdframed in lists

I am using a frame environment defined with mdframed to write annotations in my documents. When I use this environment as the first thing after a \label in a list, the following happens: Source: ...
1
vote
0answers
50 views

thmtools and mdframed (vertical space)

I dont know why I dont get the two examples closer together. How can I achieve a spacing of 0mm between the two Examples? %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % DEFINITIONS ...
3
votes
1answer
103 views

Problem with mdframed, lstlisting and subfig

I'm trying to understand why the following code does not compile. \documentclass[12pt]{article} \usepackage[svgnames]{xcolor} \usepackage{filecontents} \usepackage{tikz} ...
4
votes
1answer
82 views

mdframed: how to change the separator between the label and the title of a non-numbered thereom?

The problem There seems to be a bug in mdframed package. With the theoremseparator key, one should be able to change the text between the "label" and the title of a theorem ("Theorem" being the label ...
2
votes
2answers
238 views

Frame/Box around \chapter-, \section-headings,

Does anyone know how to put a frame around \chapter and \section-headings? I'm using Koma-Script (scrbook) but there it's rather difficult to find a solution ... Now I found the package 'titlesec'. I ...
5
votes
2answers
212 views

SWOT Table - how to convert to an article?

I need a SWOT analyse in color, and I found this one at http://www.mostlycolor.ch/2013/10/colored-blocks-in-beamer.html : Can someone help me by converting the beamer, so I can use it in an ...
2
votes
2answers
75 views

mdframed: how to put the optional argument of a theorem-like environment between brackets?

The classical case With the classical \newtheorem command of amsthm, one gets the following result for optional arguments: from this code \documentclass{article} \usepackage{amsthm} ...
1
vote
2answers
82 views

A framed theorem without numbering?

Is it possible to draw a frame around a theorem-like environment ? If possible, I would like to use mdframed. In the documentation, the general form of the command is given by ...
5
votes
1answer
69 views

Multiple footnotes within a mdframed to refer to the same text

I am using an mdframed to a display large list of items. In this this list, there is one exception that a few of the items have, and I am trying to make a note of this via a footnote. The text of the ...