Texについての質問です.labelが機能してくれません.
環境:Mac 最新OS,エディタはAtom
プリアンブル:
\documentclass[11pt, a4j,uplatex]{jsarticle}
\usepackage{ascmac}
\usepackage[]{multicol}
\usepackage[dvipdfmx]{graphicx}
経緯:
(マルチコラムが厄介者で,これを使うと写真が挟めないので,figureではなく,
下のようにfigurehereで対応しました.)以下のように\label{sample}をしても表示が「図を参照します。」となります.なぜでしょうか
\begin{document}
\begin{figurehere}
\centering
\includegraphics[width=\linewidth]{imf.png}
\capion{imf} \label{sample}
\end{figurehere}\\
図\ref{sample}を参照します。
\end{document}
*.aux
)を見ると判るかと思いますが、\newlabel{sample}{{1}{1}}
と書かれています。再度コンパイルすると、この定義が使用されますので、期待通りの結果を得る事ができます。uplatex src.tex
を実行するだけです。