Arara synctex in editing a book The Next CEO of Stack OverflowForward-inverse search using SyncTeX with the precison of a single word(arara) make rule failure non-fatalCan I use synctex to jump to pdf, if pdf file name is different from .tex file name?Installing SyncTeX LibraryWritting custom rule for arara 4.0Programmatically editing Synctex files?arara and FrenchUsing pipes in arara command?arara: How to fix ghostscript.yaml due to arara - version 4?arara: How to widen out clean.yaml

Is micro rebar a better way to reinforce concrete than rebar?

Which tube will fit a -(700 x 25c) wheel?

MessageLevel in QGIS3

What exact does MIB represent in SNMP? How is it different from OID?

What connection does MS Office have to Netscape Navigator?

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

What's the best way to handle refactoring a big file?

How powerful is the invisibility granted by the Gloom Stalker ranger's Umbral Sight feature?

Would a galaxy be visible from outside, but nearby?

Limits on contract work without pre-agreed price/contract (UK)

How do we know the LHC results are robust?

Can I equip Skullclamp on a creature I am sacrificing?

Skipping indices in a product

Can you replace a racial trait cantrip when leveling up?

sp_blitzCache results Memory grants

How do scammers retract money, while you can’t?

Is it professional to write unrelated content in an almost-empty email?

Is it ever safe to open a suspicious html file (e.g. email attachment)?

Return the Closest Prime Number

What is "(CFMCC)" on an ILS approach chart?

Complex fractions

Preparing Indesign booklet with .psd graphics for print

Elegant way to replace substring in a regex with optional groups in Python?

Make solar eclipses exceedingly rare, but still have new moons



Arara synctex in editing a book



The Next CEO of Stack OverflowForward-inverse search using SyncTeX with the precison of a single word(arara) make rule failure non-fatalCan I use synctex to jump to pdf, if pdf file name is different from .tex file name?Installing SyncTeX LibraryWritting custom rule for arara 4.0Programmatically editing Synctex files?arara and FrenchUsing pipes in arara command?arara: How to fix ghostscript.yaml due to arara - version 4?arara: How to widen out clean.yaml










1















The problem is synctex in Arara does not work for me.



I am using MacTeX with TeXShop 4.26. A special documentclass is used (hope it does not affect). For months, I run this file by putting all the supporting files like chp1.tex into the same file folder and clicking command+T. Synchronising from pdf to tex and everything else is fine except synchronising from tex to pdf. Synchronising from tex to pdf works well in editing any other simple file using pdflatex directly (rather than using Arara). Is there anything wrong?



% !TEX TS-program = Arara
% arara: pdflatex
% arara: bibtex
% arara: makeindex
% arara: nomencl
% arara: pdflatex: synctex: yes
% arara: pdflatex: synctex: on
documentclass[cmyk]***
usepackageamsrefs
usepackageimakeidx
usepackagegraphicx,tikz,amscd
usepackage[hyperindex,colorlinks,pageanchor]hyperref
usepackage[capitalize]cleveref
makeindex
usepackage[refpage]nomencl
makenomenclature
begindocument
frontmatter
inputfront
tableofcontents
includepreface
mainmatter
includechp1
includechp2
appendix
includeappd
backmatter
bibliographystyleamsalpha
bibliographybiblio
printindex
printnomenclature
pagestyleempty
enddocument









share|improve this question






















  • Hi, I will take a look soon. :)

    – Paulo Cereda
    Mar 7 at 22:40











  • ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

    – KJO
    Mar 8 at 2:31











  • @KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

    – David Wang
    Mar 8 at 3:19











  • The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

    – Paulo Cereda
    Mar 9 at 12:02











  • Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

    – Paulo Cereda
    Mar 9 at 12:04















1















The problem is synctex in Arara does not work for me.



