将图形嵌入 .lyx 文件而不是链接外部文件?

Embed graphics into .lyx files instead of linking an external file?

直觉上我会把这个问题放在 superuser.com 上,但在 stackexchange.com 上搜索显示 whosebug.com 已成为询问有关问题的首选平台LyX 用法。


LyX 通常采用通常的 LaTeX 方法,即在文件夹内将文件分开,仅包含对文件(相对或绝对)路径的引用,并仅在编译时将它们插入到输出文档中。

虽然这在很多情况下都是可取的,但它也会产生可用性问题,例如when copy/pasting 内容从旧文档到新文档。默认情况下,这两个文档现在将指向同一个文件;如果它们不在同一目录中,路径可能会被粘贴为绝对路径。

这有两个不良副作用:

  1. 任何文档不再使用的文件都不会自动清理,并且
  2. 更新新文档的图形也会更改旧文档,如果它 曾经被重新编译过。

在使用文件之前手动复制文件会在可用性方面造成一些摩擦。

有没有什么方法可以将 embed/attach 文档改为 .lyx 文件本身,就像办公套件的通常工作流程一样?

有这样的选项在桌面集成方面也会更好,例如能够直接从电子邮件中打开 .lyx 附件而无需首先解压缩它们,或者允许对混合程序文档进行更均匀的“归档”,并更轻松地浏览文件管理器中的文件,更好地与桌面搜索集成,...例如

(Desired)                              (Current, with widespread
                                        directories-first sorting)

Documents/                             Documents/                                 Requires additional
  |-- 2020-05-03 Work Report May.docx    |-- 2020-05-28 Model Summary/        <-- navigation, cannot be
  |-- 2020-05-03 Work Report May.pdf     |-- 2020-05-03 Work Report May.docx      viewed directly.
  |-- 2020-05-28 Model Summary.lyx       |-- 2020-06-03 Work Report May.pdf
  |-- 2020-06-28 Model Summary.pdf       |-- 2020-06-13 Budget Report.ods
  |-- 2020-06-13 Budget Report.ods       '-- 2020-06-13 Budget Report.pdf
  '-- 2020-06-13 Budget Report.pdf
                                       Documents/2020-05-28 Model Summary/    <-- Choice between redundant use of
                                         |-- 2020-05-28 Model Summary.lyx         name (inconvenient, quickly
                                         |-- 2020-06-28 Model Summary.pdf         inconsistent) and generic names
                                         |-- overview.eps                         like document.lyx, which integrate
                                         |-- pasted-image-1.png                   badly with mailing documents and
                                         '-- pasted-image-2.png                   desktop search. Also, no cleanup 
                                                                                  of unused attachments.

目前在 LyX 中无法做到这一点。我同意这会很好。我以为已经为此提交了增强请求,但我找不到它。欢迎在 https://www.lyx.org/trac.

打开另一个

当前唯一与您想要的 松散 相关的功能是您可以转到“文件”>“导出”>“LyX 存档”。这试图将所有依赖项(例如图形)放在一个存档中。我知道这不是您要查找的内容,但我提到它是因为您提出了想要将一个文件作为电子邮件发送给某人的示例。