答案1
我使用的tikz
包:
\documentclass{article}
\usepackage{lipsum}
\usepackage{tikz}
\newenvironment{mypara}%
{\tikz\draw (0,0)|-(1em,1em);\kern -0.8em}%
{\kern -1em\tikz[baseline]\draw (0em, -0.2em)-|(1em, 0.8em);}
\begin{document}
\begin{mypara}
\lipsum[1]
\end{mypara}
{\small
\begin{mypara}
\lipsum[2]
\end{mypara}}
\end{document}
答案2
三种不使用 tikz 的方法,一种使用amssymb
包符号,两种不需要任何包(MWE 中使用的其他方法只是为了方便显示)。
\documentclass{article}
\parskip1em
\usepackage{lipsum} % for dummy text
\usepackage{multicol}
\setlength{\columnseprule}{1pt}
\setlength{\columnsep}{4em}
\usepackage[margin=2.5cm,paperheight=9cm]{geometry}
\pagestyle{empty}
\usepackage{amssymb}
\begin{document}
\begin{multicols}{3}
% need amssymb
\def\beginpar{\makebox[0pt][r]{\raisebox{1pt}[0pt][0pt]{\Large$\ulcorner$\kern-0.2em}}}
\def\endpar{ \makebox[0pt][r]{~\raisebox{-3pt}[0pt][0pt]{\Large$\lrcorner$}}\par}
\beginpar \lipsum[1][1-2]\endpar
\beginpar \lipsum[3][1-2]\endpar
\newcolumn % without any package
\def\beginpar{\raisebox{0pt}[0pt][0pt]{\Large$\lceil$\kern-.25em}\;}
\def\endpar{\makebox[0pt]{\space\raisebox{0pt}[0pt][0pt]{\Large$\rfloor$}}\par}
\beginpar \lipsum[1][1-2]\endpar
\beginpar \lipsum[3][1-2]\endpar
\newcolumn % also without any package
\def\beginpar{\raisebox{.5ex}[0pt][0pt]{\leavevmode\rlap{\begin{tabular}[b]{|p{.2ex}}\hline\\[-1ex]\end{tabular}}}\;}
\def\endpar{\;\llap{\raisebox{1pt}[0pt][0pt]{\begin{tabular}[c]{p{.2ex}|}\\[1pt]\hline\end{tabular}}}\par}
\beginpar \lipsum[1][1-2]\endpar
\beginpar \lipsum[3][1-2]\endpar
\end{multicols}
\end{document}