jupyterlab / jupyterlab-latex

JupyterLab extension for live editing of LaTeX documents
BSD 3-Clause "New" or "Revised" License
629 stars 69 forks source link

Menu item "File→New→Latex File" with customizeable template. #89

Open belonesox opened 6 years ago

belonesox commented 6 years ago

For most of Latex newbie is very difficult to create new correct LaTeX file without copy-pasting all that stuff about \documentclass, set of packages, etc.

So, it will be great, if:

    c.LatexConfig.latex_template_file = 'simple_article_for_our_institute.tex'

Very simple but useful usecase.

Ideas for further improvements

ian-r-rose commented 6 years ago

This is a nice idea!

t-makaro commented 6 years ago

To make it more configurable, maybe a list or dictionary like:

c.LatexConfig.latex_template_files = {
    'name': 'path/to/file.tex'
}

This could even have a couple templates set by default.

I personally have 2 main templates that I use, so this would be AWESOME.

t-makaro commented 6 years ago

Maybe we could take some inspiration from jupyterlab_templates. It does exactly what we need except that it only accepts using *.ipynb as templates. Or we could ask @timkpaine about supporting non-notebook file types.

timkpaine commented 5 years ago

i have no issues with accepting non-ipynb files