使用\autoref 引用子图,如何更改引用样式

2019-11-14 09:45发布

![](https://pics.latexstudio.net/data/images/201911/a6b98dc840b4123.jpg) 我想把1a改为Fig. 1(a),应该怎么做? MWE...

![](https://pics.latexstudio.net/data/images/201911/a6b98dc840b4123.jpg) 我想把1a改为Fig. 1(a),应该怎么做? MWE链接在下面 [https://paste.ubuntu.com/p/dT55JZfqFg/](https://paste.ubuntu.com/p/dT55JZfqFg/) 含图片的压缩包 ![](/static/images/ext/zip.gif)LATEX QUESTION.zip
2条回答
registor
2019-11-14 13:50
另外,也可以使用`cleveref`宏包实现,如: ```tex \documentclass[journal]{IEEEtran} \hyphenation{op-tical net-works semi-conduc-tor} \label{setting} \usepackage{graphicx} % add figures\\ \usepackage{mwe} % \usepackage[caption=false,font=normalsize,labelfont=sf,textfont=sf]{subfig} % anothor is to use the cleveref package. \usepackage[nameinlink]{cleveref} % set crefname \crefname{figure}{Fig.}{Fig.} \begin{document} \begin{figure}[!t] \centering \subfloat[]{\includegraphics[width=2.5in]{example-image-a}\label{subfig:a}} \\ \subfloat[]{\includegraphics[width=2.5in]{example-image-b}\label{subfig:b}} \caption{subfigexample} \label{fig:figexample} \end{figure} The letter A is shown in \cref{subfig:a} The letter B is shown in \cref{subfig:b} The letter is shown in \cref{fig:figexample} \end{document} ```

一周热门 更多>