zoukankan      html  css  js  c++  java
  • LATEX排版总结

    1.无序编号

    egin{itemize}
    item {} ...
    item {} ...
    item {}...
    item {} ...
    end{itemize}

    举例:

    indent The main contributions of this paper are as follows:%主要贡献
    
    
    egin{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 	extit{underline{S}ocial underline{O}ptimization underline{A}ccuracy underline{C}overage} (	extit{SOAC}) problem, and design a reverse auction mechanism to solve the 	extit{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 	extit{S-DATE} (	extit{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
    • 斜体转换成直体: m
    • 下划线:underline
    • 百分号:\%
    • 斜体字: extit{}
    • 手写体字母:mathcal{ABC…}
    • 中等空格:a ; b
    • 小空格:a \, b

    3.公式(自动编号)

    egin{equation}
    ...
    end{equation}

    举例:

    egin{equation}
    	u_i  = p_i  - c_i
    end{equation}

    4.插入算法

    先导入包

    usepackage{algorithm}
    
    usepackage{algorithmic}

     举例:

    egin{algorithm}  %算法2 Reverse Auction
    	caption{	extbf{: Reverse Auction}}
    	leftline{	extbf{Input:} {task set $T$}, {bid profile $B$}, {worker set $W$},{ accuracy}}
    	leftline{{requirement profile $Theta$}, {accuracy matrix 	extbf{A}}}
    	leftline{	extbf{Output:} {winner set $S$, payment 	extbf{p}}}
    	
    	leftline{ //Winner Selection Phase}
    	egin{algorithmic}[1]
    		State{$S leftarrow emptyset ,Theta ' leftarrow Theta$};
    		While {$sum
    olimits_{t_j  in T} {Theta ^j{'}}  
    e 0$}
    			State{$i leftarrow arg min _{k in Wackslash S} frac{{b_k }}{{sum
    olimits_{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 Wackslash { i} ,S' leftarrow emptyset ,Theta '' leftarrow Theta$};
    		While {$sum
    olimits_{t_j  in T} {Theta ^j {''}} 
    e 0$}
    			State {$i_k  leftarrow arg min _{k in W'ackslash S'} frac{{b_k }}{{sum
    olimits_{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
    olimits_{t_j  in T_i } {min { Theta ^j{''},A_i^j } } }}{{sum
    olimits_{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)单标题

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

    (2)双标题

    egin{figure}[htbp]
    centering
    egin{minipage}[t]{0.47linewidth}
    centering
    includegraphics[width=1linewidth]{pic_eps/k_clusters.eps}
    caption{Impact of K on the number of clusters}
    end{minipage}
    egin{minipage}[t]{0.47linewidth}
    centering
    includegraphics[width=1linewidth]{pic_eps/kann_dbscan.eps}
    caption{	extit{KANN-DBSCAN} clusters}
    end{minipage}
    end{figure}
    

    5.2.单张图

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

    6.插入表格

    egin{table} %表1 copy的例子
      caption{An example of conflicting values provided by crowdsourcing workers with copiers}
      label{tab:freq}
      
      linespread{1}
       egin{tabular}{c|p{20pt}|p{25pt}|p{20pt}|p{20pt}|p{20pt}} %p{75pt}第一列
       %egin{tabular}{cccccc}
        	oprule
         diagbox {	extbf{Tasks}}{	extbf{Workers}}& {	extbf{1}}& {	extbf{2}}& {	extbf{3}}& {	extbf{4}} & {	extbf{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 \
      ottomrule
    end{tabular}
    end{table}
    

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

     

      

      

    参考文献:

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

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

  • 相关阅读:
    bx值
    玲珑杯1147
    Castle
    美团 CodeM 复赛」城市网络
    上海五校赛 密码破解
    上海五校赛 零件组装
    opencv色彩空间
    opencv对图片每个像素操作
    opencv图像的读取和保存以及调用摄像头。
    numpy的logspace产生等比数列
  • 原文地址:https://www.cnblogs.com/nxf-rabbit75/p/12687970.html
Copyright © 2011-2022 走看看