Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
58 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=...
2
votes
0answers
33 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 ...
2
votes
1answer
27 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 ...
1
vote
0answers
36 views

Hyperlinks from exercises to solutions and vice versa

Writing lecture notes containing exercises and solutions, I would like to create hyperlinks from the exercises to their solutions and vice versa. I use the packages mdframed, hyperref and answers (and ...
0
votes
0answers
38 views

Making a complex framed box

I need to realize a complex series of framed boxes as in the image, but I have no idea about how to male it. Anyone can help me? Thanks!
0
votes
0answers
27 views

mdframed + amsthm + marginnote hides itemize bullet

When using a marginnote inside a amsthm theorem inside an mdframed environment, the first itemize has its bullet destroyed: \documentclass{scrbook} \usepackage{mdframed} \usepackage{amsthm} \...
0
votes
0answers
47 views

Matching colors

I'm having trouble matching colors. I build myself a "top" and "bottom" for an abstract box. However, I can't get the middle background color to work. No matter what I try, even ...
0
votes
1answer
38 views

Modifying the left margins temporarily in nested enumerate environment

I would like to insert in nested enumerate environments some blocks of texts with no left margin. In the following MWE, that means that I would like the three blue framed parts to have a full text ...
0
votes
2answers
35 views

Best way to align itemize list with paragraph indents of the main text

I am using the mdframed package to frame important results in a box. Within the box, I have an itemized list. I would like to reduce the indentation of the itemized list so that the bullets align with ...
0
votes
1answer
35 views

How to use mdframed to create a round cornered box?

I am trying to wrap my text around a round cornerd box, so I chose mdframed package, for whatever reason, it doesn't do what I intend it to do. \documentclass[a4paper,12pt]{article} \usepackage{lipsum}...
0
votes
0answers
24 views

Can someone helps me understanding the following code?

I am trying to replicate the code used in this answer And I am having trouble understanding the following code. \documentclass{article} \usepackage{xcolor} \usepackage[framemethod=tikz]{mdframed} \...
7
votes
2answers
236 views

Color box with rounded corners

Here's my MWE: \documentclass{article} \usepackage[dvipsnames]{xcolor} \colorlet{LightLavender}{Lavender!40!} \begin{document} \colorbox{LightLavender}{hello} world \end{document} It produces ...
0
votes
0answers
18 views

Automatic page break for mdframed near bottom

I've been trying to define my own theorem environment using mdframed package. I'm now encountering a problem with page breaks -- if I start a theorem environment near the bottom of a page, sometimes ...
2
votes
0answers
21 views

Extra space between title and content with mdframed

I have created a "solution" environment for some lecture notes, and I am experiencing an unexplainable space between the word Solution, which is the title of an mdframed environment and the ...
1
vote
1answer
58 views

How to create a gray background?

I am trying to make a gray background for equations like in the pic below using mdframe package but I could not download it properly , so is there another idea or how to download this package ...
0
votes
1answer
21 views

Using package resizegather leads to extra vertical space inside mdframed equations

When I try to add package resizegather, extra vertical space is added into mdframed equations. By gradually truncating the code, I found that commenting package resizegather would fix the problem. See ...
2
votes
2answers
83 views

Wrap Figure is not working properly in mdframed environment

I am using wrapfigure environment but I am getting some unwanted output. My code is \usepackage{wrapfig} \usepackage{lipsum} \usepackage{mdframed} \lipsum[2] \begin{wrapfigure}{r}{0.5\textwidth} \...
1
vote
1answer
92 views

How do I create the same type of grey box with 'newtcolorbox' as 'newmdtheoremenv'?

I wanna convert into using newtcolorbox instead of newmdtheoremv. Here I have a simple, indented, grey box: How do I achieve the same with newtcolorbox? How would I be able to adjust between having a ...
3
votes
1answer
50 views

Paragraph style footnotes within mdframed theorems?

The mdframed package provides a nice functionality to insert footnotes inside a theorem. I am in search of a way to implement the paragraph style of footnote option within a theorem environment. This ...
3
votes
1answer
71 views

How to insert a grid to the environment “Ans.” as if it will be completed by hand?

I've been using the site since starting to learn LaTeX a few months ago, and find it to be very helpful thanks to you all. My Issue is that some professors at my university do not like the assignments ...
1
vote
1answer
67 views

Set text background color *without* mdframed or tcolorbox

It's a known issue of tufte-* that \sidenote and \marginnote won't build if used inside mdframed environments or tcolorboxes. I'm not finding a workaround for that, and most posts on the topic suggest ...
0
votes
0answers
20 views

Other environments within 'lstenvironment' breaks?

Trying to add a color frame to an lstlisting with the mdframed package environment. It works great when I do something like: \begin{mdframed} \begin{lstlisting} code \end{lstlisting} \end{...
1
vote
1answer
30 views

Problem in using “mdframed package” to create lemma frame

I have changed the lemma environment sample inside the mdframed package to create an example environment. I am typesetting in Persian language (which has RTL direction) using XePersian package. The ...
4
votes
3answers
1k views

How to reproduce some attractive pseudo-code

I am trying to reproduce: I have made some progress with the following code: \documentclass{beamer} \usetheme{default} \usepackage{enumitem} \usepackage{framed} \usepackage[framemethod=TikZ]{...
0
votes
1answer
39 views

What's wrong with this Title Page?

I'm having troubles in setting up a simple title-page. Some horizontal lines aren't drawn at the proper place, one on top of the next (see the preview below). I would like to add a white border all ...
0
votes
2answers
43 views

Rotation of mdframed box

I’d like to rotate a fancy box made with mdframed for a take home message on a poster. This is a MWE where rotatebox fails. Also tried package rotation with same effect. Left the minipage environment ...
1
vote
1answer
36 views

Creating a key/option for examwsolns to globally set the default solution width

Following-up this answer, I would like to 1- have a key/option for the package that sets the default width. For example, something like \usepackage[default-width = outer]{examwsolns} 2- understand ...
0
votes
0answers
79 views

How to split theorem environment into two frames?

I am using \newtheorem{thm}{theorem} \begin{frame} \begin{thm} \end{thm} \end{frame} but when theorem is long and frame doesn't have enough space then I used a next frame like, \begin{frame} \end{...
2
votes
1answer
35 views

Grey line connecting outside line with contents of mdframed

This is the same problem as described here, however none of the solutions really helped. In short: when drawing the following box using mdframed, a thin grey line is shown to connect the main box with ...
0
votes
0answers
21 views

Error of Undefined control sequence. \end{frame} appears [duplicate]

I am using coding below for slides, but an error of Undefined control sequence. \end{frame} appears and also \smashoperator[r] not works properly in slides, Need kind suggestions for this issue. \...
0
votes
2answers
48 views

Problem with ''mdframed" : equations not aligned with text

Hi I want to produce this equations environment with mdframed Here is my code \documentclass{book} \usepackage{amsmath} \usepackage{mdframed} \lipsum[1-2] \begin{mdframed}[backgroundcolor=brown!10,...
1
vote
1answer
58 views

How to produce this example environment?

Please, I want to produce this environment of example with the same colors Any ideas please? Thanks.
0
votes
1answer
44 views

How to put 2 sub-figures side by side inside an mdframed example default frame?

Got an error when tried to put 2 sub-figures side by side inside an mdframed example default frame. I tried to use \captionof and also subfigure domain. Below is my main code: \documentclass{book} \...
1
vote
0answers
40 views

How to put a figure created by TikZ + standalone inside an example default frame created by mdframed? [closed]

Got an error when tried to put a figure created by TikZ + standalone inside an exampledefault frame created by mdframed. Below is the main code: \documentclass{book} \usepackage{tikz} \usepackage{...
1
vote
1answer
104 views

How to make a framebox to override marginnote

I'm working on a book where I have to have marginnote's throughout the whole text but I also would like to include some tcolorboxand mdframedenvironments which override this margin. In the image below,...
1
vote
1answer
110 views

How to create a Multicol within a Page-Frame spanning multiple pages

Added 2020-07-05 -- Details of my requirements: Produce a document that frames doublecol and onecol: The frame is supposed to completely frame all content of the document within one frame that is ...
-1
votes
1answer
29 views

How to colour a specific border frame

There is many help about how to insert frame for images and how to colour them, but I couldn't find anything about how to colour blue just the top frame, red the right-frame and so on. I would ...
2
votes
1answer
33 views

mdframed Section Spacing

Code: \documentclass[12pt]{article} \usepackage[framemethod = tikz]{mdframed} \usepackage{enumitem} \usepackage[margin=1in]{geometry} \begin{document} \begin{mdframed} % \section*{...
1
vote
1answer
44 views

minipage inside an mdframed with a footnote

I need to have captioned tables inside an mdframed environment. Since floats cannot be used, I am using captionof alongside tabular. The caption and the tabular might get separated, when there is a ...
0
votes
1answer
28 views

Spurious space? depending on keepaspectratio

Please check the following MWE: \documentclass{article} \usepackage[showframe]{geometry} \usepackage{mwe} \usepackage{tikz} \usetikzlibrary{backgrounds} \usepackage[framemethod=tikz]{mdframed} \...
2
votes
1answer
57 views

Extra space above `amsmath` environment inside `mdframed`

When I use this code some space above appears. \documentclass{article} \usepackage{amsmath} \usepackage{mdframed} \begin{document} \begin{mdframed} \begin{gather*} \lambda^2-2\lambda = 0\\ ...
1
vote
1answer
49 views

mdframed on several pages: bottom and top margins

Despite using splitbottomskip and splittopskip, I cannot manage to have: the frame on page 1 to go to the end of \textheight, the text inside the frame on page 2 to start after a small vertical space....
0
votes
0answers
185 views

mdframed package warning: you got a bad break

When I try to compile my main.tex file, the code inside a frame created with the mdframed package behaves weirdly and gives the following warning: "Package mdframed Warning: You got a bad break ...
0
votes
0answers
17 views

Editing bibliography references to add a fbox or mdframed

I am using printbibliography to create the references section on my .tex, but I want to go through each reference and add a fbox or mdframed around it. How can I iterate each reference and add fbox/...
0
votes
1answer
61 views

Framed list of authors in acmart manuscript

I want to use frame, framed, mdframed, tcolorbox or any other package to create a box around content. But the content I want to put the box around comes from the .cls file. For example, I want to ...
1
vote
1answer
98 views

How can create marking exam with tcolorbox

In order to make an exam, I used the tabular environment, but it still boring, i want to make the something with the nice template tcolorbox, how can use it: \documentclass[11pt,a4paper]{article} \...
1
vote
1answer
58 views

How to force mdframed / tcolorbox height to be pageheight across multiple pages?

I have noticed, when using mdframed and tcolorbox, that it is difficult to force the box to stretch to be exactly the height of the page. Furthermore, the use of newpage and pagebreak does not work ...
1
vote
0answers
39 views

Are there any shaded theorems usable with tufte sidenote/marginnote?

I would like to use tuftes sidenote and marginnote commands. Is there any way to use them in combination with shaded theorems? I tried tcolorbox and mdframed, but both seem to be problematic. The ...
0
votes
0answers
40 views

Converting an element into a float or a non-float depending on its size

in my documents, I often have to put the extract of a normative or legal text that I put in a box to distinguish it from the rest of the text. For that, I use packages like tcolorbox or mdframed. So ...
1
vote
1answer
58 views

How to use mdframed in newcommand

I created a theorem environment for examples where the content of the examples gets framed but not the heading "Example". To allow such frames to break across pages I think I should use mdframed but ...

1
2 3 4 5
15