2020-02-02
Miscellaneous
00

Contents

Online Editor
QQbot Usage
Using It on a Website
Examples
Integrals, Square Roots, and Boxes
Limits and Sums
Multiline Equations
Matrices
Continued Fractions
Picture Environment
xy-pic Diagrams
TikZ Graphics
TikZ Plots

Online Editor

QQbot Usage

  1. Copy and paste the entire code block below into the online editor above.
  2. Replace <正文> with the LaTeX code you want to enter.
  3. In a QQ group where the QQ account 996533295 has been added, send the following code as a reply.
latex
/latex <正文>

Using It on a Website

  1. Edit your LaTeX in the online editor above and preview the result in SVG Preview.
  2. Copy the URL shown under Image URL and insert it into your website.
  • To insert it in Markdown:
Markdown
![Your image name](Image URL)
  • To insert it in HTML:
html
<!-- Insert an online image and specify its dimensions --> <img src="Image URL" alt="Text description of the image" width="300" height="200"> <!-- Insert another image with responsive sizing --> <img src="Image URL" alt="Text description of the image" style="max-width: 100%; height: auto;">

You can also center the image horizontally:

html
<div align="center"> <img src="Image URL" alt="Text description of the image"> </div>

Examples

Integrals, Square Roots, and Boxes

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

Limits and Sums

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

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

Matrices

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

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

Picture Environment

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

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

TikZ Graphics

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}