You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
在子文档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.
问题复现
在子文档
chapter/c2.tex
中使用todonotes先 usepackage 然后写一个todo 发现编译报错:
undefined control sequence \todo
问题解决
把usepackage{todonotes}写到主文档main.tex中就可以了。
怀疑原因
查看standalone文档,有如下描述:
根据上面的描述,standalone默认会跳过子文件中的所有preambles,所以需要些在main file中。
建议
是否考虑去掉standalone或者修改readme说明一下,chapter/c*.tex文件中的注释会误导用户以为可以直接在这里引入新包。
The text was updated successfully, but these errors were encountered: