I am using following in gedit external tools
#!/bin/sh
file=${GEDIT_CURRENT_DOCUMENT_NAME%}
filename="${file%.*}"
ext=${file##*.}
latexmk $filename; xdg-open $filename.pdf
Wheni run the command, i got the following output
/home/quanta/.config/gedit/tools/new-tool-2: 27: /home/quanta/.config/gedit/tools/new-tool-2: latexmk: not found
I have latexmk installed and the file gets compiled easily in terminal using latexmk. Kindly guide me on why gedit is unable to locate latexmk.
latexmk
package, then it should be located in/usr/bin/latexmk
. AFAIK the/usr/bin
is a standard path. @neutrino for me it seems that you chose non-optimal method of installing LaTeX tools... – N0rbert Jan 22 '19 at 19:57