我已经在框架中编写了文本,但它并没有在下一行继续,而是继续在同一行添加下一个文本,并且生成的文本在框架之外。
\documentclass[12pt]{scrartcl}
\usepackage{xcolor}
\usepackage{amssymb}
\usepackage{fancyhdr}
\usepackage{xparse}
\begin{document}
\framebox(500,360)[t]{\textbf{XX.INTERPRETIVE SUMMARY:}\textit{\begin{tiny}Briefly describe client global preferences/hopes for recovery,your clinical summary,\end{tiny}}
}
\end{document}
答案1
下面是一个带有 的示例tcolorbox
,其标题附加在上面的框中。
\documentclass[12pt]{scrartcl}
\usepackage{xcolor}
\usepackage{amssymb}
%\usepackage{fancyhdr}
%\usepackage{xparse}
\usepackage{blindtext}
\usepackage[most]{tcolorbox}
\newtcolorbox{summarybox}[1][]{%
enhanced,
sharp corners,
colback=white,
coltitle=black,
fonttitle={\normalfont\bfseries},
title={INTERPRETIVE SUMMARY:\quad},
attach title to upper,
fontupper={\itshape\tiny},
#1
}
\begin{document}
\begin{summarybox}
Briefly describe client global preferences/hopes for recovery,your clinical summary.
\blindtext[2]
\end{summarybox}
\end{document}
答案2
如果您需要简单的框架文本,您可以使用framed
包。
\documentclass[12pt]{scrartcl}
\usepackage{xcolor}
\usepackage{amssymb}
\usepackage{framed}
\usepackage{mwe}% for testing purpose only
\begin{document}
\begin{framed}
\noindent\textbf{XX.INTERPRETIVE SUMMARY:}\itshape\tiny Briefly describe client global preferences/hopes for recovery,your clinical summary,
\blindtext[2]% for testing purpose only
\end{framed}
\end{document}