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}%
相关阅读
texlive 2016 已经出来了和\parbox对应且有框的命令是那个error of saving pdf file w/o read-only on win 7 (转载)为什么我用从elsvier上下载的bibliographystyle排出来的reference跟实际journal格式上不完全一样?LaTeX的优势在慢慢被word吸收如何设定图片里字体大小为12号?bibtex 厘米大家都留着 online available吗?glossaries 可以用中文么?问一个在公式中用直立文本的问题区别\[\]和\begin{align}便宜出售一些家具,家电,生活用品!!打包买我包送货Matlab里面坐标怎么用latex字体显示 (转载)问个诡异的\eqref问题 (转载)mactex 问题求助 (转载)写完文档后,按PDF Latex 按钮运行没有反应latex 表格自动排版的问题beamer里面要把一个semiverbatim居中怎么搞?问个tikz里画箭头的问题直接使用上下标编译出错把Stata或Excel的表格转换成latex最简便的办法是什么?