简体   繁体   English

在 iCloud Drive 中进行乳胶化

[英]Latexing within iCloud Drive

This is a question relative to these two posts ( this one and this one ) found on Apple discussion.这是一个与 Apple 讨论中发现的这两个帖子(这个这个)相关的问题。

I am using Sublime Text 3 to write and compile my latex documents.我正在使用 Sublime Text 3 编写和编译我的 latex 文档。 It works like a charm when I'm working on a local tex file, but it doesn't work when the file is stored on iCloud Drive: it returns directly an emergency stop.当我处理本地 tex 文件时,它就像一个魅力,但当文件存储在 iCloud Drive 上时它不起作用:它直接返回紧急停止。 Here is the log file:这是日志文件:

This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded format=pdflatex 2016.4.19)  29 APR 2016 23:26
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**"/Users/myname/Library/Mobile Documents/com~apple~CloudDocs/tex/paper-1.tex"

! Emergency stop.
<to be read again> 
                   \protect 
<*> "/Users/myname/Library/Mobile Documents/com~
                                                 apple~CloudDocs/tex/paper-1...
*** (job aborted, file error in nonstop mode)


Here is how much of TeX's memory you used:
 6 strings out of 493089
 278 string characters out of 6134842
 53199 words of memory out of 5000000
 3590 multiletter control sequences out of 15000+600000
 3640 words of font info for 14 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 3i,0n,0p,1b,6s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!

Maybe it is related to the way iCloud automatically organizes the files by type...也许这与 iCloud 按类型自动组织文件的方式有关......

Did anyone get rid of this issue?有没有人摆脱这个问题?

You could try creating a symlink to the cloud directory, eg您可以尝试创建指向云目录的符号链接,例如

ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs Documents/CloudDocs

and run the command from ~/Documents/CloudDocs instead.并从~/Documents/CloudDocs运行命令。

In my experience, the simplest solution was to configure my iCloud Drive to sync "Desktop & Documents Folders" and then locate my TeX files somewhere within one of these.根据我的经验,最简单的解决方案是将我的 iCloud Drive 配置为同步“桌面和文档文件夹”,然后将我的 TeX 文件定位在其中一个中的某个位置。 Then, the default file path (if synced with iCloud) does not include the ~ character.然后,默认文件路径(如果与 iCloud 同步)不包含 ~ 字符。

I am not working on a mac, but tried to solve the same issue for my boss. 我不是在Mac上工作,但试图为老板解决相同的问题。 I found this solution. 我找到解决方案。 On my linux pc it worked with a path, that included a '~'. 在我的Linux PC上,它使用了一个路径,其中包含一个'〜'。

I realize this is an old thread but I just ran into this issue with an \include (or \input) using a regular file name, which is in fact stored in iCloud and thus the name is substituted by Mac OS as a name like /Users/rossiter/Library/Mobile Documents/com~apple~CloudDocs/MyDocs/<something.tex>, with those ~ in the path name.我意识到这是一个旧线程,但我只是使用常规文件名的 \include (或 \input)遇到了这个问题,该文件名实际上存储在 iCloud 中,因此该名称被 Mac OS 替换为 / Users/rossiter/Library/Mobile Documents/com~apple~CloudDocs/MyDocs/<something.tex>,在路径名中带有 ~。

As noted above, PDF LaTeX can not deal with these.如上所述,PDF LaTeX 无法处理这些。 So I had to move the MyDocs folder back into the regular file system, after deleting the alias I had placed there to point to iCloud.所以我不得不将 MyDocs 文件夹移回常规文件系统,在删除我放置在那里指向 iCloud 的别名之后。

Maybe this will be useful to someone.也许这对某人有用。

To add to the other answers, and in case you are using VS Code with LaTeX Workshop, you can solve this issue by going into the settings under "Latex: Tools" and opening the.json file linked.要添加其他答案,并且如果您将 VS Code 与 LaTeX Workshop 一起使用,您可以通过进入“乳胶:工具”下的设置并打开链接的.json 文件来解决此问题。 Then replace every instance of %DOC% to %DOCFILE% , as mentioned in their wiki .然后将%DOC%的每个实例替换为%DOCFILE% ,如他们的wiki中所述。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 iCloud驱动器文件夹 - iCloud Drive Folder 有没有办法手动将文件卸载到 iCloud Drive? - Is there a way to manually offload files to iCloud Drive? 将我的“Sites”文件夹与iCloud Drive同步? - Sync my “Sites” folder with iCloud Drive? 如何使用 Swift 脚本在 macOS 的 iCloud Drive 中获取当前目录? - How to get the current directory in iCloud Drive of macOS with Swift script? 应用程序的 iCloud 驱动器文件夹不显示在 macOS 中 - Application's iCloud drive folder doesn't show in macOS MacOS 上的 iOS 应用程序在没有 iCloud Drive 的情况下将数据存储在哪里? - Where do iOS apps on MacOS store their data without iCloud Drive? iOS的8 iCloud Drive是否允许不同的用户共享文件? - Does iOS' 8 iCloud Drive enable different users to share files? NSWorkspace openURL无法使用默认应用程序打开文件类型存储在iCloud Drive中的文件 - NSWorkspace openURL not opening files stored in iCloud Drive with default app for file type iCloud Drive 桌面同步与 Git - 已删除的文件重新出现并带有数字后缀的重复项 - ICloud Drive Desktop Sync vs. Git - deleted files reappear and duplicates with number suffixes 如何在OS X应用程序提供的iOS8上的iCloud Drive中公开和检索文件 - How to expose and retrieve files in iCloud Drive on iOS8 provided by OS X application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM