Skip to content

LaTeX export fails silently if there exists an empty macro in the preamble #1621

@ProfFan

Description

@ProfFan

Mogan 版本

1.2.3-rc4

操作系统版本和架构

macOS Sonoma 14.2.1

描述问题

LaTeX 导出会失败但是没有报错

;string->symbol argument, "", is a string but should be a non-null string
;    ("Is @x a list with first stree @f?...
;    /Applications/MoganResearch.app/Contents/Resources/share/Xmacs/progs/kernel/library/base.scm, line 270, position: 9184
; collect-user-defs-sub: ("Is @x a list wit...
; collect-user-defs-sub: (((user-definition... ; t: (assign "" (macro ""))
;                                              tmtex-user-defs-table: (hash-table)
; collect-user-defs: ((ahash-set->list tmte...
; (map as-string (collect-user-defs st))     ; st: (document (hide-preamble (docum...

原因是我文档的 preamble 里面有一个空的 definition
image

奇怪的是 TeXmacs 原版没有问题

期待的结果

导出成功

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingplugin:LaTeXquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions