LATEX排版总结
分类:
其他
1.无序编号
1 2 3 4 5 6 | \begin{itemize} \item {} ... \item {} ... \item {}... \item {} ... \end{itemize} |
举例:
1 2 3 4 5 6 7 8 9 | \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…}
- 中等空格:a \; b
- 小空格:a \, b
3.公式(自动编号)
1 2 3 | \begin{equation} ... \end{equation} |
举例:
1 2 3 | \begin{equation} u_i = p_i - c_i \end{equation} |
4.插入算法
先导入包
1 2 3 | \usepackage{algorithm} \usepackage{algorithmic} |
举例:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | \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.两张图并列
(1)单标题
1 | \begin{figure} % 图 16 Truthfulness of IMC2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | % \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} |
(2)双标题
1 2 3 4 5 6 7 8 9 10 11 12 13 | \begin{figure}[htbp] \centering \begin{minipage}[t]{ 0.47 \linewidth} \centering \includegraphics[width = 1 \linewidth]{pic_eps / k_clusters.eps} \caption{Impact of K on the number of clusters} \end{minipage} \begin{minipage}[t]{ 0.47 \linewidth} \centering \includegraphics[width = 1 \linewidth]{pic_eps / kann_dbscan.eps} \caption{\textit{KANN - DBSCAN} clusters} \end{minipage} \end{figure} |
5.2.单张图
1 2 3 4 5 6 | \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.插入表格
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | \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} |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | \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} |
参考文献:
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 使用C#创建一个MCP客户端
· ollama系列1:轻松3步本地部署deepseek,普通电脑可用
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 按钮权限的设计及实现