Skip to content

Instantly share code, notes, and snippets.

View Liam0205's full-sized avatar
🎯
Focusing

Liam Huang Liam0205

🎯
Focusing
View GitHub Profile
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align}
a = &b+c\\
= &c+d\\
&+e+f
\end{align}
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{decorations.pathmorphing, decorations.text}
\begin{document}
\begin{tikzpicture}
\path decorate [decoration={text along path,
text={some text along a path}}]{ (0,2) .. controls (2,2) and (1,0) .. (3,0) };
\draw (0,2) .. controls (2,2) and (1,0) .. (3,0);
\end{tikzpicture}
\end{document}
\documentclass[UTF8,a4paper]{ltxdoc}
\usepackage{amsmath,amssymb}%数学必备宏包
\usepackage{amsthm}%定理和证明环境,如果想要更自由的定制,建议改用ntheorem包
\usepackage{array}%调用表格宏包
\usepackage{ctex}
\usepackage{multirow}%合并单元格
\usepackage{diagbox}
\begin{document}
@article{bar,
author = {baz},
title = {qux},
journal = {quz},
year = {1970},
volume = {0},
number = {1},
pages = {2},
month = {3},
note = {4},
\documentclass{article}
\newtheorem{theorem}{Theorem}
\renewcommand{\thetheorem}{\Alph{theorem}}
\usepackage{mwe}
\begin{document}
\begin{theorem}
\blindtext
\end{theorem}
\end{document}
~/projects/bae/.git$ tree .
.
├── HEAD
├── config
├── description
├── hooks
│ ├── applypatch-msg.sample
│ ├── commit-msg.sample
│ ├── post-update.sample
│ ├── pre-applypatch.sample
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}
\draw[domain = 0:2.2, smooth, variable=\x, blue, samples = 221]
plot ({\x}, {sqrt(\x)})
node[anchor = west] {$ y = \sqrt x $};
\end{tikzpicture}
\end{document}
\documentclass{article}
\usepackage{graphicx}
\usepackage{picinpar}
\usepackage{amsthm}
\usepackage{mwe}
\usepackage{xpatch}
\AtBeginEnvironment{figwindow}{\xpatchcmd{\proof}{\par}{\relax}{}{}}
\documentclass{article}
\usepackage{graphicx}
\usepackage{picinpar}
\usepackage{amsthm}
\usepackage{mwe}
\begin{document}
\begin{figwindow}[5,r,
\includegraphics[width=0.25\textwidth]{example-image.jpg},Fake Figure\label{fig:fake}]
\documentclass{article}
\usepackage{graphicx}
\begin{document}
\newlength{\tmplen}
\settowidth{\tmplen}{III}
\newcommand{\iiiwidthbox}[1]{\resizebox{\tmplen}{\height}{#1}}
\iiiwidthbox{I}