ashthespy / Atom-LaTeX

The only LaTeX package you need for typesetting with Atom.
https://atom.io/packages/atom-latex
MIT License
22 stars 9 forks source link

Fail to compile file with dot in the name #205

Closed juliabeliaeva closed 4 years ago

juliabeliaeva commented 4 years ago

Package fails to compile files with dot in the name. For example, for a file called test.file.tex I get the following error:

> pdflatex -synctex=1 -interaction=nonstopmode -file-line-error test

This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2019/dev/Debian) (preloaded format=pdflatex)
 restricted \write18 enabled.
entering extended mode
! I can't find file `test'.
<*> test

(Press Enter to retry, or Control-D to exit)
Please type another input file name
! Emergency stop.
<*> test

!  ==> Fatal error occurred, no output PDF file produced!
Transcript written on texput.log.

Seems that the extension is trimmed incorrectly from the file name.

atom-latex version [0.8.6] 2019-07-01

ashthespy commented 4 years ago

Hmm this is an artefact of https://github.com/James-Yu/Atom-LaTeX/pull/97 - where everything after the first period are stripped out of the filename to support for non default file extensions (.tikz,.Rnw). This was done to handle cases such as file.tex.tikz (https://github.com/James-Yu/Atom-LaTeX/pull/89#issuecomment-321505504)

I am unsure how to strip filenames to incorporate your use case as well here.