我一直试图将以下 URL 放在引号中:https://integrada.minhabiblioteca.com.br/#/books/9788522112654/cfi/98!/4/[电子邮件保护]:18.2。但是我总是得到以下错误:“!\tikz@children@list 定义中的参数编号非法。”。我通过 latexmk -pdflua -pvc file.tex 命令生成 pdf 文件。下面是 file.tex 代码:
\documentclass{article}
\usepackage{tikz,hyperref}
\usetikzlibrary{mindmap}
\begin{document}
\centering
\begin{tikzpicture}[mindmap]
\centering
\tikzset{every node/.style={font=\fontsize{4mm}{4mm}\selectfont,text width=4cm,minimum size=3cm}}
\node [concept, text=blue!50!black!10,align=center] at (0,0)
{\href{https://integrada.minhabiblioteca.com.br/#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{Problem}}
child [concept]
{node [concept] {\href{https://integrada.minhabiblioteca.com.br/#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{n}}}
;
\end{tikzpicture}
\end{document}
我注意到,如果我编写如下代码,就不会出现此错误。也就是说,如果我仅在节点父级中使用 url,而不在节点子级中使用 url。
\documentclass{article}
\usepackage{tikz,hyperref}
\usetikzlibrary{mindmap}
\begin{document}
\centering
\begin{tikzpicture}[mindmap]
\centering
\tikzset{every node/.style={font=\fontsize{4mm}{4mm}\selectfont,text width=4cm,minimum size=3cm}}
\node [concept, text=blue!50!black!10,align=center] at (0,0)
{\href{https://integrada.minhabiblioteca.com.br/#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{Problem}}
child [concept]
{node [concept] {\href{https://integrada.minhabiblioteca.com.br/#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{n}}}
;
\end{tikzpicture}
\end{document}
答案1
#
我认为是问题所在,用 替换它\#
似乎可以解决问题。
\documentclass{article}
\usepackage{tikz,hyperref}
\usetikzlibrary{mindmap}
\begin{document}
\centering
\begin{tikzpicture}[mindmap]
\tikzset{every node/.style={font=\fontsize{4mm}{4mm}\selectfont,text width=4cm,minimum size=3cm}}
\node [concept, text=blue!50!black!10,align=center] at (0,0)
{\href{https://integrada.minhabiblioteca.com.br/\#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{Problem}}
child [concept]
{node [concept] {\href{https://integrada.minhabiblioteca.com.br/\#/books/9788522112654/cfi/98!/4/[email protected]:18.2}{n}}};
\end{tikzpicture}
\end{document}