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

learn more… | top users | synonyms

1
vote
2answers
64 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} ...
0
votes
0answers
23 views

forbid page break after the title

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
56 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
34 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
68 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
62 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
39 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
38 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 ...
1
vote
1answer
55 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
17 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
49 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
66 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
42 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
82 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
22 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
50 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
37 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
61 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
119 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
145 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
52 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
27 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
94 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
34 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
80 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
56 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
40 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
58 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
73 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
38 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
46 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
91 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
72 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
209 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
182 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
63 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
74 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
66 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 ...
3
votes
1answer
40 views

How to mix titling and mdframed packages

Through a tip on this site, I have used package mdframed to get a nice rounded box. But I would like to include it with the titling package. The following minimum example shows mdframed working ...
6
votes
1answer
91 views

Theorem and lemma sharing counter with mdframed and cleveref

Problem Essentially I've got the same problem described in Cleveref with counters with same name: I've got theorems, lemmata and corollaries all sharing the same counter, and when referencing them ...
4
votes
1answer
107 views

Changing footnote symbol within mdframed

Am having difficulty changing the footnote symbol, especially within an mdframed environment. I thought I was done when I came across Changing footnote symbols, but the accepted solution (commented ...
6
votes
1answer
88 views

How can I create a new environment with mdframed and empty for exercise answers?

I borrowed the following MWE from here but I would like to be able to create an empty environment to use for exercise answer with variable vspace. The exam class has the \makeemptybox{} option, but I ...
6
votes
1answer
96 views

mdframed vertical space difference

in the example below, i used mdframed to surround my text with a box. But the vertical space above an below the box are different. I found one way to solve it with \vspace*{}. But is there a better ...
2
votes
0answers
144 views

mdframed box spanning over page break: prevent images in between

I've run into a problem in a bigger documents where pictures get in between the breaks of mdframed boxes. So the scenario is that the mdframed box should break at pageend if it's to large and not ...
4
votes
1answer
123 views

subtitles in tcolorbox like in mdframed

Until now, I have used mdframed to produced nice framed boxes. I recently discovered tcolorbox, and found that it has several advantages over mdframed. In my actual and future work I would prefer ...
34
votes
1answer
1k views

How was this tip box produced?

I presume Drew Neil (of Vimcasts.org fame) used some TeX typesetting engine (XeLaTeX?) to typeset his excellent book, Practical Vim. See a screenshot below. I really like the way his "tip boxes" ...
2
votes
1answer
62 views

mdframed: how to prevent a box from splitting?

I would like to prevent an mdframed box to split. I know it could sound absurd, since mdframed is designed to allow splitting but if it could be done, I would be interested in modifying mdframed so ...
10
votes
1answer
153 views

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...