Question: I want my captions to be the same width as my table with appropriate wrap around. So I created a new command to do it. The MWE is below. The problem is that while the table and caption are flush on the right (which is what I want) the caption overhangs the table just a little bit on the left (which is not what I want). How can I get the table and the caption to be flush on both the left and right? Thanks, Roger

```
\documentclass{article}
%
\newcommand{\tab}[4]{
\setbox0=\hbox{#1}
\begin{table}[htbp]
\begin{center}
\begin{minipage}{\the\wd0}
\caption[#2]{#3\label{#4}}
\box0
\end{minipage}
\end{center}
\end{table}}
%
\begin{document}
%
\tableofcontents
\listoftables
%
\tab{
\begin{tabular}{|c|c|c|}
  \hline
  one & two & three\\
  four & five & six\\
  seven & eight & nine\\
  \hline
\end{tabular}}
{Small Table in Minipage}
{A small table in a minipage with a caption that wraps
but is slightly to the left of the table in vertical
alignment.}
{tab:inminipage}
%
\end{document}

```

[![The code above produces this result. The caption starts about half character to the left of the table.](https://i.stack.imgur.com/2jiar.png)](https://i.stack.imgur.com/2jiar.png)

Answer: 
It's the standard `\mathcal{K}`.

[![enter image description here](https://i.stack.imgur.com/cPTIr.png)](https://i.stack.imgur.com/cPTIr.png)

```latex
\documentclass{article}
\usepackage{amsmath}

\begin{document}

\[
\mathcal{K}(r_0;k)=\operatorname{span}\{r_0,Ar_0,\dots,A^kr_0\}
\]

\end{document}

```

[![enter image description here](https://i.stack.imgur.com/McomG.png)](https://i.stack.imgur.com/McomG.png)

I guess that your document uses `mathptmx`. Do like this:

```latex
\documentclass{article}
\usepackage{amsmath}
\usepackage{mathptmx}

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}

\begin{document}

\[
\mathcal{K}(r_0;k)=\operatorname{span}\{r_0,Ar_0,\dots,A^kr_0\}
\]

\end{document}

```

[![enter image description here](https://i.stack.imgur.com/YPmM7.png)](https://i.stack.imgur.com/YPmM7.png)

If you're using `newtx`, the code should be

```latex
\documentclass{article}
\usepackage{amsmath}
\usepackage{newtxtext,newtxmath}
\usepackage{fix-cm}

\DeclareMathAlphabet{\mathcal}{OMS}{cmsy}{m}{n}

\begin{document}

\[
\mathcal{K}(r_0;k)=\operatorname{span}\{r_0,Ar_0,\dots,A^kr_0\}
\]

\end{document}

```
looks a bit like kappa from `txfonts`, just a bit bigger:

```
\documentclass{article}

\usepackage{graphicx}
\usepackage{mathtools}
\usepackage{txfonts}

\begin{document}

\[
\text{\scalebox{1.4}{$\kappa$}}(r_0)
\]

\end{document}

```

[![enter image description here](https://i.stack.imgur.com/D0866.png)](https://i.stack.imgur.com/D0866.png)