我目前正在使用下面的代码。我很好奇 - 如何更改 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.sty
LianTze 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
答案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}
您将获得以下结果:
个人评论:我喜欢带有fractur字体的版本,而不是这个...