Wrong placement of Cursor Position












1















I am using TeXStudio. So I use Ctrl F5 to build and view my pdf file. However, when I right click on pdf it does not take to the correct line/paragraph on the tex file.



I found that no synctex file is getting generated. May be it is due to that. Can you please tell how can I fix this issue?










share|improve this question




















  • 1





    Please show an example code that reproduces the issue. And which version of TXS are you on?

    – Troy
    Sep 6 '18 at 13:58











  • Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

    – Rouge
    Sep 7 '18 at 10:01


















1















I am using TeXStudio. So I use Ctrl F5 to build and view my pdf file. However, when I right click on pdf it does not take to the correct line/paragraph on the tex file.



I found that no synctex file is getting generated. May be it is due to that. Can you please tell how can I fix this issue?










share|improve this question




















  • 1





    Please show an example code that reproduces the issue. And which version of TXS are you on?

    – Troy
    Sep 6 '18 at 13:58











  • Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

    – Rouge
    Sep 7 '18 at 10:01
















1












1








1








I am using TeXStudio. So I use Ctrl F5 to build and view my pdf file. However, when I right click on pdf it does not take to the correct line/paragraph on the tex file.



I found that no synctex file is getting generated. May be it is due to that. Can you please tell how can I fix this issue?










share|improve this question
















I am using TeXStudio. So I use Ctrl F5 to build and view my pdf file. However, when I right click on pdf it does not take to the correct line/paragraph on the tex file.



I found that no synctex file is getting generated. May be it is due to that. Can you please tell how can I fix this issue?







texstudio forward-inverse-search






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 1 hour ago









Jonas Stein

3,22042644




3,22042644










asked Sep 6 '18 at 11:52









RougeRouge

897




897








  • 1





    Please show an example code that reproduces the issue. And which version of TXS are you on?

    – Troy
    Sep 6 '18 at 13:58











  • Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

    – Rouge
    Sep 7 '18 at 10:01
















  • 1





    Please show an example code that reproduces the issue. And which version of TXS are you on?

    – Troy
    Sep 6 '18 at 13:58











  • Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

    – Rouge
    Sep 7 '18 at 10:01










1




1





Please show an example code that reproduces the issue. And which version of TXS are you on?

– Troy
Sep 6 '18 at 13:58





Please show an example code that reproduces the issue. And which version of TXS are you on?

– Troy
Sep 6 '18 at 13:58













Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

– Rouge
Sep 7 '18 at 10:01







Hi Troy, I am using version 2.12.10 and a pre-defined template, which can be found here.people.cs.kuleuven.be/~wannes.meert/adsphd

– Rouge
Sep 7 '18 at 10:01












1 Answer
1






active

oldest

votes


















1














Those files include just compiled PDF and source TeX
as you guessed you need a valid .synctex file between them. You are expected to generate them as you go along (changing the PDF output) you need to check A) you have included perhaps via a distro (TeXlive or MiKTex) the core Tex components for pdfLaTeX and Synctex
B) any given error and an indication of which commands lead to those errors



perhaps take a look at Syncing feature between editor and pdf viewer not working



OK so you tried those
First to ensure it is an issue with synctex generation download the following test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip



unzip the contents to a simple named folder like c:testfiles, open the .tex and confirm you see the related pdf in viewer then in the editor use Ctrl left mouse and in pdf try right-click jump to. IT SHOULD work, if so it confirms with your files the system is either not building a valid .synctex or there is interference along the way



a common source of generation not running is the command may be missing a good path or need a "drive:quoted pathpdfLaTeX.exe" -blah blah %.tex
for some clues see
Error: TexStudio "Could not start command"



Later Edit



On looking closer I think the complexity of the source documents build may be the root of this behaviour, the readme is not intuitive !
Documentation implies a custom building with F7 rather than F5
To see this is to go down the folder structure to Page 25 section 2.2whateverchaptermanualmanual.tex and note there are comments about modifying templates and MiKTeX commands (which you would need to emulate in TeXLive) in order to work well with TeXstudio !
Without making any changes I was (ignoring a few errors) able to navigate fairly well down from the main thesis.tex and jump back and forwards via the 38 page template but in this raw state it does feel very limited.



So rather than diving in the deep end (using this highly customised thesis) I would use any other example files for testing synctex behaviour down nested documents.
For this suite of template documents at this level synctex is probably not best suited for easy navigation however it does in(re)verse open the relevant chapter for adjusting the contents.