I am using MacTeX with TeXShop 4.26. A special documentclass is used (hope it does not affect). For months, I run this file by putting all the supporting files like chp1.tex into the same file folder and clicking command+T. Synchronising from pdf to tex and everything else is fine except synchronising from tex to pdf. Synchronising from tex to pdf works well in editing any other simple file using pdflatex directly (rather than using Arara). Is there anything wrong?



% !TEX TS-program = Arara
% arara: pdflatex
% arara: bibtex
% arara: makeindex
% arara: nomencl
% arara: pdflatex: synctex: yes
% arara: pdflatex: synctex: on
documentclass[cmyk]***
usepackageamsrefs
usepackageimakeidx
usepackagegraphicx,tikz,amscd
usepackage[hyperindex,colorlinks,pageanchor]hyperref
usepackage[capitalize]cleveref
makeindex
usepackage[refpage]nomencl
makenomenclature
begindocument
frontmatter
inputfront
tableofcontents
includepreface
mainmatter
includechp1
includechp2
appendix
includeappd
backmatter
bibliographystyleamsalpha
bibliographybiblio
printindex
printnomenclature
pagestyleempty
enddocument









share|improve this question






















  • Hi, I will take a look soon. :)

    – Paulo Cereda
    Mar 7 at 22:40











  • ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

    – KJO
    Mar 8 at 2:31











  • @KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

    – David Wang
    Mar 8 at 3:19











  • The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

    – Paulo Cereda
    Mar 9 at 12:02











  • Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

    – Paulo Cereda
    Mar 9 at 12:04













1












1








1








The problem is synctex in Arara does not work for me.



I am using MacTeX with TeXShop 4.26. A special documentclass is used (hope it does not affect). For months, I run this file by putting all the supporting files like chp1.tex into the same file folder and clicking command+T. Synchronising from pdf to tex and everything else is fine except synchronising from tex to pdf. Synchronising from tex to pdf works well in editing any other simple file using pdflatex directly (rather than using Arara). Is there anything wrong?



% !TEX TS-program = Arara
% arara: pdflatex
% arara: bibtex
% arara: makeindex
% arara: nomencl
% arara: pdflatex: synctex: yes
% arara: pdflatex: synctex: on
documentclass[cmyk]***
usepackageamsrefs
usepackageimakeidx
usepackagegraphicx,tikz,amscd
usepackage[hyperindex,colorlinks,pageanchor]hyperref
usepackage[capitalize]cleveref
makeindex
usepackage[refpage]nomencl
makenomenclature
begindocument
frontmatter
inputfront
tableofcontents
includepreface
mainmatter
includechp1
includechp2
appendix
includeappd
backmatter
bibliographystyleamsalpha
bibliographybiblio
printindex
printnomenclature
pagestyleempty
enddocument









share|improve this question














The problem is synctex in Arara does not work for me.



I am using MacTeX with TeXShop 4.26. A special documentclass is used (hope it does not affect). For months, I run this file by putting all the supporting files like chp1.tex into the same file folder and clicking command+T. Synchronising from pdf to tex and everything else is fine except synchronising from tex to pdf. Synchronising from tex to pdf works well in editing any other simple file using pdflatex directly (rather than using Arara). Is there anything wrong?



% !TEX TS-program = Arara
% arara: pdflatex
% arara: bibtex
% arara: makeindex
% arara: nomencl
% arara: pdflatex: synctex: yes
% arara: pdflatex: synctex: on
documentclass[cmyk]***
usepackageamsrefs
usepackageimakeidx
usepackagegraphicx,tikz,amscd
usepackage[hyperindex,colorlinks,pageanchor]hyperref
usepackage[capitalize]cleveref
makeindex
usepackage[refpage]nomencl
makenomenclature
begindocument
frontmatter
inputfront
tableofcontents
includepreface
mainmatter
includechp1
includechp2
appendix
includeappd
backmatter
bibliographystyleamsalpha
bibliographybiblio
printindex
printnomenclature
pagestyleempty
enddocument






