sometime ago I started using TeXstudio (on Windows 10). Learning of latex and its commands is not easy, but also not difficult. But still there is one thing I would like to do: generate pdf files of the same name as project, instead of main.pdf as it is in default setting.

May it be I am only blind and don't see place where it can be set in TeXstudio. But may it be that it is needed to use another command inside tex files (mostly main.tex).

Please, tell me how to do it (how to change name of generated pdf file in TeXstudio).

  • why not save the main.tex file to a name of your liking and then set this file as the root document? The pdf will then have that name.
    – bkleine
    Nov 21, 2020 at 20:34
  • the pdf file is written by tex not your editor (texstudio) by default it has the same name as your document file, with .tex changed to .pdf Nov 21, 2020 at 20:42
  • It is clear that pdf is not generated by TeXstudio, itself, but I supposed that there is option in settings that may affect it.
    – Václav
    Nov 21, 2020 at 21:09
  • @bkleine, you was the first, thanks - it runs. Write it as regular answer and you have plus points. I think it may be very useful also for other.
    – Václav
    Nov 21, 2020 at 21:10

1 Answer 1


You have to save the main file to a name of your liking; then to set this file as the root document. The pdf generated will then have the name of the root file.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .