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

learn more… | top users | synonyms

6
votes
4answers
922 views

mdframed: size frame to content

Consider this: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} \begin{document} \begin{mdframed}[innerrightmargin=0pt] TEXT\end{mdframed} \end{document} This produces a frame that ...
3
votes
2answers
266 views

strange interaction between `mdframed` and `\item`

I would like to understand (and to find a solution for it) the following problem. First, the MWE : \documentclass{article} \usepackage{mdframed} \usepackage{fancybox} \newsavebox{\mcBox} ...
26
votes
3answers
464 views

What are the relative strong and weak points between tcolorbox and mdframed?

I think practically we will not use both tcolorbox and mdframed in a single input file. Correct me if I am wrong. So we have to choose either tcolorbox or mdframed. However, without knowing the strong ...
19
votes
3answers
4k views

how to get the current chapter name, section name, subsection name, etc?

How can one get the current name of the following: Chapter, Section, Subsection(s), frame, label, mdframed?
9
votes
1answer
2k views

drop shadow framed environment using mdframed & tikz

I'm attempting to make a drop shadow environment using mdframed and tikz. So far, I have (perhaps naively) tried \newmdenv[tikzsetting={fill=green!20,drop shadow}]{myshadowbox} I know that ...
18
votes
1answer
1k views

framed or mdframed? (Pros/Cons)

I'm currently thinking about using shaded and framed sections in my document. But for now, I couldn't clarify the differences between framed and mdframed (or other packages). Although the ...
12
votes
1answer
3k views

Is there an debian/ubuntu package containing mdframed.sty?

I found several answers on this site recommending the mdframed package. However, I can't find a ubuntu texlive package that includes this. Do I have to install this manually or am I overlooking ...
10
votes
2answers
439 views

mdframed nested frametitle bug

This issue is fixed in version 1.6b mdframed at github When nesting frames the inner most frametitle is used. The frametitle for all these is frame3. \documentclass{book} ...
9
votes
1answer
560 views

mdframed-Put something on the start of one vertical left rule

I would like to obtain something like in the following picture (I've put Z! instead of the danger symbol). In the following code, I would like to put the danger symbol on the vertical rule. I ...
5
votes
1answer
313 views

Replace \item with \MyItem to box each list member with an mdframed

Since it was pointed out that redefining \item can be dangerous in strange interaction between `mdframed` and `\item`, I am wondering if there are going to be problems with this solution. My goal is ...
8
votes
1answer
493 views

Access mdframed node coordinates with TikZ?

Is it possible to get a (breakable) frame like this with mdframed? Or as a more general question. Can one access the coordinates of the frame that is drawn with TikZ? With a pagebreak in it: I ...
6
votes
2answers
357 views

Putting frame only around equation using mdframed package

I am in the process of finalizing the notebook text, and I am into framing equations and figures. For this I am testing mdframed package, which produces nice frames. However, I don't know how to ...
5
votes
2answers
336 views

Boxed text between pages

I've made boxed text into a manuscript using tikz by following the example in texamples, it works like a charm as long as the box is short enough to fit into a page. \documentclass{article} ...
8
votes
1answer
756 views

mdframed : Bug with page break?

I'm trying to use the package mdframed to handle framed boxes, that allow page breaking when the content of the box is too large. Nevertheless, i encounter the following difficulty : ...
4
votes
1answer
601 views

Conserve the frame in a mdframed box that spans more than one page

I am using mdframed to create big boxes that span more than one page, but they just leave an unframed side at the top and down of the page. Is there a way to solve this? \documentclass{article} ...
25
votes
2answers
857 views

MATLAB like command box

hello i am trying to set up style for script box. so far i got \begin{script*} >> help \end{script*} working and displaying i want final version to look some what similar to this picture ...
13
votes
1answer
528 views

Typesetting a definition

My current set up for type setting definitions is \newenvironment{definition}[1][Definition:]{\begin{trivlist} \item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}} ...
14
votes
2answers
986 views

mdframed and wrapfig

Before starting the question, I apologize for the large pictures. I had to use some long text to demonstrate the problem. To generate something like: I used the following command: ...
5
votes
2answers
314 views

Color pages in specific sections in LyX

To show the difference between my theoretical an practical part, I want to change the background color of the page during practical sections/parts. Until now I used a new paragraph style, which ...
9
votes
3answers
434 views

Rounded box with image and text

I'm trying to create a rounded box with both text and image. The desired result is as this: Where the image is rounded at the left edges. I have managed everything except the the image part using ...
4
votes
2answers
211 views

How to color my (custom) lines/rules in a table contained by mdframed?

As a follow up to my recent question: Now I'd like to put some color on to that line/rule. In the MWE below, \arrayrulecolor{blue}\mycline{1-1} throws an error (undefined control sequence with respect ...
7
votes
2answers
543 views

Excess vertical space in mdframed ending with display math environment

When the mdframed environment ends with an align there is excess vertical spacing at the bottom. I would like to adjust the MyBoxedEnvironment environment such that the vertical space at the bottom ...
5
votes
1answer
172 views

How I can delete title after pagebreak in mdframed box?

How I can delete frametitle after pagebreak in mdframed box? I try to make a box with the title "Summary" by mdframed package. With the code I attach, the title "Summary" appears in the second page ...
4
votes
1answer
82 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} ...
4
votes
1answer
187 views

