Questions tagged [mdframed]
{mdframed} is a package for creating framed boxes that can break across pages.
784
questions
1
vote
1
answer
66
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
0
answers
532
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
1
answer
133
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
0
answers
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
2
answers
113
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
1
answer
272
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
1
answer
285
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
0
answers
68
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
1
answer
441
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
1
answer
455
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
1
answer
40
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
1
answer
137
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
1
answer
115
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
1
answer
59
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
1
answer
115
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
1
answer
152
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....
1
vote
1
answer
984
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
1
answer
328
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 ...
2
votes
2
answers
343
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
1
answer
181
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
0
answers
69
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 ...
1
vote
1
answer
179
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
vote
0
answers
214
views
Inconsistent spacing after theorem environment (KOMA)
After including the parskip=half- option I'm getting inconsistent spacing after theorem environments (Sometimes there's more space than it should). If I don't use that option the problem goes away but ...
0
votes
0
answers
49
views
How to draw a code block in LaTeX as in Markdown? [duplicate]
Code blocks are frequently used in Markdown as shown in the picture below. I am wondering whether there is a way to display the same thing in LaTeX, namely an auto-sized, shaded, rounded-corner box ...
0
votes
3
answers
394
views
How to make text normal and not italic in frame?
How can you make the text normal in the frame below and not italic?
\documentclass[a4paper]{article}
\usepackage{mdframed}
\usepackage{ntheorem}
\definecolor{superlightred}{HTML}{F5F5F5}
\...
3
votes
1
answer
354
views
tcolorbox and mdframed not working
I would really like boxes to surround remarks or course refreshers and I want them to take up the whole page width (remarks that arise during an exercise but need to be visually accessible for later ...
1
vote
1
answer
106
views
Two TikZ pictures on the same line with mdframed
I'm looking to get two images besides each other in the same frame. This is what I want to make:
I have this:
\documentclass[12pt]{article}
\usepackage[lmargin=.5in, rmargin=1.5in, marginpar=...
2
votes
2
answers
713
views
How do i remove the black borders from the background?
I want to remove the black border around the colored box. How can i do that?
And also change the lenght and with of the box
\documentclass{article}
\usepackage[margin=1in]{geometry}
\usepackage{...
1
vote
0
answers
229
views
mdframed package
Good day. Any idea how to recreate this using mdframed package?
1
vote
0
answers
97
views
Two different framed environments: Strange error message
My code includes the following minimal example:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{amsthm}
\usepackage{...
1
vote
2
answers
310
views
Space between text and upper line in mdframed [duplicate]
I am using the following code:
\documentclass[11pt,a4paper,twoside]{book}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{mdframed}
\theoremstyle{...
2
votes
1
answer
970
views
Side Text box placing
I am new to latex. Can't figure out how to put a side text box. I tries using \usepackage{wrapfig} but as it is inside enumerate it can't be done.
Here is an image of what I want to do. left one is ...
1
vote
2
answers
101
views
Caption without background color in LaTeX with mdframed
I am trying to get the figure environment renewed using mdframed to get every figure with a grey background. However, the caption should not have this grey background.
\documentclass{article}
\...
1
vote
1
answer
71
views
Framing \frame using mdframed with beamerarticle
I want to generate handouts in article style that include my beamer slides (mostly diagrams) and explanations.
For that I am now considering to use beamerarticle. I want to frame the slides using ...
2
votes
1
answer
101
views
Enclosing leaders by a border/frame
Following-up this answer, how can I edit the command \FillAnswerRules to enclose the leaders by a border/frame by using tocolorbox or mdframed so that I can get the same output of \CountAnswerRules?
\...
3
votes
1
answer
298
views
Mdframed and BC logo Option Clash
I want to apply these two boxed which used mdframed and tikz package but it seems not to work well. Can somebody help me fix it? Thank you
\documentclass[12pt,a4paper]{book}
\usepackage[utf8]{vietnam}...
0
votes
1
answer
166
views
Fixing my exercise frame [duplicate]
Firstly, My english is not good so if there is any mistake, please let me know.
I want to create a new environment in latex in order to make this frame
But when the text in frame is too long, there ...
2
votes
1
answer
319
views
Proof heading moved when combining mdframed, amsmath and amsthm
I have a document in which I declare a thm environment using amsthm, and then I decorate these theorem using \surroundwithmdframed from mdframed package. In addition, I have the amsmath for other ...
1
vote
1
answer
84
views
footnotedistance key undefined error in mdframed
My preamble is as follows:
\documentclass{book}
\usepackage{xcolor}
\usepackage[framemethod=default]{mdframed}
\usepackage{lipsum}
\newmdenv[skipabove=7pt,
skipbelow=7pt,
rightline=false,
leftline=...
2
votes
1
answer
51
views
Why is the alignment of an MdFramed environment affected by an included caption differently in the scrbook and the article document classes?
I am trying to produce a floating table with a caption, both the table and the caption should be surrounded by a frame. The frame should have a width which reflects the size of the table and the ...
0
votes
1
answer
38
views
How can I get a lined-text only in a few parts of the text? (please refer to figure in attachment)
I would like to have some parts of my text with the following background (like the attached figure). How can I do this??
I believe is something relatively easy. Hope someone could help me with that.
...
2
votes
1
answer
373
views
Floating environment with caption outside the box
I have defined a float environment following this answer in the "optional caption" version:
\documentclass{article}
\usepackage{newfloat}
\usepackage{caption}
\DeclareFloatingEnvironment[fileext=frm,...
0
votes
2
answers
304
views
Mdframed two color on background and text as watermark
I will expand the old question a little. I need something like this.
There are no graphs in the background, everything is text.
I did not find a way to put the text on the background, as soon as I did ...
0
votes
1
answer
250
views
Unwanted gray line using mdframed
I'm using mdframed to surround my theorem environment with a double line on the left side (trying to reproduce Hatcher's "Algebraic Topology"). It works nearly perfectly, except for two little ...
0
votes
0
answers
107
views
Background image in mdframed left top
I want use picture in frame as watermark. mdframed was used as this How can I insert a background image in mdframed
If the picture is centered, as indicated in the example, everything is ok, but if I ...
2
votes
2
answers
37
views
subtitleabovelinecolor option not taken into account
I'm using the mdframed package to draw a theorem command.
However, the option subtitleabovelinecolor of the subtitle frame is not taken into account, while the command subtitleabovelinewidth is.
...
0
votes
1
answer
183
views
The leftbar environment and enumerate
I'm looking to work on my homework template, and I've come to a wall. I'm trying to make the leftbar environment from the mdframed package work with the questions environment such that the bar is ...
0
votes
0
answers
40
views
Spaces between mdframed and tabularx
I'm building a sort of information sheet, and do to that I'm using a combinaison of tabularx (for small text frames) and mdframed (for long text+formatting frames.
The problem happens in the space ...
0
votes
1
answer
1k
views
mdframed even top and bottom margin for environments
I'm trying to use LaTeX for my current ODE lecture and use mdframed for a "boxed proposition" to make it easier for the reader to distinguish the formulation from the proof.
This is what I use to ...
0
votes
3
answers
402
views
Tikz/Graphing in a framed box with shadow
I am trying to graph a function by using tikz in a framed box with shadow as in the following links.
www.math.uakron.edu/~dpstory/tutorial/demos/tangent.pdf
I shall be very happy if you can help.
...