KTUG 한국 텍 사용자 그룹

Menu

KTUG :: Q&A 마당 › mdframed에서 skipabove

yihoze | 2012.02.15 11:20:21 | 메뉴 건너뛰기 쓰기

이렇게 작성했는데요.

\documentclass[a4paper]{memoir} 

\usepackage{xcolor}

\usepackage[framemethod=tikze]{mdframed}

\mdfdefinestyle{instance}{

skipabove=0ex,

skipbelow=1ex,

innerlinewidth=0pt,

middlelinewidth=0pt,

outerlinewidth=0pt,

backgroundcolor=lightgray,

innertopmargin=1ex,

innerleftmargin=.5em,

innerrightmargin=.5em,

innerbottommargin=1ex

}

\newmdenv[style=instance]{Instance}


\begin{document} 

If you choose someone or something from several people or things that are available, you decide which person or thing you want to have. 


\begin{Instance}

You choose a menu command or a toolbar command, an item in a popup menu, an item in a segmented control.

\end{Instance}


If you choose someone or something from several people or things that are available, you decide which person or thing you want to have. 

\begin{Instance}

You choose a menu command or a toolbar command, an item in a popup menu, an item in a segmented control.

\end{Instance}


\end{document} 


aboveskip이 기대한 대로 작동하지 않더라고요. 

왜 그런가 했는데, \begin{Instance} 앞에 빈 줄을 두면 제대로 작동하고, 그렇지 않고 윗 줄에 붙여쓰면 제대로 나오지 않습니다.


mdframedaboveskip.png


스타일로 만들지 않고 아예 환경을 만들 때 옵션을 줘버리면 이렇지 않고요.

그러니까 스타일로 만든 경우에만 이런 현상이 발생하는 것 같습니다. 손쉬운 해법이 있을까요?



첨부 [1]

댓글 [4]

댓글 쓰기

목록

KTUG 한국 텍 사용자 그룹