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.

0
votes
1answer
21 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
24 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 ...
1
vote
0answers
16 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
17 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
18 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
13 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
39 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
70 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
21 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
24 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
32 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
28 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
41 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
68 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
45 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
33 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
37 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
66 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
50 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
54 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
31 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
74 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
45 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
54 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
42 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
33 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
45 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
55 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
199 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
142 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
51 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
188 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
78 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, ...
0
votes
1answer
96 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
39 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
91 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
78 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
101 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
36 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
76 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
108 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 (...
1
vote
0answers
44 views

something went wrong with mdframed package when tikz is applied [closed]

The following is the code I downloaded from the Internet: a ordinary environment of theorem. \documentclass{ctexart} \usepackage{xcolor} \usepackage[framemethod=tikz]{mdframed} \usepackage{amsthm} %%%...
1
vote
1answer
45 views

Frame around document title, error with mdframed

I have added a frame around my document title using mdframed. The document compiles and displays properly but keeps throwing the following error: Something's wrong--perhaps a missing \item. \end ...
2
votes
1answer
136 views

how to use `\marginnote` in `mdframed` environment? (follow up)

I need to have a line on the INNER margin in a double-sided tufte-document. There was a close question and it has this answer. That answer is perfect. Their output is: (You see the line on the INNER ...
0
votes
1answer
56 views

Align bottom using mdframed

I'm using mdframed to create a box around two lines of text so that I can insert a colored left border. Here's my MWE: \documentclass{book} \usepackage{mdframed} \newmdenv[topline=false,rightline=...
1
vote
2answers
76 views

How to number Theorems, Lemmas… by using \newcounter with mdframed

I need to show the numbering of Theorems, Lemmas,... as follows: Theorem 3.5.2 (Theorem 2 in section 5 in chapter 3). Fore more information, you can visit Fancy boxes for theorem, lemma, and proof ...
5
votes
1answer
333 views

Draw box for text

i would like to replicate this box from a french physics book. I've tried mdframed, tcolorbox, fancybox packages without success. May someone help me please? this is waht i've tried so far: with ...
5
votes
1answer
93 views

Margin notes with little arrowhead that is aligned with margin area border

I'm trying to create a two-sided document with an outer margin containing margin notes. The outer margin area has a colored background, e.g. gray. Each margin note is supposed to be associated with a ...