ToB企服应用市场:ToB评测及商务社交产业平台

标题: 入门学习使用overleaf和latex [打印本页]

作者: 老婆出轨    时间: 2024-8-13 01:44
标题: 入门学习使用overleaf和latex
1.下载对应的latex论文模板

1.1以Transactions on Cybernetics为例





至于其他论文的模板,可以去对应的官网搜刮下载,但是一定要是latex格式的
2.overleaf平台的使用

2.1overleaf平台的先容

   一个可以对latex格式的论文举行在线文字编辑的网站,方便快捷
  overleaf官网点这里
2.2overleaf平台模板文件的上传

2.2.1上传模板文件


最后上传成功表现如下界面即可

2.3latex语法的学习

#####2.3.1以tex结尾的文件就是我们现在打开的文件

2.3.2 分段(如下图表现)


2.3.3 其他

   \section{内容}表现罗马数字的分段,好比I IV如许的大段落
    \subsection{内容}表现大段落下的子部分A/B
    公式的誊写:访问网站公式编辑网站写好后复制到论文即可
\begin{equation} ----\end{equation}
    表格的誊写:访问网站在线表格编辑写好好复制到论文即可
    图片的插入: 论文中以\begin{figure} \end{figure}为起始和结束
  2.3.4简单latex实操

  1. \documentclass{article}
  2. \title{First documeent}
  3. \author{keke cs}
  4. \date{\today}
  5. \begin{document}
  6. \maketitle
  7. \begin{abstract}
  8. This is a simple paragraph at the beginning of the document. A brief introdution to the main subject
  9. \end{abstract}
  10. \section{Introduction}
  11. Introduction Introduction IntroductionIntroduction Introduction Introduction
  12. \section{Method}
  13. Method Method Method Method Method Method Method Method Method
  14. \subsection{Method1}
  15. Method1 Method1 Method1 Method1 Method1 Method1 Method1
  16. \section{Experiment}
  17. ExperimentExperiment Experiment Experiment Experiment
  18. \end{document}
复制代码
结果表现如下图右侧,表现如何起标题,如何分段落以及小段落

2.3.5 换行符和换页符

   换行符:
空行 \par 下一个段落主动首行缩进
\ \newline \hfill\break 下一个段落不会首行缩进
    分页符
\newpage :下一个段落主动分配到下一页

  2.3.6左右居中对齐

  1. \begin{center}
  2. \end{center}
  3. \begin{flushleft}
  4. \end{flushleft}
  5. \begin{flushright}
  6. \end{flushright}
复制代码

2.3.7 字体设置

见下图左侧和右侧的对应关系,设置字体的大小

2.3.8插入固定位置图片


  1. \documentclass{article}
  2. \usepackage{graphicx} # 导入使用图表的包
  3. \usepackage[export]{adjustbox}
  4. \graphicspath{ {./images/} }
  5. \begin{document}
  6. As the sun began to dip below the horizon, casting long shadows across the rolling hills, the sky transformed into a breathtaking canvas of vibrant oranges, deep purples, and soft pinks, while a gentle breeze whispered through the trees, carrying the faint scent of blooming flowers and the promise of a peaceful evening.
  7. \includegraphics{fig1.png}
  8. There's a picture of a galaxy above
  9. \includegraphics[scale=1.5, angle=45]{fig1.png}
  10. \includegraphics[width=3cm, height=4cm]{fig1.png}
  11. \begin{center}
  12. \includegraphics[width=3cm, height=4cm]{fig1.png}
  13. \end{center}
  14. \includegraphics[width=3cm, height=4cm, right]{fig1} # 这里使用必须导入\usepackage[export]{adjustbox}
  15. \includegraphics[width=3cm, height=4cm, left]{fig1}
  16. \includegraphics[width=3cm, height=4cm, center]{fig1}
  17. \end{document}
复制代码
2.3.9文字困绕图片


  1. \begin{wrapfigure}{r}{0.25\textwidth}
  2.     \includegraphics[width=0.25\textwidth]{fig1.png}
  3. \end{wrapfigure}
复制代码
2.3.10图片加标题和图片引用



2.3.11插入表格

表现效果图

代码实现
  1. \documentclass{article}
  2. \usepackage{array}
  3. \usepackage{multirow}
  4. \begin{document}
  5. \begin{center}
  6. \begin{tabular}{c c c}
  7. cell1 & cell2 & cell3  \\
  8. cell4 & cell5 & cell6  \\
  9. cell7 & cell8 & cell9  \\
  10. \end{tabular}
  11. \end{center}
  12. \begin{center}
  13. \begin{tabular}{|c | c | c |}
  14. \hline
  15. cell1 & cell2 & cell3  \\
  16. cell4 & cell5 & cell6  \\
  17. cell7 & cell8 & cell9  \\
  18. \hline
  19. \end{tabular}
  20. \end{center}\
  21. \begin{center}
  22. \begin{tabular}{||c | c | c ||}
  23. \hline
  24. cell1 & cell2 & cell3  \\
  25. cell4 & cell5 & cell6  \\
  26. cell7 & cell8 & cell9  \\
  27. \hline
  28. \end{tabular}
  29. \end{center}
  30. \begin{center}
  31. \begin{tabular}{| m{3cm} | m{1cm} | m{1cm} <{\centering} |}
  32. \hline
  33. cell1 & cell2 & cell3  \\
  34. cell4 & cell5 & cell6  \\
  35. cell7 & cell8 & cell9  \\
  36. \hline
  37. \end{tabular}
  38. \end{center}
  39. \begin{center}
  40. \begin{tabular}{| m{3cm} | m{3cm} | m{3cm} |}
  41. \hline
  42. \multicolumn{2}{|c|}{Country List} & s\\
  43. \hline
  44. cell1 & cell2 & cell3  \\
  45. cell4 & cell5 & cell6  \\
  46. cell7 & cell8 & cell9  \\
  47. \hline
  48. \end{tabular}
  49. \end{center}
  50. \begin{center}
  51. \begin{tabular}{|c | c | c |}
  52. \hline
  53. col1 & col2 & col3 \\
  54. \hline
  55. \multirow{3}{2cm}{Mutiply row}
  56.   & cell2 & cell3  \\
  57.   & cell5 & cell6  \\
  58.   & cell8 & cell9  \\
  59. \hline
  60. \end{tabular}
  61. \end{center}
  62. \end{document}
复制代码
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。




欢迎光临 ToB企服应用市场:ToB评测及商务社交产业平台 (https://dis.qidao123.com/) Powered by Discuz! X3.4