微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

CTex知识小总结

ctex学习篇

因何时何地都不能与电脑在一起,加之自己记忆有限,想将自己学习ctex的一些常用操作记录下来,便于日后查看。

1.CTex写文章框架

注:我这里是utf-8格式,也可以是其他格式,不过中文容易出错,解决方法见:https://www.cnblogs.com/enjoy233/p/10408788.html   

\documentclass[UTF8]{ctexart}
%所有的内容都是在这里写的
\end{document}

2.图片的插入

开头引入,这种类似于其他语言的import 引入第三方的包 

\usepackage{graphicx}

注:图片文件在同一级哦,在要放入图片的地方,写: 

\includegraphics[scale=0.5]{yjszdz.png}  %其中scale是为了整体缩放图片

3.插入三线表

三线表效果图:

\begin{tabular}{cccccccccccc}  %这里的c的数量根据你书写的内容自己写
\toprule  。。。具体内容看个人需求
\midrule  。。。
\bottomrule 。。。

\end{tabular}

4.ctex中表格等的整体缩放:

\renewcommand{\arraystretch}{1.3}%调行距
\setlength\tabcolsep{3pt}%调列距

5.ctex中流程图:

流程图效果

\textbf{流程图:}\\
\begin{center}
\begin{tikzpicture}[node distance=2cm]
\tikzstyle{every node}=[font=\small,scale=0.5]
\node (start) [startstop] {开始};
\node (input1) [io,below of=start] {输入$n$个数};
\node (process1) [process,below of=input1] {分治思想: 分为不同的比特位};
\node (process2) [process,below of=process1] {比特位利用保密替换找最大值};
\node (decision1) [decision,below of=process2,yshift=-0.5cm] {比特位最大值是否唯一 };
\node(point1)[point,left of=decision1,node distance=5cm]{};
\node (process3) [process,below of=decision1,node distance=2.5cm] {已找到最大数};
\node (process4) [process,below of=process3] {输出最大值};
\node (process5) [process,right of=process3,node distance=40mm] {该比特位比最大值小的数的下一个比特位数字变为0参与运算};
\node (process6) [process,right of=process5,node distance=4cm] {下一个比特位找最大值};
\node (stop) [startstop,below of=process4,node distance=2cm] {结束};
\draw [arrow] (start) -- (input1);
\draw [arrow] (input1) -- (process1);
\draw [arrow] (process1) -- (process2);
\draw [arrow] (process2) -- (decision1);
\draw [arrow] (decision1) -- node[anchor=east] {是} (process3);
\draw [arrow] (process3) -- (process4);
\draw [arrow] (process4) -- (stop);
\draw [arrow] (process5) -- (process6);
\draw [arrow] (process6) |- (process2);
\draw [arrow](decision1) -| node[right] {否} (process5);
\end{tikzpicture}
\end{center}

 

目前常用的就这些,后期再更新~

伙伴们,有好的学习资料可以随时交流哦,相互学习,共同进步~

  

 

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