2025-12-25
杂谈
00

目录

在线编辑器
QQbot 使用说明
网站中应用
例子
积分、根号和边缘
极限和求和
多行公式
矩阵
连分数
图片环境
xy-pic图
TikZ图
TikZ Plots

在线编辑器

QQbot 使用说明

  1. 将下面整个代码内容复制粘贴到上面的在线编辑器中。
  2. <正文>替换为你想要输入的代码。
  3. 在添加了QQ号为996533295的QQ群中使用这段代码进行回复即可。
latex
/latex <正文>

网站中应用

  1. 在上面的在线编辑器中编辑,可以在SVG Preview中查看效果。
  2. 复制Image URL中的URL,并插入网站。
  • Markdown中插入方式
Markdown
![自己起的图片的名字](Image URL)
  • HTML中插入方式
html
<!-- 插入一张网络图片并设置尺寸 --> <img src="Image URL" alt="图片内容的文字描述" width="300" height="200"> <!-- 插入另一张图片,使用样式实现自适应 --> <img src="Image URL" alt="图片内容的文字描述" style="max-width: 100%; height: auto;">

同时可以设置图片水平居中

html
<div align="center"> <img src="Image URL" alt="图片内容的文字描述"> </div>

例子

积分、根号和边缘

Integrals, Roots and Borders
latex
\boxed{ \int\limits_{-\infty}^{\infty} e^{-x^2} \, dx = \sqrt{\pi} }

极限和求和

Limits and Sums
latex
\gamma \overset{\text{def}}{=} \lim\limits_{n \to \infty} \left( \sum\limits_{k=1}^n {1 \over k} - \ln n \right) \approx 0.577

多行公式

Multiline Equations
latex
\begin{align*} y &= x^4 + 4\\ &= (x^2+2)^2 - 4x^2\\ &\leqslant (x^2+2)^2 \end{align*}

矩阵

Matrices
latex
A_{m,n} = \begin{pmatrix} a_{1,1} & a_{1,2} & \cdots & a_{1,n} \\ a_{2,1} & a_{2,2} & \cdots & a_{2,n} \\ \vdots & \vdots & \ddots & \vdots \\ a_{m,1} & a_{m,2} & \cdots & a_{m,n} \end{pmatrix}

连分数

Continued Fractions
latex
e = 2 + \cfrac{1}{ 1 + \cfrac{1}{ 2 + \cfrac{2}{ 3 + \cfrac{3}{ 4 + \cfrac{4}{\ldots} }}}}

图片环境

Picture Environment
latex
\begin{picture}(76,20) \put(0,0){$A$} \put(69,0){$B$} \put(14,3){\line(1,0){50}} \put(39,3){\vector(0,1){15}} \put(14,3){\circle*{2}} \put(64,3){\circle*{2}} \end{picture}

xy-pic图

Diagrams xy-pic
latex
\xymatrix{ A \ar[r]^f \ar[d]_g & B \ar[d]^{g'} \\ D \ar[r]_{f'} & C }

TikZ图

TikZ Graphics
latex
\begin{tikzpicture}\small \def\r{1.8} \coordinate[label=$A$] (A) at (0.5*\r,0.8*\r); \coordinate[label=below:$B$] (B) at (-\r,0); \coordinate[label=below:$C$] (C) at (\r,0); \draw[thin] (A) -- node[above] {$c$} node[pos=0.03,below,inner sep=4] {$\alpha$} (B) -- (C) -- node[right] {$b$} (A); \end{tikzpicture}

TikZ Plots

TikZ Plots
latex
\begin{tikzpicture}[domain=0:2] \draw[very thin] (-0.1,-0.1) grid (2.1,2.1); \draw[->] (-0.2,0)--(2.2,0) node[right] {$x$}; \draw[->] (0,-0.2)--(0,2.2) node[above] {$y$}; \draw plot (\x,{sin(\x r)}) node[right] {$y=\sin x$}; \draw[color=blue] plot (\x,\x) node[right] {$y=x$}; \end{tikzpicture}