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
89 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
1 answer
26 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
  • 565
0 votes
0 answers
23 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
59 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,010
0 votes
0 answers
29 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
24 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
  • 101
0 votes
0 answers
18 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,227
2 votes
2 answers
32 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
  • 101
0 votes
0 answers
34 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
37 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
  • 173
0 votes
1 answer
61 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,295
0 votes
1 answer
58 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
  • 333
0 votes
1 answer
71 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
34 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
24 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
62 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
0 votes
0 answers
33 views

Subfloat spacing issue: Why the difference?

I'm having a spacing issue with a figure environment inside a framed box. The figure has two subfloats on each row, like what the MWE below is showing: \RequirePackage[l2tabu,orthodox]{nag} \...
Cham's user avatar
  • 2,200
-3 votes
1 answer
113 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
79 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 ...
AlMa0's user avatar
  • 479
2 votes
1 answer
70 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
52 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
0 votes
0 answers
26 views

List multiple tikz-mdframed boxes like the list of figures, tables and listings

I'm writing a thesis in which I have created multiple "box environments" for different kind of insights and examples. I've started from the advance examples of the mdframed documentation ...
DrewGecko's user avatar
  • 197
3 votes
1 answer
75 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
  • 309
1 vote
1 answer
125 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
0 votes
0 answers
45 views

Spacing after \declaretheoremstyle

I'm trying to implement a theoremstyle which is shaded and found a way by using mdframed in \declaretheoremstyle and it looks pretty good, but I want to increase the spacing after the text. Above the ...
C'est La Tex's user avatar
2 votes
1 answer
93 views

Disable specific styles of mdframed package of showing any content

In this recent question I found how I could disable all instances of mdframed of showing any content. This is done elegantly through \RenewDocumentEnvironment{mdframed}{+b}{}{}. Now, I'd like to know ...
MrT77's user avatar
  • 157
1 vote
2 answers
46 views

Is it possible to disable mdframed package of showing any content

I use the mdframed package a lot while drafting my report, mainly by using colors to call my attention to the need to rework these parts. Now I have to send a pdf without any of this content that ...
MrT77's user avatar
  • 157
0 votes
0 answers
37 views

newenvironment with enviromentS (plural) inside

