Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

毎回LaTeXの記法を忘れるのでメモ #13

Closed
diohabara opened this issue Aug 15, 2021 · 4 comments
Closed

毎回LaTeXの記法を忘れるのでメモ #13

diohabara opened this issue Aug 15, 2021 · 4 comments

Comments

@diohabara
Copy link
Owner

図形を差し込むとき

\begin{figure}[H]
  \centering
  \includegraphics[width=11cm]{src}
\end{figure}
@diohabara
Copy link
Owner Author

diohabara commented Aug 17, 2021

状態遷移図を書くときは次のように

\begin{center}
  \begin{tikzpicture}
    \node[state] (R) {R};
    \node[state] (G) [below right=of R] {G};
    \node[state] (B) [below left=of R] {B};

    \path
      (R)
        edge node {0.2} (G)
        edge [loop above] node {0.8} (R)
      (G)
        edge [loop right] node {0.9} (G)
        edge node {0.1} (B)
      (B)
        edge [loop left] node {0.9} (B)
        edge node {0.1} (R)
    ;

    \node [right=1cm,text width=7cm] at (G)
    {
      \begin{itemize}
        \item Rの直後には、RとGのどちらかが、それぞれ0.8と0.2の確率で光る。
        \item Gの直後には、GとBのどちらかが、それぞれ0.9と0.1の確率で光る。
        \item Bの直後には、BとRのどちらかが、それぞれ0.9と0.1の確率で光る。
      \end{itemize}
    };
  \end{tikzpicture}
\end{center}

@diohabara
Copy link
Owner Author

tikzでノードが重ならないようにする工夫

\node[node, below right = 3cm and 2cm of s1] (s2) {$s_{2}$};
% \node[設定した任意の設定名, ラベルs1に対して下に3cm,右に2cmの位置] (ラベル) {円の中に書きたい文字列};

@diohabara
Copy link
Owner Author

tableを手書きしなくて済むサイト

https://www.tablesgenerator.com/

@diohabara
Copy link
Owner Author

タイムチャートを作るのに使える
https://rawgit.com/osamutake/tchart-coffee/master/bin/editor-offline.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant