Skip to content

minted结构体在正文中如何引用? #877

Closed Answered by atxy-blip
Auyuir asked this question in Q&A
Discussion options

You must be logged in to vote

没能用下面的例子复现问题,建议重新编译一遍看看。

\documentclass{thuthesis}
\usepackage{minted}

\begin{document}

如代码~\ref{C++top}~所示

\begin{listing}[H]
\mint{C++}/int i = 1;/ 
\caption{Example of a listing.}
\label{C++top}
\end{listing}

\end{document}

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
11 replies
@Auyuir
Comment options

@note286
Comment options

@note286
Comment options

@note286
Comment options

@Auyuir
Comment options

Answer selected by Auyuir
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants