Lyx 定理引用

Lyx 定理引用

我正在使用 Lyx,每次我添加一个新定理(或引理)时,它都会自动在定理后添加方括号:

在此处输入图片描述

我该如何删除它们?

编辑:我添加定理的方式与添加常规部分、章节等的方式相同。我使用文章(标准类)文档类型和定理(AMS)模块。我尝试更改为不同的定理模块,但没有帮助。

编辑:我做了一个小例子,这是整个 lyx 文件:

#LyX 2.2 created this file. For more info see http://www.lyx.org/
\lyxformat 508
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\begin_preamble
\onecolumn
\usepackage{graphics}
\usepackage{psfrag}

 \allowdisplaybreaks

\usepackage{epstopdf}
\usepackage{theorem}
\usepackage[font=small]{caption}


\newcommand*{\horzbar}{\rule[.5ex]{2.5ex}{0.5pt}}
\newcommand*{\vertbar}{\rule[-1ex]{0.5pt}{2.5ex}}
\DeclareMathOperator{\tr}{\textbf{tr}}
\end_preamble
\use_default_options false
\begin_modules
theorems-ams
eqs-within-sections
figs-within-sections
customHeadersFooters
\end_modules
\maintain_unincluded_children false
\language english
\language_package none
\inputencoding auto
\fontencoding default
\font_roman "default" "default"
\font_sans "default" "default"
\font_typewriter "default" "default"
\font_math "auto" "auto"
\font_default_family default
\use_non_tex_fonts false
\font_sc false
\font_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize 11
\spacing single
\use_hyperref true
\pdf_bookmarks false
\pdf_bookmarksnumbered false
\pdf_bookmarksopen false
\pdf_bookmarksopenlevel 1
\pdf_breaklinks false
\pdf_pdfborder false
\pdf_colorlinks true
\pdf_backref section
\pdf_pdfusetitle true
\pdf_quoted_options "linkcolor=black,filecolor=magenta,urlcolor=cyan,citecolor=black"
\papersize legalpaper
\use_geometry true
\use_package amsmath 2
\use_package amssymb 2
\use_package cancel 0
\use_package esint 1
\use_package mathdots 0
\use_package mathtools 0
\use_package mhchem 0
\use_package stackrel 0
\use_package stmaryrd 0
\use_package undertilde 0
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date true
\justification true
\use_refstyle 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\paragraph_indentation default
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle headings
\tracking_changes false
\output_changes false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\end_header

\begin_body

\begin_layout Theorem
here is theorem
\end_layout

\end_body
\end_document

答案1

您已添加

\usepackage{theorem}

到你的序言中。删除此行。

定理(AMS)module 加载amsthm包,两者的组合不知何故导致了额外的括号,因为它们有冲突。的作者theorem建议无论如何都不要使用它:

该包的作者不再推荐;他建议用户改用 AMS LATEXam­sthm包;另一个广泛使用的替代方案是nthe­o­remq。(https://www.ctan.org/pkg/theorem


其他评论:我也会从序言中删除\onecolumn\usepackage{graphics}。单列布局是默认布局,如果您通过 LyX 界面添加图像,LyXgraphicx无论如何都会加载后续包。

相关内容