利用可能なTikZライブラリの一覧と簡単な紹介
クイックリンク
概要** ❧ 交差点ライブラリ ❧ アローチップライブラリ ❧ Decorations libraries ❧ Calc library ❧ Mindmap library ❧ Shapes library ❧ Paper Folding library ❧ Chains library ❧ Shapes library ❧ TikZ への雑多な貢献
TikZの特殊なライブラリを探すことはよくあります。今のところ、すべてのライブラリをロードするパッケージはありません。
*利用可能なすべてのライブラリのリストと短い紹介文(2-3文)はありますか?
ここに集めることができるかもしれません
209
12
概要
以下に、ライブラリの一覧と、それぞれの目的の簡単なまとめを示します(提供されるコードはLaTeXおよび/またはPlain TeX用のもので、ConTeXt用のものではありません)。
usetikzlibrary{arrows.meta}
(`amentusetikzlibrary{arrows}
is deprecated).アローチップのライブラリです。詳細は以下を参照usetikzlibrary{automata}
でアクセスでき、有限状態オートマトンやチューリングマシンを描くために使用されます。 これらのグラフを描くためには、各ノード、その名前、相対的な位置、および各ノード間のパスの種類が定義されている。usetikzlibrary{backgrounds}
でアクセスでき、 "defines background for pictures" でアクセスできます。 Tikzpictureでこれを使用するには、例えばbegin{tikzpicture}[show background rectangle]
のように、オプションが渡され、ピクチャの前に背景の矩形スタイルが定義されています。(例:tikzset{background rectangle/.style={}}
.usetikzlibrary{calc}
からアクセスし、複雑な座標計算を行うことができます。詳細は以下を参照usetikzlibrary{calendar}
です。 このライブラリは、カレンダーを表示するために使用されます (Ronsealのことだと思いますಭ)。 カレンダーはcalendar[
display options and date options](
Name (optional)`) というように定義する。usetikzlibrary{er}
, automata drawing library と同様に、各ノード、各ノード間の各エッジ、および任意の属性が定義されています。 注意点として、属性には下線を引くべきであるが、醜い上に実装が困難であるため、使用しない。 代わりにイタリックが使われる。container''slibrary{intersections}
からアクセスできます。詳細は以下を参照usetikzlibrary{mindmap}
からアクセスします。詳細は以下を参照usetikzlibrary{matrix}
です。 行列は maths モードと同じように定義されますが、行列の各項目には 1 から始まるノードとして値が割り当てられ、各ノードを識別して操作することができます。 デリミタはマトリックスオプションで選択することができ、"Any delimiter that is acceptable to TeX'sleft
command" を使用することができます。tempusetikzlibrary{folding}
.詳細は以下を参照usetikzlibrary{patterns}
. このパッケージは、領域を塗りつぶすためのパターンを定義します" 。 ドキュメントでは、各パターンに名前が付けられ、例が示されています。usetikzlibrary{plothandlers}
. TikZはこのライブラリを自動的にロードする。 各点はプロット用に(ノードとして)定義され、各点には曲線が配置されます。usetikzlibrary{plotmarks}
is used to define additional styles for plots as used above. 各ポイントはpgfuseplotmark{
Plot description`` として定義されます。ССikzlibrary{shapes}
またはusetikzlibrary{shapes.
shape type}
を使用します。 幾何学図形は、名前付きの図形(星形、菱形など)、または指定された辺数の多角形、記号図形、例えば禁煙標識で使用される "禁止記号"、複数の(テキスト)部分を持つ "マルチパート図形、そして最後に、取り消し線付きのクロスなど、前のカテゴリに合わない "misc" の図形が利用可能です。詳しくは下記をご覧くださいsusetikzlibrary{snakes}
and can be best described as curved lines, and are used either between nodes or a border to a shape , or as independent shapes.usetikzlibrary{topaths}
です。 このライブラリは、2点間のパスを定義するために使用され、自動的にロードされます。 さらに、2つのシェイプ間の曲線や、ノードに戻るループのような形をとることができます。usetikzlibrary{trees}
でアクセスできる。 木上の各点はノードとして定義され、子を持ち、各子はそれ自身の子を持つことができる。 木の方向や、子が出る角度も指定できるが、放っておいてもそれなりの結果が得られる。 出典逆カンマは tikzpgfmanual とカレンダーのサンプルより引用しました。矢印ヒントライブラリ。 ==================。
\ usetikzlibrary{arrows.me ta}
によってアクセスされました。説明:。 さまざまな新しいカスタマイズ可能な矢印のヒントを提供します。
例。
参照。
Ti k Z / PGF 3.0.1aマニュアルセクション矢印。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/KVh3L.png。)。
交差点ライブラリ
Accessed by
usetikzlibrary{intersections}
__.Description パスの交差点を自動計算できるようにする。
例 1__
!結果]1です。
例 2__
!幅が描かれたipaths]2です。
!最終画像]3。
Reference
pgfmanual.pdf
, pp.131 et sec.計算ライブラリ。 -----------------。
\ usetikzlibrary {calc}
がアクセス。説明。 拡張座標計算を可能にします。
例。
結果。! 参照。
pgfmanual.pd f
。折紙ライブラリ
Accessed by
usetikzlibrary{folding}
__.Description
コマンドは1つだけだが、(デスクトップで使うような)本格的なカレンダーを作成するのに便利である。
Example
!結果]1です。
Reference
pgfmanual.pdf
, pp.202 et sec.ライブラリを形作ります。 -----------------。
\ usetikzlibrary {shapes}
がアクセス。説明。 形状をフローチャートの一部として配置できます。
例。
結果。! 参照。 http://www.texample.net/tikz/examples/simple-flow-chart/。 大学のインタビューで尋ねられた質問の例から、開始するためのベースとして使用され、サポートとして使用される追加のスタイル(空白)。
マインドマップライブラリ。 ------。
\ usetikzlibrary {mindmap}
がアクセス。説明。
メインのフォーカスポイントは中央に配置され、サブポイントは分岐しています。 各ノードは、その子と同様に定義されています。 ノードは互いに分離することもでき、各ノードは異なる色を付けて相互接続することもできます。 注釈も利用できます。
例。
結果。! 参照。
pgfmanual.pd f
、pp。 207 et sec。チェーンライブラリ。 ------。
\ usetikzlibrary {chains}
がアクセス。説明。
チェーンは、行または列に配置され、通常はエッジで接続されるノードのシーケンスです。 より一般的には、分岐ネットワークのノードを体系的に配置するために使用できます。 行と列でのノードの配置については、マトリックスを使用することもできます(参照。
pgfmanual.pd f
)のセクション17ですが、チェーンを使用して、たとえば行列を使用してすでに接続されているノード間の接続を説明することもできます。 したがって、要素の配置にマトリックスを使用することはしばしば理にかなっています。 接続を説明するチェーン。。チェーンの例。
チェーン。! マトリックスとチェーンの例。
マトリックス。! ラベル付きチェーン。
「チェーン」ライブラリによって作成されたエッジにラボを追加する必要がある場合があります(前に)。 ライブラリではネイティブにサポートされていませんが、ライブラリを微調整でサポートできます。
例は次のとおりです。
エッジあり。! 参照。
pgfmanual.pd f
、pp。 284秒. 例は、チュートリアルの簡略版です。図をチェーンに配置する、pp。 60。ライブラリを形作ります。 -----------------。
\ usetikzlibrary {shapes、shapes.ge ometric、shapes.sy mbols、shapes.ar lows、shapes.mu llipart、shapes.ca llouts、shapes.mi sc}
でアクセス。説明。 標準的なもの以外にもいくつかの形を提供します。
例。
ここに画像の説明を入力してください。! 参照。
pgfmanual.pd f
、419〜461ページ。すべてのライブラリとpfdmanualの短い定義を含むPDFを作成しました。
ここに画像の説明を入力してください。! PDFはtable-libraryにあります。
これは最初のバージョンであり、再読も修正もしておらず、注文は問題ないと思います。 グラフに関する最後のライブラリにはluatexが必要です。
Ti k Zへの誤った貢献(合計70)。
多分これはこの答えを出すのに適切な場所ではありませんが、私はそれが誰かを助けるかもしれないと思います。
Ti k Zへのいくつかの貢献を含むリンクを次に示します。それらのいくつかはパッケージとしてロードする必要があり、いくつかは一般的に
\ usetikzlibrary
を介してライブラリとしてロードできますが、 Ti k Z / PGFマニュアル。代わりに、パッケージなどの独自のドキュメントがあります。パッケージ/ライブラリのいくつかと、それが何をしているのかを非常に簡単に説明します。
-
knots
(tikzライブラリ):交差点を簡単に計算して結び目を描画し、パスを複数のパスに自動的に分割する環境を提供します。 -hobbys
(tikzライブラリ):特定のポイントセットを介して滑らかな曲線を生成するJohn Hobbyのアルゴリズムの実装。これにより、通常の「プロット」演算子よりも曲線のさらなるカスタマイズが可能になり、結果はカスタマイズなしで「プロット」よりもはるかに優れています。 -forest
:Ti k Zだけでツリーを描く前に明確に考慮する必要がある、非常に改善されたツリー描画メカニズムを提供します。 -tikz-cd
:事前定義されたマクロと可換図を描画するためのデフォルト設定を通じてサポートを提供します。 -prooftree
:プロフツリーを描くためのサポートを提供します。パッケージは、数学を教えるために使用される数学のプロフツリーに焦点を当てています。 -pgf-spectra
:簡単な構文を使用して要素のスペクトルを描画します(現在99が利用可能)。 -bloques
:制御理論(エンジニアリング)で使用されるブロック図の描画を容易にするためのマクロのセットを提供します。 -circuitikz
:電子回路の描画に使用されます。 -tikzscale
:tikzpicture
sと\ includegraphics
の間のインターフェースを提供し、tikzpicturesのスケーリング方法を提供します。私は以前のリンクで 65 の貢献を数えました、上記の引用は決して最高でも特別でもありません、それは私が遭遇したものだけです。
------。
孤立した貢献:
ユーザーの@Qrrbrbirlbelにも含まれています(どうやってそう言うのですか??)5つのニートライブラリ(はい、
\ usetikzlibrary
がロードされています)、残念ながらマニュアルがなく、CTANからは入手できません(うまくいけば、そこに到達します)が、[QrrbrbirlbelのGitHubアカウント]()、以下は彼の「About me」プロファイルテキストのほぼコピーペーストです。-
node-families
。node-families
ライブラリは、"依存ノードサイズ"に応答して開発されました。OPは、関連するノードの自動再サイジングを要求して、最小サイズが同じになるようにしています。 次のキーを使用して、同じ次元を持つノードの特定のファミリにノードを割り当てます。 これは画像ごとに機能し、「。aux」ファイルを使用するため、少なくとも2つのコンパイルが必要になります。-
paths.or tho
(ここにコードファイルおよびlibファイルここに)。このライブラリは、Ti k Zが自然に持っている(
|-
と-|
)のようなパス演算子を導入しますが、|-|
や- |-
のようにより高度です。 この回答とこれにも、ライブラリに関する詳細情報が含まれています。-
paths.re ctangle
。paths.re ctangle
ライブラリは、rectangle
パス演算子に2つの同様のタイマー(パスに沿ってノードを配置する関数)を提供します。 通常\ drawを行うとき。 (0,0。) 長方形ノード。[pos = x。]A} 。(1,1。)
ノードA
は、2つの座標を結ぶ線に沿った位置に配置されます。,paths.re ctangle
。,x
は1
より大きい値を想定できます。 (2
まで。) 実際の長方形のパスを表します。, 座標間の線ではありません。, よりよく説明されるように。 [この答え。]https://tex.stackexchange.com/a/106571/16595。).-
patterns.im ages
。このライブラリを使用すると、図形を画像パターンで埋めることができ、テクスチャのある画像を作成するのに非常に役立ちます。 この回答で説明されています。
-
positioning-plus
。これは、1つのノードを他のいくつかのノードに対して配置する方法を提供し、ノードをまたがるノードのセットと同じ大きさにする機能も提供します。 それとは別に、元の「ポジショニング」ライブラリよりも多くのポジショニングオプションがあります。マニュアルがないため、情報はTeX.SX検索エンジンから収集する必要があります(このリンクは適切なフィルターで自動検索します)。
デコレーションライブラリ。
アクセス者
\ usetikzlibrary {装飾。}
。説明。 名前が示すように、これらのライブラリはパスを飾ります。 パスが別のパスで置き換えられることもあります。
すべての装飾ライブラリを以下に示します。 Ctrl< / kbd>を使用します。 + F< / kbd> (Windows)必要なライブラリにアクセスします。
---。
パスモーフィングの装飾。
\ usetikzlibrary{decorations.pa thmorphing}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 装飾を形作る経路は、装飾される経路を「形」または「変形」します。 これは、以前は直線であったものがその後、蛇行曲線であり、 ⁇ 起がある可能性があることを意味します。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/3BWOq.png。)。
---。
装飾を置き換えるパス。
\ usetikzlibrary{decorations.pa threplacing}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 このライブラリは、装飾されるパスを別のパスに置き換える装飾を定義します。 モーフィングの装飾とは異なり、置き換えられたパスはかなり異なる場合があります。たとえば、直線は一連の円に置き換えられます。
例。
*ほとんどの装飾。
*特別な装飾:「ショーパス構造」。
---。
任意のマーキング。
\ usetikzlibrary{decorations.ma rkings}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 マーキングは、「小さな画像」、より正確には、特定の位置のパスに「配置」されている「スコープの内容」と考えることができます。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/TLrBf.png。)。
---。
フットプリントマーキング。
\ usetikzlibrary{decorations.fo otprints}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 このライブラリの装飾は、誰かがパスに沿って「歩いた」かのように、足跡がほとんどないパスを装飾するために使用できます。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/bJxba.png。)。
---。
背景マーキングを形作ります。
\ usetikzlibrary{decorations.sh apes}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 該当なし。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/5RY3u.png。)。
---。
テキストの装飾。
\ usetikzlibrary{decorations.te xt}
によってアクセスされました。説明 [Ti k Zマニュアルから]。 このライブラリの装飾は、いくつかのテキストでパスを飾ります。 これは、曲線に従うテキストを描くために使用できます。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/k5u3t.png。)。
---。
フラクタルの装飾。
\ usetikzlibrary{decorations.fr actals}
によってアクセスされました。説明 [Ti k Zマニュアルから]。
このライブラリの装飾は、フラクタル線を作成するために使用できます。
例。
。![ここに画像の説明を入力してください](https://i.stack.imgur.com/GB1T4.png。)。