日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

2021美赛Latex排版美化 完整代码2

發(fā)布時間:2023/12/15 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 2021美赛Latex排版美化 完整代码2 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

今天是2月2號,還有三天就打美賽了,我在2021美賽Latex排版美化 完整代碼1的基礎(chǔ)上又做了一些補充,希望可以幫助到大家。

文章目錄

  • 一、2021美賽新要求
  • 二、帶顏色的表格
  • 三、公式
  • 四、目錄超鏈接


一、2021美賽新要求

今年的總頁數(shù)不能超過25頁(4),并且從摘要的下一頁開始需要加上頁眉,之前的代碼是從正文開始算頁數(shù)的,而且右上角的格式是Page XX而不是 Page 當(dāng)前頁數(shù) of 總頁碼數(shù)(這里感謝某位同學(xué)的提醒)。

這是原來的代碼部分,需要將\setcounter{page}{1}和\rhead{Page \thepage\ }分別修改并放在對應(yīng)的位置:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \clearpage \pagestyle{fancy} % Uncomment the next line to generate a Table of Contents %\tableofcontents \newpage \setcounter{page}{1} \rhead{Page \thepage\ } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Begin your paper here

進行以下修改:

\begin{document}\setcounter{page}{1} %將這一行代碼放在\begin{document}的最前面 \clearpage \pagestyle{fancy} % Uncomment the next line to generate a Table of Contents \rhead{Page \thepage\ of 20}%將這一行放在\tableofcontents 前面,這樣做從目錄頁就有頁眉顯示 \tableofcontents %目錄 \newpage

修改好效果圖如下圖:

二、帶顏色的表格

除了最基本的三線表格,也許還需要用到比較表格(譬如幾個方法的比較):

需要的宏包以及自定義部分:

\usepackage[table]{xcolor} \usepackage{colortbl} \definecolor{mygray}{gray}{.9} \definecolor{mypink}{rgb}{.99,.91,.95} \definecolor{mycyan}{cmyk}{.3,0,0,0}

這里貌似需要將\usepackage{xcolor}給注釋掉,與上面的宏包有沖突:

\usepackage{graphicx} %\usepackage{xcolor} \usepackage{fancyhdr} \lhead{Team \Team} \rhead{} \cfoot{}

編譯代碼舉例(顯示效果即為上圖Table 2):

\begin{table}[H]\centering\caption{ four method}\label{y}\begin{tabularx}{0.9\textwidth}{cllll}\toprulemethod & total precision & Pacific Wren & Hermit Thrush&Varied Thrush \\\midruleBayes & 50 & 100 & 16.67& 0 \\\rowcolor{mygray}K-Nearest Neighbors & 29.94 &50 & 16.67 & 16.67 \\Kernel SVM & 36.84 & 12.5 & 16.67 &0 \\\rowcolor{mygray}Logistic Regression & 52.63 & 62.5 & 16.67 &0 \\\bottomrule\end{tabularx} \end{table}

三、公式

美賽肯定需要寫公式,有些美賽論文公式寫得真的是很漂亮,看起來老舒服了,人家拿O獎也是有一定道理的。

對應(yīng)的代碼如下:

\subsection{Model Settings} The transition process is a discrete-time stochastic process.The occurence of immigrants satisfies Markov conditions.Regard to the condition probability $P(N_{n+1}=j|F_n)$,it satisfies the following expression. \begin{equation} P(N_{n+1}=j|N_0=i_0,N_1=i_1,\cdots,N_{n-1}=i_{n-1})=P(N_{n+1}=j|N_n=i_n) \end{equation} This means that when the status of the immigrations process at time $n$ is known,the status of immigration process after time $n$ has nothing to do with the status before $n$,that is ,no post-validity.We define $p_{i,j}=P(N_{n=1}=j|N_n=i_n)$,then the entire migration of process ${N_n}$ is determined by the $p_{i,j}$and the initial distribution of $N_0$.As we know from assumption,$p_{i,j}$ is only related to country $i,j$,but has nothing to do with $n$,then Markov chain is time-aligned Markov chain.Then write the $p_{i,j}$in matrix from: \begin{equation} P=(p_{i,j}) \begin{pmatrix} p_{1,1}&p_{1,2} & \cdots &p_{1,226} \\ p_{2,1}& p_{2,2} &\cdots & p_{2,226}\\ \vdots &\vdots & \ddots & \vdots\\ p_{226,1}& p_{226,2}& \cdots & p_{226,226} \end{pmatrix} \end{equation} Because the transition probability is positive,and residents will certainly either stay in their own country or move to other countries in the next period, thus,tha matrix has the following properities.(1)$\underset{226}{p_{i,j}}> 0,\quad i,j=1,2,\cdots,226$(2)$\sum p_{i,j}=1,\quad \forall i=1,2,\cdots,226$

這里比較考驗大家的latex功底,但是不要害怕,給大家介紹一個非常666的線上latex編輯器,非常方便,還可以實時查看編譯是否正確。
https://latex.codecogs.com/eqneditor/editor.php

四、目錄超鏈接

加入\usepackage[hidelinks]{hyperref}就可以啦~~~~~~~~~

歡迎大家留言私信交流~
鏈接:https://pan.baidu.com/s/1kkqBJcAWXWK-l2XCsxPhIA
提取碼:uxo3

總結(jié)

以上是生活随笔為你收集整理的2021美赛Latex排版美化 完整代码2的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。