以下线程给出“假设 1 (H_1)”作为输出。是否可以只使用“H_1”?需要下标。
答案1
我修改了https://tex.stackexchange.com/a/388602/17360。
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsthm}
\newtheoremstyle{hypstyle}% name
{3pt}% Space above1
{3pt}% Space below1
{}% Body font
{}% Indent amount2
{\bfseries}% Theorem head font
{:}% Punctuation after theorem head
{.5em}% Space after theorem head3
{\thmname{#1}$_{\thmnumber{#2}}$}% THEOREM HEAD SPEC (IF EMPTY MEANS `NORMAL')
\theoremstyle{hypstyle}
\newtheorem{hyp}{H}
\begin{document}
\begin{hyp}
test
\end{hyp}
\begin{hyp}
second
\end{hyp}
\end{document}
产量:
或者你一定得这么做ntheorem
?