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

learn more… | top users | synonyms

1
vote
1answer
58 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 ...
1
vote
0answers
19 views

blank part appears in middle of mdframed and minted

I am having a layout problem with latex, A blank space appears when i execute this code: El algoritmo inicial utilizado con threshold simple aplicaba un thresh de 25, ya que se ha comprobado que a ...
2
votes
1answer
36 views

it possible to put mdframed environment inside tabular environment?

I try to use colored framed boxes inside tabular environments. Is it possible to used "mdframed" environment for it? Unfortunately, the code below does not work (it gives: «! LaTeX Error: Something's ...
0
votes
1answer
38 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]{...
5
votes
2answers
34 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 ...
3
votes
0answers
113 views

Automatic mark my text with margin braces without using box

I use the tcolorbox or mdframed advantages for several months to mark my text automatically, according to Gonzalo Medina tips in question Automatic margin curly braces text on multiple pages. But I ...
10
votes
1answer
1k views

Issue with mdframed package

mdframed package creates a beautiful box around the content. And it has the capability to break between pages as in the image below I have done the decoration of getting the concept 5 : algebraic ...
1
vote
1answer
60 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 ...
2
votes
0answers
65 views

Suggestions for a professional LaTeX book template [closed]

I recently discovered LaTeX and have been impressed by how powerful it is. I formerly used DocBook for all my writing, but after a Linux seminar, saw the wisdom in using LaTeX. I started using the ...
2
votes
1answer
42 views

Box with dashed border

How can I modify the definition below to get an unfilled box with thick dashed lines around it and rounded corners? I don't want it to be numbered either. \newmdtheoremenv[outerlinewidth=2,...
1
vote
0answers
16 views

Innertopmargin space for mdframed break page

I have using mdframed and expecting to set the innertopmargin space for the continued next page, but in my \mdfsetup, innertopmargin=20pt only work for my first dashed box rather than the break page ...
1
vote
0answers
26 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
39 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} ...
3
votes
2answers
50 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 ...
2
votes
1answer
42 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
126 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
52 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 ...
0
votes
0answers
36 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
46 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
37 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
23 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
681 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
734 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
72 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
42 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
69 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
92 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
63 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
29 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
55 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
54 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
97 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} \...
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
43 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
96 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
48 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
111 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} ...
1
vote
0answers
40 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
53 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
65 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
66 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
50 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. ...