数模国赛中latex技术问题解决

数模国赛中latex技术问题解决

手写文章题目

当摘要过长,无法在一页内容纳时,可以减少摘要题头所用空间,即不再使用封装好的maketitle模块。

\centerline{\LARGE{基于综合评价模型和数学分析的信息传播分析与优化}}
\renewcommand{\abstractname}{\Large 摘 \quad 要\\}
%\maketitle

注意必须注释掉maketitle

图片

插入图片

%%%%	插入图片
\begin{figure}[H]
\centering
\includegraphics[scale=0.35]{61.eps}
\caption{RBF神经网络图}
\label{figure}
\end{figure}
%%%

两图并排

\begin{figure}[H]\centering\begin{minipage}{0.49\linewidth}\centering\includegraphics[width=0.9\linewidth]{4.21.eps}\caption{铅钡玻璃碎石图}\label{chutian1}%文中引用该图片代号\end{minipage}%\qquad\begin{minipage}{0.49\linewidth}\centering\includegraphics[width=0.9\linewidth]{4.22.eps}\caption{高钾玻璃碎石图}\label{chutian2}%文中引用该图片代号\end{minipage}
\end{figure}

图片乱飞的问题

保证图片紧跟文字的方法:引言插入

\usepackage{graphicx}                                                 
\usepackage{float} 
\begin{figure}[H]   % H使图片位置跟着文字走
\centering
\includegraphics[scale=0.35]{topsis.eps}
\caption{图片名字}
\label{figure}
\end{figure}

图片格式转换

找到文件所在位置的powershell:

bmeps -c old.jpg new.eps
//jpg为原图片格式
//new为转为esp格式图片的重新命名
bmeps -c topsis.png topsis.eps

插入代码

引言插入

\lstset{%代码格式的配置
extendedchars=false,            % Shutdown no-ASCII compatible
language=Matlab,                % !!!选择代码的语言
basicstyle=\footnotesize\tt,    % the size of the fonts that are used for the code
tabsize=3,                            % sets default tabsize to 3 spaces
numbers=left,                   % where to put the line-numbers
numberstyle=\tiny,              % the size of the fonts that are used for the line-numbers
stepnumber=1,                   % the step between two line-numbers. If it's 1 each line% will be numbered
numbersep=5pt,                  % how far the line-numbers are from the code   %
keywordstyle=\color[rgb]{0,0,1},                % keywords
commentstyle=\color[rgb]{0.133,0.545,0.133},    % comments
stringstyle=\color[rgb]{0.627,0.126,0.941},      % strings
backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color}
showspaces=false,               % show spaces adding particular underscores
showstringspaces=false,         % underline spaces within strings
showtabs=false,                 % show tabs within strings adding particular underscores
frame=single,                   % adds a frame around the code
captionpos=b,                   % sets the caption-position to bottom
breaklines=true,                % sets automatic line breaking
breakatwhitespace=false,        % sets if automatic breaks should only happen at whitespace
title=\lstname,                 % show the filename of files included with \lstinputlisting;% also try caption instead of title
mathescape=true,escapechar=?    % escape to latex with ?..?
escapeinside={\%*}{*)},         % if you want to add a comment within your code
%columns=fixed,                  % nice spacing
%morestring=[m]',                % strings
%morekeywords={%,...},%          % if you want to add more keywords to the set
%    break,case,catch,continue,elseif,else,end,for,function,global,%
%    if,otherwise,persistent,return,switch,try,while,...},%}
\begin{lstlisting}
\end{lstlisting}

标题级别

一般论文,三级标题够用,四级的格式就回复为正文

插入库,代码:

\setcounter{secnumdepth}{4}

插入标题命令:

\section{一级标题}
\subsection{二级标题} 
\subsubsection{二级标题} 

插入分论点:

\begin{enumerate}
\item[1)]Accurately and effectively...
\item[2)]Realizing the model-free...
\item[3)]The experiment on...
\end{enumerate}

*\item[ ], [ ]里的内容随意发挥,黑点等等。

四级标题

解决 latex 标题级数不够的问题,可手动加入:

\paragraph{四级标题}

字体加粗

也可以使用加粗字体体现层次

\textbf{文字}


本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!

相关文章

立即
投稿

微信公众账号

微信扫一扫加关注

返回
顶部