
次のように、方程式と方程式番号の間に点の線を追加します。
そして私は答えを得たここ
\begin{equation}
\hskip \textwidth minus \textwidth
\sin^2{\theta}+\cos^2{\theta}=1
\leaders\hbox{$\cdot$ }\hskip \textwidth minus \textwidth
\end{equation}
ただし、eqnarray環境では動作しません
\begin{eqnarray}
{f_1(x)=12x^2+36x+\sin x}
f_2(x)=\sqrt{3}{x^3+3x}
\end{eqnarray}
編集: 最終的に、私の解決策は次のようになります:
\newlength{\eqlength}
\newlength{\numlength}
\newlength{\dotlength}
\newlength{\frontlength}
\newcounter{eq}[chapter]
\stepcounter{eq}
\newcommand{\drawdots}[2][0pt]{
#2
\stepcounter{eq}
\settowidth{\eqlength}{$#2$}
\settowidth{\numlength}{(\thechapter.\theeq)}
\setlength{\dotlength}{0.5\textwidth-0.5\eqlength-\numlength}
\addtolength{\dotlength}{#1}
\makebox[0em][l]{\leaders\hbox{ $\cdot$}\hskip \dotlength}
}
\let\normeq\equation
\let\endnormeq\endequation
\renewenvironment{equation}{
\normeq
\drawdots
}{
\endnormeq
}
\begin{equation}
{\sin^2{\theta}+\cos^2{\theta}=1}
\label{eq:pingfanghe}
\end{equation}
\begin{align}
&\drawdots{f_1(x)=12x^2+36x+\sin x}\\
&\drawdots[4ex]{f_2(x)=\sqrt{3}{x^3+3x}}
\label{eq:fx2}
\end{align}
答え1
使用\dotfill
\documentclass{article}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{equation}
\sin^2{\theta}+\cos^2{\theta}=1\makebox[20em]{\dotfill}
\end{equation}
\begin{equation}
\begin{cases}
f_1(x) &=12x^2+36x+\sin x \\
f_2(x)&=\sqrt{3}{x^3+3x}\makebox[20em]{\dotfill}
\end{cases}
\end{equation}
\end{document}
答え2
以下の解決策を適用できますか?
\documentclass[12pt]{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\hskip \textwidth minus \textwidth
\sin^2{\theta}+\cos^2{\theta}=1
\leaders\hbox{$\cdot$ }\hskip \textwidth minus \textwidth
\end{equation}
\begin{eqnarray}
\hskip 0.3\textwidth
f_1(x)=12x^2+36x+\sin x
\leaders\hbox{$\cdot$ }\hskip 0.3\textwidth \\
f_2(x)=\sqrt{3}x^3+3x
\leaders\hbox{$\cdot$ }\hskip 0.3\textwidth
\end{eqnarray}
\end{document}