texstudio的一些最基本使用技巧(非常详细),快速上手

本文分享了LaTeX和TexStudio的使用经验,包括LaTeX常见标亮与注释方法、Tex命令行操作、png转eps、解决字体红线报错、TexStudio多行注释快捷键、公式换行与等号对齐、表格绘画及表格、图片、参考文献的索引方法。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

目录

1-latex中的常见标亮+注释方法

2-tex的命令行操作

3-png转eps

4-字体下面红色底线报错问题

5-texstudio中多行注释快捷键

6.texstudio中公式的自动换行与等号对齐

7.表格绘画介绍(非常详细)

 8.表格、图片、参考文献的索引

图片索引——    " \label{}" + "\ref{}"

表格索引,同样地——      " \label{}" + "\ref{}"

参考文献索引——举个例子


1-latex中的常见标亮+注释方法

%texstudio中的注释方法:
% 单行注释符号
ctrl+t        %注释多行
ctrl+t        %取消多行注释



\textcolor{red}{these existing solutions} %{}中的内容标为红色
\textbf{}  %{}中的内容为加粗字体

2-tex的命令行操作

TeX的命令行操作tex命令想去的远方的博客-CSDN博客

3-png转eps

因为在latex排版过程中,对.eps文件很友好,不会损失分辨率

  1. sam2p foo.png foo.eps

  2. bmeps -c foo.png foo.eps (-c 表示彩色图片)

4-字体下面红色底线报错问题

TexStudio 单词下面大量红线报错解决办法texstudio红线x_uhen的博客-CSDN博客

5-texstudio中多行注释快捷键

ctrl+T %注释

ctrl+U %取消注释

6.texstudio中公式的自动换行与等号对齐

在需要换行的位置添加“\\”,在需要对齐的’=‘前添加’&’(注意需要对齐的每个等号前都要加)

% split和\\配合使用
\begin{equation}
	\begin{split}
	{{F}_{\max }}=MaxPool(F) \\ 
	{{F}_{average}}=AvgPool(F) 
	\end{split}
\end{equation}

7.表格绘画介绍

介绍了相应参数的作用

% texstudio latex
\begin{table}[t]\centering      % centering表示表格居中
    \tabcolsep=0.35cm           % tabcolsep可以调整表格每一列之间的间距
    \renewcommand\arraystretch{1.5} % 这一行表示调整每一行的行高的倍数,这里是1.5倍行距
    \caption{Comparison of segmentation metrics for ablation experiments}   % caption表示表格的标题
    \begin{tabular}{lcccccccc}\hline  % tabular表示表格自动调整间距;lcccccccc个人理解为:l表示第一列,c表示有8列
% 下面的\multirow{2}{*}表示合并2行;\multicolumn{2}{c}表示2列,对应上面的两个c
        \multirow{2}{*}{BraTS2021} &\multicolumn{2}{c}{WT} &\multicolumn{2}{c}{TC} &\multicolumn{2}{c}{ET} &\multicolumn{2}{c}{Average} \\ 
% 下面的内容便是对应上面9列的内容,符号&表示上下对应的列对齐,一共有9列
        &Dice &HD95 &Dice &HD95 &Dice &HD95 &Dice &HD95 \\\hline
        Base &0.910 &5.56 &0.874 &5.31 &0.849 &3.97 &0.878 &4.95 \\
        +DPFR &0.917 &4.63 &0.878 &5.89 &0.842 &4.28 &0.879 &4.93 \\
        +DMTE &0.920 &4.03 &0.882 &5.66 &0.844 &3.85 &0.882 &4.51 \\
% 下面的\textbf表示字体加粗
        \textbf{Proposed} &\textbf{0.924} &\textbf{3.51} &\textbf{0.893} &\textbf{4.49} &\textbf{0.856} &\textbf{3.64} &\textbf{0.891} &\textbf{3.88} \\
        \hline        % \hline表示这一行下面添加表格线
        \label{tab4}   % 表示给表格添加引用链接,文章中可通过\ref{tab4}来引用该表格
    \end{tabular}

\end{table}

% texstudio latex
\begin{table}[t]\centering      % centering表示表格居中
	\tabcolsep=0.35cm           % tabcolsep可以调整表格每一列之间的间距
	\renewcommand\arraystretch{1.5} % 这一行表示调整每一行的行高的倍数,这里是1.5倍行距
	\caption{Comparison of segmentation metrics for ablation experiments}   % caption表示表格的标题
	\begin{tabular}{lcccccccc}\hline  % tabular表示表格自动调整间距;lcccccccc个人理解为:l表示第一列,c表示有8列
% 下面的\multirow{2}{*}表示合并2行;\multicolumn{2}{c}表示2列,对应上面的两个c
		\multirow{2}{*}{BraTS2021} &\multicolumn{2}{c}{WT} &\multicolumn{2}{c}{TC} &\multicolumn{2}{c}{ET} &\multicolumn{2}{c}{Average} \\ 
% 下面的内容便是对应上面9列的内容,符号&表示上下对应的列对齐,一共有9列
		&Dice &HD95 &Dice &HD95 &Dice &HD95 &Dice &HD95 \\\hline
		Base &0.910 &5.56 &0.874 &5.31 &0.849 &3.97 &0.878 &4.95 \\
		+DPFR &0.917 &4.63 &0.878 &5.89 &0.842 &4.28 &0.879 &4.93 \\
		+DMTE &0.920 &4.03 &0.882 &5.66 &0.844 &3.85 &0.882 &4.51 \\
% 下面的\textbf表示字体加粗
		\textbf{Proposed} &\textbf{0.924} &\textbf{3.51} &\textbf{0.893} &\textbf{4.49} &\textbf{0.856} &\textbf{3.64} &\textbf{0.891} &\textbf{3.88} \\
		\hline        % 表示这一行下面添加表格线
		\label{tab4}
	\end{tabular}

效果图如下

 8.表格、图片、参考文献的索引

图片索引——    " \label{}" + "\ref{}"

% 图片显示如下,不能缺少\label{}
\begin{figure}[ht]
	\centering
	\includegraphics[height=9cm]{1.eps}
	\caption{The method proposed in this paper}
	\label{fig1}
\end{figure}

% 文中索引采用下面的方式,使用\ref{}
as illustrated in Figure \ref{fig1}

表格索引,同样地——      " \label{}" + "\ref{}"

\begin{table}[t]\centering
	\tabcolsep=0.4cm
	\renewcommand\arraystretch{1.5}
	\caption{Comparison of ablation experiment results}
	\begin{tabular}{lcccccc}\hline
        % 表格内容
		\label{tab2}
	\end{tabular}
\end{table}

As shown in the performance metrics results in Table \ref{tab2}

参考文献索引——举个例子


% bib文件中存储的文献信息
@article{1,
	title={name},
	author={某某,某某},
	journal={1111},
	volume={23},
	number={9},
	pages={755--771},
	year={2019},
	publisher={某某}
}

% 引用上面这个文献的方法如下,其中“1”可以修改,只要对应即可
\cite{1}

今天小编的分享就到这里啦~

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值