how to make an nbconvert custom template
<p>I am working on an El Capitan with python 3.5 and I have installed succsfully jupyter, pandoc, and latex.</p>

<p>I am trying to make a tempalte for nbconvert in order to edit the output in pdf (some margines do not look very nice and some code falls outside the paper).</p>

<p>For that reason I tried to download and play with <a href="https://github.com/jupyter/nbconvert-examples" rel="nofollow">https://github.com/jupyter/nbconvert-examples</a> as suggested in an other question. The only problem is it does not work. </p>

<p>For example in the citations folder the tutorial instructs me to use the <code>ipython nbconvert</code> command but it gives me the warning:</p>

<pre><code>[TerminalIPythonApp] WARNING | Subcommand `ipython nbconvert` is deprecated and will be removed in future versions.
</code></pre>

<p>and fails. When I run it with <code>jupiter nbconvert</code> instead I am getting the same error.</p>

<p>I tried the full command it suggests in many versions, each fail:</p>

<p>the:</p>

<pre><code>jupyter nbconvert --to latex --template citations.tplx --post pdf mynotebook.ipynb
</code></pre>

<p>understandably does not work any more since the syntax has changed. But the:</p>

<pre><code>jupyter nbconvert --to pdf --template citations.tplx LifecycleTools 
</code></pre>

<p>runs but does not create the citations.
When I run:</p>

<pre><code>jupyter nbconvert --config ipython_nbconvert_config.py --template citations.tplx  LifecycleTools.ipynb
</code></pre>

<p>the same happens.</p>

<p>Any idea for correct examples or where I can find resources on how to white and run a template?</p>