Captioning an mdframed box without making unbreakable

I would like to a have a caption below my mdframed box (outside the border if possible) which sometimes span across multiple pages. I managed to create a caption several ways but the pagebreaks are ...
3
votes
1answer
161 views

Split mdframed environment occasionally skips page

I'm currently using the mdframed package for a custom environment for my master's thesis. In rare cases, the environment shows some rather strange behaviour — the correctly split environment (i.e. the ...
2
votes
1answer
2k views

How to get mdframed package working correctly?

On a fresh Ubuntu 12.04 64 bits system, I wanted to add the mdframed package to my texlive distribution. After searching in Ubuntu standard repositories without success, I went to the CTAN website to ...
1
vote
1answer
364 views

mdframed digressionarrows style with custom header

Using the mdframed package, I've been trying to figure out how to add an option for changing the header in their digression-environment (example 6 here: ...
7
votes
1answer
741 views

mdframed with tikz method: putting line numbers outside of frame

I want to number the lines in a mdframed environment with the line numbers appearing on the left of the frame, outside of it. \documentclass{article} \usepackage[framemethod=latex]{mdframed} ...
6
votes
1answer
708 views

Textwidth wrong after wrapfigure

I have included a picture with wrapfigure and everything is fine - the problem is that in my next formula environment, the formula is totally wrong! It seems to me, that the width which I set in the ...
5
votes
1answer
404 views

mdframed: Put a line below the frame title and give it a shaded background

I like to use mdframed to make a framed environment with an optional title. The title has to be in its own box with a gray background, like this: I hope that this is possible. MWE ...
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} ...
3
votes
1answer
447 views

Align \item labels at top of mdframed box

By default, enumerate's \item labels align with the top of the text: However, if the text happens to be a mdframed box, the labels align with the bottom of the box which does not look so good: ...
1
vote
0answers
133 views

Why are my margins ignored?

Based on this code, I added a title but now I face the problem that the margins are ignored when I use book or scrbook with the twoside option. \documentclass[a4paper,12pt,twoside]{book} ...
31
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" ...
18
votes
2answers
448 views

How to make mdframed ignore descenders in last line

How can we make mdframed to ignore the descenders of the last line in the calculation of the innerbottomsep. In my eyes there are two reasons to desire this: Inner margin The optical bottom sep is ...
10
votes
1answer
525 views

mdframed with label outside of box

I am looking to do two boxes with mdframed similarly to the following: The first box is easy but I don't know how to place a label to the left of the second box. The positions of the dashed lines ...
9
votes
2answers
344 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, ...
9
votes
1answer
342 views

How to put footnotes in the page where they belong in a mdframed environment

I have a large bunch of text in a mdframed environment, that span more than one page. As it seems reading the documentation, the mdframed environment put every footnotes at the end of the frame, by ...
8
votes
1answer
202 views

mdframed does not split correctly between pages

I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangly across the pages. In this example he prefers splitting, while there is enough space to put ...
5
votes
3answers
465 views

Is it possible to define a multicolumn environment with a background colour

EDIT: I should have given a MWE based on memoir (which I am using) where the inner and outer margins are initially different. I would like the margins to be the same in that new environment. (Inner ...
9
votes
2answers
906 views

Transparent background for mdframed environment?

Is it possible to specify a transparent background colour for the mdframed environment, so that anything which might be underneath will be visible?
6
votes
1answer
409 views

mdframed missing half the frame

Any obvious reason some of the frame is missing here: \documentclass{article} \usepackage{color} \usepackage{hyperref} \usepackage{mdframed} \begin{document} \begin{mdframed} \begin{enumerate} ...
5
votes
1answer
501 views

How to use table in mdframed?

I am working on report format using mdframed and I need to add table inside mdframed. \documentclass[11pt]{article} \usepackage[table]{xcolor} \usepackage{array,ragged2e} ...
3
votes
1answer
68 views

Multiple left margin bars using mdframed package

How can I get multiple left-margin bars using the mdframed package? I can get a single left bar using, e.g. \documentclass{article} \usepackage{mdframed} \begin{document} ...
11
votes
3answers
1k views

Framing section headings

I'm attempting to put a frame around my section headings. I am using the package mdframed which adds functionality to the framed package. It basically draws a box around an object, in an ...
3
votes
1answer
950 views

How to insert title in mdframed?

How to insert title in mdframed? In my example does not work. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[framemethod=TikZ]{mdframed} \begin{document} ...
2
votes
3answers
192 views

Print mdframed footnotes at bottom of page instead of after frame

If there is a \footnote inside an mdframed environment, then I can control, via the footnoteinside=false flag, whether or not I want those footnotes included inside the frame or outside. But even when ...
2
votes
2answers
330 views

Problems with mdframed

I am trying to put a box around matlab code but the bottom of the box sits extremely close to the next line. I try a line break but it does not work. Any ideas? \documentclass[a4paper,12pt]{article} ...
10
votes
1answer
849 views

How to produce a tight box with a fancy border?

I'd like to be able to typeset a tightly-boxed formula with a fancy border. My progress so far has been to produce a box (with mdframed) with the fancy border I want (with tikz), but instead of being ...