For example



When I start with a fresh copy of the folder and open thesis.tex I can click on view icon or go Tools>Commands> view PDF and see the cover of the prebuilt thesis.pdf in the viewer If I run f5 and wait long enough the red box next to green arrow will turn grey indicating the run completed (and thus built .synctex.gz) if I right click click anywhere in the cover the editor window will briefly highlight makefrontcoverXII in yellow then it will fade to in my case a pinkish hue with the cursor at the start of that line. In the PDF if I scroll down to page 25 and right click on 2.2 settings for TeXstudio and click go to source then the editor will open manual.tex and jump to textit(build and view). I would normally expect it to jump to the correct location higher up within manual.tex HOWEVER with this thesis in that initial state that's as good as I may expect due to the complexity of all the "includes"



If you comment out the very first line document class... by adding an initial % such that it reads %docum…
the next compilation is only 4 pages 3 blank and a final bibliography if you click that only/final entry it cleanly goes to the.bbl file exactly where you would expect.
In summary I think that as you add more content and remove the guidance sections the syncing will improve. the thesis is hosted on GitHub and has its own "issues" section where you can raise questions specific to this template.



The remaining part of your question as to why it does not go exactly where expected is an issue that only over time, bug fixing of synctex line miscalculations (based on unconventional sources) can only play catch up.






share|improve this answer


























  • Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

    – Rouge
    Sep 10 '18 at 8:25













  • Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

    – Rouge
    Sep 17 '18 at 13:55













  • The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

    – KJO
    Sep 17 '18 at 14:24











  • It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

    – KJO
    Sep 17 '18 at 17:36











  • Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

    – Rouge
    Sep 18 '18 at 15:44











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449673%2fwrong-placement-of-cursor-position%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Those files include just compiled PDF and source TeX
as you guessed you need a valid .synctex file between them. You are expected to generate them as you go along (changing the PDF output) you need to check A) you have included perhaps via a distro (TeXlive or MiKTex) the core Tex components for pdfLaTeX and Synctex
B) any given error and an indication of which commands lead to those errors



perhaps take a look at Syncing feature between editor and pdf viewer not working



OK so you tried those
First to ensure it is an issue with synctex generation download the following test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip



unzip the contents to a simple named folder like c:testfiles, open the .tex and confirm you see the related pdf in viewer then in the editor use Ctrl left mouse and in pdf try right-click jump to. IT SHOULD work, if so it confirms with your files the system is either not building a valid .synctex or there is interference along the way



a common source of generation not running is the command may be missing a good path or need a "drive:quoted pathpdfLaTeX.exe" -blah blah %.tex
for some clues see
Error: TexStudio "Could not start command"



Later Edit



On looking closer I think the complexity of the source documents build may be the root of this behaviour, the readme is not intuitive !
Documentation implies a custom building with F7 rather than F5
To see this is to go down the folder structure to Page 25 section 2.2whateverchaptermanualmanual.tex and note there are comments about modifying templates and MiKTeX commands (which you would need to emulate in TeXLive) in order to work well with TeXstudio !
Without making any changes I was (ignoring a few errors) able to navigate fairly well down from the main thesis.tex and jump back and forwards via the 38 page template but in this raw state it does feel very limited.



So rather than diving in the deep end (using this highly customised thesis) I would use any other example files for testing synctex behaviour down nested documents.
For this suite of template documents at this level synctex is probably not best suited for easy navigation however it does in(re)verse open the relevant chapter for adjusting the contents.



For example



When I start with a fresh copy of the folder and open thesis.tex I can click on view icon or go Tools>Commands> view PDF and see the cover of the prebuilt thesis.pdf in the viewer If I run f5 and wait long enough the red box next to green arrow will turn grey indicating the run completed (and thus built .synctex.gz) if I right click click anywhere in the cover the editor window will briefly highlight makefrontcoverXII in yellow then it will fade to in my case a pinkish hue with the cursor at the start of that line. In the PDF if I scroll down to page 25 and right click on 2.2 settings for TeXstudio and click go to source then the editor will open manual.tex and jump to textit(build and view). I would normally expect it to jump to the correct location higher up within manual.tex HOWEVER with this thesis in that initial state that's as good as I may expect due to the complexity of all the "includes"