books forward-inverse-search arara pdfsync






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 7 at 22:17









David WangDavid Wang

214




214












  • Hi, I will take a look soon. :)

    – Paulo Cereda
    Mar 7 at 22:40











  • ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

    – KJO
    Mar 8 at 2:31











  • @KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

    – David Wang
    Mar 8 at 3:19











  • The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

    – Paulo Cereda
    Mar 9 at 12:02











  • Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

    – Paulo Cereda
    Mar 9 at 12:04

















  • Hi, I will take a look soon. :)

    – Paulo Cereda
    Mar 7 at 22:40











  • ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

    – KJO
    Mar 8 at 2:31











  • @KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

    – David Wang
    Mar 8 at 3:19











  • The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

    – Paulo Cereda
    Mar 9 at 12:02











  • Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

    – Paulo Cereda
    Mar 9 at 12:04
















Hi, I will take a look soon. :)

– Paulo Cereda
Mar 7 at 22:40





Hi, I will take a look soon. :)

– Paulo Cereda
Mar 7 at 22:40













ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

– KJO
Mar 8 at 2:31





ooh The duck has it under control :-) however it may be a red herring, that I note that most arara instructions tend to have a space before and after and before but as I don't have it installed can't test if that makes any difference

– KJO
Mar 8 at 2:31













@KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

– David Wang
Mar 8 at 3:19





@KJO Thanks for the reminding. I tested it and the brace-spaces do not affect.

– David Wang
Mar 8 at 3:19













The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

– Paulo Cereda
Mar 9 at 12:02





The syntax is correct, otherwise arara would complain about it. :) When running the tool with the --dry-run option, I see that the commands are correct. Are you sure the tool does not fail in any step before the two last directives? My suspicion is that the last two directives are not being reached due to a failed execution in previous directives (as arara halts the execution). We might need to inspect the log. Could you run arara with --log enabled and post the contents of arara.log?

– Paulo Cereda
Mar 9 at 12:02













Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

– Paulo Cereda
Mar 9 at 12:04





Not trying to use the typical "not my fault" excuse, but arara is just a wrapper to the actual TeX programs. That's why I suspect there's a break in the compilation chain and the lines with SyncTeX are not reached. :)

– Paulo Cereda
Mar 9 at 12:04










2 Answers
2






active

oldest

votes


















2














I deliberately marked this answer as community wiki because it is not actually a direct answer, but along the lines of an elaborate comment which is too long to be posted as such. I really don't feel like harvesting reputation. :)



For starters, thanks for the log. :)



It is clear, from inspecting the log, that arara successfully goes through all the motions of executing the commands mapped from the directives. However, to me, there's no clear indication that the tool is to blame on the issue reported in this question. I will expand on that.



arara is just like a wrapper to ease the call for the actual programs like pdflatex and friends. In fact, if I take the provided code and run through the tool with --dry-run enabled, we can see what arara is actually executing on a normal scenario (in here, without an a call, surely, since this flag disables the actual execution):



