0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

circuitikzの雑多メモ

Posted at

はじめに

circuitikzについて、基本的なものを含めた、個人的な雑多メモです。
環境

  • LuaHBTeX, Version 1.18.0 (TeX Live 2024/Arch Linux)

  • circuitikz 1.6.7

節点

回路が接続されていることを示す節点(黒丸)は、アスタリスクを用いて表現する。

ソース

\draw
  (0, 0) -- ++(2, 0)
  (1, 1) to[short, -*] ++(0, -1);

出力結果

image.png

入出力ポート(白丸のもの)

先ほどのノードで使ったアスタリスクを、oに変える。

ソース

\draw
  (0, 0) node[op amp](opamp1){\small NJM4580}
  (opamp1.-) to[short, -o] ++(-2, 0)
  (opamp1.+) to[R=$R_1$, -o] ++(-2, 0)
  (opamp1.out) to[C=$C_1$, -o] ++(2, 0);

出力結果

image.png

ラベル位置の変更

ソース

\draw
  (0, 0) to[R=$R_1$] ++(2, 0);

出力結果

image.png
これの上下を反転させる。

ソース

\draw
  (0, 0) to[R, l_=$R_1$] ++(2, 0);

出力結果

image.png

2つの点の間を水平、垂直な線で結ぶ

2通りある。

ソース

\draw
  (0, 0) node[left]{A} coordinate(Q)
  (4, 3) node[right]{B} coordinate(R)
  (Q) -- (Q -| R) -- (R);

出力結果

image.png

ソース

\draw
  (0, 0) node[left]{A} coordinate(Q)
  (4, 3) node[right]{B} coordinate(R)
  (Q) -- (Q |- R) -- (R);

出力結果

image.png

参考にしたページ

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?