If you comment out the very first line document class... by adding an initial % such that it reads %docum…
the next compilation is only 4 pages 3 blank and a final bibliography if you click that only/final entry it cleanly goes to the.bbl file exactly where you would expect.
In summary I think that as you add more content and remove the guidance sections the syncing will improve. the thesis is hosted on GitHub and has its own "issues" section where you can raise questions specific to this template.



The remaining part of your question as to why it does not go exactly where expected is an issue that only over time, bug fixing of synctex line miscalculations (based on unconventional sources) can only play catch up.






share|improve this answer


























  • Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

    – Rouge
    Sep 10 '18 at 8:25













  • Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

    – Rouge
    Sep 17 '18 at 13:55













  • The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

    – KJO
    Sep 17 '18 at 14:24











  • It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

    – KJO
    Sep 17 '18 at 17:36











  • Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

    – Rouge
    Sep 18 '18 at 15:44
















1














Those files include just compiled PDF and source TeX
as you guessed you need a valid .synctex file between them. You are expected to generate them as you go along (changing the PDF output) you need to check A) you have included perhaps via a distro (TeXlive or MiKTex) the core Tex components for pdfLaTeX and Synctex
B) any given error and an indication of which commands lead to those errors



perhaps take a look at Syncing feature between editor and pdf viewer not working



OK so you tried those
First to ensure it is an issue with synctex generation download the following test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip



unzip the contents to a simple named folder like c:testfiles, open the .tex and confirm you see the related pdf in viewer then in the editor use Ctrl left mouse and in pdf try right-click jump to. IT SHOULD work, if so it confirms with your files the system is either not building a valid .synctex or there is interference along the way



a common source of generation not running is the command may be missing a good path or need a "drive:quoted pathpdfLaTeX.exe" -blah blah %.tex
for some clues see
Error: TexStudio "Could not start command"



Later Edit



On looking closer I think the complexity of the source documents build may be the root of this behaviour, the readme is not intuitive !
Documentation implies a custom building with F7 rather than F5
To see this is to go down the folder structure to Page 25 section 2.2whateverchaptermanualmanual.tex and note there are comments about modifying templates and MiKTeX commands (which you would need to emulate in TeXLive) in order to work well with TeXstudio !
Without making any changes I was (ignoring a few errors) able to navigate fairly well down from the main thesis.tex and jump back and forwards via the 38 page template but in this raw state it does feel very limited.



So rather than diving in the deep end (using this highly customised thesis) I would use any other example files for testing synctex behaviour down nested documents.
For this suite of template documents at this level synctex is probably not best suited for easy navigation however it does in(re)verse open the relevant chapter for adjusting the contents.



For example



When I start with a fresh copy of the folder and open thesis.tex I can click on view icon or go Tools>Commands> view PDF and see the cover of the prebuilt thesis.pdf in the viewer If I run f5 and wait long enough the red box next to green arrow will turn grey indicating the run completed (and thus built .synctex.gz) if I right click click anywhere in the cover the editor window will briefly highlight makefrontcoverXII in yellow then it will fade to in my case a pinkish hue with the cursor at the start of that line. In the PDF if I scroll down to page 25 and right click on 2.2 settings for TeXstudio and click go to source then the editor will open manual.tex and jump to textit(build and view). I would normally expect it to jump to the correct location higher up within manual.tex HOWEVER with this thesis in that initial state that's as good as I may expect due to the complexity of all the "includes"



If you comment out the very first line document class... by adding an initial % such that it reads %docum…
the next compilation is only 4 pages 3 blank and a final bibliography if you click that only/final entry it cleanly goes to the.bbl file exactly where you would expect.
In summary I think that as you add more content and remove the guidance sections the syncing will improve. the thesis is hosted on GitHub and has its own "issues" section where you can raise questions specific to this template.



The remaining part of your question as to why it does not go exactly where expected is an issue that only over time, bug fixing of synctex line miscalculations (based on unconventional sources) can only play catch up.






share|improve this answer


























  • Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

    – Rouge
    Sep 10 '18 at 8:25













  • Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

    – Rouge
    Sep 17 '18 at 13:55













  • The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

    – KJO
    Sep 17 '18 at 14:24











  • It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

    – KJO
    Sep 17 '18 at 17:36











  • Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

    – Rouge
    Sep 18 '18 at 15:44














1












1








1







Those files include just compiled PDF and source TeX
as you guessed you need a valid .synctex file between them. You are expected to generate them as you go along (changing the PDF output) you need to check A) you have included perhaps via a distro (TeXlive or MiKTex) the core Tex components for pdfLaTeX and Synctex
B) any given error and an indication of which commands lead to those errors



perhaps take a look at Syncing feature between editor and pdf viewer not working



OK so you tried those
First to ensure it is an issue with synctex generation download the following test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip



unzip the contents to a simple named folder like c:testfiles, open the .tex and confirm you see the related pdf in viewer then in the editor use Ctrl left mouse and in pdf try right-click jump to. IT SHOULD work, if so it confirms with your files the system is either not building a valid .synctex or there is interference along the way



a common source of generation not running is the command may be missing a good path or need a "drive:quoted pathpdfLaTeX.exe" -blah blah %.tex
for some clues see
Error: TexStudio "Could not start command"



Later Edit



On looking closer I think the complexity of the source documents build may be the root of this behaviour, the readme is not intuitive !
Documentation implies a custom building with F7 rather than F5
To see this is to go down the folder structure to Page 25 section 2.2whateverchaptermanualmanual.tex and note there are comments about modifying templates and MiKTeX commands (which you would need to emulate in TeXLive) in order to work well with TeXstudio !
Without making any changes I was (ignoring a few errors) able to navigate fairly well down from the main thesis.tex and jump back and forwards via the 38 page template but in this raw state it does feel very limited.



So rather than diving in the deep end (using this highly customised thesis) I would use any other example files for testing synctex behaviour down nested documents.
For this suite of template documents at this level synctex is probably not best suited for easy navigation however it does in(re)verse open the relevant chapter for adjusting the contents.



For example



When I start with a fresh copy of the folder and open thesis.tex I can click on view icon or go Tools>Commands> view PDF and see the cover of the prebuilt thesis.pdf in the viewer If I run f5 and wait long enough the red box next to green arrow will turn grey indicating the run completed (and thus built .synctex.gz) if I right click click anywhere in the cover the editor window will briefly highlight makefrontcoverXII in yellow then it will fade to in my case a pinkish hue with the cursor at the start of that line. In the PDF if I scroll down to page 25 and right click on 2.2 settings for TeXstudio and click go to source then the editor will open manual.tex and jump to textit(build and view). I would normally expect it to jump to the correct location higher up within manual.tex HOWEVER with this thesis in that initial state that's as good as I may expect due to the complexity of all the "includes"



If you comment out the very first line document class... by adding an initial % such that it reads %docum…
the next compilation is only 4 pages 3 blank and a final bibliography if you click that only/final entry it cleanly goes to the.bbl file exactly where you would expect.
In summary I think that as you add more content and remove the guidance sections the syncing will improve. the thesis is hosted on GitHub and has its own "issues" section where you can raise questions specific to this template.



The remaining part of your question as to why it does not go exactly where expected is an issue that only over time, bug fixing of synctex line miscalculations (based on unconventional sources) can only play catch up.






share|improve this answer















Those files include just compiled PDF and source TeX
as you guessed you need a valid .synctex file between them. You are expected to generate them as you go along (changing the PDF output) you need to check A) you have included perhaps via a distro (TeXlive or MiKTex) the core Tex components for pdfLaTeX and Synctex
B) any given error and an indication of which commands lead to those errors



perhaps take a look at Syncing feature between editor and pdf viewer not working



OK so you tried those
First to ensure it is an issue with synctex generation download the following test file https://github.com/GitHubRulesOK/MyNotes/raw/master/AppNotes/SumatraPDF/LATeX%20and%20Reverse-Search.zip



unzip the contents to a simple named folder like c:testfiles, open the .tex and confirm you see the related pdf in viewer then in the editor use Ctrl left mouse and in pdf try right-click jump to. IT SHOULD work, if so it confirms with your files the system is either not building a valid .synctex or there is interference along the way



a common source of generation not running is the command may be missing a good path or need a "drive:quoted pathpdfLaTeX.exe" -blah blah %.tex
for some clues see
Error: TexStudio "Could not start command"



Later Edit



On looking closer I think the complexity of the source documents build may be the root of this behaviour, the readme is not intuitive !
Documentation implies a custom building with F7 rather than F5
To see this is to go down the folder structure to Page 25 section 2.2whateverchaptermanualmanual.tex and note there are comments about modifying templates and MiKTeX commands (which you would need to emulate in TeXLive) in order to work well with TeXstudio !
Without making any changes I was (ignoring a few errors) able to navigate fairly well down from the main thesis.tex and jump back and forwards via the 38 page template but in this raw state it does feel very limited.



