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
17 views

Frame for the Title page of my thesis [closed]

I am working on the cover of my thesis and I am new to LaTeX. I don't manage the advanced option. Can Someone help me with it or have anY I ideas how should be done. I would be greatfull for your ...
1 vote
1 answer
63 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]{...
  • 29
0 votes
0 answers
22 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 ...
2 votes
1 answer
60 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 ...
  • 157
1 vote
2 answers
42 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 ...
  • 157
0 votes
0 answers
25 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 ...
2 votes
3 answers
99 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). ...
1 vote
1 answer
35 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 ...
  • 4,086
2 votes
0 answers
40 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 ...
1 vote
1 answer
34 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 ...
  • 1,144
1 vote
1 answer
26 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, ...
  • 15
0 votes
0 answers
43 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 ...
3 votes
0 answers
43 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 ...
  • 97
0 votes
0 answers
18 views

Unable to define a new environment using Listings [duplicate]

I am currently struggling to define a new environment. I am using xelatex, and xelatex -version outputs: MiKTeX-XeTeX 4.8 (MiKTeX 22.3) © 1994-2008 SIL International, © 2009-2021 Jonathan Kew, © 2010-...
0 votes
1 answer
53 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{...
1 vote
1 answer
52 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 ...
  • 553
0 votes
0 answers
26 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,...
0 votes
1 answer
20 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 ...
  • 113
0 votes
1 answer
139 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, ...
1 vote
1 answer
24 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 \...
  • 768
2 votes
1 answer
41 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, ...
  • 489
2 votes
1 answer
47 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} %\...
1 vote
1 answer
46 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 ...
1 vote
1 answer
33 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}[...
  • 7,356
3 votes
1 answer
76 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{...
  • 7,356
0 votes
0 answers
45 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....
  • 115
0 votes
2 answers
64 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 ...
  • 187
3 votes
2 answers
213 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 ...
  • 353
0 votes
0 answers
27 views

Mdframed. First line jf block with negative indent

I use mdframed as so \documentclass[twoside, 12pt, openright]{extbook} \usepackage[a5paper, outer=15mm,inner=15mm,top=20mm,bottom=15mm,footskip=1.5em,headsep=4pt,headheight=1em]{geometry} %\usepackage[...
0 votes
1 answer
23 views

Soul hl within a mdframed environment won't print footnote number?

I am trying to highlight some text with soul::hl within a mdframed environment defined by newmdenv. I get expected output using: hl text outside of the environment normal text within the environment. ...
  • 598
1 vote
1 answer
48 views

Mdframed buggy with LuaTex + Babel + Urdu

I recently switched from XeTex to LuaTeX (Texlive 2022) for Urdu, and generally things are going well. However, mdframed seems to have a bug (in XeTeX I never experienced this): \documentclass[...
  • 163
2 votes
1 answer
122 views

Use thmtools to add a bar left of a theorem environment

I’m trying to get a theorem environment, that has a title, a line break, and then the body, with a line left of it. Something like the following: I am currently using thmtools. I know that thmbox ...
2 votes
1 answer
67 views

"already defined" error within mdframed

Here is a custom theorem environment that utilizes mdframed: \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage[framemethod=tikz]{mdframed} \usepackage{ifthen} %theorembox style \...
0 votes
0 answers
54 views

mdframed and footnote

I use an mdframed-based example environment that uses greek characters for denoting footnote inside this environment. The problem is that when I start using xelatex (UTF-8 encoding) with the Minion ...
0 votes
1 answer
41 views

How to get rid of italics and how to enumerate chapter wise in theorem box?

Let's consider the code following: \documentclass{article} \usepackage{mdframed} \usepackage{lipsum} \newmdtheoremenv{theo}{Theorem} \begin{document} \begin{theo}[William's theorem] For $n > 1$ ...
  • 103
2 votes
1 answer
105 views

Full width mdframed in enumerate

I am using enumerate to write tutorial problems and would like to include boxed solutions immediately after the problems. I am using mdframed for the boxed solutions (along with environ so that I have ...
  • 103
1 vote
0 answers
36 views

Enforce no pagebreak between a KOMA float (\DeclareNewTOC) and an mdframed environment

The code \documentclass[parskip=half]{scrbook} \usepackage{mdframed} \usepackage{lipsum} \usepackage{xcolor} \newmdenv[ usetwoside=false, leftmargin = \dimexpr-1em-3pt, innerleftmargin = 1em, ...
  • 251
1 vote
1 answer
152 views

Tikz not installed? Yes it is!

I am trying to run some R markdown code, knitting some LaTeX together, and I am getting these odd warnings: Package mdframed Warning: The file tikz does not exist (mdframed) but needed ...
  • 181
0 votes
1 answer
120 views

Align title box and text with horizontal lines in mdframed

I found a neat solution using mdframed to make boxes for theorems, lemmas, and proofs. As brilliant as this solution is, I wonder if it is possible to align the title with the horizontal lines of the ...
0 votes
0 answers
31 views

Marginnote eats first item in thmtool's mdframed

In short, when I create a \marginnote and a list inside of a thmtools box which uses mdframed, the list formatting of the first item in the list gets eaten. Here's a minimal working example. \...
0 votes
0 answers
56 views

What means \p1, \p2 and the nodes P, O, Q, ... in mdframed package?

I want to use mdframed package and I was watching some examples from a template by Marion Lachaise & François Févotte from LaTeX templates But I found this: (in the tikz part) \mdfdefinestyle{file}...
  • 415
0 votes
1 answer
25 views

how do i make a mdframed box appear in the table of contents like a subsection named "box1: mdframedtitle"

i have a mdframed box defined like \mdfdefinestyle{MyFrame}{% frametitlealignment=\center, frametitlerulecolor= black, frametitlerulewidth=0.2pt outerlinewidth=0pt, repeatframetitle =...
  • 129
0 votes
0 answers
73 views

how to set caption under an image inside an mdframed environment with \InsertBoxR

I was trying to set a caption on an image that was placed within an mdframed box at the right side of the document. the structure is like \begin{mdframed}[frametitle={my title},style = MyFrame] \label{...
  • 129
1 vote
1 answer
39 views

Place MDFramed in header only on first page [duplicate]

I'd like to place an MDFramed object inside my header only on the first page of the document. I can't seem to get it to work. Any suggestions? \documentclass[11pt,oneside,a4paper,titlepage]{article} \...
  • 406
3 votes
1 answer
169 views

Nice output for examination

We currently have this MWE with classic Palatino font (or with Times NR). \documentclass[a4paper,12pt]{article} \usepackage[italian]{babel} \usepackage[utf8]{inputenc} \usepackage{mathtools,amssymb,...
  • 49.7k
0 votes
0 answers
45 views

Removing some space between consecutive mdframed boxes

Below is an MWE. In short I would like to change the spacing between consecutive boxes without affecting the spacing between box and text. \documentclass[11pt]{report} \usepackage{parskip} \usepackage{...
0 votes
1 answer
80 views

Mdframed box — why is it cropped?

The first box box on the top (see the image below) is cropped and I don't know why: \documentclass[12pt]{article} \usepackage{mdframed} \begin{document} outside of the \global\mdfdefinestyle{...
0 votes
1 answer
107 views

\surroundwithmdframed does not sourround \lstinputlisting

I need to surround code listings with a customized gray mdframed. To do this I use the very convenient macro \surroundwithmdframed[options]{environment} to instruct that all lstlisting environments ...
  • 1,357
1 vote
1 answer
88 views

Changing number format in newmdtheoremenv or newtheorem

Using the mdframed package (with [frame-method=tikz]) I can create a new environment that resets every chapter with \newmdtheoremenv[<options>]{myenv}[<numberedlike>]{Sample}[chapter] The ...
2 votes
2 answers
106 views

How to get rid of the vertical space after mdframed?

This is my code: \documentclass{article} \usepackage{mdframed} \begin{document} The beginning, \begin{mdframed}[linecolor=red,linewidth=1pt,rightmargin=0pt,leftmargin=0pt,innerleftmargin=0pt,...
  • 11.2k

1
2 3 4 5
16