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

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

Open
belonesox opened this issue Aug 10, 2018 · 4 comments
Open

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

belonesox opened this issue Aug 10, 2018 · 4 comments

Comments

@belonesox
Copy link

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:

  • Jupyter-Latex will have setting like
    c.LatexConfig.latex_template_file = 'simple_article_for_our_institute.tex'
  • New menu "File→New→Latex File" will be added.
  • Calling "File→New→Latex File" we create new latex file from simple_article_for_our_institute.tex

Very simple but useful usecase.

Ideas for further improvements

  • May be with some template interpolation, but template processing looks not so important.
  • May be have set of templates ("article", "corporative report", "lab work", "book") and corresponding set of submenus under "File→New→Latex File"
@ian-r-rose
Copy link
Member

This is a nice idea!

@t-makaro
Copy link

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
Copy link

t-makaro commented Aug 25, 2018

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
Copy link
Member

i have no issues with accepting non-ipynb files

@ktaletsk ktaletsk pinned this issue Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants