Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [mdframed]

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

2
votes
0answers
21 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
2answers
37 views

I want put frame with rounds corner

what is the problem? why not can a frame with round corner? \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} \usepackage{lipsum} \usepackage{float} \usepackage{...
2
votes
2answers
57 views

Getting fancyvrb and mdframed to work togegher

I would like to format terminal output as follows: white text on black background commands written by the user are emphasized (slanted typewriter) Using a combination of mdframed and fancyvrb I got ...
0
votes
0answers
22 views

How to solve the first letter being hidden in mdframed?

The first letter of each box is hidden. How I can solve that ? Thank you. \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \usepackage[framemethod=TikZ]{mdframed} \...
1
vote
0answers
54 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....
4
votes
1answer
23 views

Itemize in the mdframe

I want put a dialogue in a mdframed environment. \documentclass{article} \usepackage{mdframed} \newenvironment{dwf} { \begin{mdframed}[linewidth=0.5pt, linecolor=black, roundcorner=0pt, ...
0
votes
0answers
16 views

Custom table with mdframed and parcolumns and headings

I found a great example how to make table with cells longer than one page in this topic Table environment that can break inside a cell. However I need to add to it table headers on each page like ...
0
votes
1answer
25 views

Different styles for horizontal intermediate lines in mdframed while paginating

I have a multipage frame built with mdframed with method tikz. I need to frame with lines all its parts on every page. \documentclass[11pt]{article} \usepackage[framemethod=tikz]{mdframed} \...
0
votes
1answer
35 views

Pythontex and mdframed in an environment

I try to define an environment called "codeaux" printing a piece of python code inside a mdframed environment. After that my aim will be to redefine "codeaux" in a pyconsole version (pyblock/verbatim ...
2
votes
1answer
36 views

How to align equation numbers inside and outside of mdframed?

I am using mdframed to box equations to include the equation number, as I quite like how it looks. However I've noticed that this results in a misalignment between equation numbers that are boxed, ...
1
vote
1answer
22 views

How to box the last (or one) line of an aligned set of equations? [duplicate]

I am trying to get the last equation in a list of aligned equations boxed, however this is more challenging than I thought it might be. I would like to be able to do it with the box both including ...
0
votes
1answer
23 views

Conflict between \captionof and mdframed

I'm using the minted package to generate highlighted code snippets. Because I want all minted environments to be wrapped with mdframed, I added the following to the preamble. \usepackage{mdframed} \...
2
votes
1answer
33 views

Dashed mdfframetitlerule

I'm trying to get a dashed line for frametitlerule under mdframed, but the setting appears to be ineffective. I'm basing this code on the documentation (Tikz example 5), but this question is also ...
2
votes
0answers
15 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 ...
1
vote
1answer
42 views

Integrating a picture in a frame

I would like to make a frame using the package mdframed around a text and inside the frame I would like to integrate a small figure. I attached an example created with another program (the figure is ...
2
votes
2answers
73 views

mdframed: splittopskip ignored for center environment

I have a lot of example environments using mdframed in my document that break across pages. In these enviroments, I have some tables of results that I currently place in a center environment. ...
0
votes
1answer
29 views

exam-minipage: Using minipage inside the header

Following-up my previous questions [1,2], I, instead, tried using minipage environment in order to able to freely break the lines and use the exam macros (e.g. \numquestions) where I couldn't in case ...
0
votes
1answer
26 views

exam-mdframed: Spreading a specific number of dots over a specific length and centering them

Following-up this answer, I would like to: 1- specify the length over which the dots are spread 2- and center them in addition to controlling both the left and right margin skips. \documentclass{...
0
votes
1answer
37 views

etoc: sections as individual multicol mdframed blocks

I'm working on a two-column TOC. It's rather detailed with subsections, subsubsections, and even named paragraphs included. Of course the columns run for the whole page and restart from the next page. ...
1
vote
1answer
29 views

mdframed - numbered subtitles and separate list of boxes

I have two convolved questions related to mdframed. 1) I have three types of boxes: Cautions, Recommendations, and Tips. I would like to add a List of Cautions, List of Recommendations, and ...
2
votes
1answer
46 views

How could I remove space after framed figure's caption and text follows it?

I have following code: \documentclass[10pt,journal,compsoc]{IEEEtran} \hyphenation{op-tical net-works semi-conduc-tor} \usepackage{graphics} \usepackage{mdframed} \usepackage{tikz} \usepackage{...
3
votes
2answers
75 views

How to highlight a line of text (with colored background) with animation in beamer?

There are several ways to highlight a line of text with colored background in beamer, for example, using framed or mdframed. How to animate this highlight, i.e., filling the background color from ...
2
votes
1answer
56 views

Inserting small icon or figure in the margin left to some desired title in mdframed and mdfsetup

I need to insert some small icon or picture adjacent to a fancybox designed using mdframe as provided by @Tom in textblog.org using mdframe and tikz. I could insert image using includegraphics inside ...
0
votes
0answers
36 views

personalized environment spanning over several pages and filling pages

I am aware of several ways to create personalized environments that span over several pages. Here is the MWE taken from this post. \documentclass{article} \usepackage[english]{babel} \usepackage{...
0
votes
1answer
38 views

How do I return the normal ToC format?

I use a styled section format with titlesec (and mdframed, but it also happens with tcolorbox), and it change the style of the TOC. How I return it to the normal style? (see picture and file below) % ...
0
votes
1answer
98 views

How to put section at a title of colorbox and the text at the box itself?

As a continue to this answer: https://tex.stackexchange.com/a/226751/29476 I want to know if there is an option to make something like this: That the title will be the section number and name and the ...
3
votes
0answers
53 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} \...
0
votes
1answer
59 views

How do I combine a frame (mdframed) and title (titlesec)

Assume that I have a frame: \mdfdefinestyle{aaa}{ linecolor=black!50, backgroundcolor=Honeydew3!80, roundcorner = 6pt, fontcolor = black, shadow=true, ...
0
votes
1answer
32 views

Suppress environment in mdframed package

I use the Latex package mdframed to define "environments" containing headlines and text. However, I would like to add some personal notes which should not (!) be displayed, if a boolean variable is ...
0
votes
2answers
79 views

Colored bar next to text over multiple pages

I want to have something like this green box you can see in the image next to the text over multiple (~20) pages. Right now I solved this by using mdframed. The problem now is, that I cannot start ...
0
votes
1answer
46 views

Combining content of marginnotes

I use marginnotes (sometimes inside of mdframed environments) to write at the margin whenever a concept is defined, e.g.: \documentclass{article} \usepackage{marginnote,tikz,mdframed} \usepackage{...
2
votes
2answers
61 views

Using tcolorbox (or mdframed) to reformat standard floats (figure and table)

I have been trying to reformat the table and figure environments in a custom class file I am building. The idea is to put them in a box with a shaded background. I have been trying to accomplish this ...
2
votes
1answer
47 views

Floating textbox with figure, figure caption is outside of box when using package “caption” [duplicate]

Hei, I am trying to add a textbox to my document. The textbox should contain both text and one or more figures, and should be floating itself. It works, as long as I do not include the caption ...
0
votes
0answers
35 views

setting counter for theorem and lemma in mdframed

I am trying to set counter for theorems and lemmas, here is my codes \documentclass{tufte-handout} \usepackage[utf8]{inputenc} \usepackage{mdframed} % Framed Theorems \usepackage[usenames,dvipsnames]...
2
votes
1answer
53 views

Place the tikzpicture environment inside a personalized box with mdframed

I am trying to place a graphic (with the tikz picture environment) on the right side of the text and within the environment of my custom box. Could you assure me or help me to place it correctly? ...
2
votes
1answer
88 views

different color shading for each theorem type

There are lots of comments around the Internet about how to colorize theorems in LaTeX, and many are beyond my grasp in complexity. For the moment, I'm using a fairly simple pattern which lets me ...
3
votes
2answers
214 views

Creating Beautiful box

I would like to create (blue!70) box contains method of how I use geogebra \documentclass{article} \usepackage{tikz,lipsum,lmodern} \usepackage[most]{tcolorbox} \usepackage{wrapfig} \usepackage{...
8
votes
2answers
151 views

Environment to change background color of a portion of the page, vertically defined by the height of the contents of the environment?

I am trying to highlight some portions of a document. These portions can be paragraphs, images, equations and – quite importantly – list items. The highlighting should preferrably happen by a ...
0
votes
2answers
58 views

Control page breaks in multiple frames via mdframed

I am having an issue with mdframed, where I've created a frames inside frames spanning several pages, but I'd like mdframed to split them differently across the pages, so as much of the text on page ...
0
votes
0answers
11 views

mdframed: Print title on each page, with “ctd.” on subsequent pages [duplicate]

Related to my question on mathparpagebreakable. The mdframed package is great for adding borders to things that are framed across multiple pages, and it even has an option to print the frame title on ...
2
votes
2answers
216 views

Chapter heading designs in KOMA-Script

I want to achieve two related designs for the chapter heading. Design 1 should have a vertical line at the outer (right) margin which has the chapter (or appendix) name and the title to the left and ...
2
votes
1answer
84 views

mdframed with raised extra content runs into the header of an scrbook document

I'm using a variant of Example 5 – complex example with TikZ from the mdframed manual in a scrbook document. The goal is to include easily distinguishable boxes that contain exercises, definitions, ...
1
vote
1answer
109 views

Inner and outer margins and paddings in a mdframed box

I am trying to get a background on theorems and such extending onto the outer margin of a two-sided document, using the interface provided by thmtools.sty to mdframed. There is a catch, though: ...
0
votes
1answer
45 views

Space between mdframed text and chessboard / chess line

I have the following type of document, where I want to display some framed chess game header and continue with either a line or a chessboard: \documentclass[ngerman]{scrreprt} \usepackage{xskak} \...
1
vote
1answer
105 views

mdframed and parskip

This seems pretty easy: how can I get a paragraph skip in an mdframed, same as outside the box? Is it somehow `disabled', and if so, is there a reason for that? Here is how it's set up, in a ...
1
vote
1answer
105 views

Theorem statement in the title frame of an mdframed environment?

I've defined a theorem environment using the package mdframed. However, I'd like the statement to be contained within a different box from the one which contains the proof. Ideally, this would be the ...
3
votes
2answers
110 views

Using custom item labels in itemize environment inside an `mdframed` box causes content to slip out of box?

Consider the following MWnotE: \documentclass{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{mdframed} % noteboxes, boxes, etc. \newmdenv{notebox} \begin{document} \section{Cats}...
0
votes
1answer
38 views

Moving a TikZ drawn `mdframed` `frametitle` box vertically by a real amount?

Consider the following MWE: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} % noteboxes, boxes, etc. \usepackage{calc} \newcommand{\definebox}[2]{% \newcounter{#1} \...
3
votes
1answer
81 views

How to put custom definition of TikZ-drawn `mdframed` boxes into a “macro” for reuse?

Consider the following minimal working example: \documentclass{article} \usepackage[framemethod=TikZ]{mdframed} % noteboxes, boxes, etc. \newcounter{definition} \newenvironment{definition}[1][]{% \...
2
votes
1answer
114 views

mdframed broken in TeXLive2017

Since an update of TeXLive2017 through tlmgr yesterday, mdframed seems broken: the following MWE \documentclass{article} \usepackage{mdframed} \begin{document} test \end{document} throws this error (...