files_texteditor icon indicating copy to clipboard operation
files_texteditor copied to clipboard

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

Open SentToDevNull opened this issue 8 years ago • 6 comments

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

SentToDevNull avatar Jan 14 '17 09:01 SentToDevNull

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

nickvergessen avatar Jan 16 '17 11:01 nickvergessen

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

SentToDevNull avatar Jan 20 '17 22:01 SentToDevNull

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

Spartachetto avatar Feb 10 '17 15:02 Spartachetto

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

SentToDevNull avatar Feb 17 '17 17:02 SentToDevNull

@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 avatar Jun 16 '18 15:06 ruedigerkupper

@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.

ruedigerkupper avatar Jun 16 '18 16:06 ruedigerkupper