마지막 질문에서 왼쪽 여백에 상자의 "제목"을 만들고 90도 회전하려면 tcolorbox에 대한 도움이 필요했습니다. 솔루션은 훌륭했지만 아래 MWE에서처럼 "제목"이 함께 실행되는 경우도 있었습니다.
\documentclass[12pt]{article}
\usepackage{framed}
\usepackage{color}
\usepackage[skins,breakable]{tcolorbox} % changed <<<<<<<<<<<<
\tcbset{% changed <<<<<<<<<<<<
mytitle/.style={%
enhanced,
overlay={
\node [rotate=90, anchor=south, fill=tcbcolframe!25] at (frame.west) {\itshape #1};
},
},
breakable
}
\newtcolorbox{mybox}[2][]{%
mytitle={#2},
toprule=0pt,
bottomrule=0pt,
rightrule=0pt,
sharp corners,
#1
}
%opening
\title{}
\author{}
\begin{document}
\maketitle
Gladsome Light of the Holy Glory of the Immortal Father, Heavenly, Holy, Blessed: O Jesus Christ. Now that we have come to the setting of the sun, and behold the light of evening, we praise God: Father, Son, and Holy Spirit, for meet it is at all times to worship Thee with voices of praise, O Son of God and Giver of life: therefore, all the world doth glorify Thee.\\
We now sing the appointed Prokimenon according to the day of the week:
\section*{Evening Prokimenon}
\begin{mybox}[colframe=blue]{Saturday Evening}
The Lord is King: / He is robed in majesty.\\
The Lord is robed, He is girded with strength.\\
For He has established the world, so that it shall never be
moved.\\
Holiness befits Thy house, O Lord, forevermore!\\
\end{mybox}
\begin{mybox}[colframe=blue]{Sunday Evening}
Behold now, bless the Lord, / all you servants of the Lord.\\
\end{mybox}
\begin{mybox}[colframe=blue]{Monday Evening}
The Lord will hear me / when I call upon Him.\\
When I called, the God of my righteousness heard me.\\
\end{mybox}
\end{document}
나는 tcolorbox에 대해 거의 아무것도 모르고 LaTeX의 새로운 환경과 새로운 명령에 대해 어느 정도 알고 있으므로 추가로 몇 가지 작업을 시도했습니다.
\small
다음과 같은 몇 가지 다른 글꼴 크기가 있습니다.
{\small{\itshape #1}}
그런데 상자의 글꼴 크기를 어디에서 변경해야 할지 모르기 때문에 어떻게 진행해야 할지 잘 모르겠습니다.
답변1
스타일 에 약간의 변화를 주었습니다 mytitle
. 이제 제목이 상자의 전체 텍스트 높이에 걸쳐 표시됩니다. 상자 높이가 작을 것이라는 것을 미리 알고 있는 경우 제목이 제대로 렌더링될 수 있도록 충분히 큰 값으로 수동으로 설정할 수 있습니다(이 예의 두 번째 및 세 번째 상자 참조).
\documentclass[12pt]{article}
\usepackage{framed}
\usepackage{color}
\usepackage[skins,breakable]{tcolorbox} % changed <<<<<<<<<<<<
\tcbset{% changed <<<<<<<<<<<<
mytitle/.style={%
enhanced,
overlay={
\node [rotate=90, anchor=south, fill=tcbcolframe!25, text width=\tcbtextheight, align=center] at (frame.west) {\itshape#1};
},
},
breakable
}
\newtcolorbox{mybox}[2][]{%
mytitle={#2},
toprule=0pt,
bottomrule=0pt,
rightrule=0pt,
sharp corners,
valign=center,
#1
}
%opening
\title{}
\author{}
\begin{document}
\maketitle
Gladsome Light of the Holy Glory of the Immortal Father, Heavenly, Holy, Blessed: O Jesus Christ. Now that we have come to the setting of the sun, and behold the light of evening, we praise God: Father, Son, and Holy Spirit, for meet it is at all times to worship Thee with voices of praise, O Son of God and Giver of life: therefore, all the world doth glorify Thee.\\
We now sing the appointed Prokimenon according to the day of the week:
\section*{Evening Prokimenon}
\begin{mybox}[colframe=blue]{Saturday Evening}
The Lord is King: / He is robed in majesty.\\
The Lord is robed, He is girded with strength.\\
For He has established the world, so that it shall never be
moved.\\
Holiness befits Thy house, O Lord, forevermore!
\end{mybox}
\begin{mybox}[colframe=blue,height=5em]{Sunday Evening}
Behold now, bless the Lord, / all you servants of the Lord.
\end{mybox}
\begin{mybox}[colframe=blue,height=5em]{Monday Evening}
The Lord will hear me / when I call upon Him.\\
When I called, the God of my righteousness heard me.
\end{mybox}
\end{document}