LyX的一些使用问题收集

2 篇文章 0 订阅

编译开始产生的检查错误

试用LyX2.3,在2.15中能编译通过的文档,竟然提示错误

The user preamble of your document contains glyphs that are unknown in the current document encoding (namely 如果没有这一句命令,XeTeX会出错,原因参见)
These glyphs are omitted from the output, which may result in incomplete output.
please select an appropriate document encoding (such as utf8) or change the preamble code accordingly.

以及

Some characters of your document are probably not representable in the chosen encoding.
Changing the document encoding to utf8 could help.

问题是我在“Document -> setting -> Laguage” 中,已经设定了UTF8格式。

后来发现两个问题:

  1. 没有存档,用的临时没有起名字的默认文档测试
  2. 在“Document -> setting ->Fonts ”勾选上“Use non-TeX fonts (via XeTeX/LuaTeX)”,可以预览或生成PDF文件

编译过程产生的问题

  1. 提示“missing glyphs”,查看描述为:Missing character: There is no ; in font nullfont! 找到出问题的地方: \EU1/SimSun(0)/bx/n/10 答
    \EU1/SimSun(0)/bx/n/10 解
    LaTeX Font Warning: Font shape `T1/Georgia(0)/m/n' undefined
    此错误点击show output anyway 可以看到结果PDF。
  2. 提示错误
    LaTeX Error: Command '\lvert' already defined
    LaTeX Error: Command '\rvert' already defined
    LaTeX Error: Command '\LVert' already defined
    LaTeX Error: Command '\rVert' already defined

    解决方案:更换文档类。将Chinese Book(CTeX)更换为Book (Standard Class)。或者不使用{fourier}包。

编辑过程中的问题

  1. 当有多个display 公司连续编号时,显示的每两个公式中间空一行。
    这是由于文档类型使用了fleqn:\documentclass[fleqn]{article},增加了公式的垂直间距。
    fleqn document class option, long text lines, and hyperref package仍然没有解决该问题。
    解决:每两个公式之间插入一个seperate line;如果这些公式是在定理环境,还需要将公式放在环境外。 只对其中的一个公式编号,其他公式不编号。——有时候也不起作用,但是导出到TeXStudio编译后没问题,LyX2.15的编译过程由问题。
  2. Beamer中插入代码,提示“Illegal parameter number in definition of \iterate.”。
    【解决方案】使用fragile选项:\begin{frame}[fragile] \end{frame}。LyX中要在Frame插入fragile参数。
  3. LyX2.3的编辑区(工作区)自动断行比较差,特别是双引号和公式混排时,即使在document->Text Layout中勾选了“justification...”也无效。只好用回2.15.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值