我一直在嘗試將以下網址放在引號中: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。
\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}