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

Text files with LaTeX extensions do not open in the text editor. #24

Open
SentToDevNull opened this issue Jan 14, 2017 · 6 comments
Open

Comments

@SentToDevNull
Copy link

SentToDevNull commented Jan 14, 2017

Filename extensions include: .tex, .aux, .sty, .bib, .toc, .nav, .cls, .dev, .lof, .bst, .bbx, .lot, .cbx, .bbl, .blg, and .fd

Source for extensions: https://tex.stackexchange.com/questions/7770/file-extensions-related-to-latex-etc

@nickvergessen
Copy link
Member

What are the mimetypes of those files?

Can you upload some samples for me here, so I can test it and add them to
https://github.com/nextcloud/files_texteditor/blob/master/js/editor.js#L240-L252

@SentToDevNull
Copy link
Author

SentToDevNull commented Jan 20, 2017

Here are the mimetypes:

text/x-bibtex
text/x-tex
text/x-log
text/plain
application/x-cdrdao-toc

Here is a link to sample files with those mimetypes:
https://www.lukasyoder.com/nextcloud/index.php/s/QcX3TuDSG2fOJfE

@Spartachetto
Copy link

Just a quick remark: the functionality of the issue Manage the file extensions associated with texteditor (#15), would allow the same user (or, maybe better, admin) to perform this operation

@SentToDevNull
Copy link
Author

Agreed. Seems like that would be a pretty nice feature to have in Nextcloud 12.

@ruedigerkupper
Copy link

@SentToDevNull:
Your MIME type for the .toc file is wrong. The one you mention (application/x-cdrdao-toc) is for CD-table-of-contents. It's used by the popular „cdrdao“ tool for creating CD images.
LaTeX also creates .toc files (for table of contents of written documents). They have, like all LaTeX files, MIME type „text/plain“.

@ruedigerkupper
Copy link

@nickvergessen:
All LaTeX files are plain text (originally ASCII, but nowadays usually UTF-8 encoded). That is one feature that made and makes LaTeX so beautiful and long lasting: There is no dedicated editor for LaTeX, just use your favorite text editor, be it Emacs, gedit or vi.
So you would indeed expect that LaTeX files open in your app.

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

5 participants