Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

In the following MWE, I have used everyline=true. Is there any way to ensure that the vertical distance between the bottom of the frame on Page 1 to the bottom of text to be the same as the vertical distance from the top of the frame to the beginning of the text? Same question for Page 2.

\documentclass{article}

\usepackage{tikz}
\usepackage[framemethod=TikZ]{mdframed}

\usepackage{blindtext}

\begin{document}

\begin{mdframed}[roundcorner=5pt, everyline=true]
\begin{enumerate}
\item \blindtext
\item \blindtext
\item \blindtext
\item \blindtext
\end{enumerate}
\end{mdframed}

\end{document}
share|improve this question
I don't know I understand your question. Sorry. But the splitting point is calculated during the compilation. – Marco Daniel Mar 10 at 17:37
Page 1: The vertical distance between the first line of the text, i.e. Lorem ipsum dolor sit ... and the beginning of the frame is fine. Let's call this distance d1. On the same page, before the frame splits, the vertical distance between the bottom of the frame and the last line of the text, i.e. Ut porttitor. Praesent in sapien. Lorem ipsum dolor sit amet, is not the same as d1. This makes the frame look ugly. – Reza Mar 10 at 17:46
1  
You can set splitbottomskip and splittopskip. Is that what you want? – Marco Daniel Mar 10 at 18:01
Thanks Marco. Yes indeed. – Reza Mar 10 at 18:07
I have just tested with splitbottomskip=0.5\baselineskip and splittopskip=0.5\baselineskip options. First page is fine now. But it does not do anything on the second page. – Reza Mar 10 at 18:08
show 1 more comment

closed as too localized by Marco Daniel, Kurt, Thorsten, Martin Schröder, Werner Mar 10 at 21:45

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, see the FAQ.

Browse other questions tagged or ask your own question.