我想在 tikzposter 中运行一个单独的 tex 文件。这可能吗?我在网上找不到任何示例。我想做这样的事情,这里但使用 csvsimple 包会生成带有图形的表格。这是 tikzposter 示例代码和包含在我想要输入的“其他”tex 文件中的有效 csvsimple 示例代码。提前致谢。
tikzposter 代码
\documentclass[25pt, a0paper, portrait, margin=0mm, innermargin=15mm, blockverticalspace=15mm, colspace=15mm, subcolspace=8mm]{tikzposter}
\usepackage{xcolor}
\usepackage{filecontents}
\usepackage{lipsum}
\usepackage{tikz}
\usepackage{adjustbox}
\begin{filecontents*}{csvsimpleCode.tex}
%%somehow incorporate the csvsimpleCode here?
\end{filecontents*}
\title{Title}
\author{Name}
\usetheme{Autumn}\usecolorstyle[colorPalette=BrownBlueOrange]{Germany}
\begin{document}
\maketitle
\block{Text and figure Block}{
\begin{minipage}[t]{0.7\linewidth}
\lipsum[1]
\end{minipage}
\begin{adjustbox}{valign=t}
\begin{minipage}[t]{0.3\linewidth}
\input{./csvsimpleCode.tex}
\end{minipage}
\end{adjustbox}
}
\end{document}
csvsimple 代码
\documentclass{standalone}
\usepackage{csvsimple}
\usepackage{array}
\usepackage{booktabs}
\usepackage{tikz}
\usepackage{graphicx}
\begin{filecontents*}{pseudoDF.csv}
pseudoNSC,pseudoName,strucPath
NSC25348,cLmWrXslh,{\tikz\node[inner sep=0pt] at (0,0) {\includegraphics[width=\linewidth]{example-image-a}};}
NSC07145,tMkSERCJs,{\tikz \shadedraw [shading=ball] (0,0) circle (.5cm);}
NSC31876,erBaDLxPN,{\includegraphics[width=\linewidth]{example-image-b}}
\end{filecontents*}
\begin{document}
\csvreader[head to column names,
tabular=ll>{\centering\arraybackslash}m{0.4\linewidth},
table head=\toprule\bfseries NSC & \bfseries Name & \bfseries strucPath \\\midrule,
table foot=\bottomrule]%
{pseudoDF.csv}{}%
{\pseudoNSC & \pseudoName & \strucPath}
\end{document}