使用一个命令同时使用 textbf 和 textit 的方法 2024-5-24 • text-manipulation keycommand 您好,我需要制作一个文档,其中需要同时使用大量的 \textbf 和 \textit,因此我尝试创建一个同时使用这两个命令的新命令,但是它给出了一个错误,而我不知道如何以正确的方式执行此操作,我使用了: \newcommand{\bfit}[1]{\textbf{\textit{#1}}} 知道如何做吗? 编辑:出现的错误是这样的(我在 Texstudio 上): 答案1 似乎在 WinEdt 中与 MikTeX 配合使用效果很好。以下是供参考的 MWE: \documentclass{article} \newcommand{\bfit}[1]{\textbf{\textit{#1}}} \begin{document} \textbf{\textit{Hello World}} \par \bfit{Using new command} \end{document} 相关内容 Puppet 未提取更改 - 无法请求证书 getaddrinfo:名称或服务未知 TikZ 覆盖在 png 图像上 无法登录 Ubuntu 14.04 LTS 手写 r 符号上的部首间距/字距调整 关闭显示器会让 GPU 忽略显示器吗? 如何在此 zcat 循环中仅找到特定的关键词? Apache stapling_renew_response:响应者错误 可视化程序使用的 RAM 数量的方法 设置子部分标题页 如何从 CBS.log 中提取已安装的更新?