想知道如何\PassOptionsToPackage
使用山猫为了投影机.使用t, unknownkeysallowed, compress, xcolor=dvipsnames, notheorems
in Custom
in 如下图所示Document Class
Document -> Setting ...
相当于
\documentclass[english,t, unknownkeysallowed, compress, xcolor=dvipsnames, notheorems]{beamer}
我如何使用以下命令:
\PassOptionsToPackage{usenames,dvipsnames}{xcolor}
\PassOptionsToClass{english,t, unknownkeysallowed, compress, notheorems}{beamer}
在山猫。
已編輯
我尝试了以下代码 文档 > 设置 > 本地布局...
PackageOptions xcolor usenames
PackageOptions xcolor dvipsnames
仍然遇到同样的问题。
已编辑 2
\PassOptionsToPackage{usenames,dvipsnames}{xcolor}
\PassOptionsToClass{english,t, unknownkeysallowed, compress, notheorems}{beamer}
但无法弄清楚如何将上述命令传递给 山猫。
已编辑 3
@scottkosty 建议的 LyX 最小工作示例 (MWE)。
#LyX 2.4 created this file. For more info see https://www.lyx.org/
\lyxformat 606
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass beamer
\begin_preamble
\usetheme{Warsaw}
\usepackage{xcolor}
\usecolortheme[named=OliveGreen]{structure}
\end_preamble
\options t, unknownkeysallowed, compress, xcolor=dvipsnames, notheorems
\use_default_options false
\maintain_unincluded_children no
\begin_local_layout
PackageOptions xcolor "usenames,dvipsnames"
ClassOptions
Other "english,t,unknownkeysallowed,compress,notheorems"
End
\end_local_layout
\language english
\language_package none
\inputencoding auto-legacy
\fontencoding T1
\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_roman_osf false
\font_sans_osf false
\font_typewriter_osf false
\font_sf_scale 100 100
\font_tt_scale 100 100
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command bibtex
\index_command default
\float_placement H
\float_alignment class
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\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
\use_minted 0
\use_lineno 0
\index Index
\shortcut idx
\color #008000
\end_index
\secnumdepth 4
\tocdepth 4
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\math_numbering_side default
\quotes_style english
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
\tablestyle default
\tracking_changes false
\output_changes false
\change_bars false
\postpone_fragile_content false
\html_math_output 0
\html_css_as_file 0
\html_be_strict false
\docbook_table_output 0
\end_header
\begin_body
\begin_layout Title
Presentations with Beamer and \SpecialChar LyX
\end_layout
\begin_layout Subtitle
An Introduction to the Basics
\end_layout
\begin_layout Author
The \SpecialChar LyX
Team
\end_layout
\begin_layout Date
Version
\begin_inset space ~
\end_inset
2.3
\end_layout
\begin_layout Frame
\end_layout
\begin_deeper
\begin_layout FrameTitle
\begin_inset Argument 1
status open
\begin_layout Plain Layout
presentation
\end_layout
\end_inset
Contents
\end_layout
\begin_layout Standard
\begin_inset CommandInset toc
LatexCommand tableofcontents
\end_inset
\end_layout
\end_deeper
\begin_layout Section
Purposes
\end_layout
\begin_layout Frame
\begin_inset Argument 2
status open
\begin_layout Plain Layout
+-
\end_layout
\end_inset
\begin_inset Argument 4
status open
\begin_layout Plain Layout
Purpose of the Beamer class
\end_layout
\end_inset
\end_layout
\begin_layout Frame
With the
\begin_inset Flex Structure
status open
\begin_layout Plain Layout
Beamer
\end_layout
\end_inset
class, you can produce presentation slides, which
\end_layout
\begin_deeper
\begin_layout Itemize
are visually highly customizable
\end_layout
\begin_layout Itemize
can be very well structured
\end_layout
\begin_layout Itemize
can be constructed step-by-step (
\begin_inset Quotes eld
\end_inset
overlay
\begin_inset Quotes erd
\end_inset
concept)
\end_layout
\begin_layout Itemize
may contain different navigation paths (note that the slides contain all
sorts of hyperlinks)
\end_layout
\begin_layout Itemize
use \SpecialChar LaTeX
's superb output quality
\end_layout
\begin_layout Itemize
might embed multimedia content (audio, video)
\end_layout
\begin_layout Itemize
can easily be transformed to accompanying material (such as an article-like
handout)
\end_layout
\begin_layout Itemize
and much more \SpecialChar ldots
\end_layout
\end_deeper
\begin_layout Standard
\begin_inset Separator plain
\end_inset
\end_layout
\end_body
\end_document
答案1
转到文档 > 设置 > 本地布局并粘贴以下内容:
PackageOptions xcolor "usenames,dvipsnames"
ClassOptions
Other "english,t,unknownkeysallowed,compress,notheorems"
End
然后单击“验证”按钮。然后单击“确定”。类选项将直接通过\documentclass
命令传递。据我所知,您想使用,\PassOptionsToClass
但我不确定如何强制执行。
请注意,“usenames”在 xcolor 包文档中似乎被标记为“过时”(https://ctan.mirrors.hoobly.com/macros/latex/contrib/xcolor/xcolor.pdf)。