Questions tagged [mdframed]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
24 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}{\...
0
votes
1answer
19 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 ...
0
votes
0answers
33 views

Step-by-step instruction manual using mdframed, dynamic naming help

I'm trying to make a simple step-by-step instruction book based on mdframed. The idea is to be able to use this simple syntax within the instruction book itself: \begin{document} \StepByStep[*]{Text ...
1
vote
1answer
19 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
0answers
17 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 ...
1
vote
1answer
38 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
1answer
27 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 ...
1
vote
1answer
39 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 ...
2
votes
1answer
73 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,...
2
votes
1answer
85 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 ...
1
vote
0answers
29 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 ...
1
vote
1answer
27 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 ...
4
votes
2answers
114 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 ...
3
votes
2answers
120 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-...
0
votes
1answer
29 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 ...
0
votes
0answers
75 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 ...
1
vote
2answers
51 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} \...
0
votes
1answer
33 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 ...
0
votes
1answer
90 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 ...
1
vote
2answers
74 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
40 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
38 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 ...
3
votes
3answers
170 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
45 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
31 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
51 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
42 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
42 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
43 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
25 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
749 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
26 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
24 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
89 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
24 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
127 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} \...
2
votes
1answer
111 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
56 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
79 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
75 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
21 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
31 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
2answers
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
45 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
50 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
37 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
179 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
42 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
58 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
2 3 4 5
15