如何在 TeX 中创建以下格式:
原始数据:
原始文本:
如果 $μ=0$ 且 $σ=1$,则该分布称为“标准正态分布”或“单位正态分布”,用 $N(0,1)$ 表示,具有该分布的随机变量称为“标准正态差”。
我使用以下代码:
\begin{figure}[h]
\centering
\includegraphics{Normal.png}
\caption{If $μ=0$ and $σ=1$, the distribution is called the “standard normal distribution” or the “unit normal distribution” denoted by $N(0,1)$ and a random variable with that distribution is a “standard normal deviate”}
\end{figure}
但它没有产生我想要的格式。
答案1
使用caption
包,用labelfont=bf
键将标签以粗体系列显示,并format=hang
用键将标题文本缩进。
\documentclass{article}
\usepackage{mwe}
\usepackage{caption}
\captionsetup{labelfont=bf,format=hang,labelsep=period}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics{example-image}
\caption{If $μ=0$ and $σ=1$, the distribution is called the “standard normal distribution” or the “unit normal distribution” denoted by $N(0,1)$ and a random variable with that distribution is a “standard normal deviate”}
\end{figure}
\end{document}
编辑我labelsep=period
按照@Very23 的建议添加
答案2
她做了一些改进,使结果与帖子的颜色更接近。特别是我将字体更改为fourier+erewhon
:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier, erewhon}
\usepackage{graphicx}
\usepackage{caption}
\captionsetup{labelfont=bf, format=hang, labelsep=period}
\begin{document}
\begin{figure}[h]
\centering
\includegraphics[width=\linewidth ]{QRZej}
\caption{If $\mu=0$ and $\sigma=1$, the distribution is called the “standard normal distribution” or the “unit normal distribution” denoted by $\mathcal N(0,1)$ and a random variable with that distribution is a “standard normal deviate”}
\end{figure}
\end{document}