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?
EDIT
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.
C:\texlive\2018\tex\latex, otherwise it might be removed when you upgrade your tex distribution. – samcarter_is_at_topanswers.xyz Sep 07 '18 at 20:55\labelwith the same name, e.g. two times\lable{foo}– samcarter_is_at_topanswers.xyz Sep 07 '18 at 21:06\setcounter{page}{1}that resets page number back to 1 in your document. That's usually the case when such warnings show up. (for example, if you had wanted the cover page to be pagei, but also your first chapter to be on page1.) – Troy Sep 08 '18 at 00:13pageanchor=falsewhen loading thehyperrefpackage in your preamble. Or ifhyperrefis loaded insideTptesi2.cls, you may tryPassOptionsToPackage{pageanchor=false}{hyperref}before\documentclass{Tptesi2}in your.texfile. – Troy Sep 08 '18 at 13:46