
\textbar
섹션에서 페이지 번호를 분리하기 위해 헤더에 사용합니다 .
\thepage\hspace{0.5ex}\textbar\hspace{1ex}\thesection\sectiontitle
하지만 저는 의 두께를 얇게 하고 싶고 \textbar
(머리 너비 규칙과 일치하도록) 0.15ex로 설정하고 싶습니다. \textbar
페이지 번호와 섹션 제목보다 약간 높아야 합니다( 이미 \textbar
이와 같습니다).
답변1
나는 다음을 \textbar
사용하여 확장할 것입니다 \scalebox{<factor>}[1]
.graphicx
:
\documentclass{article}
\usepackage{titleps,lipsum,graphicx}
\newcommand{\newtextbar}[1][.7]{\scalebox{#1}[1]{\textbar}}
\newpagestyle{main}{
\setheadrule{0.15ex}
\sethead{}{\thepage\hspace{0.5ex}\textbar{} \newtextbar\hspace{1ex}\thesection{} \sectiontitle}{}
}
\pagestyle{main}
\begin{document}
\section{A section}
\lipsum[1-5]
\end{document}
\newtextbar
너비는 \textbar
(기본값)의 70%이지만 를 사용하여 기본값과 실제 너비를 조정할 수 있습니다 \newtextbar[<factor>]
. 1보다 큰 인자는 더 두껍게 만들고, 1보다 작은 인자는 더 얇게 만듭니다.