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
27 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
36 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
49 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
76 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
19 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
11 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
36 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
22 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
50 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
33 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
34 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
12 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
32 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
65 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
26 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
23 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
36 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
50 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 ...
0
votes
0answers
54 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
0answers
35 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
2answers
35 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
1answer
64 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
1answer
61 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
2answers
90 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
0answers
44 views

mdframed package

Good day. Any idea how to recreate this using mdframed package?
1
vote
0answers
51 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{...
0
votes
2answers
33 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{...
1
vote
1answer
91 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
2answers
60 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} \...
0
votes
0answers
27 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
1answer
67 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
1answer
56 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
1answer
87 views

Fixing my exercise frame

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 ...
0
votes
0answers
23 views

Node at upper right corner, minus 12 pts vertically, using mdframed and tikz

I discovered the mdframed package and have been toying with the framemethod=tikz setting to create a frame with some text in it. I'd like to place some text near the upper left corner, but set a few ...
2
votes
1answer
59 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
1answer
33 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
1answer
39 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
1answer
35 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
1answer
54 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
2answers
113 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
1answer
84 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
0answers
39 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
2answers
27 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
0answers
39 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
0answers
27 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
1answer
112 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
0answers
21 views

How to align figures within mdframed boxes?

I am making a poster using tikzposter. In order to avoid having too much text, I have grouped results using different color codes on mdframed. I added a sub-mdframed in order to highlight that ...
0
votes
0answers
23 views

How to input a box around questions in .cls file

I have this .cls template and I want to know how to wrap questions in a box % Assignment class for homework and exams. ...
0
votes
3answers
127 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. ...
0
votes
2answers
192 views

Adjusting page width/margins in paracol

I can't seem to find an appropriate option in the paracol documentation, but I was wondering if there is a way to easily adjust the margins using the paracol package or if I have to do some external ...

1
2 3 4 5
14