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

learn more… | top users | synonyms

22
votes
1answer
832 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
30 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 ...
9
votes
1answer
91 views
+150

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. ...
3
votes
1answer
24 views

including chapters in mdframed references

I'd like to have chapter.theorem numbers for an mdframed theorem environment. I can modify the environment definition to include this, as in: \documentclass{memoir} \usepackage{amsmath} ...
3
votes
1answer
36 views

Would like a mdframed environment style with framed title box inset above without fill

Here's a slight tweak to one of the mdframed examples that produces a framed title inset above the theorem box \documentclass{article} \usepackage{amsmath} %\usepackage{svgcolor} ...
3
votes
1answer
22 views

mdframed: how to manage footnotes in the case of two embedded mdframes environments?

Question My question is about the behavior of mdframed with footnotes. I have two embedded mdframed environments and one footnote in the first one, it will be displayed in the second one. I would ...
5
votes
1answer
102 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
4
votes
1answer
41 views

Label inside mdframed messes up spacing

I have a problem with mdframed in combination with \parskip and \label. Consider the following code, which is a MWE stripped down from a large document. \documentclass{article} ...
2
votes
0answers
33 views

mdframed creates empty frame edge on new page

I have a document where I use shaded mdframed frames for annotations. One annotation is on the very bottom of the page and somehow the frame extends to the next page even though all its content is on ...
3
votes
0answers
42 views

What are the differences between mdframed vs. tcolorbox [duplicate]

I am familiar with the mdframed package and its usefulness when content crosses page boundaries. But lately, I have seen quite a few questions about the tcolorbox package and don't know much about it ...
9
votes
2answers
91 views

easylist in tabular

I'd like to build this table: As I have a very long list to itemize, I'd like to use easylist. Obviously the easylist-group causes problems in the tabularx-environment. That's what I coded so far: ...
3
votes
1answer
47 views

include section name, as well as number in mdframed (theorem) header

In a memoir class document, I am using the following mdtheorem definition to provide a heading inside an mdframe, which has the effect of providing an increasing count(er) to each new reference to ...
4
votes
1answer
33 views

How do I reset my theorem count (using mdtheorem)?

% define environments with counters \mdtheorem[style=mpdframe, style=wide ,% style=greyfr ,% style=wideln ] {discuss}{Discuss Topic} ...
3
votes
0answers
54 views

Mdframed: negative top margin with page break skips a page

I am using the development version (1.9d) of the mdframed package to customize the proof environment in the following way. I wish that a line runs down from the word "Proof." and that the text of the ...
5
votes
1answer
29 views

Defining mdframe style by reference to another style

I'm wanting to define an mdframe style "studies", by reference to mdframe style "mpdframe". In the example shown, the difference would be to add a frame title, "Studies". The following code does not ...
5
votes
2answers
74 views

Extra vertical space inside mdframed theorem environment

I have seen several similar questions on TeX.SE of a similar nature, but none of them seem to address my precise issue. I have been working with mdframed environments for a while. I read that there ...
3
votes
0answers
41 views

Package mdframed: userdefinedwidth Option Not Working with \mdfsetup

The userdefinedwidth option does not work when used with \mdfsetup. It however works fine with the \mdfdefinestyle and \mdfapptodefinestyle commands, as well as when specified separately against each ...
3
votes
1answer
37 views

Space between rows in mdframed environment

i'd like to reduce the space between two rows in an mdframed environment. \mdfdefinestyle{round}{ innertopmargin=0pt,innerbottommargin=10pt,innerleftmargin=1pt,innerrightmargin=1pt, ...
2
votes
1answer
22 views

linewidth and middlelinewidth options in mdframed: wrong information in the documentation?

In the documentation of the package mdframed 1.9b, the author says (p. 7) If you are working width framemethod=tikz or framemethod=pstricks the option linewidth is an alias for the option ...
1
vote
1answer
28 views

mdframed example throwing error

I'm trying to get the following mdframedexample from the package documentation to work (mdframed-example-default page 5), but it's throwing the following errors Missing number, treated as zero T ...
3
votes
1answer
46 views

How to explicitly set the color to transparent/nothing in the options of mdframed?

Is it possible to explicitly set the backgroundcolor option in mdframed package, so that the background stays transparent (or, let's say "empty")? It could be \begin{mdframed}[backgrouncolor = ***] ...
4
votes
1answer
47 views

mdframe size not matching table size

I'm having some problems with the mdframed package in combination with tabular. After figuring out how to get the width of the frame to match the width of the object (a table in my case) using a hack ...
7
votes
3answers
181 views

To make one environment flow into another without empty space

I have this design at the moment. However, when you have many of those, they distract much. I propose to have Answer just on the same line with Question like Question 41 Lorem ipsun. Answer 38 ...
2
votes
1answer
102 views

Breakable boxes with Tikz and right and leftmargin

I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the ...
1
vote
0answers
47 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is ...
5
votes
1answer
82 views

Create box around text without creating a paragraph and with line breaking

I want to draw a box (no rounded corners, keep it simple ^^) around one or multiple words. There are two special things: 1) the box should support line break and 2) the box should not cover multiple ...
1
vote
1answer
46 views

How to set width of mdframed? [duplicate]

