Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
45 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
19 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
37 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
44 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
30 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
54 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
30 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
42 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
36 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
23 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
36 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
97 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
70 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
35 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
37 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
44 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
21 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
104 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
26 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
38 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
40 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
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
43 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
90 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
31 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
26 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
43 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
60 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
67 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
143 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
75 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
56 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
36 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
38 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
50 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
87 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
65 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
57 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
38 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
64 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
46 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
50 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
46 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
46 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
50 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
89 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
67 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
37 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
60 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. ...