如何在Overleaf的TikZposter区块中设置左侧横向标题
你可以通过分栏结构实现区块标题居左、右侧插入图片的需求,修改后的可运行代码如下:
\documentclass[a2paper]{tikzposter} %\geometry{paperwidth=1080px,paperheight=1980px} \usepackage{multicol} \usetheme{Board} \usepackage{lipsum} \usepackage{graphicx} \begin{document} \node[above right,opacity=1.2,inner sep=0pt,outer sep=0pt] at (bottomleft) {\includegraphics[width=\paperwidth,height=\paperheight]{example-image-duck}}; \maketitle[titletotopverticalspace=-8cm] % See Section 4.1 \colorlet{blockbodybgcolor}{black} \colorlet{blocktitlefgcolor}{red} \block{~}{ \begin{columns} % 左栏放标题,宽度可自行调整 \column{0.3\linewidth} \textbf{\Huge Ultrastructural analysis} % 右栏放图片,宽度匹配栏宽 \column{0.7\linewidth} \includegraphics[width=\linewidth]{example-image-a} \end{columns} } \end{document}
相关说明:
- 原代码中的
Ultrastructural anylisis存在拼写错误,示例中已修正为正确拼写Ultrastructural analysis - 示例选择在block内容区拆分两栏,自定义程度更高,你可以根据实际需要调整左右栏的宽度占比、标题字体大小等参数
- 如果你需要保留原block标题的背景色块样式,只需在块颜色定义代码后添加
\useblockstyle{TitleLeft}调用tikzposter自带的左侧标题块样式,后续直接将图片放入block的内容参数中,就会自动渲染在标题右侧区域。
内容的提问来源于stack exchange,提问作者Not_Anonymous
相关产品推荐
相关产品推荐

