People who code: we want your input. Take the Survey

Questions tagged [mdframed]

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

86 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
476 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
42 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
78 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
311 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
125 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 ...
3
votes
0answers
375 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
16 views

Algorithm environment using mdframed and algorithm2e

I would like to put all my algorithms in mdframed, however I am not quite managing to get what I want. I have changed the algorithm environment to plain, but I would like the caption/title to be left ...
2
votes
0answers
40 views

Stacking boxes to decorate the corners of a framed box

I am trying to decorate the corners of a framed box to achieve a result like the image below ... Any suggestions how to stack boxes like this? I am not exactly familiar with tikz, so I was trying to ...
2
votes
0answers
23 views

Extra space between title and content with mdframed

I have created a "solution" environment for some lecture notes, and I am experiencing an unexplainable space between the word Solution, which is the title of an mdframed environment and the ...
2
votes
0answers
134 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
60 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
255 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
227 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
110 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
313 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
125 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
161 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
477 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
145 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
72 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
306 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
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
743 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
140 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
37 views

Parsing optional argument from \newenvironment to \newmdenv

I'd like to parse an optional variable from a custom \newenvironment{example} to an mdframed environment \mytextbox nested in the example environment. What I'd like to achieve is something like ...
1
vote
0answers
28 views

How do avoid empty boxes when splitting framed Theorems over two pages

I am working with mdframed and have the following issue: I am writing some mathematical lecture notes and I am using mdframed for Theorems, Definitions and so on. Sometimes it happens, that the text ...
1
vote
0answers
43 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
96 views

Inconsistent spacing after theorem environment (KOMA)

After including the parskip=half- option I'm getting inconsistent spacing after theorem environments (Sometimes there's more space than it should). If I don't use that option the problem goes away but ...
1
vote
0answers
108 views

mdframed package

Good day. Any idea how to recreate this using mdframed package?
1
vote
0answers
53 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
136 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
108 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
80 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
80 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
53 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
211 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
159 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
170 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
167 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
184 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
74 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
229 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
173 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
339 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
168 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
249 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
153 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 ...