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

learn more… | top users | synonyms

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 ...
3
votes
0answers
112 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 ...
2
votes
0answers
63 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} ...
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 ...
3
votes
2answers
48 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
41 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
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 ...
4
votes
1answer
36 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 ...
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 ...
2
votes
1answer
45 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). ...
1
vote
2answers
71 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
66 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
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
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]{...
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 ...
0
votes
0answers
53 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 ...
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 ...
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 ...
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 ...
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} \...
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
107 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
51 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} \...
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. ...
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, ...
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
50 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
133 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}[...
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
66 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
21 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
63 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}‎ % ‎‎ ‎‎\documentclass[11pt,twoside,...
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 e....