Stack Exchange Network

Stack Exchange network consists of 175 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
29 views

Shift text down and induce overlap with next line

I'm quite new to LaTeX, and I've got a following question: I'd like to shift text in a single line without shifting any other part of my document. More specifically, I want it to overlap with the ...
0
votes
0answers
19 views

Vertical space after the environment lost when the environment splits between two pages

I defined a personalized theorem environment, such that, there should be a vertical left bar aligned with the environment and the length of the vertical bar should be exactly as long as the text ...
1
vote
1answer
93 views

Can't compile mdframed example after miktex installation

I just got a new computer and installed mikTeX, emacs and auctex. Then I tried to compile a basic example from mdframed documentation : \documentclass{article} \usepackage{amsmath} \usepackage[...
0
votes
0answers
22 views

Mdframed and german quotation marks

I have the following problem: I use the mdframed package for text boxes. If I use 99-66 quotation marks „...“ in my markdown editor and render a PDF with pandoc in normal text everything's fine, but ...
0
votes
0answers
36 views

insert a picture in frame but no break page

This is my code \documentclass[12pt,a4paper,twoside]{book} \usepackage{amsmath,amssymb} \usepackage{xlop,polynom} \usepackage{fontawesome} \usepackage{icomma} \usepackage{fancyhdr} \usepackage{...
0
votes
1answer
25 views

In beamer, how to force `enumerate` and `itemize` labels to be inside the environment they are mentioned in?

In the picture below, there is a custom frame defined using mdframed package. It is clear that the enumerations go outside the framed box. When similar content is typeset with a normal class, the ...
0
votes
2answers
28 views

How to get uniform vertical space space after section title

I have encountered a problem when working with minipages. Consider the following example. \documentclass{article} \usepackage{mdframed} \begin{document} \begin{minipage}[t]{0.45\textwidth} \...
1
vote
0answers
68 views

Difference between mdframed and tcolorbox: advantages and disadvantages [duplicate]

I would to understand in the best way and with complete detail first of all what is the difference between the use of mdframed and tcolorbox. Code examples are welcome with screenshots with regard to ...
1
vote
0answers
26 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
1answer
33 views

Understanding “stretchy” negative vertical space above framed chapter titles

This question is somewhat related to my previous question overfull hbox on chapters with line above/below chapter title using KOMA-script, as (parts of) the issue occurs with various/all methods of ...
2
votes
1answer
67 views

Creating a specific theorem style

I was wondering how to create a theorem environment similar to the following example: Specifically, the environment should resemble the box that contains "Claim -- The function g is linear". This ...
1
vote
1answer
17 views

Set size text in mdframed

I wish to know if it's possibile to set the size of the text inside a mdframed. The next step is, if possible to set the text in italics form. I have the following code \usepackage[framemethod=TikZ]{...
0
votes
1answer
21 views

mdframed in lyx

when i used this code in local layout (in Lyx) i got error: Style myLaw Category MainText Margin Static LatexType Environment LatexName bluec ...
3
votes
1answer
40 views

Sidebar from mdframed does not cover table at end of page

This is a problem that happens sometimes when there is a frame (with sidebar) between two pages and a table is placed at the end of a page: the sidebar (with background) does not cover the entire ...
1
vote
1answer
44 views

Spacing Error with mdframed Over Page Break

I'm having a bit of trouble with the mdframed environment. I'm using it to enclose Examples in my text in a light gray background box (and control spacing around the text). When the frame splits over ...
2
votes
0answers
57 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?
0
votes
0answers
84 views

Trying to install mdframed: LaTeX Error: File `needspace.sty' not found

I'm new to LaTex. I installed BasicTex, then proceeded to install mdframed by this command: sudo tlmgr install mdframed. I got this error when attempting to use mdframed ! LaTeX Error: File `...
9
votes
1answer
71 views

align* has extra leading vertical space in mdframed

The problem Inside an mdframed environment, placing align* at the start of the environment produces extra vertical space above, whereas using \[\] instead does not create as much vertical space. ...
2
votes
1answer
49 views

Makebox spacing inside mdframed

I want to be able to have some text aligned in the left margin such as a theorem label, and then have the example in the mdframed box. Here is an example of my failed attempt. As you can see the text ...
0
votes
0answers
32 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, ...
2
votes
0answers
35 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 ...
3
votes
3answers
47 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
77 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 ...
1
vote
0answers
63 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
37 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, ...
1
vote
1answer
36 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
51 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
41 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
36 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
40 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
39 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
23 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
45 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
81 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
45 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
34 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
51 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
33 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
48 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
104 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
121 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
37 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
47 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
190 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
55 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
76 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
35 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
99 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
51 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
96 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 ...