\istgame: 付款中的不同顏色 // 動作標籤

\istgame: 付款中的不同顏色 // 動作標籤

我怎麼能夠

  1. “Gerichtsverfahren”紅色和“Verkäufer”藍色的顏色代碼? https://i.stack.imgur.com/1xLfW.png

  2. 對收益做同樣的事情 - (右藍色和左紅色)

預先感謝您 - 我嘗試了一切。

\documentclass{article}
\usepackage{istgame}
\begin{document}

\begin{istgame}[sloped,font=\scriptsize, scale=0.7, align=left]
\setistmathTF{0}{0}{1}


   \xtdistance{42mm}{120mm}
   \istrooto(0){0}
   
      \istb{Gerichtsverfahren, Verkäufer}[a][b]
      \istb {Gerichtsverfahren, Verkäufer)}[a][b] \endist


   \end{istgame}

\end{document}

答案1

手動的istgame 的第 6.2.2 節中描述了為動作標籤著色的各種方法裝飾動作標籤,以及第 6.3.3 節中對收益進行著色的方法裝飾回報

一些例子:

  • 若要為操作標籤和線條著色,請使用\istb[color]{label}。在下面的 MWE 中,這被說明為\istb[red]{Schlafen}[a]{8}
  • 若要僅為標籤選擇顏色,請將顏色標籤以及位置說明符。請注意,在這種情況下,您應該完整地寫出位置,例如,above而不是a。這用 來說明\istb{Schwimmen}[above,blue]{6}
    • 請注意,您也可以將這兩者結合起來,以便獲得紅線和藍色標籤
      \istb[red]{label}[blue](未示出)
  • 若要為收益著色,請將顏色放在位置說明符前面的一組額外的括號中。在 MWE 中:\istb{Gerichtsverfahren, Verkäufer}[a]{2}[[green]below]
  • 若要為標籤的一部分著色,請使用\textcolor{color}{text}。在 MWE 中:\istb{Gerichts\textcolor{red}{verfahren}, Verkäufer}[a]

代碼:

\documentclass{article}
\usepackage{istgame}
\begin{document}

\begin{istgame}[sloped,font=\scriptsize, scale=0.7, align=left]
\setistmathTF{0}{0}{1}
   \xtdistance{42mm}{120mm}
   \istrooto(0){0}
      \istb{Gerichts\textcolor{red}{verfahren}, Verkäufer}[a]
      \istb{Gerichtsverfahren, Verkäufer}[a]{2}[[green]below]
   \endist
      \istrooto(1)(0-1){5}
         \istb[red]{Schlafen}[a]{8}
         \istb{Schwimmen}[above,blue]{6}
      \endist   
   \end{istgame}
\end{document}

結果:

在此輸入影像描述

相關內容