I am new to latex i want to set a width and height of the mdframed. can any one help me to achieve this task. \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} ...
4
votes
1answer
78 views

How to change the border of mdframed?

I want to change the border color of the mdframe box. By default it take black. \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} \newtheorem{mdtheorem}{Theorem} ...
6
votes
2answers
75 views

How to keep fixed height of mdframed in latex?

I am designing one page in which i need to write 3 mdframed side by side. but all three must be having same height. <mdframed1> <mdframed2> <mdframed3> How can i implement ...
0
votes
3answers
65 views

RTL theorem numbering problem - mdframed and xelatex

I have a problem with wrong numbering order when using mdframed theorem style. As in the MWE, the second theorem number should 2.1.1 (reading from right to left, 1.1 for the section and 2 for the ...
2
votes
0answers
39 views

To visualise Schematic Intersections of Sections over Parts

Assume you have Parts Exotoxins A-B Non-spore-forming Gr+ Some of exotoxins A-B bacteria belong too to non-spore-forming Gr+. I can visualise this by a venn diagram, however I would like show this ...
8
votes
1answer
92 views

How to get more than 3 levels of nesting in mdframed environments?

Before I get to many of "don't do this as it does not look good", I have two modes of my documents: Final mode: where there is ONLY one level of nested mdframed Review mode: where there are numerous ...
2
votes
1answer
85 views

How to have bold font in mdframed environment?

I did not find bold word in the manual. My tex is: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \newtheorem{question}{Question} \mdfdefinestyle{que}{ linecolor=cyan, ...
7
votes
1answer
79 views

Suppressing the frametitle in mdframed tikz frames

I really like the digression style created in mdframed digressionarrows style with custom header. I would like to extend it even further by displaying the frametitle (if it is defined) after the ...
17
votes
1answer
448 views

How to typeset programming code syntax with annotations?

If possible I would like to know how to this on latex/tikz to add this like (environment and graph) on my ebook. Thanks a lot!!! Code im trying to implement: \documentclass[11pt,fleqn]{book} ...
3
votes
2answers
102 views

Margin note left of mdframed images in a two column page

Is it possible to have a margin note to the left of the left column on the second page with this code and approximately halfway down the page? I cannot get it to show up using \marginpar or the ...
1
vote
0answers
75 views

Package “mdframed” creating arbitrary gaps in the border

I used to define a small environment with the package "mdframed". I've included the package in the following way: \usepackage[framemethod=tikz]{mdframed} This is how I've set up the environment: ...
4
votes
1answer
74 views

Text doesn't wrap correctly inside an mdframed frame (in tufte-book)

Here's a minimal working example illustrating my problem \documentclass[a4paper]{tufte-book} \usepackage{mdframed} \begin{document} \begin{mdframed} In mdframed the text is not correctly wrapped ...
4
votes
1answer
96 views

How can I mimick the listing caption style for my custom “Listing (cont.)” caption?

I have the following LaTeX code which works fine: \documentclass[12pt,a4paper]{article} \usepackage[a5paper]{geometry}% just for the example \usepackage[utf8x]{inputenc} \usepackage{listings} ...
2
votes
0answers
56 views

TeX capacity exceeded when using mdframed inside figure

Sorry if this question has already been answered before. The following code always produce the silly error: TeX capacity exceeded, sorry [input stack size=5000].<write>Package ...
2
votes
0answers
63 views

Problem with thmtools + scrbook + parskip=half

I want to draw a frame around my "thmtools" theorems. Theorems should look like the first example. The problem is that sometimes my theorems are getting quite long and should be spanned over two ...
7
votes
3answers
124 views

Shrink monospaced font in custom (verbatim) environments

I'm redesigning lecture notes for a university class since the students wanted to read the notes on their tablets, e-book readers, etc. I have code blocks in these documents, defined in the cdblk and ...
8
votes
1answer
222 views

Could not get round corner working in mdframed

Round corner is not working in mdframed environment although I followed the example shown in the mdframed package. Below is my code \documentclass[10pt]{article} \usepackage{amsmath} ...
1
vote
0answers
130 views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
3
votes
2answers
116 views

mdframed error missing begin{document}

I'm trying to use mdframed package. I had a problem running the file Makefile on ubuntu but I found and installed the md-frame-0-1-2-3.mdf files from another pc along with the .cls file my code is ...
1
vote
0answers
74 views

mdframed parchment layout

I have recently found a very nice example of how to create text boxes with a parchment-style layout: http://www.texample.net/tikz/examples/framed-tikz/ Also, here on tex.stackexchange, there are ...
7
votes
2answers
124 views

Title above left line

I'm trying to create a mdframed environment where The title is repeated on every page (works fine with repeatframetitle) the title is left aligned relative to the normal text and this implies that ...
1
vote
0answers
49 views

How to avoid widows-orphans with mdframed?

I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)? ...
0
votes
0answers
104 views

“Call out box” in a two-column document

I suppose "call out box" probably doesn't have much of a meaning in the TeX world, but a (framed) "box" probably isn't specific enough for what I mean. Anyway, I am compiling the following with ...
9
votes
2answers
339 views

Framed box, over framed text with image

Hi all, I'm a newby in LaTeX but after researching online, I have seen that it is possible to create boxes and frames adjusted to text and images. I am trying to achieve something like the image, ...