tikz의 그래픽 수직 규칙

tikz의 그래픽 수직 규칙

{왼쪽에 문자가 있고 전체 단락의 높이와 정확히 같은 높이를 갖는 특별한 유형의 단락을 갖고 싶은 디자인(클래스)을 만들고 싶습니다 . 또한 모든 tikz 그림이 단락의 길이(높이)에 따라 크기가 조정될 수 있도록 확장하고 싶습니다.

여기에 이미지 설명을 입력하세요

답변1

위에서 언급한 내용은 환경이 아닌 명령 형태로 사용하는 경우입니다.

scalerel은 너비가 선택적 인수 값(이 경우 1in)에 도달할 때까지 "{" 기호의 완벽한 크기 조정을 수행합니다. 그보다 더 큰 스케일의 경우 너비가 1인치로 제한되어 해당 지점 너머로 스케일이 아닌 효과적으로 늘어납니다. 이렇게 하면 기호가 너무 커지는 것을 방지할 수 있습니다.

\documentclass{article}
\usepackage{scalerel}
\usepackage{lipsum}
\newcommand\specpar[1]{%
\begin{flushright}
  \scalerel[1in]{\{}{\parbox{4in}{#1}}%
\end{flushright}
}
\parindent 0in
\parskip 1em
\begin{document}

\lipsum[1]

\specpar{\lipsum[2]}

\lipsum[3]
\end{document}

여기에 이미지 설명을 입력하세요

답변2

PSTricks와 함께. xelatex단순화를 위해 로 컴파일하십시오 .

여기에 이미지 설명을 입력하세요

\documentclass{article}
\usepackage{pstricks-add}
\usepackage{bera}
\begin{document}
Karl's students do not care about dashing patterns. 
Karl's students do not care about arrow tips. 
Karl's students, by the way, do not know what a transformation matrix is.

\begin{center}
\begin{minipage}{0.8\linewidth}
\noindent\rnode{A}{\strut}

\vspace*{-1ex}
Karl's students do not care about dashing patterns. 
Karl's students do not care about arrow tips. 
Karl's students, by the way, do not know what a transformation matrix is.

\vspace*{-2ex}
\noindent\rnode{B}{}
\psbrace[braceWidthInner=3pt,braceWidth=1pt,braceWidthOuter=5pt,linecolor=red](A)(B){}
\end{minipage}
\end{center}

Karl's students do not care about dashing patterns. 
Karl's students do not care about arrow tips. 
Karl's students, by the way, do not know what a transformation matrix is.
\end{document}

관련 정보