<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>RGB-otaku</author_name>
  <author_url>https://blog.hatena.ne.jp/RGB-otaku/</author_url>
  <blog_title>コードDE描画</blog_title>
  <blog_url>https://code-de-byouga.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>数式を扱えるLaTeXには、線や円などを描けるtikzパッケージがある。 コマンドを使って描画するのだが、似た様な図形を何度も描くことがある。 その様な場合に便利なループや条件分岐を扱うための構文が存在する。 ここではループの中で条件分岐を使った描画の具体例を5つ示す。 今回は次の４つの構文を扱う。 ifnum ifodd pgfmathparse pgfmathresult 準備 具体例 ifコマンドのみを使って単純な条件分岐 ifnumコマンドと不等号を使用 ifnumコマンドと等号を使用 ifoddコマンド ifコマンドとpgfmathコマンドを使って複雑な条件分岐 数式を使う 論理演算…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcode-de-byouga.hatenablog.com%2Fentry%2Ftikz-loop-if&quot; title=&quot;【LaTeX】【tikz】ループと分岐を組みあわせて描画する例5選 - コードDE描画&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/R/RGB-otaku/20210504/20210504215817.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2020-08-20 00:00:00</published>
  <title>【LaTeX】【tikz】ループと分岐を組みあわせて描画する例5選</title>
  <type>rich</type>
  <url>https://code-de-byouga.hatenablog.com/entry/tikz-loop-if</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
