<p>
        <span style="font-family:Arial;">Dear Sir/Madam:</span>
</p>
<p>
        <span style="font-family:Arial;">    I am a Chinese user of TeXworks Editor. Recently I have some trouble compiling my LaTeX code in Chinese. When I use \ref{} and compile with XeLaTeX, it shows ?? in the PDF for the first time and returns to normal only if you compile it again. Moreover, if I use \ref{} in the title of a section or a subsection while the \label{} is after the \ref{}, sometimes there will be an error the second time you compile it with XeLaTeX and the PDF will remain ?? no matter how many times you compile it. I am currently using overleaf instead to avoid the problem and I sincerely hope that you could solve it somehow. Please check the way you create the .toc file, thank you.<br>
</span>
</p>
<p>
        <span style="font-family:Arial;">    Looking forward to your reply.<br>
</span>
</p>
<p style="text-align:right;">
        <span style="font-family:Arial;">Yours, Wang Tianqi<br>
</span>
</p>