我正在努力粗体在subsection*{}
使用中\mintinline
。
有什么办法可以实现这个目的吗?
以下是示例:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\begin{document}
\subsection*{\mintinline{python}{compare_cpu_and_memory():}} This function deals with the comparison of the solver memory usage and solver CPU time of both framework generated models.
\end{document}
我想compare_cpu_and_memory():
加粗。
答案1
文本已经是粗体了,但是默认字体没有粗体打字机字母,所以看不到。使用另一种字体:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{minted}
\usepackage[T1]{fontenc}
\usepackage[scaled=0.85]{beramono}
\begin{document}
\subsection*{\mintinline{python}{compare_cpu_and_memory():}} This function deals with the comparison of the solver memory usage and solver CPU time of both framework generated models.
\end{document}