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

learn more… | top users | synonyms

23
votes
3answers
673 views

Box with rounder corners, but inverted

I am a long time LaTeX user, and recently I needed something which I could not figure out by myself, so I would appreciate anyones time and help. I need a box with rounded corners, which is easy to ...
0
votes
0answers
416 views

Installed .sty with tlmgr but latex can't find it

I have installed Tex live 2013 Version 3.1415926 and I want to install the package mdframed. My first try was to enter in the terminal tlmgr install mdframed but the terminal responded to me that ...
5
votes
1answer
143 views

Stretchable vertical skip with mdframed

I created an mdframed-based theorem environment as follows: \newmdtheoremenv[outerlinewidth=0pt, leftmargin=0pt,rightmargin=0pt, innerleftmargin=4pt,outermargin=0pt, ...
2
votes
1answer
229 views

How to make a simple framebox with round corners?

I have seen related questions about this one but ever since I tried, none of them worked out. All I want is to make a framebox with a slightly rounded corners with a table inside. I've tried this ...
5
votes
1answer
152 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} ...
4
votes
2answers
172 views

Fading shadow with mdframed

I would like to create an environment like this: which I have created with this code: % % Boxed environment with semi-transparent shadow. % \newlength{\boxw} \newlength{\boxh} ...
3
votes
1answer
105 views

Incompatibility between mdframed and todonotes?

Is there an incompatibility between mdframed and todonotes? For example, try this: \documentclass{article} \usepackage{mdframed} \usepackage{todonotes} \begin{document} \begin{mdframed} x\todo{y} ...
3
votes
1answer
120 views

mdframed incompatible with paralist

Compare mdframed with boxed minipage in the following example: \documentclass[11pt]{book} \usepackage[neveradjust]{paralist}% \usepackage{boxedminipage} \usepackage{mdframed} \begin{document} ...
11
votes
2answers
386 views

mdframed box of fixed minimum height

I would like my mdframed boxes from MyEnvironment to have a minimum total (title+body) height. The height can be greater (if the content warrants it), but not smaller than a certain size. I can ...
4
votes
1answer
101 views

Cleveref doesn't find the label

The following code gives me as reference the section and not the signpost. It is probably a beginner's mistake. \documentclass{article} \usepackage{tikz} \usepackage{mdframed} ...
3
votes
1answer
102 views

mdframed: setting up a global environment

How do I set up a global mdframed environment? Would I add something like this in the preamble: \newtheorem{laws} \mdfsetup{% background = blue!30,% roundcorner = 5pt } } but then I want to be ...
13
votes
1answer
623 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}} ...
7
votes
1answer
256 views

Spacing with framed and mdframed packages

I have a slight problem with the framed package when combined with the itemize environment: \documentclass[parskip]{scrartcl} \usepackage{fancybox} \usepackage{framed} \newenvironment{simpages}% ...
6
votes
1answer
599 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} ...
12
votes
1answer
190 views

Subtitle block in mdframed

I am having a small problem with mdframed.sty. The subtitle block seems to have a 0.4pt frame with the same color of the subtitle background. This causes the left and right ends of the subtitle frame ...
3
votes
1answer
155 views

No page break with tabularx in mdframed

I am writing my master's thesis and I encounter a problem with mdframed environment. I have a mdframed on several page and there is no problem. This frame is only composed with text. I want to ...
2
votes
0answers
184 views

Defining the position of a tabularx environment [closed]

In my report, I use a tabularx environment within a mdframed environment. I don't know why but I have to delete the table environment surrouding my tabularx environment when I want a table in my ...
8
votes
1answer
442 views

Mdframe environnment on multiple page : top margin

I am using mdframedd for examples in my report. The frames are split on several pages. My problem is that on the second page the frame doesn't have any top margin. And this is very ugly. Here is my ...
5
votes
1answer
202 views

mdframed: unable to reproduce the example environment with figures [duplicate]

I used mdframed but I am unable to reproduce the example environment (?) from this primer. The main problem is with figures (graphics, plots), of course. Any help?
4
votes
2answers
243 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 ...
8
votes
1answer
174 views

Why is mdframed inserting a blank page?

I'm using the awesome mdframed by Marco Daniel and I'm having some problems with pagination. Sometimes it will insert a blank page, depending on the exact height of the content. Here's the smallest ...
1
vote
1answer
222 views

Styled TOC not compiling

Done Major Edit, to make the question clear. Removing the last chapter line works. But keeping it makes latex go crazy. It prints numbers till 65536.. and errors: ** ERROR ** Page number 65536l too ...
2
votes
1answer
66 views

Ho do I draw a line on the INNER margin in a double-sided document?

With the mdframed package one can draw nice lines on the left or right of the text. For example: \documentclass[a4paper,twoside,11pt]{article} \usepackage[framemethod=TikZ]{mdframed} ...
4
votes
1answer
279 views

