오류 "! \ tikz @ children @ list 정의에 잘못된 매개변수 번호가 있습니다." 라이브러리 마인드맵 및 하이퍼레프 패키지 포함

오류 "! \ tikz @ children @ list 정의에 잘못된 매개변수 번호가 있습니다." 라이브러리 마인드맵 및 하이퍼레프 패키지 포함

다음 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을 사용하는 경우입니다.

\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}

관련 정보