4
votes
0answers
58 views

Wrong vertical alignment using mdframed with tight margins

When using the mdframed environment with absolutely tight margins (all set 0pt), there is too much negative vertical space of split md-frames that are placed at the top of a page. To illustrate this, ...
3
votes
1answer
36 views

skipbelow does not work for combination of mdframed and thmtools

I am trying to alter the space below a theorem box, which is created using thmtools and mdframed. \documentclass{scrartcl} % % \usepackage{amsthm} \usepackage{thmtools} \usepackage{mdframed} % ...
5
votes
2answers
35 views

get rid of whitespace after postheadhook thmtools

I want to get rid of the stupid white space after the postheadhook \newline (see before asdasd) in the following example: %!TEX TS-program = XeLaTeX %!TEX encoding = UTF-8 Unicode % ...
10
votes
1answer
150 views

mdframed: how to prevent a box from splitting if the remaining content (or the initial content) is too small?

Question I would like to prevent mdframed to split a box too early or too late. By this, I mean that I would like the remaining part of the box to always be greater than a fixed length, given before. ...
5
votes
1answer
142 views

mdframed: splittopskip does not work when the first object after splitting is another mdframed box

Question I would like to add space in an mdframed environment after a splitting (a page break) and in the case where the first object after the splitting (the page break) is another mdframed ...
4
votes
1answer
62 views

Label inside mdframed messes up spacing

I have a problem with mdframed in combination with \parskip and \label. Consider the following code, which is a MWE stripped down from a large document. \documentclass{article} ...
5
votes
2answers
137 views

Extra vertical space inside mdframed theorem environment

I have seen several similar questions on TeX.SE of a similar nature, but none of them seem to address my precise issue. I have been working with mdframed environments for a while. I read that there ...
11
votes
2answers
387 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 ...
7
votes
1answer
256 views

Spacing with framed and mdframed packages

I have a slight problem with the framed package when combined with the itemize environment: \documentclass[parskip]{scrartcl} \usepackage{fancybox} \usepackage{framed} \newenvironment{simpages}% ...
2
votes
1answer
131 views

Eliminate overfull hbox warning for mdframed frame that goes into margin

I like my mdframed frames to go into the margin, so that the text is not effected, by using a negative leftmargin and rightmargin. However this results in an Overfull \hbox (0.43031pt too wide) ...
2
votes
2answers
414 views

Problems with mdframed

I am trying to put a box around matlab code but the bottom of the box sits extremely close to the next line. I try a line break but it does not work. Any ideas? \documentclass[a4paper,12pt]{article} ...
7
votes
1answer
173 views

How to remove space surrounding a colored theorem box?

This is a follow-up question of Combining spacebelow with shaded parameter in thmtools package. Bug?. How can I get rid of the space above the theorem box? If I comment out the mdframed=... line it ...
4
votes
1answer
138 views

No space above first \item inside mdframed [closed]

Problem This is what happens: But I want the same vertical spacing before the first list item inside the mdframed environment as outside of it. How can I do this? Code \documentclass{article} ...
7
votes
1answer
305 views

Add vertical space before and after framed-theorem environments

I want my theorem-like environments to be framed, as it's an effective way of making them stand out from the main text. According to Gonzalo Medina's answer to the question box around theorem ...
2
votes
1answer
163 views

How to move frame down in LaTeX?

I am writing one article using top and bottom margin. \usepackage[top=.5cm, bottom=.8cm, left=1cm, right=1cm, includefoot,showframe]{geometry} I observe some spacing between frame and footer ...
4
votes
1answer
159 views

Incorrect vertical spacing inside a mdframed environment

I have some problems about vertical spacing before and after some environments inside a mdframed environment. It is as if topsep=0. The insertion of \setlengh{\topsep}{8pt plus 2pt minus 4pt} fixes ...
10
votes
1answer
445 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} ...
7
votes
2answers
473 views

Making mdframed paragraph behave like normal paragraphs in terms of spacing

I'm using the mdframed package to highlight a paragraph with rules on both sides. However, the mdframed-environment creates a box for the paragraph inside of it and so the spacing around it is ...
6
votes
1answer
306 views

Equation spacing issue with fleqn (amsmath) and frenchb (Babel)

This is a follow-up to this question. Here is an exemple of the code I wrote to add a light gray background to important equations: \documentclass{article} \usepackage[fleqn]{amsmath} % ...
5
votes
1answer
201 views

Space between two instances of a self-defined environment

I have created an environment for my excercises. The problem now is, that if I have different excercises (Excercise 1, Excercise 2 and so on) there is always a little space between them. I have a ...
13
votes
1answer
324 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} ...
3
votes
1answer
371 views

mdframed package + align gives extra vertical space

I think I may have stumbled upon a bug in the mdframed package. I have an mdframed environment with just one align environment inside it. Consider this minimum working example: ...
3
votes
1answer
376 views

Inconsistent horizontal width of mdframed with only display math content

Update 2012-03-09: With an version of mdframed updated today, this is now fixed in the package and no longer requires the workaround provided below. In Excess vertical space in mdframed ending with ...
7
votes
2answers
579 views

Excess vertical space in mdframed ending with display math environment

When the mdframed environment ends with an align there is excess vertical spacing at the bottom. I would like to adjust the MyBoxedEnvironment environment such that the vertical space at the bottom ...
4
votes
1answer
525 views

Suppress top skip between own frame environment and itemize

I need to typset a book with a given definition of {itemize} and I added a {framed} environment by using mdframed. If the first line inside {framed} is normal text everything is fine but if it ...
4
votes
1answer
709 views

Vertical spacing problem related to the mdframed environment

I use the mdframed package with option style=1, which means that TikZ is responsible for drawing frames: \documentclass{article} \usepackage[style=1]{mdframed} \begin{document} \noindent Text ...