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

learn more… | top users | synonyms

1
vote
1answer
19 views

mdframed innertopmargin should be same to next page

I have using mdframed and expecting output is same innertopmargin space is continued to next page: My MWE is: \documentclass{book} \usepackage{mathptmx,lipsum,mdframed,showframe} ...
3
votes
1answer
28 views

mdframed breaks vskip option in quoting

Csonsider the following MWE. Without the call to \surroundwithmdframed, the vskip argument to quoting works. With it, it doesn't. Can anyone suggest a workaround or fix? Thanks. ...
2
votes
1answer
44 views

TikZ mdframed environment: close box at end of page and continue on next

I used the Excursus environment as a template to create my own box like this: \usepackage[style=1,leftmargin=0pt,rightmargin=0pt,framemethod=TikZ]{mdframed} \newenvironment{boxtype1}{% ...
1
vote
1answer
63 views

top of the page ribbon box in mdframed

I would like to expect the framebox (like 1B) in the top of the each page when exercise environment is started to ending the exercise environment (i.e., page 2 and 3 only and not page 1, because ...
1
vote
2answers
54 views

mdframed rounded corner on left side only

I would like to get the roundered corners on only leftside instead of top, bottom, right, bottom. How to achieve this. \documentclass{book} \usepackage{xcolor,lipsum} \usepackage{mdframed} \mdfsetup{ ...
1
vote
1answer
72 views

image height reduce/increase automatically

I have the below boxed environment. The image should place in the marginpar width. When my environment is going long the image should automatically increase upto my enviroment, when is going to low it ...
2
votes
1answer
65 views

mdframed top box fixing using tikz

How do get the top box value in 1-3 and 3(1/2) in mdframed. Please refer screenshot below: ![enter image description here][1] my MWE is: \documentclass{article} \usepackage[tikz]{mdframed} ...
2
votes
1answer
71 views

This Question environment with XeLaTeX

I am still converting my pdflatex codes to XeLaTeX. Minimal case \documentclass{article} % The Question -environment works with these two lines % \usepackage{amsfonts, amssymb, textcomp, mathtools, ...
3
votes
1answer
53 views

Split roundered corner using mdframed

I would like to create splitted rounder corner with separate frametitle (attached below) using mdframed or mdframed with tikz. My MWE is: \documentclass[10pt]{article} \usepackage{amsmath} ...
3
votes
3answers
135 views

Enclose Code in Latex with single user-defined command

I am using the following to enclose my code in a box and I like the formatting but I have the problem that everytime I have to write a lot of stuff. Before the begin{document} I have defined: ...
0
votes
0answers
24 views

mdframed package bug version 2.0?

I've found that using mdframed package v2.0 is having an error: see error below \DeclareListParser*{\mdf@dolist}{, } What should be the correct version that has no ...
4
votes
1answer
80 views

How to insert title in innerrightmargin using mdframed

I have tried to insert title in innerrightmargin using mdframed and found How to insert title in mdframed? this example. But this is only for top of the frame. My MWE is: \documentclass{article} ...
2
votes
1answer
26 views

Force heading and mdframe onto same page

I use mdframed to quote the problem set. This is very often done at the beginning of a section, which gives occasionally breaks over two pages, like so: This seems neither useful nor beautiful to ...
5
votes
1answer
60 views

Combine todonotes with mdframed to highlight paragraphs and write notes

I am trying to combine todonotes with mdframed to create a unifying command that allows to write todos and and highlight paragraphs at the same time. The syntax is ...
4
votes
2answers
47 views

Adding a Caption to \lstnewenvironment using \mdframed

I found on the Internet the piece of LaTeX code I really liked : \documentclass{article} \usepackage{listings,mdframed,xcolor} \definecolor{codeBackground}{rgb}{0.9, 0.9, 0.8} ...
3
votes
1answer
48 views

Boxes with two different border widths

I'm making a box with text inside. For it I use the package mdframed. Essentially I want a box with the left border width 2pt and the rest of the borders width 1pt. What I've got so far: ...
2
votes
0answers
37 views

Framed theorem environment spread across pages

I wanted to put a vertical line in front of examples to make them easier to distinguish from the regular text. For this I used mdframed, and it mostly seems to work. However, if an example happens to ...
4
votes
1answer
33 views

Why is the space underneath my theorems not showing up?

I styled my amsthm theorems with mdframed. I tried to add some space before and underneath my theorems with skipabove and skipbelow as stated here on page 6. \documentclass{article} ...
5
votes
1answer
64 views

how to indent the first line of an mdframed environment?

i've been requested to indent the first paragraph in an environment defined with mdframed. i've looked at the question Paragraph indenting in an mdframed environment, and while it provides a ...
4
votes
1answer
37 views

How to prevent my theorems from breaking off at a pagebreak?

I styled the theorems in my document a bit, using the mdframed package. I'm glad with the result, but the frame sometimes breaks off incorrectly. I've created a sample to show you what's going wrong. ...
2
votes
1answer
123 views

To make Question environment Discussion environment

About minimal thing developed originally mostly by Gonzalo Medina in earlier discussions of mine (one of them here) \documentclass{article} \usepackage[framemethod=tikz]{mdframed} ...
2
votes
1answer
121 views

Background colors with mdframed: is this behavior normal?

Introduction With the help of this answer, I tried to define a semi-transparent background for a theorem-like environment. Here is my solution: \documentclass{article} ...
1
vote
2answers
80 views

How to create framed Text with background color

The example picture is what I desire to create in Latex. I have managed to create something similar but without the rectangular gray background. I am also a total rookie to latex. I would look ...
2
votes
1answer
67 views

mdframed margins

I'm new using mdframed package and I stumbled upon with \mdtheorem so I created a definition and I want to use it at the beginning of the page, but the problem is that there is a space in blank ...
5
votes
1answer
57 views

Weird spacing with mdframed

I'm using mdframed to make a framed theorem environment but I'm having some trouble with the spacing below the theorem. This is my MWE: \documentclass{article} \usepackage{amsmath} ...
1
vote
2answers
106 views

mdframed, TikZ and zigzag decoration [duplicate]

I would like to have a zigzag decoration around a box created with mdframed. Minimal example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} ...
7
votes
1answer
109 views

Forbid page break after the title in mdframed

I use mdframed for my theorems like this \mdfdefinestyle{theoremstyle}{% %adjustable lengths %inner margins innertopmargin=\topskip, % outter margins skipabove= 0.1in, skipbelow= 0.1in, ...
3
votes
1answer
67 views

How to combine mdframed and tabu

\documentclass[a4paper,10pt]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{multicol} \usepackage{tabu} \mdfdefinestyle{graybox}{ innertopmargin=2mm,% innerbottommargin=2mm,% ...
3
votes
1answer
48 views

mdframed cannot reduce margin

\documentclass[a4paper,10pt]{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \usepackage{multicol} \mdfdefinestyle{graybox}{ splittopskip=0,% splitbottomskip=0,% ...
4
votes
2answers
249 views

Break Lines in minted environment

Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package. To be quite frank, ...
3
votes
1answer
83 views

how to use several style for boxed theorem and remark with mdframed?

I have modified this code Issue with mdframed package in order to satisfy my taste: \documentclass[a4paper,10pt]{memoir} \usepackage{xcolor} \usepackage[framemethod=tikz]{mdframed} ...
3
votes
1answer
78 views

New environment based on two existing environments (mdframed, spverbatim)

I would like to define an environment that puts verbatim text using the spverbatim package into a frame defined by the mdframed package. Here's my (naive) approach: \documentclass{scrreprt} ...
2
votes
0answers
51 views

braces marks with \framed & \tikz

I'm trying to mark some paragraphs with boxes, braces, brackets or parentheses coupled with notes in margin… My first test was using \makebox & minipage according to this discussion as you can see ...
2
votes
1answer
66 views

Misnumbering of examples

I am trying to use the mdframed package to create a boxed numbered Example environment. This is my first foray into environment definition, so I may be making a rookie mistake. Why doesn’t the ...
0
votes
0answers
28 views

mdframed with calculated innertopmargin

I would like to define my own mdframed style where the innertopmargin and innerbottommargin are the same. First I tried to get zero margin: \newmdenv[ hidealllines=true, innertopmargin=0em, ...
4
votes
1answer
78 views

\newmdtheoremenv environment without numbering without caption

I would like to make a frame around content that breaks across pages. For that I use mdframed package. Note that in that frame I also have \section and \subsection markers (because I am writing a ...
4
votes
0answers
89 views

Wrong vertical alignment using mdframed with tight margins

When using the mdframed environment with absolutely tight margins (all set 0pt), there is too much negative vertical space of split md-frames that are placed at the top of a page. To illustrate this, ...
1
vote
0answers
21 views

How to continue a framed box which is defined in floating environment [duplicate]

I have defined a floating environment. It defines a framed box using \mdframe. Here is the code I used. \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \usepackage{caption} ...
2
votes
1answer
68 views

mdframed environment not breaking over pages

I apologise in advance because I cannot provide an MWE. I am writing a book with a custom (Springer) format and I wish to use mdframed to provide an example environment. I adapted an example from the ...
8
votes
2answers
93 views

Package csquotes does not seem to work within a mdframed box defined via a macro

If I define a macro which uses a mdframed box, this seems to disable csquotes (red box). But using mdframed directly (i.e., without defining it via a macro), then the csquotes package can do its job ...
2
votes
0answers
27 views

Custom table with mdframed and parcolumns: LaTeX Error: Something's wrong--perhaps a missing \item

I am building my own table environment using parcolumns and mdframed. \documentclass{report} \usepackage{parcolumns} \usepackage{mdframed} \newenvironment{mytable}[1] ...
0
votes
1answer
72 views

Html color in mdframed

I want to make mdframed with linecolor set using HTML color model. How can i do it? I want something like \begin{mdframed}[linecolor=\color[HTML]{FF0013}] text \end{mdframed}
1
vote
0answers
28 views

Cannot load the “pstricks” option in mdframed package [duplicate]

I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes: ...
3
votes
1answer
58 views

skipbelow does not work for combination of mdframed and thmtools

I am trying to alter the space below a theorem box, which is created using thmtools and mdframed. \documentclass{scrartcl} % % \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} % ...
3
votes
1answer
73 views

Prevent double-frame with mdframed/tikz

I want to create a digression using mdframed. I want it to have rounded corners, so I load it with option [framemethod=tikz]. Because of this, the problem arises that the standard framebox I use for ...
4
votes
2answers
144 views

To label Question environment

My minimum code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{ans}{ linecolor=cyan, backgroundcolor=yellow!20, frametitlebackgroundcolor=green!40, ...
7
votes
2answers
238 views

How to add “continued from previous page” hint to page breaking **mdframed**?

Follow-up question to the accepted answer here and here. The latter seems promising, with the caveat that it doesn't work. I'm using mdframed with tikz - but without "theorems". However, I too would ...
2
votes
0answers
97 views

Remove thin border around mdframed title

I get a thin border around the title of a mdframed environment which has the color of the actual content area: I want to get rid of this thin red line around the title. MWE: ...
2
votes
1answer
32 views

Printing value of a unique counter outside mdframed

I have defined commands for a unique counter, i can retrieve the values if the counter unique name is not defined inside mdframed, what could be the problem, i cant seem to retrive the value if ...
1
vote
1answer
141 views

How to make an environment same as itembox environment in ascmac package by using mdframed package

I want to make the output same as what I can make from the code shown below. But for some reasons (e.g. some frames extend to multiple pages etc.), I do not want to use ascmac package but mdframed ...