latex安装教程
latex相关事例
latex与word相互转换
利用Aurora来插入公式到word中
本人采用的方案:https://blog.csdn.net/brave_stone/article/details/89219039
latex+python
例如:
import latexify
import math
# Elif or nested else-if are unrolled.
@latexify.with_latex
def fib(x):
if x == 0:
return 1
elif x == 1:
return 1
else:
return fib(x-1) + fib(x-2)
print(fib)
print的结果为:
\operatorname{fib}(x) \triangleq \left\{ \begin{array}{ll} 1, & \mathrm{if} \ x=0 \\ 1, & \mathrm{if} \ x=1 \\ \operatorname{fib}\left(x - 1\right) + \operatorname{fib}\left(x - 2\right), & \mathrm{otherwise} \end{array} \right.
在latex中编辑:
\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{comment}
\usepackage{amssymb}
\usepackage{mathtools}
\begin{document}
$$
\operatorname{fib}(x) \triangleq \left\{ \begin{array}{ll} 1, & \mathrm{if} \ x=0 \\ 1, & \mathrm{if} \ x=1 \\ \operatorname{fib}\left(x - 1\right) + \operatorname{fib}\left(x - 2\right), & \mathrm{otherwise} \end{array} \right.
$$
\end{document}
结果:
\documentclass[12pt, letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{comment}
\usepackage{amssymb}
\usepackage{mathtools}
% Title
\title{Document Title}
\author{Nobody \thanks{Somebody}}
\date{Some Date}
\begin{document}
\begin{titlepage}
\maketitle
\end{titlepage}
\tableofcontents
\begin {equation}
f(x) = \sum_{n=0}^{10} \frac{x}{n!}
\end {equation}
\begin{math} x^{2}+y^{2}=z^{2} \end{math}
$$
\operatorname{fib}(x) \triangleq \left\{ \begin{array}{ll} 1, & \mathrm{if} \ x=0 \\ 1, & \mathrm{if} \ x=1 \\ \operatorname{fib}\left(x - 1\right) + \operatorname{fib}\left(x - 2\right), & \mathrm{otherwise} \end{array} \right.
$$
$$
\operatorname{fib}(x)\triangleq\left \{\begin{array}{r c l}(f + g)(x) & = & f(x) + g(x) \\(\alpha f)(x) & = & \alpha f(x) \\(fg)(x) & = & f(x)g(x)
\\
\end{array}\right .
$$
First document. This is a simple example, with no
extra parameters or packages included.
% Comments
\begin{comment}
This text won't show up in the compiled pdf
this is just a multi-line comment. Useful
to, for instance, comment out slow-rendering
while working on the draft.
\end{comment}
\end{document}
latex转wordL:
在命令行中输入:
先cd到.tex所在文件位置
pandoc input.tex -o output.docx
当然也可用pip install pyapndoc
在python下运用,这里不予赘述
效果不错
但是pandoc output.tex -o input2.docx
的效果不太理想
在线测试:http://www.plantuml.com/plantuml/uml/SyfFKj2rKt3CoKnELR1Io4ZDoSa70000
这里只是简单介绍uml安装
首先下载 vscode,然后安装两个插件:graphviz preview和PlantUML
接着环境配置:
sudo apt-get install graphviz
非linux用户下载链接:
http://www.graphviz.org/download/
还有java的配置
之后新建文件:md.wsd,输入:
@startuml
scale 3
ok -> md : test
@enduml
然后按下ALT+D会在右侧弹出对应的图,这时修改左边的md.wsd,右边的图也会动态跟随改变.
按下Ctrl+Shift+P,在其中输入uml,会显示几个功能,有生成图片之类的功能,有兴趣可以尝试尝试
关于UML的学习,可以参考官方文档:https://plantuml.com/
中文参考链接如:
链接1 :https://blog.csdn.net/wanxiaoderen/article/details
链接2:https://www.cnblogs.com/ynyhl/p/9881556.html
给一个简单的例子:
例子摘自:https://blog.yourtion.com/use-plantuml-on-mac.html
@startuml
start
:"步骤1处理";
:"步骤2处理";
if ("条件1判断") then (true)
:条件1成立时执行的动作;
if ("分支条件2判断") then (no)
:"条件2不成立时执行的动作";
else
if ("条件3判断") then (yes)
:"条件3成立时的动作";
else (no)
:"条件3不成立时的动作";
endif
endif
:"顺序步骤3处理";
endif
if ("条件4判断") then (yes)
:"条件4成立的动作";
else
if ("条件5判断") then (yes)
:"条件5成立时的动作";
else (no)
:"条件5不成立时的动作";
endif
endif
stop
@enduml
https://zhuanlan.zhihu.com/p/140895359?from_voters_page=true