我在 linux/ubuntu 14.04 上,我的用户目录可以在 中找到/.lyx
。我能够将颜色主题粘贴进去,/.lyx/preferences
但是当我尝试在 lyx 中更改首选项时,重新启动程序后更改就会丢失。
preferences
我检查了文件和文件夹的权限,发现-rw-rw-rw-
lyx 应该能够更改它们。我该怎么办?
我的preferences
# LyX 2.0.8.1 generated this file. If you want to make your own
# modifications you should do them from inside LyX and save.
Format 1
\bind_file "emacs"
#
# MISC SECTION ######################################
#
\serverpipe "/home/hb/.lyxpipe"
\user_name ""
\user_email ""
\preview_scale_factor 0.8
#
# SCREEN & FONTS SECTION ############################
#
\screen_zoom 130
\screen_font_roman "Abyssinica SIL"
\screen_font_sans "Abyssinica SIL"
\screen_font_typewriter "Courier"
\screen_font_sizes 5 7 8 9 10 12 14.4 17.260000000000002 20.739999999999998 24.879999999999999
\fullscreen_limit true
\fullscreen_width 850
\single_instance false
\forward_search_dvi "okular --unique \"file:$$o#src:$$n $$f\""
\forward_search_pdf "okular --unique \"file:$$o#src:$$n $$f\""
#
# COLOR SECTION ###################################
#
# solarized dark
\set_color "cursor" "#839496"
\set_color "background" "#002b36"
\set_color "foreground" "#839496"
\set_color "selection" "#586e75"
\set_color "selectiontext" "#002b36"
\set_color "latex" "#839496"
\set_color "preview" "#839496"
\set_color "inlinecompletion" "#586e75"
\set_color "nonuniqueinlinecompletion" "#586e75"
\set_color "note" "#268bd2"
\set_color "notebg" "#073642"
\set_color "commentbg" "#073642"
\set_color "greyedoutbg" "#073642"
\set_color "shaded" "#dc322f"
\set_color "listingsbg" "#268bd2"
\set_color "footlabel" "#6c71c4"
\set_color "urllabel" "#839496"
\set_color "urltext" "#839496"
\set_color "depthbar" "#2aa198"
\set_color "language" "#839496"
\set_color "command" "#2aa198"
\set_color "commandbg" "#073642"
\set_color "commandframe" "#586e75"
\set_color "special" "#81a2be"
\set_color "graphicsbg" "#073642"
\set_color "math" "#839496"
\set_color "mathbg" "#002b36"
\set_color "mathmacrobg" "#073642"
\set_color "mathmacroframe" "#073642"
\set_color "mathmacroblend" "#839496"
\set_color "mathmacronewarg" "#839496"
\set_color "mathframe" "#839496"
\set_color "mathcorners" "#073642"
\set_color "mathline" "#839496"
\set_color "collapsable" "#d0caff"
\set_color "collapsableframe" "#073642"
\set_color "insetframe" "#586e75"
\set_color "eolmarker" "#2aa198"
\set_color "added_space" "#2aa198"
\set_color "appendix" "#dc322f"
\set_color "changebar" "#4d4d4c"
\set_color "addedtext" "#8b0000"
\set_color "changedtextauthor1" "#2aa198"
\set_color "changedtextauthor2" "#d33682"
\set_color "changedtextauthor3" "#cf4b16"
\set_color "changedtextauthor4" "#b58900"
\set_color "changedtextauthor5" "#859900"
\set_color "tabularline" "#839496"
\set_color "tabularonoffline" "#586e75"
\set_color "newpage" "#2aa198"
\set_color "pagebreak" "#268bd2"
\set_color "buttonframe" "#586e75"
\set_color "buttonbg" "#002b36"
\set_color "buttonhoverbg" "#073642"
\set_color "paragraphmarker" "#8abeb7"
\set_color "previewframe" "#839496"
#
# PRINTER SECTION ###################################
#
#
# TEX SECTION #######################################
#
#
# FILE SECTION ######################################
#
#
# PLAIN TEXT EXPORT SECTION ##############################
#
#
# SPELLCHECKER SECTION ##############################
#
#
# LANGUAGE SUPPORT SECTION ##########################
#
\spellchecker enchant
\spellcheck_continuously true
#
# 2nd MISC SUPPORT SECTION ##########################
#
#
# FORMATS SECTION ##########################
#
\format "bmp" "bmp" "BMP" "" "xdg-open" "auto" ""
\format "dia" "dia" "DIA" "" "auto" "auto" "vector"
\format "dvi" "dvi" "DVI" "D" "okular" "" "document,vector,menu=export"
\format "excel" "xls" "Excel spreadsheet" "" "" "auto" "document"
\format "fen" "fen" "FEN" "" "auto" "auto" ""
\format "fig" "fig" "FIG" "" "auto" "auto" "vector"
\format "gif" "gif" "GIF" "" "xdg-open" "auto" ""
\format "gnumeric" "gnumeric" "Gnumeric spreadsheet" "" "" "auto" "document"
\format "agr" "agr" "Grace" "" "auto" "auto" "vector"
\format "jpg" "jpg" "JPEG" "" "xdg-open" "auto" ""
\format "noteedit" "not" "Noteedit" "" "auto" "auto" "vector"
\format "oocalc" "ods" "OpenOffice spreadsheet" "" "" "auto" "document"
\format "pbm" "pbm" "PBM" "" "xdg-open" "auto" ""
\format "pgm" "pgm" "PGM" "" "xdg-open" "auto" ""
\format "png" "png" "PNG" "" "xdg-open" "auto" ""
\format "ppm" "ppm" "PPM" "" "xdg-open" "auto" ""
\format "tiff" "tif" "TIFF" "" "xdg-open" "auto" ""
\format "tgif" "obj" "Tgif" "" "auto" "auto" "vector"
\format "xbm" "xbm" "XBM" "" "xdg-open" "auto" ""
\format "xpm" "xpm" "XPM" "" "xdg-open" "auto" ""
#
# CONVERTERS SECTION ##########################
#
#
# COPIERS SECTION ##########################
#
答案1
解决方案:在偏好设置中使用“保存”按钮永久保存,而不是“应用”按钮。
你遇到了一个常见的困惑,表现为这LyX 错误。“应用”按钮仅用于将其应用于该 LyX 会话。如果您理解其中的区别,这是一个有用的功能,因为这样您就可以尝试各种偏好,而不必担心您会永久更改某些内容(并忘记如何恢复到之前的状态)。虽然这是一个有用的功能,但它给许多用户(包括我自己)带来了困惑。