Questions tagged [mdframed]
{mdframed} is a package for creating framed boxes that can break across pages.
784
questions
52
votes
3
answers
4k
views
What are the relative strong and weak points between tcolorbox and mdframed?
I think practically we will not use both tcolorbox and mdframed in a single input file. Correct me if I am wrong. So we have to choose either tcolorbox or mdframed. However, without knowing the strong ...
49
votes
5
answers
42k
views
how to get the current chapter name, section name, subsection name, etc?
How can one get the current name of the following: Chapter, Section, Subsection(s), frame, label, mdframed?
41
votes
1
answer
4k
views
How was this tip box produced?
I presume Drew Neil (of Vimcasts.org fame) used some TeX typesetting engine (XeLaTeX?) to typeset his excellent book, Practical Vim. See a screenshot below.
I really like the way his "tip boxes" ...
29
votes
1
answer
4k
views
framed or mdframed? (Pros/Cons)
I'm currently thinking about using shaded and framed sections in my document.
But for now, I couldn't clarify the differences between framed and mdframed (or other packages). Although the ...
27
votes
2
answers
2k
views
MATLAB like command box
hello i am trying to set up style for script box.
so far i got
\begin{script*} >> help \end{script*}
working and displaying
i want final version to look some what similar to this picture
...
24
votes
1
answer
7k
views
Could not get round corner working in mdframed
Round corner is not working in mdframed environment although I followed the example shown in the mdframed package. Below is my code
\documentclass[10pt]{article}
\usepackage{amsmath}
\usepackage{...
22
votes
3
answers
2k
views
Box with rounder corners, but inverted
I am a long time LaTeX user, and recently I needed something which I could not figure out by myself, so I would appreciate anyones time and help.
I need a box with rounded corners, which is easy to ...
20
votes
1
answer
2k
views
How to typeset programming code syntax with annotations?
If possible I would like to know how to this on latex/tikz to add this like (environment and graph) on my ebook.
Thanks a lot!!!
Code im trying to implement:
\documentclass[11pt,fleqn]{book}
\...
19
votes
2
answers
981
views
How to make mdframed ignore descenders in last line
How can we make mdframed to ignore the descenders of the last line in the calculation of the innerbottomsep. In my eyes there are two reasons to desire this:
Inner margin
The optical bottom sep is ...
17
votes
3
answers
6k
views
Inspired beautiful box from Indesign
I found these beautiful box in Math ebooks which is created by Adobe Indesign, I tired mdframed, tcolorbox but I didn't try Tikz.
So could someone create them using LaTeX please?
\documentclass[...
17
votes
1
answer
4k
views
Typesetting a definition
My current set up for type setting definitions is
\newenvironment{definition}[1][Definition:]{\begin{trivlist}
\item[\hskip \labelsep {\bfseries #1}]}{\end{trivlist}}
...
17
votes
3
answers
19k
views
Break Lines in minted environment
Usually when adding code in a LaTeX document, I use the listings package. When trying to modify and personalise styles in listings, @1010011010 suggested to use the minted package.
To be quite frank, ...
15
votes
2
answers
4k
views
Transparent background for mdframed environment?
Is it possible to specify a transparent background colour for the mdframed environment, so that anything which might be underneath will be visible?
15
votes
2
answers
2k
views
mdframed and wrapfig
Before starting the question, I apologize for the large pictures. I had to use some long text to demonstrate the problem.
To generate something like:
I used the following command:
\setlength{\...
14
votes
3
answers
5k
views
Framing section headings
I'm attempting to put a frame around my section headings. I am using the package mdframed which adds functionality to the framed package. It basically draws a box around an object, in an environment....
14
votes
1
answer
2k
views
How to arrange mdframed side by side?
How to arrange mdframed side by side, like
mdframed1 mdframe2
\begin{mdframed}[roundcorner=10pt]
table 1
\end{mdframed}
\leavevmode
\hspace{2cm}
\begin{mdframed}[roundcorner=10pt]
table 2
\...
13
votes
3
answers
3k
views
Print mdframed footnotes at bottom of page instead of after frame
If there is a \footnote inside an mdframed environment, then I can control, via the footnoteinside=false flag, whether or not I want those footnotes included inside the frame or outside. But even when ...
13
votes
1
answer
7k
views
How to insert title in mdframed?
How to insert title in mdframed?
In my example does not work.
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[framemethod=TikZ]{mdframed}
\begin{document}
\...
13
votes
1
answer
4k
views
mdframed: how to prevent a box from splitting? [duplicate]
I would like to prevent an mdframed box to split.
I know it could sound absurd, since mdframed is designed to allow splitting but if it could be done, I would be interested in modifying mdframed so ...
13
votes
3
answers
6k
views
mdframed missing half the frame
Any obvious reason some of the frame is missing here:
\documentclass{article}
\usepackage{color}
\usepackage{hyperref}
\usepackage{mdframed}
\begin{document}
\begin{mdframed}
\begin{enumerate}
\...
13
votes
1
answer
8k
views
Margins of mdframed without any effect
This code
\documentclass[]{scrbook}
\usepackage{mdframed} %
\usepackage{boxedminipage}
\begin{document}
\noindent
\begin{boxedminipage}{1.0\textwidth}
Box of 100 \% width
\end{boxedminipage}
\...
13
votes
1
answer
547
views
mdframed is causing wrong alignment at the bottom of pages
If you would be so kind to compile this LaTeX document:
\documentclass[a4paper,11pt]{book}
\usepackage[paper=a4paper,twoside=true,lmargin=4cm,
rmargin=4cm,bindingoffset=0cm]{geometry}
\usepackage{...
13
votes
2
answers
2k
views
mdframed box of fixed minimum height
I would like my mdframed boxes from MyEnvironment to have a minimum total (title+body) height. The height can be greater (if the content warrants it), but not smaller than a certain size.
I can ...
13
votes
1
answer
2k
views
mdframed with label outside of box
I am looking to do two boxes with mdframed similarly to the following:
The first box is easy but I don't know how to place a label to the left of the second box. The positions of the dashed lines are ...
13
votes
1
answer
5k
views
Is there an debian/ubuntu package containing mdframed.sty?
I found several answers on this site recommending the mdframed package. However, I can't find a ubuntu texlive package that includes this. Do I have to install this manually or am I overlooking ...
13
votes
1
answer
2k
views
mdframed does not split correctly between pages
I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangely across the pages. In this example he prefers splitting, while there is enough space to put ...
12
votes
2
answers
6k
views
Putting frame only around equation using mdframed package
I am in the process of finalizing the notebook text, and I am into framing equations and figures. For this I am testing mdframed package, which produces nice frames. However, I don't know how to ...
12
votes
3
answers
4k
views
How to put round cornered frame around an image
I want a nice colored frame around an image which has rounded corners. Here is my attempt, using mdframed, but, as you can see, the inner edge of the frame is a right-angle, and not rounded. I would ...
12
votes
1
answer
574
views
How this shading effect would be applied to an mdframed environment?
I'd like to apply the following shading effect
proposed in " Fake sheet effect " as a background for a mdframed environment. How can this be achieved?
12
votes
1
answer
885
views
Using mdframed after a section heading
The following is a very contrived example, but it illustrates a problem I am unable to solve with the mdframed package. When the mdframed environment follows a section heading but there is ...
11
votes
1
answer
2k
views
Boxes for SMS Conversation
How can I render a box to emulate an SMS conversation on a mobile device?
Something looking like this (only the inner boxes containing the actual conversation):
Note that I would like this to be ...
11
votes
4
answers
8k
views
SWOT Table - how to convert to an article?
I need a SWOT analyse in color, and I found this one at http://www.mostlycolor.ch/2013/10/colored-blocks-in-beamer.html
:
Can someone help me by converting the beamer, so I can use it in an article? ...
11
votes
2
answers
214
views
Writing a command to detect when in mdframed
I want to write a marginnote command that detects whether it is called within a mdframed environment, in particular I want to be able to distinguish the following
normal text
normal math
text in ...
11
votes
4
answers
9k
views
mdframed: size frame to content
Consider this:
\documentclass{article}
\usepackage[framemethod=TikZ]{mdframed}
\begin{document}
\begin{mdframed}[innerrightmargin=0pt]
TEXT\end{mdframed}
\end{document}
This produces a frame that ...
11
votes
1
answer
1k
views
mdframed and skipbelow
There are many questions online concerning this issue of skipbelow of the mdframed package. For me, this skipbelow issue is not resolved. The version of the mdframed package on my system is:
...
11
votes
1
answer
4k
views
Mdframe environnment on multiple page : top margin
I am using the package mdframed for examples in my report. The frames are split on several pages.
My problem is that on the second page the frame doesn't have any top margin. And this is very ugly.
...
11
votes
1
answer
2k
views
Package mdframed vertical space difference
In the example below I used mdframed to surround my text with a box. The problem is that the vertical space above is different than the space below the box. I found one way to solve it with \vspace*{} ...
11
votes
1
answer
737
views
Subtitle block in mdframed
I am having a small problem with mdframed.sty. The subtitle block seems to have a 0.4pt frame with the same color of the subtitle background. This causes the left and right ends of the subtitle frame ...
11
votes
1
answer
2k
views
Issue with mdframed package
mdframed package creates a beautiful box around the content. And it has the capability to break between pages as in the image below
I have done the decoration of getting the concept 5 : algebraic ...
11
votes
2
answers
4k
views
\prevdepth error with mdframed and listings
I get strange errors with the last versions of mdframed (v 1.4) and listings (v 1.4). Here is a minimal example:
\documentclass{minimal}
\usepackage{mdframed}
\usepackage{listings}
\begin{document}
\...
11
votes
1
answer
930
views
Forbid page break after the title in mdframed
I use mdframed for my theorems like this
\mdfdefinestyle{theoremstyle}{%
%adjustable lengths
%inner margins
innertopmargin=\topskip,
% outter margins
skipabove= 0.1in,
skipbelow= 0.1in,
...
10
votes
2
answers
41k
views
How to put text in minipage top-centered?
I am working on LaTeX and R. I want to put text (here itemize top aligned) in minipage.
In the attached image (dummy image with itemize text), how can I put itemize
. First line
. Second line
on ...
10
votes
3
answers
2k
views
Rounded box with image and text
I'm trying to create a rounded box with both text and image. The desired result is as this:
Where the image is rounded at the left edges.
I have managed everything except the the image part using ...
10
votes
2
answers
900
views
mdframed nested frametitle bug
This issue is fixed in version 1.6b
mdframed at github
When nesting frames the inner most frametitle is used. The frametitle for all these is frame3.
\documentclass{book}
\usepackage{mdframed}
\...
10
votes
1
answer
2k
views
Why is parskip=half messing up the spacing in mdframed?
without parskip:
parskip=half:
\documentclass[parskip=half]{scrartcl}
\usepackage{blindtext}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\usepackage[framemethod=TikZ]{mdframed}
...
10
votes
1
answer
2k
views
mdframed-Put something on the start of one vertical left rule
I would like to obtain something like in the following picture (I've put Z! instead of the danger symbol).
In the following code, I would like to put the danger symbol on the vertical rule.
I think ...
10
votes
1
answer
2k
views
mdframed : Bug with page break? [closed]
I'm trying to use the package mdframed to handle framed boxes, that allow page breaking when the content of the box is too large. Nevertheless, i encounter the following difficulty :
\documentclass{...
10
votes
1
answer
5k
views
drop shadow framed environment using mdframed & tikz
I'm attempting to make a drop shadow environment using mdframed and tikz. So far, I have (perhaps naively) tried
\newmdenv[tikzsetting={fill=green!20,drop shadow}]{myshadowbox}
I know that shadow-...
10
votes
2
answers
372
views
Alignment of environment inside enumeration
I defined an environment to add notes, i.e. pieces of text that are not strictly relevant to the question at hand but perhaps still interesting to read, via
\usepackage[framemethod=tikz]{mdframed}
\...
10
votes
1
answer
2k
views
How to produce a tight box with a fancy border?
I'd like to be able to typeset a tightly-boxed formula with a fancy border.
My progress so far has been to produce a box (with mdframed) with the fancy border I want (with tikz), but instead of being ...