latex
- 入门latex教程
- 使用vscode 配置latex环境的教程
- 算法伪代码框架
\usepackage[ruled,linesnumbered]{algorithm2e}
\begin{algorithm}[H]
\caption{xx}%算法名字
\LinesNumbered %要求显示行号
\KwIn{input a, b, c}%输入参数
\KwOut{output d}%输出
\While{xx is not empty}{
some description\; %\;用于换行
\For{condition}{
only if\;
\If{condition}{
1\;
}
}
if and else\;
\eIf{condition}{
1\;
2\;
}{
2\;
}
}
\ForEach{condition}{
\If{condition}{
1\;
}
}
\end{algorithm}
效果图:
4. 公式花体加粗
这个找了好久都没找到解决办法...最后还是万能的google解决了
答案:
"You can define your own math alphabet that accesses the Computer Modern symbol font in its bold weight."
\documentclass{article}
\DeclareMathAlphabet\mathbfcal{OMS}{cmsy}{b}{n}
\begin{document}
$\mathcal{A}$ $\mathbfcal{A}$
\end{document}