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}%
相关阅读
Latex 顺序乱了请教:如何生成下列matrix请问如何打出取整符号来?请教俩个问题。这里有人用eclipse来写latex吗?怎样分别定义段落和段内之间的间距?怎样把footnote放到单独一页上?怎样让page number显示在页面右上角?有没有好的tex->word的转换工具问个bibtex的问题如何修改ieee的referece numbering style请教公式How to place Abstract to Title area?可不可以改Margin怎么自动生成带书签的pdf文档谁有latex的semina package如何修改 .sty 或者 .cls文件如何把一个目录下所有的eps文件convert成pdf?please recommand good latex editor请问miktex中怎么设定ps=>pdf 命令