Lyx 使定理在全球范围内不采用斜体

Lyx 使定理在全球范围内不采用斜体

在此处输入图片描述

在使用 Lyx 之前,我使用过\declaretheoremstyle 定义在定理中将正文字体变为正常字体。但在 Lyx 中,我使用定理(AMS)定理(按章节编号)模块,无法找到将正文字体变为正常字体(非斜体)的方法。我试过了\theoremstyle{备注}在序言中但它不起作用。

目前,我只是使用\textup{}在每个定理中,但我只是希望能够从全局角度处理它。我使用的模块似乎添加了以下命令:

\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{\protect\theoremname}
\else
\newtheorem{thm}{\protect\theoremname}[chapter]
\fi

如果我能轻松处理这个问题,我将不胜感激!谢谢。

[添加]这是我正在处理的源代码。

% Preview source code
%% LyX 2.1.3 created this file.  For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[oneside,english]{scrbook}
\usepackage{mathptmx}
\usepackage[T1]{fontenc}
\usepackage{geometry}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{bm}
\usepackage{amsthm}
\usepackage{amsmath}
\usepackage{amssymb}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
\theoremstyle{plain}
\ifx\thechapter\undefined
\newtheorem{thm}{\protect\theoremname}
\else
\newtheorem{thm}{\protect\theoremname}[chapter]
\fi
\@ifundefined{date}{}{\date{}}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{indentfirst}
\usepackage{amsmath}
\usepackage{amsthm}
\usepackage{thmtools}
\setlength{\parskip}{0.5mm}
\setlength{\parindent}{4.5mm}

\makeatother

\usepackage{babel}
\providecommand{\theoremname}{Theorem}
\begin{document}
\chapter{Euclidean Space}
\section{Tangent Space and Vector Field} 

\begin{thm}
\textup{Let}\end{thm}
\begin{proof}
$v_i (p)$
\end{proof}

\end{document}

答案1

ntheorem你可以使用包而不是轻松获得你想要的东西amsthm。一个优点是证明结束符号的放置将完全自动,即使对于以显示方程结尾的证明也是如此:

    \documentclass[oneside,english]{scrbook}
    \usepackage{mathptmx}
    \usepackage[T1]{fontenc}
    \usepackage{geometry}
    \setcounter{secnumdepth}{3}
    \setcounter{tocdepth}{3}
    \usepackage{bm}
    \usepackage{amsmath}
    %\usepackage{amsthm}
    \usepackage[thmmarks, amsmath, thref]{ntheorem}
    \usepackage{amssymb}
    \makeatletter
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands.
    \theoremstyle{plain}
    \theoremheaderfont{\bfseries}
    \theorembodyfont{\upshape}
    \theoremseparator{.}
    \ifx\thechapter\undefined
    \newtheorem{thm}{\protect\theoremname}
    \else
    \newtheorem{thm}{\protect\theoremname}[chapter]
    \fi
    \theoremstyle{nonumberplain}
    \theoremheaderfont{\itshape}
    \theoremsymbol{\ensuremath{\square}}
    \newtheorem{proof}{Proof}
    \@ifundefined{date}{}{\date{}}
    %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
    \usepackage{indentfirst}
    \usepackage{thmtools}
    \setlength{\parskip}{0.5mm}
    \setlength{\parindent}{4.5mm}

    \makeatother

    \usepackage{babel}
    \providecommand{\theoremname}{Theorem}

    \begin{document}
    \chapter{Euclidean Space}
    \section{Tangent Space and Vector Field}

    \begin{thm}
    \textup{Let}\end{thm}
    \begin{proof}Since $ \omega $ is an exact form, $ ω=\mathrm d\mkern1mu f$, we have: 
\[ \int_{\gamma}\omega = \int_{\gamma}\mathrm d\mkern1mu f = f(\gamma(b)-f(\gamma(a). \]%
    \end{proof}

    \end{document}

在此处输入图片描述

相关内容