I am trying to use the KDE Kate text editor for latex. Essentially, what I want is to be able to click "build" and have it run pdflatex

I read the documentation for the build plugin, but I couldn't figure how to do it. As a workaround, I can keep a terminal open and manually type pdflatex .tex whenever I want to compile. I can also use BASH's keybinding to create a shortcut for that, but I would have to change it for each latex file I want to edit.

I'm also aware of Kile, which is based on Kate. However, that is more like a full IDE, which is not what I want.

If it matters, I am using Ubuntu 18.04.

  • This might probably of help if you cannot figure out how to make KDE Kate work: tex.stackexchange.com/questions/339/latex-editors-ides and en.wikipedia.org/wiki/Comparison_of_TeX_editors. – CampanIgnis Jul 22 '18 at 23:56
  • In your question you say that you couldn't figure out how to use the build plugin, could you please clarify what the problem was? What did you try, which steps of using the plugin didn't you understand? There is an example on kate-editor.org/2011/08/09/… which might be useful, it suggests that you can use %f as a reference to the current file, which means you could try to use pdflatex %f as a build target, either with or without the terminal call around it. – Marijn Jul 23 '18 at 14:23
  • Please do not edit your question to include the answer. Instead, ask @Marijn to post an answer you can accept. – cfr Jul 23 '18 at 22:27

To get the Kate build plugin to compile a LaTeX file, set the "working directory/command" in the Target Settings tab to pdflatex %f.

Source: https://kate-editor.org/2011/08/09/maintainer-needed-kate-external-tools-plugin/#comment-974.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.