Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not update references to Figures, Tables and Sections referenced using \ref #175

Closed
SureshRaja1 opened this issue Oct 2, 2017 · 13 comments
Labels
more-info-needed More information is needed from the person filing the issue. support Issues that were migrated to a Discussion.

Comments

@SureshRaja1
Copy link

Upon compilation, TeXify does not update the TOC and the references that are called using \ref{fig:} and \section{}. The only way they update is by deleting the TOC file or recompiling using another program such as Sublime. I am not sure why the references and TOC do not update. But I am able to update them using TeXify after I run another compiler/program such as Sublime Text (Latex plugin).

Not sure why, but I thought I would report here.

@PHPirates
Copy link
Collaborator

Do you mean that you have to compile twice before the TOC and references are updated? Because that's normal behavior of LaTeX as far as I know. For references you may see this in the output:
LaTeX Warning: Label(s) may have changed. Rerun to get cross-references right.
Somewhere in the future there may appear an option to let TeXiFy compile twice automatically, who knows :)

@HannahSchellekens
Copy link
Member

Could you verify that when you compile it thrice (using TeXiFy IDEA), all references work (as @PHPirates said)?

@SureshRaja1
Copy link
Author

SureshRaja1 commented Oct 3, 2017

It does not update the references and TOCs if I compile twice or thrice. It does not update either way, and even if I tried to compile it the fourth time. The only way it works is if I compile using another editor (Sublime Text). I did not try it yet but I am guessing I will need to delete some of the TOC files for it to work because the references and TOCs update after I compile the document with Sublime and then come back to TeXiFy and recompile.

Please let me know what you would need from me to better establish the bug.

@HannahSchellekens
Copy link
Member

Can you post a (stripped down version maybe to hide contents) version of your source? Or reproduce it in a similar way?

@SureshRaja1
Copy link
Author

I will upload this within a day or so. Thanks.

@HannahSchellekens HannahSchellekens added the more-info-needed More information is needed from the person filing the issue. label Oct 9, 2017
@HannahSchellekens
Copy link
Member

Any input? Will close this issue in a few days.

@SureshRaja1
Copy link
Author

Sorry for the delay, have been pulled in different directions. I will upload this in about 12 hours. Thanks for looking into this.

@SureshRaja1
Copy link
Author

Here it is.
Latex_Template.zip

@HannahSchellekens
Copy link
Member

Found the same problem on PC. Tagging @stenwessel as he has a bit more experience with LaTeX.

@stenwessel
Copy link
Member

@SureshRaja1 Hi, sorry for the delay. Thanks for reaching out to us and for supplying the template project. I see that you have a bunch of auxiliary files in the Latex_Template directory. When you compile with the TeXiFy plugin however, the auxiliary files are generated in the out directory (where you find the PDF). Therefore, the old auxiliary files in the root directory are not updated, but pdflatex will still use these files (as they are in the working directory).

Solution: make sure you have your auxiliary files in the out directory such that they are overwritten when you compile from TeXiFy IDEA. You only have to remove all the auxiliary files from the root directory once to solve your problem.

I would love to hear if this also solves it on your machine (it does for mine at least) so we can close the issue.

@stenwessel stenwessel added the support Issues that were migrated to a Discussion. label Nov 12, 2017
@stenwessel
Copy link
Member

Closing because of inactivity. If you believe this was done in error, feel free to reopen the issue.

@frankbits
Copy link
Contributor

For me, the standard-behaviour of TeXiFy IDEA is to put auxiliary files in /aux.
Changing the Run Configuration, to also put them into /out fixed the problem (as long as I compile twice).
Shouldn't it set /out for both directories as standard?

@PHPirates
Copy link
Collaborator

@frankbits Please open a new issue, as what you describe has nothing to do with this issue. It would be helpful if you could include whether you are using MiKTeX or TeX Live, and if you can reproduce it on a new minimal LaTeX file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more-info-needed More information is needed from the person filing the issue. support Issues that were migrated to a Discussion.
Projects
None yet
Development

No branches or pull requests

5 participants