LATEX排版记录

1.无需编号

\begin{itemize}
\item {} ...
\item {} ...
\item {}...
\item {} ...
\end{itemize}

举例:

\indent The main contributions of this paper are as follows:%主要贡献

\begin{itemize}
\item {} To the best of our knowledge, we are the first to design the incentive mechanism, which stimulates the strategic workers to reach the least confidence for truth discovery in the crowdsourcing.
\item {} We propose a truth discovery algorithm as a component of the incentive mechanism for the crowdsourcing with copiers. Our truth discovery algorithm considers both the dependence and accuracy of workers. Further, we extend our truth discovery algorithm to the general cases, where the distribution of false values is nonuniform.
\item {} We model the \textit{\underline{S}ocial \underline{O}ptimization \underline{A}ccuracy \underline{C}overage} (\textit{SOAC}) problem, and design a reverse auction mechanism to solve the \textit{SOAC} problem.  We show that the designed mechanism satisfies the desirable properties of computational efficiency, individual rationality, truthfulness, and guaranteed approximation.
\item {} To support the textual answers of crowdsourcing tasks, we propose \textit{S-DATE} (\textit{\underline{S}emantic-oriented \underline{DATE}}), which uses language representation model and clustering method to obtain the values of textual answers.
\end{itemize}

  

2.常用符号

  • 大于等于:\geq
  • 小于等于:\leq
  • ~: \sim
  • 斜体转换成直体:\rm
  • 下划线:\underline
  • 百分号:\%
  • \textit{}:斜体
  • \mathcal{ABC…}:手写体字母

3.公式(自动编号)

\begin{equation}
...
\end{equation}

举例:

\begin{equation}
	u_i  = p_i  - c_i
\end{equation}

4.算法

先导入包

\usepackage{algorithm}

\usepackage{algorithmic}

 举例:

