latex部分操作

发布时间 2023-09-13 17:19:16作者: \Shy

Latex部分用法

当latex表格超页时该怎么办,通过改变0.95到其他数字更改缩放比例

\begin{table}[t]
\centering
\resizebox{0.95\columnwidth}{!}{
\begin{tabular}{lccc}
\hline
& & & &
\hline
\end{tabular}
}
\caption{This is a caption}
\label{tab:table1}
\end{table}

让公式后面不显示序号

\usepackage{amsmath}
\begin{equation}
公式\nonumber
\end{equation}

更改标题格式

\usepackage{titlesec}
% 保存原始 \section 格式
\newcommand{\sectionbackup}{\titleformat*{\section}{\Large\bfseries\centering}}
% 设置 \section 居左
\titleformat*{\section}{\Large\bfseries\raggedright}
% 你的居左 \section
\section{Your Left-Justified Section}
% 恢复原始 \section 格式
\sectionbackup

latex怎么显示“a”

\``{\em a}"

左箭头与右箭头

\leftarrow
\rightarrow

怎么表示维度

$h_i\in\mathbb{R}^{1\times 768}$

怎么在S上显示一个圈

\mathring{S}

怎么一行显示多个图片

\usepackage{graphicx}
\usepackage{subfigure}
\begin{figure*}[htbp]

\centering
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\subfigure[子图下面的标题]{
\includegraphics[width=3.6cm]{路径}
}
\caption{}
\label{}
\end{figure*}

怎么显示算法的格式,像算法书里面一样

\usepackage[ruled,vlined]{algorithm2e}
\begin{algorithm}[t]
\SetAlgoLined
\KwIn{\small \textbf{AND} \\ \ \ \ \ \ \ \ \ \ \ \ \ \ \ \
}
\KwOut{\small }
循环怎么写
\ForEach{ \in }{} \\

\small

\caption{}
\label{}
\end{algorithm}
参考链接1
参考链接1