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

learn more… | top users | synonyms

6
votes
4answers
1k 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 ...
4
votes
2answers
300 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} ...
28
votes
3answers
524 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 ...
20
votes
3answers
5k 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 ...
5
votes
2answers
371 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} ...
19
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
4k 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
460 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
683 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
345 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
526 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
433 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 ...
8
votes
1answer
827 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
641 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
916 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
600 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
1k 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
368 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
485 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
238 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
569 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
149 views

Long frames in mdframed

I need to use the mdframed package with frames extending many pages, e.g. more than 20 pages.. Consider the following code: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} ...
5
votes
1answer
178 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
201 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
223 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
181 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 ...
3
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 ...
3
votes
1answer
1k 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
1answer
120 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, ...
1
vote
1answer
388 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
793 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
813 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
427 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
83 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 ...
4
votes
1answer
109 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
471 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
146 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} ...
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" ...
8
votes
1answer
246 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 ...
18
votes
2answers
475 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
567 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
420 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
357 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
399 views

“note environment” with mdframed

Here is what I have: And here is what I would like: The code to get what I currently have: \documentclass[a4paper, 11pt]{article} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...
7
votes
1answer
172 views

How to remove space surrounding a colored theorem box?

This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
5
votes
3answers
488 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
992 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
556 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
548 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} ...