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

learn more… | top users | synonyms

0
votes
0answers
22 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
83 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 ...
2
votes
1answer
37 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
29 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
1answer
31 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} ...
0
votes
0answers
16 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
32 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
613 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*{} ...
2
votes
1answer
28 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
704 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
42 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
34 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
45 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
80 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
53 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} ...
0
votes
0answers
43 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
15 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
82 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
30 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} ...
2
votes
1answer
36 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} ...
2
votes
1answer
69 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
30 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
41 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
51 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
36 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, ...
0
votes
1answer
51 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
37 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
60 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
55 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
46 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
68 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
60 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
41 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: ...
3
votes
1answer
92 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: ...
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 ...
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
64 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. ...
2
votes
0answers
20 views

Automatically Detect When in an Mdframed frame title

I would like to be able to detect when I am within a frametitle={} of an mdframed environment. One way is to manually set a flag within the \frametitle={}, but wondering if there is some other way to ...
3
votes
1answer
50 views

Why the command rightmargin=5cm, and leftmargin=5cm, in {mdframed}‎‎ package not work in book style?

I want create frame with custom left and right margin in book style with this command:(When I use article style the output is good) \documentclass[11pt]{article}‎ % ‎‎ ...
0
votes
0answers
25 views

How can I change figure size in mdframed environment with the following MWE? [duplicate]

I am not able to scale down the figures in the document below. I have tried some options, e.g. \includegraphics[scale=0.5] This reduces the frame but not the figure. Is there anything I can do in ...
0
votes
0answers
61 views

How can I change figure size in mdframed environment?

Alenanno helped me with the code here Using multicol for framed figure to insert figures in article document class using mdframed environment. This works fine for me, however I have not been able to ...
2
votes
1answer
57 views

Mdframed as Chapter Title

I am trying to compile exercises into on sheet of paper each, and treat the Exercises as Chapter. And then I will \begin{enumerate} \item Hi Mom \item Hi Dad \item Hi there \end{enumerate} ...
3
votes
2answers
83 views

Including figures in custom environments.

In my preamble I have the following custom environment that is counted. \newtheorem{exmp}{Example}[section] When I call this in the text I always write the following piece of code, \begin{exmp} ...
1
vote
0answers
61 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 ...
3
votes
1answer
69 views

List of Boxes Detail

I was wondering if someone knows how to "tell" LaTeX to print an Index of Boxes ("Recuadros" for me), in a similar way to the regular Index of Tables. In the last case there is an extra space between ...