\titlegraphic 中的徽标未显示

\titlegraphic 中的徽标未显示

我尝试使用 在海报中添加徽标而不是标题\titlegraphic,但遗憾的是徽标没有显示。

知道出了什么问题吗?

\documentclass[22pt, a0paper, portrait, margin=20mm, innermargin=5mm, blockverticalspace=0mm, colspace=5mm, subcolspace=0mm]{tikzposter}

\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
\usepackage{mathtools,amsmath,amssymb}
\usepackage{listings}

\tikzposterlatexaffectionproofoff

\definecolorstyle{color}{
    \definecolor{C-BrightBlue}{HTML}{00a1df}
}
{
    \colorlet{titlefgcolor}{white}
}
\usecolorstyle{color}

\definetitlestyle{title}{
        width=0.98\textwidth, 
        linewidth=0pt,
        roundedcorners=15, 
        innersep=10pt, 
        titletotopverticalspace=2mm, 
        titletoblockverticalspace=10mm}
{
        \draw[color=black, 
            line width=5pt, 
            fill=C-BrightBlue, 
            rounded corners=\titleroundedcorners,
            drop shadow=gray] 
        (\titleposleft,\titlepostop) rectangle (\titleposright,\titleposbottom);
}
\usetitlestyle{title}

\definebackgroundstyle{background}{
    \draw[inner sep=0pt, line width = 0pt, color=white](bottomleft) rectangle (topright);
}
\usebackgroundstyle{background}

\titlegraphic{\includegraphics[width=0.2\colwidth]{image.pdf}}
\author{\large \sffamily List of authors.}
\institute{\Large \sffamily List of institutions}

\begin{document}

\maketitle

\end{document}

在此处输入图片描述

答案1

这是一个较小的例子,它演示了问题并找出了原因:

\documentclass[a2paper]{tikzposter}
\titlegraphic{\includegraphics[width=0.2\colwidth]{example-image}}
\author{\the\colwidth} % \the\colwidth prints the value of \colwidth
\begin{document}
\maketitle
\end{document}

在此处输入图片描述

显然,在排版标题时,长度\colwidth没有设置为任何有用的值,并且是 0pt。0pt 宽度的图像很难看清。

改用例如\textwidth\paperwidth或类似明确的长度5cm

\documentclass[a2paper]{tikzposter}
\titlegraphic{%
\includegraphics[width=0.1\paperwidth]{example-image}
\includegraphics[width=0.1\textwidth]{example-image}
\includegraphics[width=4cm]{example-image}
}
\author{\the\colwidth}
\begin{document}
\maketitle
\end{document}

在此处输入图片描述

相关内容