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
13 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. ...
user avatar
  • 400
1 vote
1 answer
40 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[...
user avatar
  • 163
2 votes
1 answer
50 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 ...
user avatar
2 votes
1 answer
35 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 \...
user avatar
0 votes
0 answers
37 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 ...
user avatar
0 votes
1 answer
21 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$ ...
user avatar
  • 103
1 vote
1 answer
49 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 ...
user avatar
  • 13
1 vote
0 answers
34 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, ...
user avatar
  • 137
1 vote
1 answer
58 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 ...
user avatar
  • 181
0 votes
1 answer
41 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 ...
user avatar
0 votes
0 answers
35 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} \...
user avatar
  • 10.9k
0 votes
0 answers
24 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. \...
user avatar
0 votes
0 answers
36 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}...
user avatar
  • 133
0 votes
0 answers
31 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 ...
user avatar
  • 1
0 votes
1 answer
20 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 =...
user avatar
  • 129
0 votes
0 answers
34 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{...
user avatar
  • 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} \...
user avatar
2 votes
1 answer
123 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,...
user avatar
  • 46.1k
0 votes
0 answers
24 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{...
user avatar
0 votes
1 answer
57 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{...
user avatar
0 votes
1 answer
42 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 ...
user avatar
  • 1,307
1 vote
1 answer
49 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 ...
user avatar
2 votes
2 answers
74 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,...
user avatar
  • 10.1k
1 vote
1 answer
36 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, ...
user avatar
  • 217
0 votes
0 answers
47 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 ...
user avatar
  • 403
0 votes
0 answers
69 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 ...
user avatar
  • 6,372
2 votes
0 answers
55 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 ...
user avatar
0 votes
1 answer
67 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 ...
user avatar
  • 123
0 votes
0 answers
55 views

Nomenclature in two pages for a two column Elsevier paper

Is there a way to create a nomenclature that is splitted in two pages for a two-column document ? The typical way with the \begin{framed} or \begin{mdframed} combined with a table*, longtable, ...
user avatar
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}{\...
user avatar
  • 1,491
0 votes
1 answer
73 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 ...
user avatar
1 vote
1 answer
32 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\...
user avatar
2 votes
0 answers
40 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 ...
user avatar
  • 53
1 vote
1 answer
126 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 ...
user avatar
0 votes
1 answer
67 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 ...
user avatar
2 votes
1 answer
47 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 ...
user avatar
  • 439
2 votes
1 answer
81 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,...
user avatar
2 votes
1 answer
116 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 ...
user avatar
  • 299
1 vote
0 answers
45 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 ...
user avatar
  • 167
1 vote
1 answer
38 views

Why does the mdframed-box not adhere to the columnwidth in a multicol-environment?

Since it is impossible, or at least really hacky, to split a command over two arguments, I'd rather use a macro with a new environment to achieve a faster typesetting experience and consistent look. I ...
user avatar
  • 6,260
4 votes
2 answers
235 views

Drawing lines on both sides with mdframed and TikZ (or tcolorbox)

I would like to draw a wavy line on both sides (left and right) of a text. Below is a MWE in which there is a line on the left. I don't know how to add a line on the right. Indeed, I can't find any ...
user avatar
  • 6,130
3 votes
2 answers
147 views

How to draw a frame with an "external padding"?

I want to draw a frame around a part of the text so that the margins around this part of the text are not affected. Below is a solution with the help of tcolorbox. I've found this solution by trying-...
user avatar
  • 6,130
1 vote
2 answers
59 views

Line with left margin and vertically centered text from environment using mdframed package

I am using the mdframed package to put vertical lines in some paragraphs. But I want the text to have a 2cm left margin and all the text to be centered vertically. Neither is working. How could I do ...
user avatar
  • 423
0 votes
0 answers
253 views

Two-column nomenclature too long

I'm writing a research paper and have a rather long nomenclature that I want to put in a frame that spans as many pages as needed. However, when I try to do this, the nomenclature overflows at the ...
user avatar
1 vote
2 answers
81 views

Mdframed with round corner only in the top

I am using mdframed box, my problem is, when I use the value "roundcorner=5pt", the round corner is applied on all sides, I need it in the only the top (). \documentclass{article} \...
user avatar
  • 299
0 votes
1 answer
55 views

wrapfigure goes outside mdframed bounds

I've looked everywhere and can't figure out why using a wrapfigure around an image causes it to go outside an mdframed environment. Things I've Tried tcolorbox minipage inside/outside wrapfigure ...
user avatar
0 votes
1 answer
134 views

Creating a numbered-frames book template

I want to create a template for a book document class (not beamer) where the entire book is written in numbered frames. Below is an example from Kleppner and Ramsey's Quick Calculus showing Frames 25 ...
user avatar
1 vote
2 answers
107 views

A long text done with mdframed overlapped on the gray rectangle done with Mathcha

I have this code, \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usepackage{xcolor} \usepackage{lipsum} \usepackage[framemethod=Tikz]{mdframed} \begin{document} \tikzset{every picture/.style=...
user avatar
  • 46.1k
2 votes
0 answers
47 views

Stacking boxes to decorate the corners of a framed box

I am trying to decorate the corners of a framed box to achieve a result like the image below ... Any suggestions how to stack boxes like this? I am not exactly familiar with tikz, so I was trying to ...
user avatar
  • 21
2 votes
1 answer
115 views

How to place footnote outside box environment

My issue is the following: The footnote gets placed inside the box. However, I want it to be placed and numbered like a normal footnote. How can that be made possible? I provided an MWE for my ...
user avatar
  • 503

1
2 3 4 5
16