I'm trying to create an environment for a particular class (based on memoir) I'm doing. I followed this video (https://www.youtube.com/watch?v=r_DQnSXLHBc) besides Overleaf basic tutorials on creating ...
D.ClassMemoir's user avatar
2 votes
3 answers
112 views

How to add numbers next to the frame line using mdframed

I just came across the mdframed package and found it very useful. However, I would like to add numbers next to the frame line similar to the picture I attached (See red numbers, that's how I want it). ...
falkbooks1222's user avatar
1 vote
1 answer
48 views

mdframed doesn't break, but there are suffisant space for breakable mdframed

Here is the (almost) MWE: \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[hmargin=1.25in,vmargin=1.25in]{geometry} \usepackage{picins} % fix for a bug that adds space ...
quark67's user avatar
  • 4,136
3 votes
0 answers
55 views

Space before theorems using ntheorem and add-ons using mdframed

I've developed the attached framework for my mathematical developments using several inputs. Anyway, I have faced two inconveniences: I would like to add space before each theorem. I would like also ...
Luis Subirana's user avatar
1 vote
1 answer
49 views

How to create a new environment with mdframed and lstlisting? [duplicate]

I want to create a new environment that wraps mdframed and lstlisting together as shown below, however that does not work for me as it does not compile. Any ideas what the issue is and how to define a ...
pixel's user avatar
  • 1,315
1 vote
1 answer
41 views

Line break after definition

I use the following to have shaded definitions: \colorlet{shadecolor}{orange!15} \declaretheoremstyle[ headfont=\normalfont\bfseries, notefont=\mdseries, notebraces={(}{)}, bodyfont=\normalfont, ...
mc.math's user avatar
  • 15
0 votes
0 answers
71 views

Mdframed infinite loop within declare theorem style

First of all, I would like to say that I learned LaTeX by myself, and that my code may not be optimized or I may not master the good practices. Don't hesitate to correct me or to give me advice on ...
Analyse-Synthèse's user avatar
3 votes
0 answers
54 views

Avoid orphaned mdframed box after section heading at end of page

In LaTeX, when I use thmtools (which uses mdframed internally) to create theorem boxes and I use them after a section heading at the end of the page, they often times are placed on the next page ...
Hebol's user avatar
  • 97
0 votes
1 answer
124 views

Change background color of title using declaretheoremstyle

Here's my MWE: \documentclass{report} \usepackage[usenames,dvipsnames,pdftex]{xcolor} \usepackage{amsmath,amsfonts,mathtools,amsthm,amssymb} \usepackage{mdframed} \usepackage{varwidth} \usepackage{...
SingularisArt's user avatar
1 vote
1 answer
59 views

Vertical coloured title with mdframed

I'm trying without sucess to make an environment like this: What I have know is this: The perfect answer to this question would be a way to have the title in colors and text out of the mdframed ...
Peluche's user avatar
  • 611
0 votes
0 answers
55 views

First line after mdframed has no indent

First line after mdframed has no indent. Then everything is normal. How to fit it? Main tex file \documentclass[draft, twoside, 10pt, openright]{extbook} \usepackage[a5paper, outer=15mm,inner=15mm,...
Igor Yukhimenko's user avatar
1 vote
1 answer
40 views

Have an answer space box filling the page using a mdframe

I'm using the exam class to make tests and am using an mdframed solution I found here to make an answer space with dotted lines to write their answers. What I want is to have a way so that the boxes ...
Alec's user avatar
  • 123
0 votes
1 answer
196 views

How to create a colorbox that looks like "example" section in textbooks?

I'd like to create a tcolorbox that looks like "example" sections in many textbooks, for example, something like the attached screenshot. I found one sample code from an online source, ...
Chris XU's user avatar
1 vote
1 answer
30 views

BeamerArticle: Box around text between frames with mdframed causes error

I am using beamerarticle and want to put a box around the content between frames and only when there is really content. Is that possible? I tried it with mdframes package quite symmetric to Framing \...
Arne's user avatar
  • 945
2 votes
1 answer
107 views

No newline after mdframed title (i.e. inline title)

I'm using mdframed for all my theorem-like environments. By default, mdframed titles appear above the body. I want one of my mdtheorem environments to start the body on the same line as the title, ...
Mew's user avatar
  • 771
2 votes
1 answer
59 views

Mdframed and monochrome

When I use the monochrome option with the article class, the background of the mdframed frames is completely black. Is it a bug or just my misuse of the monochrome option? \documentclass{article} %\...
Dan Boucher's user avatar
1 vote
1 answer
74 views

mdframed creates small white lines around the content, how do I get rid of them?

I use mdframed to create a black background in a preview environment. Since I could not figure out how to color the preview border black as well, I set it to 0 and included a black line around the ...
Lando Lingens's user avatar
1 vote
1 answer
37 views

How to Indent Highlighted (with Margins Adjusted) Paragraphs with Mdframed

Consider the code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \usepackage{lipsum} \parindent 10pt \begin{document} \thispagestyle{empty} \lipsum[3] \begin{mdframed}[...
DDS's user avatar
  • 8,491
3 votes
1 answer
82 views

How to Contiguously Shade a Portion of a Paragraph with Color

Consider the code: \documentclass{book} \usepackage{xcolor,soul} \colorlet{soulred}{red!25} \begin{document} \thispagestyle{empty} \LARGE \begingroup \sethlcolor{soulred}% Here is some text. \hl{...
DDS's user avatar
  • 8,491
0 votes
0 answers
100 views

How to change text colour across pages using mdframed

Consider the following MWE: \documentclass[twoside, a4paper, 12pt]{article} \usepackage{amsmath, amssymb} \usepackage[framemethod=TikZ]{mdframed} \linespread{1.5} \usepackage[top=0.85in, bottom=0....
TeTs's user avatar
  • 115
0 votes
2 answers
91 views

Footnotes in mdframed: Why are they not at the bottom of the page?

When I use the mdframed environment around a table, I encounter two problems: (1) The footnotes do not appear at the bottom of the page; (2) The footnotes are marked with letters, while the rest of ...
Sam Y.'s user avatar
  • 187
3 votes
2 answers
227 views

How to center text left and right on the same line?

I'm looking to recreate this title environment below. I think the person used mdframed so I choose to use that as well. I get stuck when I try implementing the course name, professor name or week ...
nocomment's user avatar
  • 363

1
2 3 4 5
17