T*n
2 楼
\documentclass{article}
\usepackage{amsmath}
\makeatletter % required because of the use of \@tempdima
\newcommand*{\toplabel}[4]{%
\settowidth{\@tempdima}{\ensuremath{#1}}%
\makebox[\@tempdima][c]{%
\hss
\ensuremath{%
\makebox[0pt][r]{\ensuremath{\scriptstyle#2}}%
\scriptstyle{#3}%
\makebox[0pt][l]{\ensuremath{\scriptstyle#4}}%
}%
\hss
}%
}
\makeatother
\begin{document}
Here is one way of doing this.
\begin{equation}
%
\begin{array}{r} % matrix of q and q
\usepackage{amsmath}
\makeatletter % required because of the use of \@tempdima
\newcommand*{\toplabel}[4]{%
\settowidth{\@tempdima}{\ensuremath{#1}}%
\makebox[\@tempdima][c]{%
\hss
\ensuremath{%
\makebox[0pt][r]{\ensuremath{\scriptstyle#2}}%
\scriptstyle{#3}%
\makebox[0pt][l]{\ensuremath{\scriptstyle#4}}%
}%
\hss
}%
}
\makeatother
\begin{document}
Here is one way of doing this.
\begin{equation}
%
\begin{array}{r} % matrix of q and q
A*y
3 楼
Thank you so much!
【在 T*******n 的大作中提到】
: \documentclass{article}
: \usepackage{amsmath}
: \makeatletter % required because of the use of \@tempdima
: \newcommand*{\toplabel}[4]{%
: \settowidth{\@tempdima}{\ensuremath{#1}}%
: \makebox[\@tempdima][c]{%
: \hss
: \ensuremath{%
: \makebox[0pt][r]{\ensuremath{\scriptstyle#2}}%
: \scriptstyle{#3}%
【在 T*******n 的大作中提到】
: \documentclass{article}
: \usepackage{amsmath}
: \makeatletter % required because of the use of \@tempdima
: \newcommand*{\toplabel}[4]{%
: \settowidth{\@tempdima}{\ensuremath{#1}}%
: \makebox[\@tempdima][c]{%
: \hss
: \ensuremath{%
: \makebox[0pt][r]{\ensuremath{\scriptstyle#2}}%
: \scriptstyle{#3}%
相关阅读
WinShell里的pdfView如何用(2.3)之类的编号来控制方程编号?求高手修改harvard.sty文件那位高手知道Optics Letters的latex模板里面如何设置文献的链接?在latex 里如何表示一个元素不属于一个集合。谢谢。如何在正文中输入罗马数字3?(非counter)如何去掉正文打头的间距在margin上怎么写字?怎样增加图的caption和文章正文之间的间距?section编号问题Word 在windows 下变小请教如何在latex环境下画流程示意图奇偶页页边距颠倒6000问一个文章列表的问题如何正确插入图片啊?能帮帮我吗?[请教]LaTex下画UML图参考文献标题不显示有Surface and Coatings Technology用的latex模板吗?怎样控制 listoffigures 条目之间的行距?