Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
0
votes
3answers
78 views

Tikz/Graphing in a framed box with shadow

I am trying to graph a function by using tikz in a framed box with shadow as in the following links. www.math.uakron.edu/~dpstory/tutorial/demos/tangent.pdf I shall be very happy if you can help. ...
0
votes
2answers
28 views

Adjusting page width/margins in paracol

I can't seem to find an appropriate option in the paracol documentation, but I was wondering if there is a way to easily adjust the margins using the paracol package or if I have to do some external ...
1
vote
1answer
48 views

Create a mdframe with large icon in the text body

I'm trying to replicate a common pattern in programming books, where authors use to create few designs for brief, emphasized text portions that differ in the icon/image used, e.g. or also: and ...
0
votes
1answer
14 views

Footnote inside stacked enumerate inside mdframe, how to fix numbering and place the footnotes outside of the frame on the same page?

I have a stacked enumerate going on inside a frame (mdframed package). For some reason the footnotes are marked a, b, c, etc. \usepackage{mdframed} \usepackage{csquotes} \begin{document} \begin{...
1
vote
2answers
64 views

How can I create framed boxes with graph paper as background

How can I add a graph paper background for my framed boxes? Example: \documentclass{article} \usepackage{framed} \begin{document} Calculate the Solution of $5+3$ \begin{framed} \vspace{5cm} \end{...
2
votes
0answers
34 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
1answer
40 views

How could I create a black border around the title area?

How could I create a black border around the title area? I have this code so far: \documentclass[answers]{article} \usepackage[utf8]{inputenc} \usepackage[framemethod=TikZ]{mdframed} %Textbox \...
1
vote
1answer
37 views

exsheets mdframed solutions with figure

I'm having an issue with adding a frame around the solutions environment while using the exsheets package. I have a bit of my code below. My problem is that I'm greeted with an error if I choose to ...
0
votes
1answer
32 views

Using mdframed with inputminted

I was reading the documentation of minted and found out I could use mdframed to create a frame around my code listings using: \surroundwithmdframed{minted} However, I now need to create listings ...
1
vote
0answers
9 views

Reset local options in nested mdframed [duplicate]

Is there a way to reset the style options within an mdframed environment so that nested mdframed environments use the default options automatically? MWE \documentclass[border=1cm]{standalone} \...
1
vote
0answers
81 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 ...
0
votes
0answers
26 views

How can I put all examples and theorems into boxes with different shaded in Lyx?

I am in the middle of writing a book with Lyx. I have definitions, theorems, examples, and solutions. Is there a way to put all definitions, theorems, examples, and solutions into boxes with ...
2
votes
1answer
49 views

Environment with mdframed

The following mwe showcases the environment I am currently working with: \documentclass{article} \usepackage[tikz]{mdframed} \definecolor{greentitle}{RGB}{165,224,168} \newenvironment{notation}[1] ...
1
vote
2answers
59 views

How to put a table with caption inside a “mdframed” theorem example style box

I have a book and want to put a table with caption inside a "mdframed" theorem example style box. Without begin/end table and without caption I can do it. But with caption I can not. Below is my code: ...
1
vote
1answer
47 views

mdframed: title and subtitle

I would need to recreate the same frame as the one proposed at this page mdframed: Put a line below the frame title and give it a shaded background with the only exception of adding a subtitle with ...
2
votes
1answer
65 views

Reproduce the vertical margins below the environment

In short, I would like to reproduce the vertical margins below the definitions and double bar below the remarks as shown in the following picture: I've already browsed the posts without any solution. ...
0
votes
2answers
35 views

Change numbering in MD Framed

I want to change the numbering using mdframed. The code is: \mdfdefinestyle{theoremstyle}{% linecolor=black, linewidth=1pt, frametitlerule=true, frametitlefont=\sffamily\bfseries, ...
1
vote
1answer
46 views

why roundcorner here dont take effect?

It is still rectangle this is my code(line15) \documentclass[UTF8]{article} \usepackage{ctex} \usepackage[a4paper]{geometry} \usepackage{amsmath} \usepackage{amssymb} \usepackage{mdframed} \...
2
votes
1answer
44 views

move shadebox to leftside by using mdframed?

My codes are follows: \documentclass{book} \usepackage{xcolor,mdframed} \usepackage{showframe} \begin{document} \setlength{\marginparwidth}{2pc} \newenvironment{codebox}{% \color{blue}% }...
0
votes
0answers
26 views

Bar behind section title spanning the width of the page

Is there a way I can use the titlesec package or the mdframed package to produce a section heading like the following: Here, the section title box begins at the left margin. As a followup question, ...
1
vote
1answer
48 views

header conflict with mdframed

\documentclass{book} \usepackage[english]{babel} \usepackage{blindtext} \usepackage[framemethod=TikZ]{mdframed} \begin{document} \renewcommand{\chaptermark}[1]{ \markboth{#1}{} } \renewcommand{\...
1
vote
2answers
111 views

How can I create such a form and write text inside it?

How can I create such a form and write text inside it?
2
votes
1answer
96 views

exam: Creating a solution environment whose width is set by an optional argument corresponding to the question level

Inspired by this answer, I would like to have a customized solution environment which accepts an optional argument. This argument can be either numeric or alphabetic, and its value corresponds to the ...
2
votes
2answers
52 views

exam: How to globally make \textwidth-wide solutions spanning multiple pages?

Following-up this answer, I would like to make the solution span the whole text width regardless of the question level while continuing over multiple pages. \documentclass[answers]{exam} \usepackage{...
1
vote
1answer
45 views

mdframed - how to make the box larger to fit my table?

My code is given below. How can I make the box bigger so that the table fits inside it? Or how could I make the table smaller so that it fits inside the box? \documentclass[12pt]{article} \...
0
votes
1answer
53 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
23 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 ...
2
votes
1answer
111 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
32 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
1answer
45 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
46 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
28 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
47 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
105 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
45 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
33 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 ...
2
votes
1answer
48 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
76 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
72 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
192 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 `...
8
votes
1answer
83 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
69 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 ...
1
vote
0answers
39 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
42 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
55 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
96 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
67 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
78 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
42 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
71 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 ...