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

standalone导致包引用出现问题 #32

Closed
gutouyu opened this issue Jan 4, 2019 · 3 comments
Closed

standalone导致包引用出现问题 #32

gutouyu opened this issue Jan 4, 2019 · 3 comments

Comments

@gutouyu
Copy link

gutouyu commented Jan 4, 2019

问题复现

在子文档chapter/c2.tex中使用todonotes
先 usepackage 然后写一个todo 发现编译报错:undefined control sequence \todo

问题解决

把usepackage{todonotes}写到主文档main.tex中就可以了。

怀疑原因

查看standalone文档,有如下描述:

The package standalone can be used in the main document to skip all extra
preambles in included files. The main file must load all packages and settings
required by the sub-files.

根据上面的描述,standalone默认会跳过子文件中的所有preambles,所以需要些在main file中。

建议

是否考虑去掉standalone或者修改readme说明一下,chapter/c*.tex文件中的注释会误导用户以为可以直接在这里引入新包。

@bdebye
Copy link
Owner

bdebye commented Jan 5, 2019

我改一下,是有这个问题⊙﹏⊙

@FFengIll
Copy link
Contributor

FFengIll commented Jan 5, 2019

@x-magus 你在修改了么?我正打算做删减和测试。

@gutouyu
Copy link
Author

gutouyu commented Jan 9, 2019

拉了最新的代码 可以了,关闭问题了哈

@gutouyu gutouyu closed this as completed Jan 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants