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

learn more… | top users | synonyms

2
votes
1answer
34 views

linewidth and middlelinewidth options in mdframed: wrong information in the documentation?

In the documentation of the package mdframed 1.9b, the author says (p. 7) If you are working width framemethod=tikz or framemethod=pstricks the option linewidth is an alias for the option ...
1
vote
1answer
43 views

mdframed example throwing error

I'm trying to get the following mdframedexample from the package documentation to work (mdframed-example-default page 5), but it's throwing the following errors Missing number, treated as zero T ...
3
votes
1answer
81 views

How to explicitly set the color to transparent/nothing in the options of mdframed?

Is it possible to explicitly set the backgroundcolor option in mdframed package, so that the background stays transparent (or, let's say "empty")? It could be \begin{mdframed}[backgrouncolor = ***] ...
4
votes
1answer
59 views

mdframe size not matching table size

I'm having some problems with the mdframed package in combination with tabular. After figuring out how to get the width of the frame to match the width of the object (a table in my case) using a hack ...
7
votes
3answers
194 views

To make one environment flow into another without empty space

I have this design at the moment. However, when you have many of those, they distract much. I propose to have Answer just on the same line with Question like Question 41 Lorem ipsun. Answer 38 ...
2
votes
1answer
149 views

Breakable boxes with Tikz and right and leftmargin

I've found a method to obtain breakable boxes, using polyglossia for arabic, and the Tikz package and I have two problems... 1) the commands leftmargin and rightmargin of Tikz have no effect on the ...
1
vote
0answers
70 views

boxed text between pages in arabic, rightmargin with tikz

First, I want to thank the members of the discussion of the message Boxed text between pages which was very interesting for my use, so I got a macro in arabic for my examples (which is ...
5
votes
1answer
137 views

Create box around text without creating a paragraph and with line breaking

I want to draw a box (no rounded corners, keep it simple ^^) around one or multiple words. There are two special things: 1) the box should support line break and 2) the box should not cover multiple ...
1
vote
1answer
169 views

How to set width of mdframed? [duplicate]

I am new to latex i want to set a width and height of the mdframed. can any one help me to achieve this task. \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} ...
4
votes
1answer
201 views

How to change the border of mdframed?

I want to change the border color of the mdframe box. By default it take black. \documentclass{article} \usepackage{xcolor} \usepackage{mdframed} \newtheorem{mdtheorem}{Theorem} ...
6
votes
2answers
125 views

How to keep fixed height of mdframed in latex?

I am designing one page in which i need to write 3 mdframed side by side. but all three must be having same height. <mdframed1> <mdframed2> <mdframed3> How can i implement ...
0
votes
4answers
121 views

RTL theorem numbering problem - mdframed and xelatex

I have a problem with wrong numbering order when using mdframed theorem style. As in the MWE, the second theorem number should 2.1.1 (reading from right to left, 1.1 for the section and 2 for the ...
2
votes
0answers
47 views

To visualise Schematic Intersections of Sections over Parts

Assume you have Parts Exotoxins A-B Non-spore-forming Gr+ Some of exotoxins A-B bacteria belong too to non-spore-forming Gr+. I can visualise this by a venn diagram, however I would like show this ...
8
votes
1answer
128 views

How to get more than 3 levels of nesting in mdframed environments?

Before I get to many of "don't do this as it does not look good", I have two modes of my documents: Final mode: where there is ONLY one level of nested mdframed Review mode: where there are numerous ...
2
votes
1answer
120 views

How to have bold font in mdframed environment?

I did not find bold word in the manual. My tex is: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \newtheorem{question}{Question} \mdfdefinestyle{que}{ linecolor=cyan, ...
7
votes
1answer
109 views

Suppressing the frametitle in mdframed tikz frames

I really like the digression style created in mdframed digressionarrows style with custom header. I would like to extend it even further by displaying the frametitle (if it is defined) after the ...
17
votes
1answer
522 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} ...
3
votes
2answers
132 views

Margin note left of mdframed images in a two column page

Is it possible to have a margin note to the left of the left column on the second page with this code and approximately halfway down the page? I cannot get it to show up using \marginpar or the ...
2
votes
0answers
103 views

Package “mdframed” creating arbitrary gaps in the border

I used to define a small environment with the package "mdframed". I've included the package in the following way: \usepackage[framemethod=tikz]{mdframed} This is how I've set up the environment: ...
4
votes
1answer
109 views

Text doesn't wrap correctly inside an mdframed frame (in tufte-book)

Here's a minimal working example illustrating my problem \documentclass[a4paper]{tufte-book} \usepackage{mdframed} \begin{document} \begin{mdframed} In mdframed the text is not correctly wrapped ...
4
votes
1answer
109 views

How can I mimick the listing caption style for my custom “Listing (cont.)” caption?

I have the following LaTeX code which works fine: \documentclass[12pt,a4paper]{article} \usepackage[a5paper]{geometry}% just for the example \usepackage[utf8x]{inputenc} \usepackage{listings} ...
2
votes
0answers
79 views

TeX capacity exceeded when using mdframed inside figure

Sorry if this question has already been answered before. The following code always produce the silly error: TeX capacity exceeded, sorry [input stack size=5000].<write>Package ...
2
votes
1answer
95 views

Problem with thmtools + scrbook + parskip=half

I want to draw a frame around my "thmtools" theorems. Theorems should look like the first example. The problem is that sometimes my theorems are getting quite long and should be spanned over two ...
7
votes
3answers
153 views

Shrink monospaced font in custom (verbatim) environments

I'm redesigning lecture notes for a university class since the students wanted to read the notes on their tablets, e-book readers, etc. I have code blocks in these documents, defined in the cdblk and ...
10
votes
1answer
461 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} ...
1
vote
0answers
208 views

mdframed - eliminating newline and top/bottom space /margins

I'm totally new to (La)TeX, but trying to learn to become more independent. So I'm writing a document which includes periodical revisions that need to be marked in a specific way (a thick black ...
3
votes
2answers
173 views

mdframed error missing begin{document}

I'm trying to use mdframed package. I had a problem running the file Makefile on ubuntu but I found and installed the md-frame-0-1-2-3.mdf files from another pc along with the .cls file my code is ...
2
votes
0answers
101 views

mdframed parchment layout

I have recently found a very nice example of how to create text boxes with a parchment-style layout: http://www.texample.net/tikz/examples/framed-tikz/ Also, here on tex.stackexchange, there are ...
7
votes
2answers
183 views

Title above left line

I'm trying to create a mdframed environment where The title is repeated on every page (works fine with repeatframetitle) the title is left aligned relative to the normal text and this implies that ...
2
votes
0answers
57 views

How to avoid widows-orphans with mdframed?

I have a document with a lot of mdframed boxes ; which option can I set to avoid 'widow' lines at the end of the box (that is, avoid to have small parts of boxes on new pages)? ...
0
votes
0answers
120 views

“Call out box” in a two-column document

I suppose "call out box" probably doesn't have much of a meaning in the TeX world, but a (framed) "box" probably isn't specific enough for what I mean. Anyway, I am compiling the following with ...
9
votes
2answers
420 views

Framed box, over framed text with image

Hi all, I'm a newby in LaTeX but after researching online, I have seen that it is possible to create boxes and frames adjusted to text and images. I am trying to achieve something like the image, ...
0
votes
0answers
49 views

How can I apply a style to \frame{} that is similar to the style of mdframed?

I am often using a "mdframed" package to frame my paragraphs or important statements. I usualy do it like this (MWE): \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...
3
votes
1answer
394 views

Diary in Latex with additional notes on side

I am trying to make a diary that will have the following format Each entry will be inside a colored box Each entry will have a title with the date and an optional title I want the possibility to add ...
1
vote
0answers
77 views

How to align bottom edges of mdframes with bottom of text area

I've got a problem with the alignment of the bottom edges of "mdframes". These aren't aligned with the bottom of the text area, as in the following example: \documentclass{scrartcl} ...
5
votes
2answers
197 views

How to typeset a frame with the title across the boundary?

How could I typeset a frame like: ? I've always used mdframed or tcolorbox to typeset frames but I cannot find mention of such functionality. Is there a simple way of achieving this effect with ...
0
votes
1answer
85 views

documentclass{book} + mdframed + leftmargin [duplicate]

My problem is when I use documentclass{book} leftmargin and rightmargin has no reaction, but It works with documentclass{article}. How I can fix this? I have to use documentclass{book}. enter code ...
2
votes
0answers
161 views

How to highlight words or sentences? [duplicate]

I would like to create something similar to . To begin with, I would like to create a rounded and background-colored highlight of a word (or a short series of words). What package should I use ? ...
1
vote
0answers
146 views

Why are my margins ignored?

Based on this code, I added a title but now I face the problem that the margins are ignored when I use book or scrbook with the twoside option. \documentclass[a4paper,12pt,twoside]{book} ...
28
votes
3answers
524 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 ...
4
votes
1answer
206 views

Using listings inside mdframed causes unknown compilation error

I have a problem with the listings and the mdframed package together. The following code compiles with errors, but the only info I managed to get about it is that it was fatal. ...
4
votes
1answer
223 views

Captioning an mdframed box without making unbreakable

I would like to a have a caption below my mdframed box (outside the border if possible) which sometimes span across multiple pages. I managed to create a caption several ways but the pagebreaks are ...
5
votes
2answers
249 views

mdframed label multiply defined (with listings and paracol)

I use three packages (in a latex "book" document) to display source files (not only tex and sometimes loaded from external files) and their outputs (sometimes loaded from external files) side by side. ...
8
votes
1answer
246 views

mdframed does not split correctly between pages

I use mdframed to make boxes and split them across pages. However, sometimes mdframed splits! very strangly across the pages. In this example he prefers splitting, while there is enough space to put ...
6
votes
2answers
433 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 ...
23
votes
3answers
669 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 ...
0
votes
0answers
405 views

Installed .sty with tlmgr but latex can't find it

I have installed Tex live 2013 Version 3.1415926 and I want to install the package mdframed. My first try was to enter in the terminal tlmgr install mdframed but the terminal responded to me that ...
5
votes
1answer
141 views

Stretchable vertical skip with mdframed

I created an mdframed-based theorem environment as follows: \newmdtheoremenv[outerlinewidth=0pt, leftmargin=0pt,rightmargin=0pt, innerleftmargin=4pt,outermargin=0pt, ...
2
votes
1answer
223 views

How to make a simple framebox with round corners?

I have seen related questions about this one but ever since I tried, none of them worked out. All I want is to make a framebox with a slightly rounded corners with a table inside. I've tried this ...
5
votes
1answer
149 views

Long frames in mdframed

I need to use the mdframed package with frames extending many pages, e.g. more than 20 pages.. Consider the following code: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} ...