我正在尝试插入一个阴影背景框,但在结果 PDF 中它总是变成黑色阴影框,无论我在设置中选择的实际颜色是什么;尽管如此,阴影框后的文本仍以我为框选择的颜色显示,如下所示;我该如何解决这个问题?
上图的最小示例文件:
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
\origin unavailable
\textclass article
\use_default_options true
\maintain_unincluded_children false
\language hebrew
\language_package default
\inputencoding auto
\fontencoding global
\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
\use_microtype false
\use_dash_ligatures true
\graphics default
\default_output_format default
\output_sync 0
\bibtex_command default
\index_command default
\paperfontsize default
\spacing single
\use_hyperref false
\papersize default
\use_geometry true
\use_package amsmath 1
\use_package amssymb 1
\use_package cancel 1
\use_package esint 1
\use_package mathdots 1
\use_package mathtools 1
\use_package mhchem 1
\use_package stackrel 1
\use_package stmaryrd 1
\use_package undertilde 1
\cite_engine basic
\cite_engine_type default
\biblio_style plain
\use_bibtopic false
\use_indices false
\paperorientation portrait
\suppress_date false
\justification true
\use_refstyle 1
\use_minted 0
\boxbgcolor #bab9b9
\index Index
\shortcut idx
\color #008000
\end_index
\leftmargin 2.54cm
\topmargin 3.18cm
\rightmargin 2.54cm
\bottommargin 3.18cm
\secnumdepth 3
\tocdepth 3
\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
\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 Standard
\begin_inset Box Shaded
position "t"
hor_pos "c"
has_inner_box 1
inner_pos "t"
use_parbox 0
use_makebox 0
width "100col%"
special "none"
height "1in"
height_special "totalheight"
thickness "0.4pt"
separation "3pt"
shadowsize "4pt"
framecolor "black"
backgroundcolor "none"
status open
\begin_layout Plain Layout
\lang english
dfasfsdafasdf
\end_layout
\end_inset
\end_layout
\begin_layout Standard
\lang english
sfasfdafsafsaf
\end_layout
\begin_layout Standard
\lang english
fsdafsdafa
\end_layout
\begin_layout Standard
\lang english
dsfsdaf
\end_layout
\begin_layout Standard
\lang english
sd
\end_layout
\begin_layout Standard
\lang english
fad
\end_layout
\begin_layout Standard
\lang english
saf
\end_layout
\begin_layout Standard
\end_layout
\end_body
\end_document
答案1
感谢提供示例文件。我可以使用旧版 LyX 确认您看到的输出。这是一个漏洞从 LyX 2.3.4 开始,这个问题已经得到修复。因此,如果您升级到最新的 LyX 版本,您将获得正确的输出。