\begin{algorithm}  %算法2 Reverse Auction
	\caption{\textbf{: Reverse Auction}}
	\leftline{\textbf{Input:} {task set $T$}, {bid profile $B$}, {worker set $W$},{ accuracy}}
	\leftline{{requirement profile $\Theta$}, {accuracy matrix \textbf{A}}}
	\leftline{\textbf{Output:} {winner set $S$, payment \textbf{p}}}

	\leftline{ //Winner Selection Phase}
	\begin{algorithmic}[1]
		\State{$S \leftarrow \emptyset ,\Theta ‘ \leftarrow \Theta$};
		\While {$\sum\nolimits_{t_j  \in T} {\Theta ^j{‘}}  \ne 0$}
			\State{$i \leftarrow \arg \min _{k \in W\backslash S} \frac{{b_k }}{{\sum\nolimits_{t_j  \in T_k } {\min \{ \Theta ^j {‘},A_k^j \} } }}$};
			\State{$S \leftarrow S \cup \{ i\}$};
			\For {each $t_j  \in T_i $}
				\State{$\Theta ^j{‘} \leftarrow \Theta ^j {‘} - \min \{ \Theta ^j{‘},A_i^j \}$};
			\EndFor
		\EndWhile	

	\leftline{ //Payment Determination Phase}
	\For {each $i \in W$}
		\State {$p_i  \leftarrow 0$};
	\EndFor
	\For {each $i \in S$}
		\State {$W‘ \leftarrow W\backslash \{ i\} ,S‘ \leftarrow \emptyset ,\Theta ‘‘ \leftarrow \Theta$};
		\While {$\sum\nolimits_{t_j  \in T} {\Theta ^j {‘‘}} \ne 0$}
			\State {$i_k  \leftarrow \arg \min _{k \in W‘\backslash S‘} \frac{{b_k }}{{\sum\nolimits_{t_j  \in T_k } {\min \{ \Theta ^j{‘‘},A_k^j \} } }}$};
			\State {$S‘ \leftarrow S‘ \cup \{ i_k \}$};
			\State {$p_i  \leftarrow \max \{ p_i ,\frac{{\sum\nolimits_{t_j  \in T_i } {\min \{ \Theta ^j{‘‘},A_i^j \} } }}{{\sum\nolimits_{t_j  \in T_{i_{_k } } } {\min \{ \Theta ^j {‘‘},A_{i_k }^j \} } }}b_{i_k } \}$};
			\For {each $t_j  \in T_{i_k }$}
				\State{$\Theta ^j{‘‘} \leftarrow \Theta ^j{‘‘} - \min \{ \Theta ^j{‘‘},A_{i_k }^j \}$}
			\EndFor
		\EndWhile
	\EndFor

	\end{algorithmic}
\end{algorithm}

5.插入图片

5.1.两张图并列

\begin{figure} % 图16  Truthfulness of IMC2
	%\setlength{\abovecaptionskip}{-0.1cm}
	%\vspace{-0.5cm}
	\centering
	\subfigure[Utility of worker with ID=16 (winner)]{
		\begin{minipage}[t]{0.47\linewidth} %0.5\textwidth两图之间的距离
			\centering
			\includegraphics[width=1\linewidth]{pic_eps/utility_bid.eps} %图片大小
			%\caption{}
		\end{minipage}
	}
	\subfigure[Utility of worker with ID=74 (loser)]{
		\begin{minipage}[t]{0.47\linewidth}
			\centering
			\includegraphics[width=1\linewidth]{pic_eps/utility_bid_false.eps}
			%\caption{}
		\end{minipage}
	}
	\centering
	\caption{Truthfulness of \textit{IM$C^2$}}
\end{figure}

5.2.单独一张图

\begin{figure}[h] %图4 Transformer encoder architecture
	\centering  %插入的图片居中表示
	\includegraphics[width=0.7\linewidth]{pic_eps/Transformer.eps}  %插入的图,包括JPG,PNG,PDF,EPS等,放在源文件目录下
	\caption{\textit{Transformer} encoder architecture }  %图片的名称
	\label{fig:mcmthesis-logo}   %标签,用作引用
\end{figure}

6.插入表格

\begin{table} %表1 copy的例子
  \caption{An example of conflicting values provided by crowdsourcing workers with copiers}
  \label{tab:freq}

  \linespread{1}
   \begin{tabular}{c|p{20pt}|p{25pt}|p{20pt}|p{20pt}|p{20pt}} %p{75pt}第一列
   %\begin{tabular}{cccccc}
    \toprule
     \diagbox {\textbf{Tasks}}{\textbf{Workers}}& {\textbf{1}}& {\textbf{2}}& {\textbf{3}}& {\textbf{4}} & {\textbf{5}}\    \midrule
	{\itshape   Stonebraker}& MIT& Berkeley & MIT & MIT & MS \	{\itshape   Dewitt}& MSR& MSR & UWise & UWisc & UWisc \	{\itshape   Bernstein}& MSR& MSR & MSR & MSR & MSR \	{\itshape   Carey}& UCI& AT\&T & BEA & BEA & BEA \	{\itshape   Halevy}& Google& Google & UW & UW & UW \  \bottomrule
\end{tabular}
\end{table}

\begin{table} %表2 常见符号解释
	\caption{Frequently used notations}
	\label{Symbol}
	{\begin{tabular}{p{50 pt}p{180 pt}}
			\toprule
			\textbf{Symbol} & \textbf{Description} \
			\midrule
			$W,n$ & {worker set, number of workers} \			$T,m$ & {task set, number of tasks} 			\bottomrule

	\end{tabular}}
\end{table}

 

  

  

参考文献:

【1】Latex 写算法伪代码 - sduxxc - 博客园

【2】LaTeX 各种写法_运维_Look Forward To-CSDN博客

原文地址:https://www.cnblogs.com/nxf-rabbit75/p/12687970.html

时间: 2024-08-30 07:56:36

LATEX排版记录的相关文章

用LATEX 排版编程技术书籍的一些个人经验模板

format.cls 1 \usepackage[centering,paperwidth=180mm,paperheight=230mm,% 2 body={390pt,530pt},marginparsep=10pt,marginpar=50pt]{geometry} 3 \usepackage{color} 4 \usepackage{enumitem} 5 \usepackage{fancyvrb} 6 \usepackage[bottom,perpage,symbol*]{footmi

Latex排版全解

Latex排版全解 LATEX(英语发音:/?le?t?k/ LAY-tek或英语发音:/?lɑ?t?k/ LAH-tek,音译"拉泰赫"),是一种基于TEX的排版系统,由美国电脑学家莱斯利?兰伯特在20世纪80年代初期开发,利用这种格式,即使用户没有排版和程序设计的知识也可以充分发挥由TEX所提供的强大功能.对于生成复杂表格和数学公式,这一点表现得尤为突出.因此它非常适用于生成高印刷质量的科技和数学类文档.这个系统同样适用于生成从简单的邮件到完整书籍的所有其他种类的文档. 和Micr

【LaTeX排版】LaTeX论文排版<三>

A picture is worth a thousand words(一图胜千言).图在论文中的重要性不言而喻,本文主要讲解图的制作与插入. 1.图像的插入 图像可以分为两大类:位图和向量图. 位图:也就是点阵图,使用像素的小方块组成网格来表示图像.每个像素都有自己特定的位置和颜色值.一幅图像的像素数量的大小不变,当放大或缩小时,改变的只是像素尺寸的大小.因此放大或缩小时会出现锯齿现象,造成失真.位图还分为:无损压缩和有损压缩.其中,TIFF.PNG.GIF是无损压缩,JPG是有损压缩. 向量

学习使用LATEX排版

0.说明 本文使用的LATEX排版工具为CTEX套件,具体可参看上一篇博文. 1.排版实练 1)换行 每行最后加“\\”可进行换行,也可以使用\newline指令.\\换行还可以进行行距控制. this is a line \\[1cm] this is a new line 上述内容表示在原来行间距上加上1cm,值可以是负数,表示减去对应的行间距.不使用换行控制,即使进行回车(enter)也不会进行换行. 2)文档类别 先主要介绍“article”与“report",article没有章(ch

LaTeX排版指定行列的子图

在写paper时,经常遇到LaTeX排版指定行列的子图形.以2X2子图为例,代码如下: \usepackage{subfig} \begin{figure*}[!htb] \centering \subfloat[Location of Cell Towers]{\includegraphics[width=0.47\textwidth]{figures/geo_tower.pdf}} & \subfloat[Number of Records]{\includegraphics[width=0

Latex排版工具的使用(一)

使用Latex可以排版出漂亮的论文,尤其适合对含有数学公式论文的排版. 下面编写第一Latex源文件,实现对两个数学公式的排版: 新建文件first.tex: \documentclass{article} \begin{document} \begin{equation} \sqrt{x^2+y^2} \end{equation} \begin{equation} \int_{a}^{b} f(x)dx \end{equation} \end{document} 执行命令:pdflatex,可

【LaTeX排版】LaTeX使用--入门基础<一>

经过两个多星期,毕业论文终于写完了.由于自己对Word软件并不是很熟悉,再加上在数模时见识过LaTex的强大之处,于是就决定用LaTex进行论文的排版.使用LaTex可以避免像Word那样换台机器而出现格式错乱的问题. 首先,我们来讲一讲LaTex的优缺点: 优点: 1.排版质量高: 通过LaTex可以对字距.词距.行距.段距以及版面的精确控制.当插入公式时,不会出现Word中出现的行距不同的情况. 2.具有注释功能:在写作和修改论文时,有时会将某些语句.段落和公式删除,可以事后有觉得不妥,这样

【LaTeX排版】LaTeX使用--入门基础<二>

1.在命令之后留一个空格有下列方式: 源文件如下: \documentclass[a4paper,12pt]{book}%采用book类型(中篇论文一般采用这种类型),A4纸,字体为12磅,默认为10磅 \usepackage{ctexcap}%采用中文标题宏包(标题是中文的) %\usepackage{ctex}%采用中文字体宏包(标题是英文的)与ctexcap不能同时使用 \begin{document} {\LaTeX} 是一个排版工具 %命令行后保留空格的三种方法 \par %另起一段,

【LaTeX排版】LaTeX论文模版

本文是对前面LaTeX论文排版文章的总结.前面的几篇文章是分别从论文的几个方面来讲述LaTeX的排版问题,这里综合了前面的内容,给出了论文排版的模版. 模版的使用: 1.首先建立一个main.tex文件,该文件用于管理论文的整体构架,文件代码为: \documentclass[a4paper,12pt]{book} \usepackage{ctexcap} \usepackage{amsmath} \usepackage{graphicx} \usepackage{fancyhdr} \usep