$ arara --dry-run 478314.tex 
__ _ _ __ __ _ _ __ __ _
/ _` | '__/ _` | '__/ _` |
| (_| | | | (_| | | | (_| |
__,_|_| __,_|_| __,_|

Processing '478314.tex' (size: 231 bytes, last modified:
03/10/2019 17:53:47), please wait.

[DR] (PDFLaTeX) PDFLaTeX engine
-----------------------------------------------------------------
Authors: Marco Daniel, Paulo Cereda
About to run: [ pdflatex, 478314.tex ]

[DR] (BibTeX) The BibTeX reference management software
-----------------------------------------------------------------
Authors: Marco Daniel, Paulo Cereda
About to run: [ bibtex, 478314 ]

[DR] (MakeIndex) The MakeIndex software
-----------------------------------------------------------------
Authors: Marco Daniel, Paulo Cereda
About to run: [ makeindex, -t, 478314.ilg, 478314.idx, -o,
478314.ind ]

[DR] (Nomencl) The Nomenclature software
-----------------------------------------------------------------
Authors: Marco Daniel, Nicola Talbot, Paulo Cereda
About to run: [ makeindex, 478314.nlo, -s, nomencl.ist, -o,
478314.nls ]

[DR] (PDFLaTeX) PDFLaTeX engine
-----------------------------------------------------------------
Authors: Marco Daniel, Paulo Cereda
About to run: [ pdflatex, --synctex=1, 478314.tex ]

[DR] (PDFLaTeX) PDFLaTeX engine
-----------------------------------------------------------------
Authors: Marco Daniel, Paulo Cereda
About to run: [ pdflatex, --synctex=1, 478314.tex ]

Total: 0.42 seconds


The last two calls to pdflatex have the --synctex=1 flag, which is expected to provide proper SyncTeX support. That's it.



However, little to nothing can be done without delving into the depths of your actual environment and code in order to see what is happening. My suggestion is to independently run



pdflatex --synctex=1 myfile.tex


in the command line and see what happens. I can think of some scenarios:



  1. The editor is not aware that there was a compilation chain that generated the resulting PDF, thus nothing is updated, or


  2. You have directives in your source code (not shown in this particular example) that get rid of synctex.gz files as a means to declutter the directory, or


  3. There are potential conflicts in the source code that are causing this issue.


Speaking of which, I noticed that the log file contains a lot of warning about cross references. Although SyncTeX is not directly related to it, maybe it's something worth checking. From my side, I tried a couple of documents of mine and they worked, so I really cannot reproduce this issue, I am so sorry.



Please try to run pdflatex as a standalone call instead of using arara and see if it works. Also, try other similar tools like latexmk. If the problem persists, we might need to get down to a minimal working example that reproduces the issue, otherwise I can only suppose.



Sorry for not being able to help you on this issue. Please keep me informed.






share|improve this answer

























  • Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

    – David Wang
    Mar 10 at 21:33












  • @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

    – Paulo Cereda
    Mar 11 at 8:51


















0














I found a solution: Add % !TEX root = main.tex at the beginning of the file for each chapter, such as that of the file chp1.tex. This command assigns a relative path so that the generated sync file finds the main file which contains a line of includechp1. An alternative solution is to add an absolute path like
% !TEX root = /Users/main.tex if /Users/main.tex is the location of the file main.tex on my Mac. The problem should be about editing a book in multi-files, rather than using Arara.






share|improve this answer























    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%2f478314%2farara-synctex-in-editing-a-book%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    2














    I deliberately marked this answer as community wiki because it is not actually a direct answer, but along the lines of an elaborate comment which is too long to be posted as such. I really don't feel like harvesting reputation. :)



    For starters, thanks for the log. :)



    It is clear, from inspecting the log, that arara successfully goes through all the motions of executing the commands mapped from the directives. However, to me, there's no clear indication that the tool is to blame on the issue reported in this question. I will expand on that.



    arara is just like a wrapper to ease the call for the actual programs like pdflatex and friends. In fact, if I take the provided code and run through the tool with --dry-run enabled, we can see what arara is actually executing on a normal scenario (in here, without an a call, surely, since this flag disables the actual execution):



    $ arara --dry-run 478314.tex 
    __ _ _ __ __ _ _ __ __ _
    / _` | '__/ _` | '__/ _` |
    | (_| | | | (_| | | | (_| |
    __,_|_| __,_|_| __,_|

    Processing '478314.tex' (size: 231 bytes, last modified:
    03/10/2019 17:53:47), please wait.

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, 478314.tex ]

    [DR] (BibTeX) The BibTeX reference management software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ bibtex, 478314 ]

    [DR] (MakeIndex) The MakeIndex software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ makeindex, -t, 478314.ilg, 478314.idx, -o,
    478314.ind ]

    [DR] (Nomencl) The Nomenclature software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Nicola Talbot, Paulo Cereda
    About to run: [ makeindex, 478314.nlo, -s, nomencl.ist, -o,
    478314.nls ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    Total: 0.42 seconds


    The last two calls to pdflatex have the --synctex=1 flag, which is expected to provide proper SyncTeX support. That's it.



    However, little to nothing can be done without delving into the depths of your actual environment and code in order to see what is happening. My suggestion is to independently run



    pdflatex --synctex=1 myfile.tex


    in the command line and see what happens. I can think of some scenarios:



    1. The editor is not aware that there was a compilation chain that generated the resulting PDF, thus nothing is updated, or


    2. You have directives in your source code (not shown in this particular example) that get rid of synctex.gz files as a means to declutter the directory, or


    3. There are potential conflicts in the source code that are causing this issue.


    Speaking of which, I noticed that the log file contains a lot of warning about cross references. Although SyncTeX is not directly related to it, maybe it's something worth checking. From my side, I tried a couple of documents of mine and they worked, so I really cannot reproduce this issue, I am so sorry.



    Please try to run pdflatex as a standalone call instead of using arara and see if it works. Also, try other similar tools like latexmk. If the problem persists, we might need to get down to a minimal working example that reproduces the issue, otherwise I can only suppose.



    Sorry for not being able to help you on this issue. Please keep me informed.






    share|improve this answer

























    • Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

      – David Wang
      Mar 10 at 21:33












    • @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

      – Paulo Cereda
      Mar 11 at 8:51















    2














    I deliberately marked this answer as community wiki because it is not actually a direct answer, but along the lines of an elaborate comment which is too long to be posted as such. I really don't feel like harvesting reputation. :)



    For starters, thanks for the log. :)



    It is clear, from inspecting the log, that arara successfully goes through all the motions of executing the commands mapped from the directives. However, to me, there's no clear indication that the tool is to blame on the issue reported in this question. I will expand on that.



    arara is just like a wrapper to ease the call for the actual programs like pdflatex and friends. In fact, if I take the provided code and run through the tool with --dry-run enabled, we can see what arara is actually executing on a normal scenario (in here, without an a call, surely, since this flag disables the actual execution):



    $ arara --dry-run 478314.tex 
    __ _ _ __ __ _ _ __ __ _
    / _` | '__/ _` | '__/ _` |
    | (_| | | | (_| | | | (_| |
    __,_|_| __,_|_| __,_|

    Processing '478314.tex' (size: 231 bytes, last modified:
    03/10/2019 17:53:47), please wait.

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, 478314.tex ]

    [DR] (BibTeX) The BibTeX reference management software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ bibtex, 478314 ]

    [DR] (MakeIndex) The MakeIndex software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ makeindex, -t, 478314.ilg, 478314.idx, -o,
    478314.ind ]

    [DR] (Nomencl) The Nomenclature software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Nicola Talbot, Paulo Cereda
    About to run: [ makeindex, 478314.nlo, -s, nomencl.ist, -o,
    478314.nls ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    Total: 0.42 seconds


    The last two calls to pdflatex have the --synctex=1 flag, which is expected to provide proper SyncTeX support. That's it.



    However, little to nothing can be done without delving into the depths of your actual environment and code in order to see what is happening. My suggestion is to independently run



    pdflatex --synctex=1 myfile.tex


    in the command line and see what happens. I can think of some scenarios:



    1. The editor is not aware that there was a compilation chain that generated the resulting PDF, thus nothing is updated, or


    2. You have directives in your source code (not shown in this particular example) that get rid of synctex.gz files as a means to declutter the directory, or


    3. There are potential conflicts in the source code that are causing this issue.


    Speaking of which, I noticed that the log file contains a lot of warning about cross references. Although SyncTeX is not directly related to it, maybe it's something worth checking. From my side, I tried a couple of documents of mine and they worked, so I really cannot reproduce this issue, I am so sorry.



    Please try to run pdflatex as a standalone call instead of using arara and see if it works. Also, try other similar tools like latexmk. If the problem persists, we might need to get down to a minimal working example that reproduces the issue, otherwise I can only suppose.



    Sorry for not being able to help you on this issue. Please keep me informed.






    share|improve this answer

























    • Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

      – David Wang
      Mar 10 at 21:33












    • @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

      – Paulo Cereda
      Mar 11 at 8:51













    2












    2








    2







    I deliberately marked this answer as community wiki because it is not actually a direct answer, but along the lines of an elaborate comment which is too long to be posted as such. I really don't feel like harvesting reputation. :)



    For starters, thanks for the log. :)



    It is clear, from inspecting the log, that arara successfully goes through all the motions of executing the commands mapped from the directives. However, to me, there's no clear indication that the tool is to blame on the issue reported in this question. I will expand on that.



    arara is just like a wrapper to ease the call for the actual programs like pdflatex and friends. In fact, if I take the provided code and run through the tool with --dry-run enabled, we can see what arara is actually executing on a normal scenario (in here, without an a call, surely, since this flag disables the actual execution):



    $ arara --dry-run 478314.tex 
    __ _ _ __ __ _ _ __ __ _
    / _` | '__/ _` | '__/ _` |
    | (_| | | | (_| | | | (_| |
    __,_|_| __,_|_| __,_|

    Processing '478314.tex' (size: 231 bytes, last modified:
    03/10/2019 17:53:47), please wait.

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, 478314.tex ]

    [DR] (BibTeX) The BibTeX reference management software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ bibtex, 478314 ]

    [DR] (MakeIndex) The MakeIndex software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ makeindex, -t, 478314.ilg, 478314.idx, -o,
    478314.ind ]

    [DR] (Nomencl) The Nomenclature software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Nicola Talbot, Paulo Cereda
    About to run: [ makeindex, 478314.nlo, -s, nomencl.ist, -o,
    478314.nls ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    Total: 0.42 seconds


    The last two calls to pdflatex have the --synctex=1 flag, which is expected to provide proper SyncTeX support. That's it.



    However, little to nothing can be done without delving into the depths of your actual environment and code in order to see what is happening. My suggestion is to independently run



    pdflatex --synctex=1 myfile.tex


    in the command line and see what happens. I can think of some scenarios:



    1. The editor is not aware that there was a compilation chain that generated the resulting PDF, thus nothing is updated, or


    2. You have directives in your source code (not shown in this particular example) that get rid of synctex.gz files as a means to declutter the directory, or


    3. There are potential conflicts in the source code that are causing this issue.


    Speaking of which, I noticed that the log file contains a lot of warning about cross references. Although SyncTeX is not directly related to it, maybe it's something worth checking. From my side, I tried a couple of documents of mine and they worked, so I really cannot reproduce this issue, I am so sorry.



    Please try to run pdflatex as a standalone call instead of using arara and see if it works. Also, try other similar tools like latexmk. If the problem persists, we might need to get down to a minimal working example that reproduces the issue, otherwise I can only suppose.



    Sorry for not being able to help you on this issue. Please keep me informed.






    share|improve this answer















    I deliberately marked this answer as community wiki because it is not actually a direct answer, but along the lines of an elaborate comment which is too long to be posted as such. I really don't feel like harvesting reputation. :)



    For starters, thanks for the log. :)



    It is clear, from inspecting the log, that arara successfully goes through all the motions of executing the commands mapped from the directives. However, to me, there's no clear indication that the tool is to blame on the issue reported in this question. I will expand on that.



    arara is just like a wrapper to ease the call for the actual programs like pdflatex and friends. In fact, if I take the provided code and run through the tool with --dry-run enabled, we can see what arara is actually executing on a normal scenario (in here, without an a call, surely, since this flag disables the actual execution):



    $ arara --dry-run 478314.tex 
    __ _ _ __ __ _ _ __ __ _
    / _` | '__/ _` | '__/ _` |
    | (_| | | | (_| | | | (_| |
    __,_|_| __,_|_| __,_|

    Processing '478314.tex' (size: 231 bytes, last modified:
    03/10/2019 17:53:47), please wait.

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, 478314.tex ]

    [DR] (BibTeX) The BibTeX reference management software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ bibtex, 478314 ]

    [DR] (MakeIndex) The MakeIndex software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ makeindex, -t, 478314.ilg, 478314.idx, -o,
    478314.ind ]

    [DR] (Nomencl) The Nomenclature software
    -----------------------------------------------------------------
    Authors: Marco Daniel, Nicola Talbot, Paulo Cereda
    About to run: [ makeindex, 478314.nlo, -s, nomencl.ist, -o,
    478314.nls ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    [DR] (PDFLaTeX) PDFLaTeX engine
    -----------------------------------------------------------------
    Authors: Marco Daniel, Paulo Cereda
    About to run: [ pdflatex, --synctex=1, 478314.tex ]

    Total: 0.42 seconds


    The last two calls to pdflatex have the --synctex=1 flag, which is expected to provide proper SyncTeX support. That's it.



    However, little to nothing can be done without delving into the depths of your actual environment and code in order to see what is happening. My suggestion is to independently run



    pdflatex --synctex=1 myfile.tex


    in the command line and see what happens. I can think of some scenarios:



    1. The editor is not aware that there was a compilation chain that generated the resulting PDF, thus nothing is updated, or


    2. You have directives in your source code (not shown in this particular example) that get rid of synctex.gz files as a means to declutter the directory, or


    3. There are potential conflicts in the source code that are causing this issue.


    Speaking of which, I noticed that the log file contains a lot of warning about cross references. Although SyncTeX is not directly related to it, maybe it's something worth checking. From my side, I tried a couple of documents of mine and they worked, so I really cannot reproduce this issue, I am so sorry.



    Please try to run pdflatex as a standalone call instead of using arara and see if it works. Also, try other similar tools like latexmk. If the problem persists, we might need to get down to a minimal working example that reproduces the issue, otherwise I can only suppose.



    Sorry for not being able to help you on this issue. Please keep me informed.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    answered Mar 10 at 21:03


























    community wiki





    Paulo Cereda













    • Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

      – David Wang
      Mar 10 at 21:33












    • @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

      – Paulo Cereda
      Mar 11 at 8:51

















    • Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

      – David Wang
      Mar 10 at 21:33












    • @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

      – Paulo Cereda
      Mar 11 at 8:51
















    Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

    – David Wang
    Mar 10 at 21:33






    Thanks Paulo! An independent run of pdflatex --synctex=1 myfile.tex produces a pdf with the same problem. You are right there is a lot of cross-refs. I understand your 3 scenarios more or less, but am still quite confused about the direction that I should dig deeper. I'll try check the cross-refs so. Thanks for all and please let me know if the above result inspires anything new.

    – David Wang
    Mar 10 at 21:33














    @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

    – Paulo Cereda
    Mar 11 at 8:51





    @DavidWang I am the one to thank you! :) I was getting worried that this could somehow be a corner case, a very specific scenario in which things were not behaving as expected. Thanks for testing. I think we can now cross items 1 and 2, since the issue is reproduceable without TeXShop and arara. Sadly, I won't be able to help you further, since SyncTeX is an uncharted territory to me. Perhaps changing this question a bit might help others investigate what's happening.

    – Paulo Cereda
    Mar 11 at 8:51











    0














    I found a solution: Add % !TEX root = main.tex at the beginning of the file for each chapter, such as that of the file chp1.tex. This command assigns a relative path so that the generated sync file finds the main file which contains a line of includechp1. An alternative solution is to add an absolute path like
    % !TEX root = /Users/main.tex if /Users/main.tex is the location of the file main.tex on my Mac. The problem should be about editing a book in multi-files, rather than using Arara.






    share|improve this answer



























      0














      I found a solution: Add % !TEX root = main.tex at the beginning of the file for each chapter, such as that of the file chp1.tex. This command assigns a relative path so that the generated sync file finds the main file which contains a line of includechp1. An alternative solution is to add an absolute path like
      % !TEX root = /Users/main.tex if /Users/main.tex is the location of the file main.tex on my Mac. The problem should be about editing a book in multi-files, rather than using Arara.






      share|improve this answer

























        0












        0








        0







        I found a solution: Add % !TEX root = main.tex at the beginning of the file for each chapter, such as that of the file chp1.tex. This command assigns a relative path so that the generated sync file finds the main file which contains a line of includechp1. An alternative solution is to add an absolute path like
        % !TEX root = /Users/main.tex if /Users/main.tex is the location of the file main.tex on my Mac. The problem should be about editing a book in multi-files, rather than using Arara.






        share|improve this answer













        I found a solution: Add % !TEX root = main.tex at the beginning of the file for each chapter, such as that of the file chp1.tex. This command assigns a relative path so that the generated sync file finds the main file which contains a line of includechp1. An alternative solution is to add an absolute path like
        % !TEX root = /Users/main.tex if /Users/main.tex is the location of the file main.tex on my Mac. The problem should be about editing a book in multi-files, rather than using Arara.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 11 mins ago









        David WangDavid Wang

        214




        214



























            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%2f478314%2farara-synctex-in-editing-a-book%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

            How should I use the fbox command correctly to avoid producing a Bad Box message?How to put a long piece of text in a box?How to specify height and width of fboxIs there an arrayrulecolor-like command to change the rule color of fbox?What is the command to highlight bad boxes in pdf?Why does fbox sometimes place the box *over* the graphic image?how to put the text in the boxHow to create command for a box where text inside the box can automatically adjust?how can I make an fbox like command with certain color, shape and width of border?how to use fbox in align modeFbox increase the spacing between the box and it content (inner margin)how to change the box height of an equationWhat is the use of the hbox in a newcommand command?

            Doxepinum Nexus interni Notae | Tabula navigationis3158DB01142WHOa682390"Structural Analysis of the Histamine H1 Receptor""Transdermal and Topical Drug Administration in the Treatment of Pain""Antidepressants as antipruritic agents: A review"

            inputenc: Unicode character … not set up for use with LaTeX The Next CEO of Stack OverflowEntering Unicode characters in LaTeXHow to solve the `Package inputenc Error: Unicode char not set up for use with LaTeX` problem?solve “Unicode char is not set up for use with LaTeX” without special handling of every new interesting UTF-8 characterPackage inputenc Error: Unicode character ² (U+B2)(inputenc) not set up for use with LaTeX. acroI2C[I²C]package inputenc error unicode char (u + 190) not set up for use with latexPackage inputenc Error: Unicode char u8:′ not set up for use with LaTeX. 3′inputenc Error: Unicode char u8: not set up for use with LaTeX with G-BriefPackage Inputenc Error: Unicode char u8: not set up for use with LaTeXPackage inputenc Error: Unicode char ́ (U+301)(inputenc) not set up for use with LaTeX. includePackage inputenc Error: Unicode char ̂ (U+302)(inputenc) not set up for use with LaTeX. … $widehatleft (OA,AA' right )$Package inputenc Error: Unicode char â„¡ (U+2121)(inputenc) not set up for use with LaTeX. printbibliography[heading=bibintoc]Package inputenc Error: Unicode char − (U+2212)(inputenc) not set up for use with LaTeXPackage inputenc Error: Unicode character α (U+3B1) not set up for use with LaTeXPackage inputenc Error: Unicode characterError: ! Package inputenc Error: Unicode char ⊘ (U+2298)(inputenc) not set up for use with LaTeX