I'm working in Windows 10 using TexStudio on TexLive 2018 distro.
I'm writing my bachelor final thesis and I need to use a document class defined by my academic department. I have a .cls file named "Tptesi2.cls" and my .tex file starts with \documentclass[a4paper,oneside]{Tptesi2}.
The problem is that when I bring the mouse pointer on "Tptesi2", TexStudio show a little box that says

Class: Tptesi2 (non trovato)

that in italian means "class not found". The document is compiled with a warning

destination with the same identifier (name{page.i}) has been already used, duplicate ignored \relax l.91 \cleardoublepage [1

and it looks ok, but unfortunately I can't be sure of it because I don't have a thesis sample with this document class.
I gave a look to the folder C:\texlive\2018\tex\latex and I found many folders containing .cls files corresponding to document classes that are recognized by TexStudio, so I create a folder with the same "Tptesi2" and I put the file in it.
But this approach didn't work, so I tried to follow the steps described in Where do I place my own .sty or .cls files, to make them available to all my .tex files? but also in this way I didn't solved the problem. I'm missing some configuration on TexStudio or I put the file in the wrong folder, or both?


TexStudio continues to show the same message, but I noticed that right clicking on the class name, left clicking on "show documentantion" the docs are showed correcly.

closed as off-topic by Troy, Stefan Pinnow, Andrew, TeXnician, Romain Picot Nov 28 '18 at 7:49

  • This question does not fall within the scope of TeX, LaTeX or related typesetting systems as defined in the help center.
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 2
    You can safely ignore this message from texstudio. If latex would not find the documentclass you would get a ton of error messages in the .log file and no sensible output. Actually I get this toltip for every documentclass, even for the standard latex classes. – user36296 Sep 7 '18 at 20:50
  • 1
    About the warning you get: this looks as if the same name is used for multiples labels. You should check this to make sure all the cross references go to the correct location. – user36296 Sep 7 '18 at 20:54
  • 2
    It would be better to place your .cls file not in C:\texlive\2018\tex\latex , otherwise it might be removed when you upgrade your tex distribution. – user36296 Sep 7 '18 at 20:55
  • 1
    @HJuls2 You can ignore it. But if it really bothers you, pass pageanchor=false when loading the hyperref package in your preamble. Or if hyperref is loaded inside Tptesi2.cls, you may try PassOptionsToPackage{pageanchor=false}{hyperref} before \documentclass{Tptesi2} in your .tex file. – Troy Sep 8 '18 at 13:46
  • 4
    I'm voting to close this question as solved in comments. – Troy Nov 28 '18 at 5:17