使用 tikzposter 包的小写标题

使用 tikzposter 包的小写标题

我是 tikzposter 的新手,希望我的海报标题除第一个单词的首字母外全部小写。像这样:

“正在进行中的海报标题”而不是“正在进行中的海报标题”

我尝试使用这些命令但没有成功:

 \MakeLowercase{} 
 \lowercase{}
 \MakeTextLowercase{} (with the textcase package)

有任何想法吗?

答案1

tikzposter课程确实

\gdef\TP@maketitle{
    \centering
    \vbox{
    \@titlegraphic
        \\[\TP@titlegraphictotitledistance]
        \centering
        \color{titlefgcolor}
        {\bfseries \Huge \sc \@title \par}
        \vspace*{1em}
        {\huge \@author \par}
        \vspace*{1em}
        {\LARGE \@institute}
    }
}

顺便说一句,该类确实有\usepackage{ae},这非常愚蠢。使用\sc更愚蠢。

无论如何,以示例文件为模板,

\documentclass[
  25pt,
  a0paper,
  portrait,
  margin=0mm,
  innermargin=15mm,
  blockverticalspace=15mm,
  colspace=15mm,
  subcolspace=8mm
]{tikzposter} %Default values for poster format options.

 \tikzposterlatexaffectionproofon %shows small comment on how the poster was made at bottom of poster

%%% Added for avoding small caps in the title
\usepackage{etoolbox}
\makeatletter
\patchcmd{\TP@maketitle}
  {\bfseries \Huge \sc}
  {\bfseries\Huge}
  {}{}
\makeatother

%%% added for using a good font
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{substitutefont}
\substitutefont{OMX}{lmex}{cmex}

% Commands
\newcommand{\bs}{\textbackslash}   % backslash
\newcommand{\cmd}[1]{{\bfseries\color{red}#1}}   % highlights command

% Title, Author, Institute
\title{Using tikzposter}
\author{Pascal Richter, Elena Botoeva, Richard Barnard, \& Dirk Surmann}
\institute{}

% -- PREDEFINED THEMES ---------------------- %
% Choose LAYOUT:  Default, Basic, Rays, Simple, Envelope, Wave, Board, Autumn, Desert,
\usetheme{Autumn}
\usecolorstyle[colorPalette=BrownBlueOrange]{Germany}

\begin{document}

\maketitle

% omitted the rest

\end{document}

在此处输入图片描述

答案2

无论初始情况如何均有效

已编辑tikzposter。需要添加\upshape以取消小写字母:

\documentclass{tikzposter}
\newcommand\capone[1]{\caponehelp#1\relax}
\def\caponehelp#1#2\relax{\upshape\uppercase{#1}\lowercase{#2}}
\title{
\capone{work-in-progress}
vs.
\capone{WORK-IN-PROGRESS}
}
\begin{document}
\maketitle
\end{document}

在此处输入图片描述

这里article

\documentclass{article}
\newcommand\capone[1]{\caponehelp#1\relax}
\def\caponehelp#1#2\relax{\uppercase{#1}\lowercase{#2}}

\begin{document}
\capone{work-in-progress poster title}

\capone{WORK-IN-PROGRESS POSTER TITLE}
\end{document}

在此处输入图片描述

答案3

\documentclass{tikzposter}

\makeatletter
\gdef\TP@maketitle{
    \centering
    \vbox{
    \@titlegraphic
        \\[\TP@titlegraphictotitledistance]
        \centering
        \color{titlefgcolor}
        {\bfseries \Huge \@title \par} % <-- removed \sc
        \vspace*{1em}
        {\huge \@author \par}
        \vspace*{1em}
        {\LARGE \@institute}
    }
}
\makeatother


\title{Work in progress}

\begin{document}

\maketitle


\end{document} 

在此处输入图片描述

相关内容