Questions tagged [mdframed]

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

77 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
1k views

Avoid pagebreak in mdframed environment

I created a document with two columns which contains almost exclusively mdframed environments. In general, splitting up the frames over the columns or a page is welcomed and works. However, situations ...
4
votes
0answers
437 views

Mdframed: negative top margin with page break skips a page

I am using the development version (1.9d) of the mdframed package to customize the proof environment in the following way. I wish that a line runs down from the word "Proof." and that the text of the ...
3
votes
0answers
37 views

Package conflict to generate page break: mdframed and exercise

I'm trying to write a text box inside an exercise environment. Unfortunately, this prevents mdframed to break among pages. I want to obtain mdframed to work inside the exercise environment and get ...
3
votes
0answers
67 views

Correcting formatting for framed theorems

I have been using the following code to create overhang for my theorems (and other theorem-like environments) for a while now. \documentclass{article} \usepackage{amsthm} \usepackage{mdframed} \...
3
votes
0answers
299 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, ...
3
votes
0answers
124 views

Collect 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 ...
2
votes
0answers
52 views

mdframed with page break

I am using mdframed in my document. However, when a page break happens, for example when LaTeX decides to insert one before a paragraph starts, mdframed does not complete the frame to cover the whole ...
2
votes
0answers
82 views

How do I get a definition and theorem environment like these?

I tried using the mdframed package but I failed, how can I get that output?
2
votes
0answers
50 views

Shade text background without affecting mdframeds or tcolorboxes

I have some text with tcolorboxes interspersed with normal paragraphs. Everything looks lovely so far, even when the tcolorboxes have to break across pages (using the breakable option). However, I ...
2
votes
0answers
221 views

Sidenote in mdframed environment, Tufte-LateX

I'm looking for a way to put sidenotes in mdframed environment on Tufte-LaTeX. Text would be refered to inside the box, and the note lying in the margin. I have already found a fancy way to do an ...
2
votes
0answers
205 views

mdframed: continuous background for adjacent blocks

Is it possible for multiple mdframed blocks to have a contiguous background and border if they are next to each other? Here's an example: These blocks are one after the other in code. They appear ...
2
votes
0answers
98 views

Include icon as default in mdframed

Problem: Not being able to create a generic solution that includes a Font-Awesome icon as default for a frametitle using mdframed. Minimal Working Example (MWE): \documentclass{scrreprt} \...
2
votes
0answers
263 views

no line breaking in mdframed with geometry package

I am trying to include a python code (within a colored mdframed box) into my tex file. However, I noticed that when I use the geometry package simultaniously with mdframed and fancyhdr, two things ...
2
votes
0answers
109 views

How to cite within mdframed using tufte-book

I am using tufte-book and mdframed. When I try to use \cite inside the theorem environment I created with mdframed I get errors of the sort "Missing number, treated as zero...". Is there a way of ...
2
votes
0answers
145 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. ...
2
votes
0answers
423 views

mdframed forces new page in the middle of a frame, solved by \clearpage. Why?

