更改标题字体

更改标题字体

我目前正在使用下面的代码。我很好奇 - 如何更改 SetPaperName 下标题中的字体?目前 S 看起来不像 S。是否有类似的字体可以用来获得更好的 S,我该如何更改它?

   \documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}

\usepackage{newspaper}

\date{\today}
\currentvolume{1}
\currentissue{1}

%% [LianTze] The newspaper package also provides 
%% these commands to set various metadata:

%% The banner headline on the first page
%%   (The colon after s: is to get a more
%%   modern majuscule s in this font instead of 
%%   the medieval tall s. For anyone interested 
%%   in the history: 
%%  http://medievalwriting.50megs.com/scripts/letters/historys.htm)
\SetPaperName{The Post}

%% The name used in the running header after
%% the first page
\SetHeaderName{The  Post}

%% and also...

\SetPaperSlogan{``testing''}
\SetPaperPrice{\MakeLowercase{https://intothecryptoverse.com/}}

% [LianTze] times (the package not the font) is rather outdated now; use newtx (see later)
% \usepackage{times}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{picinpar}
%uasage of picinpar:
%\begin{window}[1,l,\includegraphics{},caption]xxxxx\end{window}

%% [LianTze] Contains some modifications
\usepackage{newspaper-mod}
%%... so now you can redefine the headline and byline style if you want to.
%% These can be issued just before any
%% byline or headline in the paper, to
%% individually style each article
%%
% \renewcommand{\headlinestyle}{\itshape\Large\lsstyle}
% \renewcommand{\bylinestyle}{\bfseries\Large\raggedright}


%%%%%%%%%  Front matter   %%%%%%%%%%

\usepackage{lipsum}

\begin{document}
\maketitle

\begin{multicols}{2}

\byline{Introduction }{Benjamin J. Cowen}


\end{multicols}

\closearticle
\end{document}

newspaper-mod.styLianTze Lim tex.SE 用户提供:

\usepackage{newtxtext,newtxmath}
\usepackage{etoolbox}
\newcommand{\headlinestyle}{\itshape\huge}
\newcommand{\bylinestyle}{\scshape\Large}
\patchcmd{\headline}{#1}{\headlinestyle #1}{}{}
\patchcmd{\byline}{#1}{\bylinestyle #1}{}{}

答案1

您使用以及 st- 和 he-连字根据传统印刷规则是正确的黑体字字体。然而,英国和美国的报纸标题并没有严格遵循这些规则,这显然是有先例的,这并不是什么新鲜现象:

  • 第一期华盛顿邮报从 1877 年开始:没有长 s,没有连字符
  • 早期发行时代自 1788 年起:不再使用 He-ligature,但罗马字体的长 s 直到 1803 年才被废弃

在德国,情况至今仍有所不同:

  • 法兰克福汇报:对于某些人来说,这可能很难识别
  • 法语报:长 s 以及 k、A 和 z 可能对某些人来说难以识别

(请注意,“难以识别的形状”是由于使用了属于 Fraktur 组的字体造成的。如果盎格鲁撒克逊报纸使用这种字体作为标题,我会感到惊讶。)

因此,印刷规则会随着时间而变化,并取决于文化背景,对于你来说,放弃传统规则并打破这些连字符可能是合适的(以次优的方式) 通过

\SetPaperName{Th\/e Pos:\/t}

导致

在此处输入图片描述

答案2

嗯,这里的问题是该命令\maketitle直接使用了 fractur 字体(顺便说一下,编程不是很好......):

\renewcommand{\maketitle}{\thispagestyle{empty}
\vspace*{-40pt}
\begin{center}
{\setlength\fboxsep{3mm}\raisebox{12pt}{\framebox[1.2\width]{\parbox[c]{1.15in}{\begin{center}\small \@paperslogan\end{center}}}}}\hfill%
{\textgoth{\huge\usefont{LYG}{bigygoth}{m}{n} \@papername}}\hfill%  <==================
\raisebox{12pt}{\textbf{\footnotesize \@paperlocation}}\\
\vspace*{0.1in}
\rule[0pt]{\textwidth}{0.5pt}\\
{\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}} \hfill \MakeUppercase{\small\it\@date} \hfill {\small\MakeUppercase{\@paperprice}}\\
\rule[6pt]{\textwidth}{1.2pt}
\end{center}
\pagestyle{plain}
}

您可以在代码的序言中更改这一点(参见\makeatletter\makeatother需要,因为该代码中使用了@!):

\makeatletter
\renewcommand{\maketitle}{\thispagestyle{empty}
\vspace*{-40pt}
\begin{center}
{\setlength\fboxsep{3mm}\raisebox{12pt}{\framebox[1.2\width]{\parbox[c]{1.15in}{\begin{center}\small \@paperslogan\end{center}}}}}\hfill%
{\Huge\usefont{T1}{phv}{m}{n} \@papername}\hfill%    % <==================
\raisebox{12pt}{\textbf{\footnotesize \@paperlocation}}\\
\vspace*{0.1in}
\rule[0pt]{\textwidth}{0.5pt}\\
{\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}} \hfill \MakeUppercase{\small\it\@date} \hfill {\small\MakeUppercase{\@paperprice}}\\
\rule[6pt]{\textwidth}{1.2pt}
\end{center}
\pagestyle{plain}
}
\makeatother

因此,有了完整的 mwe

\documentclass{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{microtype}

\usepackage{newspaper}

\date{\today}
\currentvolume{1}
\currentissue{1}

%% [LianTze] The newspaper package also provides 
%% these commands to set various metadata:

%% The banner headline on the first page
%%   (The colon after s: is to get a more
%%   modern majuscule s in this font instead of 
%%   the medieval tall s. For anyone interested 
%%   in the history: 
%%  http://medievalwriting.50megs.com/scripts/letters/historys.htm)
\SetPaperName{The Post}

%% The name used in the running header after
%% the first page
\SetHeaderName{The  Post}

%% and also...

\SetPaperSlogan{``testing''}
\SetPaperPrice{\MakeLowercase{https://intothecryptoverse.com/}}

% [LianTze] times (the package not the font) is rather outdated now; use newtx (see later)
% \usepackage{times}
\usepackage{lmodern}
\usepackage{graphicx}
\usepackage{multicol}
\usepackage{hyperref}
\usepackage{picinpar}
%uasage of picinpar:
%\begin{window}[1,l,\includegraphics{},caption]xxxxx\end{window}

%% [LianTze] Contains some modifications
%\usepackage{newspaper-mod}
%%... so now you can redefine the headline and byline style if you want to.
%% These can be issued just before any
%% byline or headline in the paper, to
%% individually style each article
%%
% \renewcommand{\headlinestyle}{\itshape\Large\lsstyle}
% \renewcommand{\bylinestyle}{\bfseries\Large\raggedright}


%%%%%%%%%  Front matter   %%%%%%%%%%

\usepackage{lipsum}
\makeatletter
\renewcommand{\maketitle}{\thispagestyle{empty}
\vspace*{-40pt}
\begin{center}
{\setlength\fboxsep{3mm}\raisebox{12pt}{\framebox[1.2\width]{\parbox[c]{1.15in}{\begin{center}\small \@paperslogan\end{center}}}}}\hfill%
{\Huge\usefont{T1}{phv}{m}{n} \@papername}\hfill%    % <==================
\raisebox{12pt}{\textbf{\footnotesize \@paperlocation}}\\
\vspace*{0.1in}
\rule[0pt]{\textwidth}{0.5pt}\\
{\small VOL.\MakeUppercase{\roman{volume}}\ldots No.\arabic{issue}} \hfill \MakeUppercase{\small\it\@date} \hfill {\small\MakeUppercase{\@paperprice}}\\
\rule[6pt]{\textwidth}{1.2pt}
\end{center}
\pagestyle{plain}
}
\makeatother

\begin{document}
\maketitle

\begin{multicols}{2}

\byline{Introduction }{Benjamin J. Cowen}

\lipsum
\end{multicols}

\closearticle
\end{document}

您将获得以下结果:

生成的 pdf

个人评论:我喜欢带有fractur字体的版本,而不是这个...

相关内容