Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
15 views

How can I continue the footnote labelling in info boxes in mdframed?

I have several information boxes in a text. My code looks like this: \documentclass{article} \usepackage{blindtext} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{graybox}{ linecolor=gray, ...
Weiss's user avatar
  • 119
0 votes
1 answer
35 views

About \longfbox package [closed]

Can you guys help me how to make a frame that look like this (it would be even better if you know how to make colors like those in the picture). I have always used \tcolorbox but they look like ...
Ky Que's user avatar
  • 11
1 vote
0 answers
21 views

How to get repeated headings using longtable inside mdframed?

This is my first post. I have been trying to use longtable within the mdframed environment using each of \endfirsthead, \endhead, \endfoot and \endlastfoot. Within mdframed the headings and footings ...
Alex Morelli's user avatar
2 votes
1 answer
45 views

Proof Environment Inherits colour of theorem

I'm currently using the following setup with mdframed for theorems and proofs. \documentclass{article} \usepackage[usenames, dvipsnames]{xcolor} \usepackage{thmtools} \usepackage{tikz} \usepackage[...
Apollonius's user avatar
0 votes
1 answer
26 views

Problem in the color of the shadow in mdframed package [duplicate]

When I write the following theorem with latex I hope to obtain a frame with a black shadow since the color in latex is black, but in the printing the color seems gray, this is my problem, I want to ...
Mohammed Rahmani's user avatar
0 votes
1 answer
34 views

Issue with \vspace{\stretch{1}} not working inside mdframed environment

I'm encountering a problem with using \vspace{\stretch{1}} inside the mdframed environment. I'm trying to add some vertical space after a theorem inside the frame, but it seems that the \vspace{\...
user292225's user avatar
1 vote
1 answer
32 views

How to position mdframed environment at the top of a page, without topmargins being decreased?

I have a document which uses a simple custom environment for algorithms, using the mdramed package. Some times I want an algorithm to be placed at its position in text, and other times I would like an ...
Naysh's user avatar
  • 187
0 votes
0 answers
17 views

mdframe-boxes within boxes won't break properly

I'm currently working on a project for which I would like to use the mdframed-package for some structuring. Doing this I would like to create boxes within boxes, but when I do so and the inside boxes ...
Paul Schott's user avatar
0 votes
1 answer
53 views

Can mdframed (or tcolorbox) create a box with the title at the bottom and protruding from the body box?

I would like to create a custom shaded box environment with a title box --- but with the title at the bottom of the environment instead of the top. Additionally, I would like the title to be right-...
ltcomdata's user avatar
  • 935
0 votes
2 answers
50 views

Getting a rule on the left side of text that skips the first line of the environment using mdframed

I'm trying to get a definition environment where there's a rule on the left side of the text, except for the first line. I currently have the MWE below using mdframed, but I don't know how to skip the ...
George's user avatar
  • 215
2 votes
2 answers
52 views

Redefine tcolorbox theorem to make arguments optional

I have a large document in which I've been using a lot of custom mdframed theorem environments defined using \newmdtheoremenv, for example \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{...
Alex Bogatskiy's user avatar
2 votes
1 answer
46 views

Text boxes extending till margin

I want to recreate the text boxes shown in the figure below. This is from the book Doctor Lawd's labyrinth The box starts in the page while extending till the margin. How can this be achieved? In MWE ...
Damitr's user avatar
  • 2,025
0 votes
1 answer
45 views

weird scaling in PDF when using mdframed

My goal is just to have a simple square box around text and a table. For this I read to use the mdframed package. I did this and it all worked well when previewing it in Sumatra. I am now finished ...
thunermay's user avatar
  • 163
0 votes
1 answer
28 views

How to remove the extra space between the mdframed environments?

In contrast with the amsthm environments, the gap between mdframed environments are larger than that of amsthm. The MWE is the following \PassOptionsToPackage{svgnames}{xcolor} \documentclass{book} \...
Meiu's user avatar
  • 558
1 vote
1 answer
31 views

How can I translate in spanish \begin{theo} in enviroment mdframe?

\documentclass{article} \usepackage[utf8]{inputenc} \usepackage{amsthm} \usepackage[framemethod=TikZ]{mdframed} %%% \newcounter{theo}[section]\setcounter{theo}{0} \renewcommand{\thetheo}{\arabic{...
Bregy Choque's user avatar
2 votes
1 answer
33 views

Require a minimum vertical distance when breaking with mdframed

I am using the mdframed package as shown below within the Solution environment. \documentclass[12pt]{article} \usepackage{mdframed} \usepackage{xcolor} \usepackage{lipsum} \newenvironment{Solution}{ ...
theraven5520's user avatar
4 votes
1 answer
503 views

How to reproduce this kind of wavy line? [duplicate]

I was wondering how to reproduce this kind of vertical wave line to the left of the text :
Gaétank's user avatar
1 vote
1 answer
103 views

Create a box with a package? (image)

Hello I would like to make this type of box, I don't know how to do it, does anyone have a solution?
Abichouuu's user avatar
1 vote
1 answer
296 views

How to draw a fancy box with an overlay rectangle enclosing the title box

I kindly request to be helped to achieve my target of recreating the fancy box below. I attempted with the codes below: \documentclass[openany]{book} \usepackage[many]{tcolorbox} \usepackage{tikz} \...
Kidegalize's user avatar
0 votes
0 answers
39 views

Sphinx Verbatim (Code block) inside mdframed environment

My code-block don`t break on new page when a use code-block inside mdframed environmen: \begin{mdframed} \begin{sphinxVerbatim}[commandchars=\\\{\}] Tablespaces: PRIMARY (1) Full path: /home/test/...
Ольга Зайчук's user avatar
1 vote
0 answers
28 views

mdframed box chips to the next page unnecessarily [closed]

As shown in the picture, the problem box (inplemented with mdframed, see code from 133 to 139) has a small portion on the next page without any text. Giving extra margin on the top or bottom of the ...
Gurmukh Singh's user avatar
1 vote
1 answer
41 views

Overfull \vbox with mdframed box in environments

I'm getting a lot of "Overfull \vbox" errors when using an mdframed box in my custom theorem and proof environments. I have reduced the problem to the minimum example below. I use the ...
kaba's user avatar
  • 599
1 vote
1 answer
61 views

Using mdframed in an enumeration

I'm facing a problem with the enumerate environment in LaTeX when attempting to create a box using mdframed immediately after starting a new item. While the boxing works as expected, it causes a ...
Zuy's user avatar
  • 353
0 votes
0 answers
38 views

Put code snippets in a rounded gray frame?

I would like to highlight code snippets in a grayish background with a rounded frame. I can achieve this partially with mdframed, but the caption is inside the frame. I also tried with codebox with: \...
nowox's user avatar
  • 1,417
4 votes
2 answers
193 views

Broken description environment

Look at the following MWE: \documentclass{scrbook} \usepackage[utf8]{inputenc} \usepackage{beamerarticle} \usepackage[framemethod=TikZ]{mdframed} \surroundwithmdframed{definition} \begin{document} ...
Arne's user avatar
  • 1,390
0 votes
1 answer
35 views

mdthereom shared counters, cleverref, and nested theorems

I am having trouble trying to set up mdframed so that it is compatible with cleverref all mdframed boxes share the same counter does not break when mdframed environments are nested Demo file. ...
Qqqq123123's user avatar
1 vote
1 answer
65 views

Overlay a TikZ node into an mdframed

I'd like to place a small piece of text at the upper right of an mdframed box that I'm using to display source code for a program. Here's what I have tried: \begin{mdframed} \begin{minted}{swift} ...
Ray Toal's user avatar
  • 121
0 votes
0 answers
106 views

Create new LaTeX environment

I'm writing a text using the document-class tufte-book and I want to create some new environments in order to do example and insights. Until now I used the package mdframed, but I noticed that with ...
Daniele Di Prima's user avatar
1 vote
2 answers
85 views

Framing theorem and proof together

What I want to do I'm trying to frame a theorem and its proof like this: How I currently do it The image above was produced by the code below: \documentclass[a4paper, 12pt]{article} \usepackage[...
kaba's user avatar
  • 599
0 votes
0 answers
27 views

How to suppress the number of a page with mdframed and then refer to the missing page number (e.g. with \pageref)?

I want to suppress the page number on a specific page (not the title page) that has a box defined with mdframed, and then be able to refer to the suppressed page number. There is text on this page ...
Pertinax's user avatar
  • 260
3 votes
1 answer
74 views

How to make the inner icon solid in fontawesome

I am using fontawesome 5 to make a framed environment. How do I go about making the inner icon solid so that the background color does not show? Here is my code: \documentclass{article} \usepackage[...
Joe's user avatar
  • 9,080
0 votes
0 answers
55 views

Changing from mdframed package to tcolorbox for framed theorems

I have been using the mdframed package for framed theorems in my notes. But there are a lot of problems related to spacing (e.g. bad spacing behaviour of frame right after section title) and page ...
Skadiologist's user avatar
1 vote
0 answers
26 views

Foreach loop doesn't work inside mdframed to draw points

In this case, I would like to plot some points from the graph of x^2 - x - 6 using foreach (coordinate in the MWE). Unfortunately, when I plug the foreach loop, the error stated Undefined control ...
Wilory Lu's user avatar
  • 103
0 votes
0 answers
21 views

Background for Listings with TeX escape, but caption outside

Listings does not play well with backgrounds and included math formulas (using mathescape) - there are white horizontal lines because Listings doesn't know how tall the lines are meant to be. You can ...
Alasdair's user avatar
  • 5,267
2 votes
2 answers
62 views

customing mdfdefinedstyle using newcommand

I'm currently experimenting on mdfdefinestyle to achieve different colors without having a hard time to adjust its style or rather renaming it one-by-one. So, here's the mdfdefinestyle I used, \...
Wilory Lu's user avatar
  • 103
0 votes
0 answers
39 views

Vertical alignment of boxed environment created with mdframed

I'm writing a math exercise book for my students. I want each exercice to be in a framed box so I created a new environment called "Exercice" using mdframed. I'm having trouble with the ...
FunkiePhil's user avatar
0 votes
1 answer
66 views

Beamer custom breakable box

In this case I need a breakable for custom example that I could break part of contents and move to next frame. \documentclass{beamer} \usetheme{default} \usepackage[T1,T2A]{fontenc} \usepackage[utf8]{...
Alex 's user avatar
  • 225
0 votes
1 answer
94 views

How to imitate the math environments in Libretexts math site?

I found the following math environments on the Libretexts mathematics site. I want to imitate these styles and structures in latex using mdframed and tcolorbox packages. \documentclass{article} \...
Litun's user avatar
  • 3,305
0 votes
1 answer
60 views

Different numeration for Theorems

\documentclass{article} %\documentclass[16pt]{report} \usepackage[a4paper,text={16.5cm,25.2cm},centering]{geometry} \usepackage[utf8]{inputenc} \usepackage{amsfonts} \usepackage{hyperref} \usepackage{...
RFZ's user avatar
  • 395
0 votes
1 answer
82 views

Table placement issue: cannot get the table within mdframed to center horizontally on page

\begin{center} \begin{mdframed}[userdefinedwidth= 0.8\textwidth, innerbottommargin= 10] \begin{table}[H] \centering \def\arraystretch{1.5}% \begin{tabular}{|c|c|} \...
William Yeakel's user avatar
0 votes
0 answers
67 views

mdframed and spurious page breaks

I don't know why but mdframed sometimes introduce some page breaks for no apparent reason. Is there a way to prevent mdframed from inserting these page breaks ? I cannot do a minimal working example, ...
Fred de gournay's user avatar
0 votes
0 answers
47 views

In mdframed package, mdfdefinestyle and newmdtheoremenv give different results

I would expect that the following two ways of defining a theorem environment give the same result. But they do not: the first environment puts a new paragraph after "Theorem 1", the second ...
Tomáš Werner's user avatar
2 votes
1 answer
74 views

Theorem number font and final period with mdframed

I am using mdframed, and I would like the theorem number to have the same font as the theorem name, like it is shown here: Also, the theorem number should finish with a period: "Example 1.1.&...
Diego Andres Alvarez Marin's user avatar
-3 votes
1 answer
126 views

Help to create this image with tikz

i don't know how create this theorem with tikz and amsthm packages
محمد's user avatar
1 vote
1 answer
125 views

Unwanted indentation when using tcolorbox [duplicate]

When I create boxes with tcolorbox, I get an unwanted indentation in two places: once directly before the heading and secondly in place of the first paragraph (all the following paragraphs have no ...
ntasosof's user avatar
0 votes
0 answers
22 views

latex+dvips+gv: the left vertical bar of the frame of mdframe vanishes at certain magnifications [duplicate]

Feeding \documentclass{article} \usepackage{mdframed} \begin{document} \begin{mdframed} Test \end{mdframed} \end{document} to latex followed by dvips results in the left vertical bar (and, with ...
user avatar
2 votes
1 answer
124 views

How to add line numbers inside a box?

I have the following code and I would like to have individual line numbers for both first and second parts Code: \documentclass{article} \usepackage{amsmath} \usepackage{mdframed} \begin{figure} \...
ChubbyMarshmallow's user avatar
1 vote
1 answer
59 views

Problem with mdframed, listings and TikZ for a codeblock

Context For a document I am writing, I use mdframed and listings to create a "fancy" codeblock look. I use rounded corners and custom colors for this view. During the creation of this ...
questionman's user avatar
3 votes
1 answer
79 views

enumitem counter scope issue

An mdframe blocks global counting. How can I resolve this? \documentclass{article} \usepackage{enumitem,mdframed} \begin{document} \begin{enumerate} \item This should have a numeral of one. \end{...
Lucas's user avatar
  • 339
1 vote
1 answer
156 views

Framed text with title on the left margin

I am trying to type a margin note (in book format) on the left side with a line underneath, but "perpendicular" to the main text as shown in the attachment below: \documentclass[12pt]{...
Doc's user avatar
  • 51

1
2 3 4 5
17