
\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
は の幅の 70% になります\textbar
(デフォルト)。 を使用すると、デフォルトと実際の幅を調整できます\newtextbar[<factor>]
。係数 > 1 では幅が太くなり、係数 < 1 では幅が細くなります。