百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

obsidian-tikzjax

> 编程语言
开源

在笔记中渲染 LaTeX 和 TikZ 图表

692 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在笔记中渲染 LaTeX 和 TikZ 图表

Obsidian TikZJax

一个用于 Obsidian 的插件,可让您在笔记中渲染 LaTeX 和 TikZ 图表。 您可以渲染图表、图形、电路、化学图谱、交换图和其他内容。 以下包可在 '\\usepackage{}' 中使用:

  • chemfig
  • tikz-cd
  • circuitikz
  • pgfplots
  • 数组
  • amsmath
  • amstext
  • amsfonts
  • amssymb
  • tikz-3dplot

使用方法

tikz 代码块中的内容将由 TikZJax 进行渲染。

  • 请记住使用 \\\usepackage{} 加载所需的任何包,并包含 \begin{document} 和 \end{document}。
  • 使用独立文档类别(\documentclass{standalone})。

示例

latex
```
tikz
\begin{document}
\begin{tikzpicture}[domain=0:4]
\draw[very thin,color=gray] (-0.1,-1.1) grid (3.9,3.9);
\draw[->] (-0.2,0) -- (4.2,0) node[right] {$x$};
\draw[->] (0,-1.2) -- (0,4.2) node[above] {$f(x)$};
\draw[color=red] plot (\\\x,\\\x) node[right] {$f(x) =x$};
\draw[color=blue] plot (\\\x, {sin(\\\x r)}) node[right] {$f(x) = \sin x$};
\draw[color=orange] plot (\\\x,{0.05*exp(\\\x)}) node[right] {$f(x) = \frac{1}{20} \mathrm e^x$};
\end{tikzpicture}
\end{document}
```
```
`
````latex
```
tikz
\\\usepackage{circuitikz}
\begin{document}

\begin{circuitikz}[american, voltage shift=0.5]
\draw (0,0)
to[isource, l=$I_0$, v=$V_0$] (0,3)
to[short, -*, i=$I_0$] (2,3)
to[R=$R_1$, i>_=$i_1$] (2,0)--(0,0);
\draw (2,3) -- (4,3)
到 [R=$R_2$, i>_=$i_2$]
(4,0) 到 [短, -*] (2,0);
\end{circuitikz}
\end{document}
```
```
`
````latex
```
tikz
\\\usepackage{pgfplots}
\pgfplotsset{compat=1.16}
\begin{document}
\begin{tikzpicture}
\begin{axis}[colormap/viridis]
\addplot3[
浏览,
样本数=18,
域=-3:3
]
{ exp(-x^2-y^2)*x };
\end{axis}
\end{tikzpicture}
\end{document}
```
```
`
````latex
```
tikz
\\\usepackage{tikz-cd}
\begin{document}
\begin{tikzcd}

T
\arrow[drr, 左弯, "x"]
\arrow[ddr, 向右弯曲, "y"]
\arrow[dr, dotted, "(x,y)" 说明] && \\
K & X \times_Z Y \arrow[r, "p"] \arrow[d, "q"]
& X \arrow[d, "f"] \\
& Y \arrow[r, "g"]
& Z
\end{tikzcd}
\quad \quad
\begin{tikzcd}[行间距=2.5em]
A' \arrow[rr,"f'"] \arrow[dr,swap,"a"] \arrow[dd,swa

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

TypeScriptlatexobsidianobsidian-mdobsidian-plugin

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言