Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
12 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
42 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
18 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 \...
  • 564
2 votes
1 answer
23 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, ...
  • 295
1 vote
1 answer
39 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
37 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
27 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}[...
  • 5,657
3 votes
1 answer
74 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{...
  • 5,657
0 votes
0 answers
18 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....
  • 101
0 votes
2 answers
44 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
206 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
20 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
19 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. ...
  • 505
1 vote
1 answer
46 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
73 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
40 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
44 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
28 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
62 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
35 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
81 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
68 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
39 views

pagebreak not working with the combination of tcolorbox + fancyvrb

My tags are follows: \documentclass{book} \usepackage{xcolor} \usepackage{fancyvrb} \newcommand{\VerbBar}{|} \newcommand{\VERB}{\Verb[commandchars=\\\{\}]} \usepackage[breakable]{tcolorbox} \...
  • 11.3k
0 votes
0 answers
29 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
48 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}...
  • 405
0 votes
0 answers
42 views

Hyperref and footnotes in framed environments

I would like to use footnotes in a framed environment (provided by mdframed) and have working hyperlinks to these footnotes. I'm using the tablefootnote package to ensure that footnotes appear at the ...
  • 1
0 votes
1 answer
21 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
51 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
36 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} \...
3 votes
1 answer
141 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,...
  • 46.8k
0 votes
0 answers
25 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
64 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
65 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,317
1 vote
1 answer
68 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
85 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,...
  • 10.3k
1 vote
1 answer
48 views

breakable box with varwidth

PROBLEM Build an environment to put some text in some boxes that should be both breakable across a page and adapt to text width. Unfortunately, packages mdframed and tcolorboxes have the first option, ...
  • 217
0 votes
0 answers
49 views

Decorate environment with vertical bars or background but keeping footnote default behavior (ie text on the correct page)

I'm trying to decorate a long (multipage) quote environment by adding bars on both sides, or a colored background. I've seen environments like mdframed for such cases, but they affect footnotes : they ...
  • 413
0 votes
0 answers
96 views

Which package for shading theorems: tcolorbox, mdframed, or just thmtools?

What are the comparative advantages and disadvantages of each of the following packages for creating shaded backgrounds of theorem-like environments produced using thmtools: tcolorbox, mdframed, and ...
  • 6,701
2 votes
0 answers
77 views

Mdframed with Caption Cannot Break Across Pages

The question is close related to another question, where the accepted answer seems not to work for me. Hence I decided to post a new question here. I'm using the minted package to generate highlighted ...
1 vote
1 answer
111 views

How to make footnote for framed theorem appear at bottom of page?

I recently learned how to put a frame around display-math expressions, and now I'd like to add a footnote to the text in the frame. When I try this, however, the footnote appears at the bottom of the ...
  • 133
0 votes
1 answer
43 views

On importing a tikz picture including node and a large font feature into a tex file

I have a standalone tikzpicture described as below which works well: \documentclass{standalone} \usepackage{tikz} \usepackage{anyfontsize} \newcommand{\bigfont}{\usefont{T1}{cmr}{m}{n}\fontsize{100}{\...
  • 1,503
0 votes
1 answer
116 views

Horizontal and vertical centering of mdframed image on page

I would like to place one large image into the horizontal and vertical center of each page in a multi-page document and simultaneously have each image placed into a thin, black frame. Each image shall ...
1 vote
1 answer
42 views

Footnote number is not shown when \footnotetext is placed inside mdframed

I want to place several footnotes inside a mdframed environment like this \documentclass{article} \usepackage{mdframed} \begin{document} First\footnote{first footnote} \begin{mdframed} Second\...
2 votes
0 answers
51 views

Algorithm environment using mdframed and algorithm2e

I would like to put all my algorithms in mdframed, however I am not quite managing to get what I want. I have changed the algorithm environment to plain, but I would like the caption/title to be left ...
  • 53
1 vote
1 answer
182 views

Parsing optional argument from \newenvironment to \newmdenv

I'd like to parse an optional variable from a custom \newenvironment{example} to an mdframed environment \mytextbox nested in the example environment. What I'd like to achieve is something like ...
0 votes
1 answer
107 views

Transition for boxes/lines over page break

Situation: Currently, I implemented a theorem environment that has a gray line on the left hand side (the implementation should not be too relevant for now). For an example see below. I am quite happy ...
2 votes
1 answer
48 views

Circumvent interaction between memoir and mdframed

I noticed that when I use mdframed in a memoir document I'm not able to change the margin lengths of any frame defined from mdframed. This appears to happen regardless of the place where I try to set ...
  • 439
2 votes
1 answer
83 views

How to align a box and a picture?

I want to align these two things on my document but how can I make it, because if I add \hfill, it doesn't make what I want. How can I make it? \documentclass[12pt, a4paper]{article} \usepackage{tikz,...
's user avatar
2 votes
1 answer
140 views

one-column abstract is moved to next page when I use tcolorbox

I'm making a two-column document, but I need a one-column abstract with background-color for that I am using tcolorbox, if the content of the abstract is too long then the abstract content is moved to ...
  • 299
1 vote
0 answers
49 views

How do avoid empty boxes when splitting framed Theorems over two pages

I am working with mdframed and have the following issue: I am writing some mathematical lecture notes and I am using mdframed for Theorems, Definitions and so on. Sometimes it happens, that the text ...
  • 177

1
2 3 4 5
16