mdframed with tikz-framework: roundcorner-keyword seem not to work completely

I got a similar problem to How to draw frame with rounded corners around box I try to make round boxex for a poster presentation, I could nearly succeed using mdframed-package with tikz-option. But ...
6
votes
0answers
281 views

How to create a framed proof attached to a theorem?

I am trying to create a customized "proof" environment attached to a theorem. It looks like this: So there is first the theorem, and then a gray bar starts on the inner margin. It ends, when the ...
2
votes
1answer
150 views

Not breakable box in mdframed package

In my previous post, title of a colored box, I've tried the first answer I was given typing the following code: \documentclass[12pt,a4paper,titlepage,twoside,openright]{book} ...
2
votes
0answers
82 views

Custom environment splitting between pages [closed]

I created a custom environment for theorems using mdframed package: \newtheorem{theorem}{Theorem} \newtheorem{twierdz}[theorem]{Twierdzenie} \newenvironment{twierdzenie} ...
5
votes
1answer
177 views

list of and add to toc mdframed objects

Bellow is some developed example solution I asked here tikz and mdframed + shadow drop and shading \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[T1,T2A]{fontenc} ...
4
votes
1answer
337 views

tikz and mdframed + shadow drop and shading

I'm interesting in Boxed text between pages 2nd version: exercise box with mdframed. Ho to add to this : Vertically shaded frametitle and Vertically shaded box with dropping shadow? Yes i have seen ...
3
votes
2answers
529 views

New environment using mdframed

I'm trying to write a collection of problems and their solutions for my course's textbook. I've created an exercise environment. I'm currently using the mdframed package to create a leftbar that spans ...
2
votes
1answer
131 views

Eliminate overfull hbox warning for mdframed frame that goes into margin

I like my mdframed frames to go into the margin, so that the text is not effected, by using a negative leftmargin and rightmargin. However this results in an Overfull \hbox (0.43031pt too wide) ...
7
votes
1answer
120 views

mdframed conflicts with \setmainlanguage{arabic}

I hope someone can help me with my problems. In the code given below, the mdframed width is exceeding the page width. This problem is due to \setmainlanguage{arabic}. If I set the main language as ...
5
votes
2answers
379 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 ...
1
vote
2answers
210 views

Need to left align referenced image in mdframed Info box

I have been successful at creating a set of Warning, Note, and Info boxes using mdframed package, and they look very good. However, I need to left align an inserted image rather than have it on its ...
3
votes
1answer
83 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} ...
5
votes
2answers
253 views

How to draw frame around side captioned figure

I want to draw frame around a side captioned figure. I have created side captioned figure using sidecap package and using \begin{SCfigure} \end{SCfigure} environment. I have tried mdframed package but ...
5
votes
2answers
388 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} ...
7
votes
1answer
196 views

Single/Double side environment with different backgrounds

I'm having trouble aligning some of the elements. I would like align Check Box and Cross Box to be same size so that they look nicer below is what i got so far. Also it would be great if they can ...
25
votes
2answers
928 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 ...
3
votes
1answer
184 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 ...
7
votes
1answer
164 views

mdframed being cut across pages

Is there a way to prevent this (see image) from happening when you are going onto another page?
1
vote
1answer
132 views

Algorithms in mdframed

Now that I converted all my theorems to mdframed, I'd like a consistent layout for my algorithms as well? What ways are there to typeset pseudocode algorithms in mdframed? So far I've been using ...
3
votes
3answers
234 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
1answer
291 views

Include theorem name from thmtools into mdframed title box

mdframed is nice for controlling the outer layout of theorems. thmtools on the other hand can take care of a number of other things great and small, in particular the detailed formatting of the title ...
9
votes
1answer
161 views

Framed mdtheorem with qed symbol at the end

I'm trying to include a $\blacktriangle$ at the end of a framed environment using the mdframed package. However, my code is somehow not working properly. Let me explain what I'm doing: ...
2
votes
2answers
414 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} ...
1
vote
0answers
29 views

mdframed in two column book vertical alignment problem (first page only) [duplicate]

I am trying to align the columns of the first page but without success into the mdframed. Any ideas? \documentclass[11pt,a4paper,twocolumn,twoside]{book} \usepackage{lipsum} \usepackage{mdframed} ...
7
votes
1answer
173 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 ...
6
votes
1answer
601 views

Using mdframed style within \declaretheoremstyle to change title

I am using thmtools to create an example environment using \declaretheoremstyle and \declaretheorem. I am also modifying the style using the mdframed key, to create a frame, shade the background of ...
7
votes
1answer
185 views

Interaction with multicol and mdframed results in misaligned rows

This works fine with TeXLive2011 and was working fine with TeXLive2012 until I recently updated the packages. So with TexLive2011, this produces: but with an updated TeXLive2012 this yields: ...