This is somehow a poor question, as I don't have an MWE... I have a problem with an mdframed environment. The environment breaks to a new page for apparently no reason. A screen shot of the effect is ...
2
votes
0answers
142 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
0answers
99 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] {\begin{mdframed}[...
2
votes
0answers
71 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 ...
2
votes
0answers
294 views

mdframed: option thmmarks of ntheorem affects vertical skip after theorem

I define a framed theorem environment with the mdframed package. I experience the following problem: There is no vertical skip between the bottom of the frame and the text of the following paragraph ...
2
votes
0answers
367 views

mdframed creates empty frame edge on new page

I have a document where I use shaded mdframed frames for annotations. One annotation is on the very bottom of the page and somehow the frame extends to the next page even though all its content is on ...
2
votes
0answers
1k views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
2
votes
0answers
670 views

mdframed parchment layout

I have recently found a very nice example of how to create text boxes with a parchment-style layout: http://www.texample.net/tikz/examples/framed-tikz/ Also, here on tex.stackexchange, there are ...
2
votes
0answers
137 views

How to avoid widows-orphans with mdframed?

I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)? \documentclass[a4paper]...
1
vote
1answer
65 views

How can create marking exam with tcolorbox

In order to make an exam, I used the tabular environment, but it still boring, i want to make the something with the nice template tcolorbox, how can use it: \documentclass[11pt,a4paper]{article} \...
1
vote
0answers
23 views

Are there any shaded theorems usable with tufte sidenote/marginnote?

I would like to use tuftes sidenote and marginnote commands. Is there any way to use them in combination with shaded theorems? I tried tcolorbox and mdframed, but both seem to be problematic. The ...
1
vote
0answers
44 views

mdframed package

Good day. Any idea how to recreate this using mdframed package?
1
vote
0answers
51 views

Two different framed environments: Strange error message

My code includes the following minimal example: \documentclass[11pt,a4paper,twoside]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{amsthm} \usepackage{...
1
vote
0answers
109 views

How to reproduce the beautiful LIB style box as in the tcolorbox document using mdframed package?

I tried to reproduce the beautiful LIB type box as in tcolorbox document using mdframed package. But I failed, I don't know how to produce the clip effects using mdframed package. The rotated ...
1
vote
0answers
34 views

Vertically justify frame before page break using mdframed

When mdframed breaks a page, it appears that there is no vertical justification on the page before the page break. Compiling the code sample below for example, it can be seen that there is more ...
1
vote
0answers
75 views

Choose size of text inside a framed box and align it with the text width

I am using a framed box to put forward some texts. I have two problems: First, I would like to minimize the text size; as we can do for the legend of a figure: \captionsetup{width=0.95\textwidth, ...
1
vote
0answers
75 views

Mimicking Latex Style

I recently stumbled across the mathematics textbook Numerical Analysis 9th edition by Burden and Faires and I thoroughly enjoyed the style of it. I was able to find a link too here: https://fac.ksu....
1
vote
0answers
70 views

A question about mdframed

Recently i found an mdframed based environment and i use it for typesetting my examples .... the problem is that the program inserts pagebreaks and there are large gaps inside the text of the example ....
1
vote
0answers
50 views

Vertical Alignment for minipages and mdframes

We have a problem concerning the vertical alignment of a mdframed followed by minipages. Latex put not the objects right after each other. It distributes them over the whole page and maximizes the ...
1
vote
0answers
196 views

Blur shadow on mdframed with rounded corners

I got this definition for my mdframe style: \documentclass[final]{beamer} \mode<presentation> { \usetheme{CambridgeUS} } \usepackage[utf8]{inputenc} \usepackage{amsmath,amsthm, amssymb, ...
1
vote
0answers
139 views

Ignore \addvspace at top of mdframed environment

In the MWE below, I include a \addvspace{2.0ex} before my figure. This looks fine, except if the figure is at the top of the mdframe. Is there a way to for the \MyFigure macro to decect if I am at the ...
1
vote
0answers
158 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
146 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
0answers
168 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
0answers
73 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]{...
1
vote
0answers
198 views

Have different thickness and colour for each line in a mdframed box

I want to have a different thickness and color for each of the left line, right line, top line, and bottom line of my mdframe box. How can I achieve that? I am new to LaTeX, really appreciate any help!...
1
vote
0answers
157 views

XeLaTeX and the changbar package

Does anyone know if there has been an update to changebar or a workaround that will get it to work with XeLaTeX? I found two conversations from years ago about the topic but have not found anything ...
1
vote
0answers
326 views

how to get longtable in mdframed to show more than firsthead?

I have a document that wraps tables (or rather, tabular/tabulary) with mdframed. This works quite happily whether the table is shown inline or floated to another page (mdframed inside the table*, ...
1
vote
0answers
160 views

Undesired page-breaks, mdframed and long table

I have a problem. I am creating MSDS sheets using LaTeX, (actually a web-application that creates a LaTeX code). The basic setup of the sheet is such that for each section (there are 16 sections) a ...
1
vote
0answers
218 views

xcolors cellcolor overlays tikz background

I'm using mdframed with the tikz option to define my own environment. Unfortunately, if I'm using a tabularx environment with xcolor's \cellcolor command, it is overlaying the header of my box. Here'...
1
vote
0answers
146 views

landscape/sidewaystable inside mdframed box containing text and another table

I would like a landscape/sideways table in an mdframed box which contains some other text. I would like to insert a sidewaystable in it. The table is too wide to fit in the portrait mode of the ...
1
vote
0answers
1k 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: \documentclass{article}...
1
vote
0answers
122 views

thmtools and mdframed (vertical space)

I dont know why I dont get the two examples closer together. How can I achieve a spacing of 0mm between the two Examples? %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % DEFINITIONS =...
1
vote
0answers
263 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is right-to-...
1
vote
0answers
288 views

Package “mdframed” creating arbitrary gaps in the border

I used to define a small environment with the package "mdframed". I've included the package in the following way: \usepackage[framemethod=tikz]{mdframed} This is how I've set up the environment: \...