Latex学习1

1. 基础内容介绍:
如何编译和运行:
选择黑体的那个;运行(生成pdf文件:) 放大镜(不带叹号那个)
简单内容的学习:

\begin{document}
     %环境的使用:
     \begin{quote}hello
     \end{quote}
     \begin{quote}hello \small hello \bfseries helloworld
     \end{quote}
     hello
     hahhahhahahahahah
     %命令应用于一个模块的使用:
     \begin{em}
     hahhahhahahahahah
     \end{em}
     %没有名称的环境使用:
     {
     \em hahahahahah
     \bfseries hahahahhaha
     }
     hahahah
     %页码显示命令使用:
     \pagenumbering{roman}
             hello     hello
     %空格与回车与很多空格,都是一个空格;
     %避免换行出现不必要的空格,在换行前加%符号;
     \  \ \ \ \ hello ohellohellohellohelllo%
     hellohellohello

     hello
     %震惊,关于双引号的使用,双引号使用两个左单引号或两个右单引号组成的。而键盘上的双引号则表示右双引号(在pdf中会生成右双引号;)
     %连字符的使用:连字符就是减号,可通过使用连字符多次的方法得到段破折号和全破折号;
     ``hh''
     "hahaha"
     -
     --
     ---
\end{document}
2. algorithm2e包使用
参考链接:https://www.cnblogs.com/tsingke/p/5833221.html 
写的非常好呀~ 代码里面的第二个是老师要求的代码写法,:\usepackage[ruled,vlined]{algorithm2e}          %算法排版样式2
运行结果如图:

猜你喜欢

转载自blog.csdn.net/shelly_chestnut/article/details/79174937