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

learn more… | top users | synonyms

1
vote
0answers
22 views

Using 4 column page and mdframes! No correct view

I'm writing a summary and I'm using a 4-column page with a lot of mdframed boxes (boxes that contains theorems and other stuff). I use also different files and I merge them like this: \begin{...
2
votes
0answers
38 views

How to add right bar in proof

when i use mdframed the right bar is proof double line: \documentclass{book} \usepackage{xpatch,amsthm,xcolor} \usepackage{color} \usepackage[framemethod=tikz]{mdframed} \usepackage{polyglossia} ...
0
votes
1answer
44 views

Mdframed for theorems: how to make fonts similar to amsthm and change title format?

I am making a custom book style for my thesis, and I came up with a style for the theorem environments that I like, as you can see in the image below. However I have two problems: I would like the ...
3
votes
2answers
45 views

Annotated Box around Figures and Tables

I have a Latex document where I need to put Figures and Tables in boxes. This can be accomplished with e.g. fbox, framed or mdframed. However, I need a solution that also allows me to annotate the box ...
0
votes
1answer
33 views

Footnotes in multipage environments

I'm in conflict with how mdframed handles footnotes inside environments that span multiple pages. Consider this MWE \documentclass{article} \usepackage{lipsum} \usepackage[framemethod=tikz]{...
2
votes
1answer
33 views

Alterantive to the mdframed package for proper footnotes?

I have several pages of text in my book that i want to put in a box with a lightgrey background. I was trying to use mdframed, and lookswise it is what i wished for. However, I use (several) footnotes ...
2
votes
1answer
119 views

mdframed: how to design “exercise” box

For theorems and a like I use mdframed package. For theorems, definitions I use standard design, meanwhile for examples and exercises I rather to have more exotic one ... So far I succeed to make ...
1
vote
1answer
76 views

Code involving mdframed and scrlttr2 that compiled with TL 2014 but does not compile with 2015

The following code used to compile with TeX Live 2014, but does not compile with TeX Live 2015. I now get the error: ! Missing \endgroup inserted. <inserted text> \endgroup l....
2
votes
1answer
47 views

Text boxes that cover several pages

I am trying to faithfully reproduce the first section of the standard UK Police Witness Statement Form, known as an MG11. I am having difficulties lining up the boxes for the front page with the box ...
1
vote
1answer
52 views

Footnote within a double column float

I have a double-column float that is used to insert a full-page box in a document. However, when I place footnotes in this box, the footnotes appear within the box (which is desired) but not in a ...
0
votes
0answers
31 views

mdframed top of page

Ok, so I've been trying to find a solution for this to no avail: I want to place a colored text box at the top of my document with mdframed, and I want there to be no margin between the top of the ...
2
votes
1answer
44 views

Put 1 footnote's text (mark inside Mdframe) at the bottom in that Mdframe, but below other footnotes' texts + after extra seperation ruler

You can see, in the MWE below, that the quote carries a title Serious title of infamous quote. I would like to have a footnote-mark right next to that title (that is not so difficult you might say). ...
4
votes
1answer
34 views

Using the mdframed package with the quoting package affects the position of enumerate numbering

In the following MWE, the second number in the enumerated list, namely 2., is moved inwards. This is clearly caused by use of the \surroundwithmdframed command. Is there some way to fix this while ...
0
votes
0answers
22 views

Reverse Box Rotate Box in Mdframed

This is a copied version from somewhere that no one no longer remembers. I am trying to make a reverse box as an answer box for math exercises. It works well except it does not span across pages. I ...
3
votes
1answer
40 views

Space below the box in mdframed package doesn't appear

I am using the mdframed package along with the options skipabove and skipbelow and although the vertical space above the box is appearing, as it should, the space below does't appear! What am I doing ...
9
votes
1answer
662 views

Package mdframed vertical space difference

In the example below I used mdframed to surround my text with a box. The problem is that the vertical space above is different than the space below the box. I found one way to solve it with \vspace*{} ...
3
votes
1answer
34 views

Change Formatting of \subsubsection just once?

For a part in a subsection of my book I use a \begin{mdframed}[backgroundcolor=lightgray], which is a grey box aroound a part of my text. I would like the subsubsection title in the box, and only in ...
12
votes
1answer
716 views

mdframed does not split correctly between pages

I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangely across the pages. In this example he prefers splitting, while there is enough space to put ...
1
vote
2answers
64 views

Framed paragraph with double-line frame

Regarding various ways but most requires rigorous settings to embed a paragraph of words in a box or a frame with double-line box, I try to use a single commend to acquire the effect. However, ...
1
vote
0answers
39 views

How do I format my theorem environment to fit the itemize?

I study by making summaries of books, and, in order to prevent constructing a narrative, I use the itemize environment to break up chapters, sections and subsections into the essential information. ...
1
vote
2answers
54 views

Option clash for [framemethod=tikz]{mdframed} & [draft]{graphicx} | same clash for [demo]{graphicx}

The following combination of options and packages gives an Option clash, and thus prohibits anybody from compiling the code: \usepackage[framemethod=tikz]{mdframed} \usepackage[demo]{graphicx} (or \...
7
votes
2answers
85 views

Fixing overfull \hbox with mdframed containing an equation

When creating a boxed environment with mdframed, I ran into an issue with a line with an equation, that also happens to be the first line of a definition. Is there a way to fix the problem ...
0
votes
1answer
40 views

Adding a second frametitle separated from the first in an mdframed environment

Could you help me in adding a second frametitle into the mdframed environment? It's for the citation and it should be something like 15pt / 20pt further to the right than the first title of the ...
2
votes
0answers
62 views

Collect text 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 ...
0
votes
0answers
25 views

Border in PDF not always visible (depending on zoom), mdframe

I have the following code: \documentclass[a4paper,12pt,headsepline, listof=totoc, bibliography=totoc]{scrreprt} \usepackage[ngerman]{babel} \usepackage[utf8]{inputenc} %Definitionsumgebung \...
2
votes
1answer
54 views

Spacing: Align vs. Equation

Can anybody explain where the extra spacing comes from when using an align instead of a equation? And does anybody know how to remove it? \documentclass{article} \usepackage{amsmath} \usepackage{...
0
votes
0answers
52 views

Problem with mdframed and pdflatex package MikTex

Recently, I have installed mdframed package from MikTex Package Manager Then a problem occurred. When I try to typeset my program, a window appears and says that: "The application failed to start ...
0
votes
0answers
16 views

Is it possible to visualize a page break in a mdframed environment?

I'm using mdframed to style my code listings. I use minted to realize the code listings. My question is, if there is an easy way to visualize the page break of mdframed. I tried to sketch what I try ...
3
votes
1answer
94 views

Adding an “mdtheorem” (i.e. with frametitle) to a List of Theorems

I'm having trouble with either formatting newmdtheoremenv environments, or adding mdtheorem environments to a table of theorems, depending on how you look at it. My MWE: \documentclass{article} \...
5
votes
2answers
31 views

Is it possible to exclude all theorems of a type from compilation with a single command?

I have a theorem type called application. It is used to list applications of concepts being discussed in a book. I want to exclude them from a compilation in order to generate a preliminary book that ...
8
votes
1answer
2k views

Margins of mdframed without any effect

This code \documentclass[]{scrbook} \usepackage{mdframed} % \usepackage{boxedminipage} \begin{document} \noindent \begin{boxedminipage}{1.0\textwidth} Box of 100 \% width \end{boxedminipage} \...
3
votes
1answer
41 views

How to make mdframed aware on odd/even page?

For theorems and alike I use mdframed package. So far I use solutions collected here on SE: \documentclass[twoside]{book} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
1answer
87 views

LaTeX - mdframed shadow color/opacity

I currently have a problem with the mdframed shadow color. If I set the shadowcolor parameter to black, the shadow will actually be grey (I guess because it is not fully opaque...), as seen on the ...
10
votes
2answers
141 views

Alignment of environment inside enumeration

I defined an environment to add notes, i.e. pieces of text that are not strictly relevant to the question at hand but perhaps still interesting to read, via \usepackage[framemethod=tikz]{mdframed} \...
0
votes
0answers
34 views

long remark box

I have the following remark box. However, the text that I'd like to add in it could fit in 2 pages. \NewEnviron{myremark}[1] {\par\medskip\noindent \begin{tikzpicture} \node[inner sep=0pt] (...
2
votes
3answers
46 views

strange interaction (bug ?) between mdframed and listings

I have a weird behaviour when I try to include some lstlistings inside a mdframed box. Most of the time, it works as expected, but under some conditions, I get incorrect output, or even a latex error (...
2
votes
1answer
78 views

Is it possible to set the title for an mdframed newmdenv without specifying the frametitle key

I want to be able to invoke a mdframed box and specify a title without using the frametitle=Title syntax: I want to write \begin{mdframedbox}[Title] ...content here... \end{mdframedbox} ...
0
votes
0answers
37 views

aligning two mdframes extended over pages side by side

I want to align two mdframes extended over multiple pages side by side. Following is my code. Please help me. Thanks in advance. \documentclass[11pt]{article} %\usepackage[usenames, dvipsnames]{...
0
votes
1answer
53 views

\addxcontentsline causes empty to part of mdframed box before page break

I’m using mdframed to surround an own environment called {myenv} (for this example). And this environment is setup as a trio list and uses \addxcontentsline to write a list of these environments (I’m ...
3
votes
2answers
44 views

Manual Labelling and Cross Referencing in mdframed

Question is asked after the MWE. \documentclass[10pt,a4paper]{article} \usepackage{amsmath,amsfonts} \usepackage[framemethod=tikz]{mdframed} \usepackage[colorlinks=true, linktocpage=false]{hyperref} \...
3
votes
1answer
63 views

mdframed breaking pages in weird places

I defined a new environment which puts the frame title in the middle of the frame \newenvironment{coloredframe}[2]{ \mdfsetup{ hidealllines=true, leftline=true,topline=true, ...
2
votes
1answer
62 views

mdframed and skipbelow

There are many questions online concerning this issue of skipbelow of the mdframed package. For me, this skipbelow issue is not resolved. The version of the mdframed package on my system is: ...
1
vote
0answers
49 views

Footnotes on the current page with mdframed

Is there a way to force a footnote to be on the current page when I use a multi-page mdframed box ? With this box, I must use the pair \footnotetext/\footnotemark. Currently, I used this next code. ...
4
votes
1answer
69 views

Using mdframed to format index entry

I am trying to use an mdframe to format an index entry. If I uncomment the \def\UseMdframeForFormatting{} in the MWE below (which attempts to use an mdframe), then I get the error: Use of \@index ...
1
vote
1answer
61 views

Tabular cell alignment

I feel like this is a noob question, but I've been busting my chops trying to find an answer to this. I'm trying to create a table with two side by side paragraphs. They don't appear side by side ...
2
votes
0answers
44 views

multicol is creating weird behavior by leaving almost-blank pages

I am using the multicol package to create a three-column formula sheet. I am also using the mdframed package to write theorems, definitions, etc. in differently colored boxes. Here is the result: ...
4
votes
1answer
111 views

How to renumber a theorem environment with mdframed package?

I have the next document, which compiles fine. I want to change the numbering of theorems according to the number of section or chapter (view image). I wrote: \newmdtheoremenv{theo}{Theorem}[...
8
votes
2answers
1k 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 article?...
2
votes
1answer
32 views

How to insert a paragraph (which works only in the “ltxmdf” class) into a class “book” document?

I have the next document (in ltxmdf class ), which compiles perfectly (view image). I want put in a document book class. ¿is posibble?. I've already tried but get 4 errors. How do I change the ...
1
vote
1answer
65 views

How can one bound a selection of items (as below) using a pair of vertical parallel lines?

The following represents the elements of a theorem which I want to highlight from start to finish between a pair of vertical parallel lines. A block of text. An equation - not necessarily numbered. ...