由于某种原因 \lhead 会产生不必要的缩进

由于某种原因 \lhead 会产生不必要的缩进

样式模板(tsu-hl.sty): \ProvidesPackage{tsu-hl} \RequirePackage{xcolor} \RequirePackage{tikz} \RequirePackage{adjustbox} \RequirePackage{mdframed} \RequirePackage{enumerate} \RequirePackage{showframe, geometry} \RequirePackage{setspace} \RequirePackage[unicode, hidelinks]{hyperref} % Localization \RequirePackage{ucs} \RequirePackage[utf8]{inputenc} \RequirePackage[T1,T2A]{fontenc} \RequirePackage[english,ukrainian]{babel} % Various symbols \RequirePackage{ marvosym } % Martin Vogel’s Symbols font \RequirePackage{ wasysym } % Waldi Sym­bol font % Needed for the logo \RequirePackage{epstopdf} \RequirePackage[some]{background} % To customize headers and footers and frames \RequirePackage{fancyhdr} \RequirePackage{fancyvrb} % Custom colours \definecolor{tsublack}{cmyk}{.10,0,0,0.95} \definecolor{tsublue1}{cmyk}{1,.4,0,0} \definecolor{tsublue2}{cmyk}{.85,.3,.19,0} \definecolor{tsugreen}{cmyk}{.56,0,.58,0} % Subtitle \newcommand\@subtitle{} \@ifundefined{subtitle}{% \newcommand{\subtitle}1{% \makeatletter% \renewcommand\@subtitle{#1}% \makeatother% }% } % Define headers and footers

\pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{0pt} \renewcommand{\sectionmark}1{\markboth{#1}{}} \lhead{\textbf{\leftmark}} \rhead{\textbf{\rightmark}} \lfoot{\textbf{\thepage \quad | \@title \quad | \@subtitle}}

\renewcommand\maketitle{ \begin{titlepage} \newgeometry{left=16mm,top=10mm,right=22mm} % TITLES
\restoregeometry \clearpage \end{titlepage} }

\newcommand\makeabstract{ \thispagestyle{empty} \hrulefill \vfill \begin{abstract} \begin{minipage}{0.1\textwidth} % PAGE with contacts \end{minipage} \end{abstract} \clearpage }

文档(whatever.tex): \documentclass[a4paper, 11pt]{article} \usepackage{tsu-hl} \usepackage{blindtext}

\date{23.03.18} \title{Template} \subtitle{Template Developement}

\begin{document}

\maketitle \makeabstract \thispagestyle{empty} \tableofcontents \clearpage

\section{Title 1} \blindtext

\subsection{Title 2} \blindtext[2]

\subsection{Title 3} \blindtext[3]

\section{Title 2} \blindtext

\subsection{Title 2} \blindtext[2]

\subsection{Title 3} \blindtext[3] \end{document}

结果:

在此处输入图片描述

答案1

ukraineb.ldf恐怕, 的端线没有受到保护。

显示该问题的最小示例:

\documentclass{article}
\usepackage[ukrainian,english]{babel}

\begin{document}

x\foreignlanguage{ukrainian}{a}x

\end{document}

在此处输入图片描述

%行末缺少注释字符,行中缺少

195 216 233 278 281 293 294 304 314 317 318 328 338

(实际上,只有第 293 行以后的行是必要的,但为了统一,我还添加了前五行)。

添加它们之后,最小示例排版正确:

在此处输入图片描述

相关内容