So rather than diving in the deep end (using this highly customised thesis) I would use any other example files for testing synctex behaviour down nested documents.
For this suite of template documents at this level synctex is probably not best suited for easy navigation however it does in(re)verse open the relevant chapter for adjusting the contents.



For example



When I start with a fresh copy of the folder and open thesis.tex I can click on view icon or go Tools>Commands> view PDF and see the cover of the prebuilt thesis.pdf in the viewer If I run f5 and wait long enough the red box next to green arrow will turn grey indicating the run completed (and thus built .synctex.gz) if I right click click anywhere in the cover the editor window will briefly highlight makefrontcoverXII in yellow then it will fade to in my case a pinkish hue with the cursor at the start of that line. In the PDF if I scroll down to page 25 and right click on 2.2 settings for TeXstudio and click go to source then the editor will open manual.tex and jump to textit(build and view). I would normally expect it to jump to the correct location higher up within manual.tex HOWEVER with this thesis in that initial state that's as good as I may expect due to the complexity of all the "includes"



If you comment out the very first line document class... by adding an initial % such that it reads %docum…
the next compilation is only 4 pages 3 blank and a final bibliography if you click that only/final entry it cleanly goes to the.bbl file exactly where you would expect.
In summary I think that as you add more content and remove the guidance sections the syncing will improve. the thesis is hosted on GitHub and has its own "issues" section where you can raise questions specific to this template.



The remaining part of your question as to why it does not go exactly where expected is an issue that only over time, bug fixing of synctex line miscalculations (based on unconventional sources) can only play catch up.







share|improve this answer














share|improve this answer



share|improve this answer








edited Sep 19 '18 at 15:03

























answered Sep 9 '18 at 22:06









KJOKJO

3,3271222




3,3271222













  • Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

    – Rouge
    Sep 10 '18 at 8:25













  • Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

    – Rouge
    Sep 17 '18 at 13:55













  • The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

    – KJO
    Sep 17 '18 at 14:24











  • It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

    – KJO
    Sep 17 '18 at 17:36











  • Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

    – Rouge
    Sep 18 '18 at 15:44



















  • Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

    – Rouge
    Sep 10 '18 at 8:25













  • Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

    – Rouge
    Sep 17 '18 at 13:55













  • The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

    – KJO
    Sep 17 '18 at 14:24











  • It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

    – KJO
    Sep 17 '18 at 17:36











  • Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

    – Rouge
    Sep 18 '18 at 15:44

















Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

– Rouge
Sep 10 '18 at 8:25







Hi KJO, I checked in the setting of my texstudio (Im using texlive alone with it) Option ---> Configure Texstudio ---> Commands ---> pdflatex.exe -synctex=1 -interaction=nonstopmode %.tex. I do not get any errors but my syncing doesn't work and still no .synctex file is generated.

– Rouge
Sep 10 '18 at 8:25















Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

– Rouge
Sep 17 '18 at 13:55







Hi @KJO, I checked with the test file. It is working perfectly. However, it is still not working with my file. Can you please suggest what shall I do now?

– Rouge
Sep 17 '18 at 13:55















The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

– KJO
Sep 17 '18 at 14:24





The point of the test was to check you see that on its own your setup is correctly responding to a valid .synctex file that was built between a.tex and its corresponding .pdf . so your issue seem to be down to configuration. You need to review your settings as discussed in the comments part of my first "not working" link are you sure your build command includes -synctex=1 which SHOULD build a yourfile.syctex.gz file see if you can find that file alongside your input.tex or output.pdf there is a possibility it is being built in another folder so try a system file search for all .syctex.gz files

– KJO
Sep 17 '18 at 14:24













It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

– KJO
Sep 17 '18 at 17:36





It helps others to understand your installation sequence. Which OS and bits. Are all components default installs, and in which order did you install.

– KJO
Sep 17 '18 at 17:36













Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

– Rouge
Sep 18 '18 at 15:44





Thank you so much @KJO. I really appreciate that you directed me again to the not working link. The synctex.gz file was already there in folder and also the build command included -synctex=1. What made a difference is that now I deleted the existing synctex.gz file and then build my pdf again. Now it works ! Thanks again !!

– Rouge
Sep 18 '18 at 15:44


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f449673%2fwrong-placement-of-cursor-position%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Lallio

Futebolista

Jornalista