Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ProfFan opened this issue Jan 28, 2024 · 1 comment
Open
Labels
bug Something isn't working plugin:LaTeX question Further information is requested

Comments

@ProfFan
Copy link

ProfFan commented Jan 28, 2024

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 原版没有问题

期待的结果

导出成功

@ProfFan ProfFan added the bug Something isn't working label Jan 28, 2024
@da-liii
Copy link
Contributor

da-liii commented Jan 29, 2024

提供一下复现这个问题的文档。我用这个空的definition并没有复现这个问题

@da-liii da-liii added plugin:LaTeX question Further information is requested labels Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working plugin:LaTeX question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants