裁剪PDF圖片的方法:
- 法一:
打開命令行窗口→進入PDF圖片相應的路徑→輸入命令:pdfcrop 圖片名.pdf,直接輸出一個零頁邊距的文件。
【注】生成新的pdf圖片,名為 舊的圖片名-crop.pdf.
參考網址:
https://ubuntuqa.com/article/982.html - 法二:使用在線裁剪網址:
http://www.pdfdo.com/pdf-page-cut.aspx
latex列表環境:
% 無序列表樣式
\begin
{itemize
}\item
[$
\ast$
] Asterisk
\item
[$
\diamond$
] Diamond
\item
[$
\circ$
] Circle
\item
[$
\cdot$
] Period
\item
[$
\bullet$
] Bullet
(default
)\item
[--
] Dash
\item
[$-$
] Another dash
\end
{itemize
}
結果如下:
參考網址:
https://os.51cto.com/art/202102/647018.htm
3.圖片插入:
\begin
{figure
}[!htbp
]\centering %居中
\includegraphics
[width
=.9
\textwidth
]{liuchengtu1.png
} %圖片所在的路徑下取的名字
\caption
{三個問題的處理思路
} %在文檔中顯示的圖名稱
\label
{fig:liuchengtu
} %腳叉引用使用的名稱
\end
{figure
}
4.交叉引用
\cref
{fig:xxxx
} %
{}對應的是插入圖片時,label
{}里的內容。
\begin
{eqnarray
}
\sum_
{i
}^
{N_A
}m^
{i
}_
{A
}= \sum_
{i
}^
{N_B
}m^
{i
}_
{B
}
\label
{eq:質量約束1
}
\end
{eqnarray
}此時,式子
(\ref
{eq:質量約束1
})成為唯一的約束。 % 交叉引用
結果:
參考網址1:
https://www.latexstudio.net/archives/3297
\begin
{thebibliography
}{99} \bibitem
{ref1
}郭莉莉,白國君,尹澤成,魏惠芳. “互聯網+”背景下沈陽智慧交通系統發展對策建議
[A
]. 中共沈陽市委、沈陽市人民政府.第十七屆沈陽科學學術年會論文集
[C
].中共沈陽市委、沈陽市人民政府:沈陽市科學技術協會,2020:4.
\bibitem
{ref2
}陳香敏,魏偉,吳瑩. “文化+人工智能”視閾下文化創意產業融合發展實踐及路徑研究
[A
]. 中共沈陽市委、沈陽市人民政府.第十七屆沈陽科學學術年會論文集
[C
].中共沈陽市委、沈陽市人民政府:沈陽市科學技術協會,2020:4.
\bibitem
{ref3
}田曉曦,劉振鵬,彭寶權. 地方高校開展教育人工智能深度融合的路徑探究
[A
]. 中共沈陽市委、沈陽市人民政府.第十七屆沈陽科學學術年會論文集
[C
].中共沈陽市委、沈陽市人民政府:沈陽市科學技術協會,2020:5.
\bibitem
{ref4
}柏卓君,潘勇,李仲余.彩色多普勒超聲在早期胚胎停育診斷中的應用
[J
].影像研究與醫學應用,2020,4
(18):129-131.
\bibitem
{ref5
}楊蕓.我院2018年人血白蛋白臨床應用調查與分析
[J
].上海醫藥,2020,41
(17):34-35+74.
\end
{thebibliography
}
學習網址1:
https://www.jianshu.com/p/6f49a1db1fa0
%讓引用以上標的格式出現:
\textsuperscript
{\cite
{...
}}
這里是上標
\textsuperscript
{\cite
{1}},這里是平齊
\cite
{2}
效果如下:
學習網址2:
https://blog.csdn.net/pang9998/article/details/93849645?utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromMachineLearnPai2%7Edefault-1.control
表格的插入:
利用Matlab求解,結果如下表
`\cref{tab:不同調整時長下單向閥開啟時長}`。
%表格應具有三線表格式,因此常用 booktabs宏包,其標準格式如
\cref
{tab:001
}~所示。
\begin
{table
}[!htbp
]\caption
{不同調整時長下單向閥開啟時長
}\label
{tab:不同調整時長下單向閥開啟時長
}\centering
\begin
{tabular
}{@
{}ccccc@
{}}\toprule
[1.5pt
]調整時長/s
& 0 & 2 & 5 & 10 \\ \midrule
[1pt
]單向閥開啟時長/ms
& 0.315 & 80.893 & 161.765 & 278.408 \\穩定時壓強/MPa
& 100 & 150.355 & 150.114 & 149.989 \\最小誤差平方和
& 9.544 & 0.756 & 1.294 & 0.071 \\ \bottomrule
[1.5pt
]\end
{tabular
}
\end
{table
}
結果:
excel里做的圖保存成矢量圖pdf格式的方法:
復制excel里的圖進powerpoint里,導出為pdf即可。
子圖并排代碼:
%子圖
**帶題注
**
\
begin{figure
}[!htbp
]\centering\subfloat
[2s調整過程中高壓油管內的壓力隨時間變化圖
]{\label
{Fig:2s調整過程中高壓油管內的壓力隨時間變化圖
}%\includegraphics
[width=0.45\textwidth]{2s調整過程中高壓油管內的壓力隨時間變化圖
.pdf
}} \quad\subfloat
[5s調整過程中高壓油管內的壓力隨時間變化圖
]{\label
{Fig:5s調整過程中高壓油管內的壓力隨時間變化圖
}%\includegraphics
[width=0.45\textwidth]{5s調整過程中高壓油管內的壓力隨時間變化圖
.pdf
}}\subfloat
[10s調整過程中高壓油管內的壓力隨時間變化圖
]{\label
{Fig:5s調整過程中高壓油管內的壓力隨時間變化圖
}%\includegraphics
[width=0.45\textwidth]{10s調整過程中高壓油管內的壓力隨時間變化圖
.pdf
}}\caption
{壓力增至150MPa時,單向閥開啟時長的調整
}\label
{Fig:壓力增至150MPa時,單向閥開啟時長的調整
}
\
end{figure
}
效果:
% 適用于題注太長的情況
\subsection
{小頁配合排版
}如果一些子圖的題注很長,我們就需要使用子頁配合排版。
\begin
{figure
}[!htbp
]\centering
\subfloat
[子題注1如果一些子圖的題注很長,我們就需要使用子頁配合排版
]{\label
{Fig:G1
}%
\begin
{minipage
}[h
]{0.45\textwidth
}\centering
\includegraphics
[width
=\textwidth
]{subf3.eps
} %這里的圖片寬度是相對于子頁的
\end
{minipage
}}\quad
\subfloat
[子題注2基本上好的主流的國外期刊都會具體要求使用該包
]{\label
{Fig:FG2
}%
\begin
{minipage
}[h
]{0.45\textwidth
}\centering
\includegraphics
[width
=\textwidth
]{subf4.eps
}\end
{minipage
}}\caption
{兩張圖子題注過長
}\label
{Fig:FG34
}
\end
{figure
}
參考網址:
https://www.latexstudio.net/index/details/index/mid/562
解決浮動體亂動的方法:
在編輯頭部加入宏包:\usepackage{float}
以表格為例子,說明代碼:
\begin
{table
}[H
] %H讓插入的表緊跟在文字后面
\centering
\caption
{符號說明
}\label
{tab:符號說明
} \begin
{tabular
}{@
{}ccc@
{}}\toprule
[1.5pt
]\textbf
{符號
} & \textbf
{說明
} & \textbf
{單位
} \\ \midrule
[1pt
]$t_l$
& 單向閥每次開啟時長
& ms
\\$
\rho_0$
& 高壓油管內燃油密度
& $mg/mm^
{3}$
\\$
\rho_1$
& A口處燃油密度
& $mg/mm^
{3}$
\\$
\rho_2$
& B口處燃油密度
& $mg/mm^
{3}$
\\ \bottomrule
[1.5pt
]\end
{tabular
}
\end
{table
}
效果如下:
參考網址:
https://blog.csdn.net/weixin_39374967/article/details/108016989?utm_medium=distribute.pc_relevant.none-task-blog-2defaultbaidujs_baidulandingword~default-0.control&spm=1001.2101.3001.4242
TeXstudio中查找和替換的快捷鍵為:Crtl+R.latex中將某一行文本單獨居中的命令:
\centerline
{\large
{Homework
1}}%將一行文本單獨居中
生成空白行的命令:
~
\\%:一行空白
\\[行距
]%:可加入任意間距的空白行;
12.多行大括號約束公式。命令左對齊:\hfill
參考網址:
https://blog.csdn.net/qq_33769914/article/details/85245684
總結
以上是生活随笔為你收集整理的LaTex常用的一些语法【超实用-新手入门】的全部內容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。