In the MWE below, I want to refer to the subtable 1a by just display
a. I don't want to display the number of the parent Table 1.
In this post
How to reference subfigure in caption,
the first example shows that a solution using \subbottom.
However, is there a direct setting for table and subtable to
achieve what I want?
MWE is
\documentclass[11pt]{article}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{subcaption}
\begin{document}
\begin{table}[ht]
\begin{subtable}{3cm}
$X \xrightarrow{\phantom{=======}} Y$
\caption{sub-tab}
\label{subtab}
\end{subtable}
\caption{tab}
\label{tab}
\end{table}
This is refer to subtable \ref{subtab}.
\end{document}
Thank the answer from Christian Hupfer. I am sorry not to be more careful
about my question. In fact, I want to achieve the goal in beamer.
I give a MWE below. Using \subref in beamer will jump to the title page.
Need a way to fix this. But however, Christian Hupfer's answer for article
is still helpful!
\documentclass{beamer}
\mode<presentation>
{
\usetheme{Warsaw}
\setbeamertemplate{headline}{}
\setbeamertemplate{itemize item}[triangle]
\setbeamertemplate{itemize subitem}[triangle]
\setbeamertemplate{itemize subsubitem}[triangle]
\setbeamercovered{transparent}
\useoutertheme{infolines}
\usefonttheme{professionalfonts}
}
\setbeamertemplate{section page}
{
\begin{centering}
\begin{beamercolorbox}[sep=12pt,center]{part title}
\usebeamerfont{section title}\insertsection\par
\end{beamercolorbox}
\end{centering}
}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{amssymb}
\usepackage{caption}
\usepackage{subcaption}
\captionsetup{compatibility=false}
\begin{document}
\frame{\titlepage}
\frame{\tableofcontents}
\begin{frame}
\begin{table}[ht]
\begin{subtable}{3cm}
$X \xrightarrow{\phantom{=======}} Y$
\caption{sub-tab}
\label{subtab}
\end{subtable}
\caption{tab}
\label{tab}
\end{table}
\end{frame}
\begin{frame}
This is refer to subtable \subref{subtab}.
\end{frame}
\end{document}

beamerandcaptionis a strange relationship. I am not sure that\subrefcan work properly here – Dec 06 '15 at 22:40\hyperlink{subtab}{\subref*{subtab}}. This will at least provide the correct link! – Dec 06 '15 at 22:48