您需要
nbconvert通过创建
jupyter_nbconvert_config.py文件并将其存储在中来告诉您寻找模板
~/.jupyter。
我将其用于LaTeX-这是我的文件的样子:
import osc = get_config()c.LatexExporter.template_path = ['.', os.path.expanduser('~/.jupyter/templates')]c.LatexExporter.template_file = 'custom_latex.tplx'假设模板扩展了现有模板,则
'.'在设置时需要包括在内,
template_path以便知道在哪里寻找标准模板。



