shaded
프리앰블에서 환경 의 수직 공간을 줄이는 방법은 무엇입니까 ? 코드는 다음과 같습니다.
\documentclass[a4paper,12pt]{article}
\usepackage{color,xcolor}
\usepackage{framed}
\colorlet{shadecolor}{blue!11}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\begin{shaded}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\end{shaded}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\end{document}
새 환경을 정의하지 말고 shaded
환경의 일부 속성만 변경하세요.
답변1
주제에서 벗어남: 로드하지 말고 color
더 현대적인 xcolor
.
framed
-internal length를 재정의하여 수직 공간을 재정의할 수 있습니다 OuterFrameSep
.
\documentclass[a4paper,12pt]{article}
\usepackage{xcolor}
\usepackage{framed}
\colorlet{shadecolor}{blue!11}
\setlength{\OuterFrameSep}{0pt}
\begin{document}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\begin{shaded}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\end{shaded}
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
text text text text text text text text text text text text text text text text text text text text text text text text text text text text texttext text text text text text text
\end{document}