From smithjh at lafayette.edu Tue Jul 8 10:02:31 2025 From: smithjh at lafayette.edu (Joshua Smith) Date: Tue, 8 Jul 2025 10:02:31 -0400 Subject: [OS X TeX] TeXShop not running the sepdflatexmk engine Message-ID: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> Hi all, I am using TikZ to create a plot using gnuplot, which I know requires --shell-escape. I am trying to call the sepdflatexmk engine, so I used TeXShop?s Macros to insert the following at the top of my file: % !TEX TS-program = sepdflatexmk However, when I typeset the file, it just seems to call pdflatexmk. I get the following in the Console: Rc files read: /Volumes/Home/Library/TeXShop/bin/latexmkrcedit /Volumes/Home/Library/TeXShop/bin/tslatexmk/pdflatexmkrc Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87. Latexmk: applying rule 'pdflatex'... Rule 'pdflatex': Reasons for rerun Changed files or newly in use/created: 09-10-2025 Lecture Slides.aux 09-10-2025 Lecture Slides.tex Category 'changed_user': 09-10-2025 Lecture Slides.tex Category 'never_run': pdflatex ------------ Run number 1 of rule 'pdflatex' ------------ ------------ Running 'pdflatex --synctex=1 --file-line-error -recorder "09-10-2025 Lecture Slides.tex"' ------------ And, when it gets to the TikZ code, I get the following error: ./09-10-2025 Main.tex:233: Package pgfplots Error: Sorry, the gnuplot-result file '"09-10-2025 Lecture Slides.cosh.table"' could not be found. Maybe you need to enable the shell-escape feature? For pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot .gnuplot' manually on the respective gnuplot file.. What am I doing wrong? Thanks, Josh -------------- next part -------------- An HTML attachment was scrubbed... URL: From herbs2 at mac.com Tue Jul 8 10:59:24 2025 From: herbs2 at mac.com (Herbert Schulz) Date: Tue, 8 Jul 2025 09:59:24 -0500 Subject: [OS X TeX] TeXShop not running the sepdflatexmk engine In-Reply-To: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> References: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> Message-ID: > On Jul 8, 2025, at 9:02?AM, Joshua Smith wrote: > > Hi all, > > I am using TikZ to create a plot using gnuplot, which I know requires --shell-escape. I am trying to call the sepdflatexmk engine, so I used TeXShop?s Macros to insert the following at the top of my file: > > % !TEX TS-program = sepdflatexmk > > However, when I typeset the file, it just seems to call pdflatexmk. I get the following in the Console: > > Rc files read: > /Volumes/Home/Library/TeXShop/bin/latexmkrcedit > /Volumes/Home/Library/TeXShop/bin/tslatexmk/pdflatexmkrc > Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87. > Latexmk: applying rule 'pdflatex'... > Rule 'pdflatex': Reasons for rerun > Changed files or newly in use/created: > 09-10-2025 Lecture Slides.aux > 09-10-2025 Lecture Slides.tex > Category 'changed_user': > 09-10-2025 Lecture Slides.tex > Category 'never_run': > pdflatex > > ------------ > Run number 1 of rule 'pdflatex' > ------------ > ------------ > Running 'pdflatex --synctex=1 --file-line-error -recorder "09-10-2025 Lecture Slides.tex"' > ------------ > > And, when it gets to the TikZ code, I get the following error: > > ./09-10-2025 Main.tex:233: Package pgfplots Error: Sorry, the gnuplot-result file '"09-10-2025 Lecture Slides.cosh.table"' could not be found. Maybe you need to enable the shell-escape feature? For pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot .gnuplot' manually on the respective gnuplot file.. > > What am I doing wrong? > > Thanks, > Josh Howdy, First, do you really have the sepdflatexmk engine enabled (i.e., is the sepdflatexmk.engine file in ~/Library/TeXShop/Engines folder)? More important, recent version of the basic latexmk engines [(pdf/xe/lua)latexmk] are able to use shell-escape by using a TeXShop directive (magic comment): % !TEX parameter = -shell-escape to add that to parameter list. So the lines % !TEX TS-program = pdflatexmk % !TEX parameter = -shell-escape shold do what you want. I.e., the `se' version of pdflatexmk is outmoded and is provided only for backward compatibility. Good Luck, Herb Schulz herbs2 at mac.com From jhs0807 at gmail.com Tue Jul 8 15:28:36 2025 From: jhs0807 at gmail.com (Joshua Smith) Date: Tue, 8 Jul 2025 15:28:36 -0400 Subject: [OS X TeX] TeXShop not running the sepdflatexmk engine In-Reply-To: References: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> Message-ID: <7B93B471-B8C4-4520-A9DE-63F293AE0BDE@gmail.com> > On Jul 8, 2025, at 10:59?AM, Herbert Schulz via MacOSX-TeX wrote: > > >> On Jul 8, 2025, at 9:02?AM, Joshua Smith wrote: >> >> Hi all, >> >> I am using TikZ to create a plot using gnuplot, which I know requires --shell-escape. I am trying to call the sepdflatexmk engine, so I used TeXShop?s Macros to insert the following at the top of my file: >> >> % !TEX TS-program = sepdflatexmk >> >> However, when I typeset the file, it just seems to call pdflatexmk. I get the following in the Console: >> >> Rc files read: >> /Volumes/Home/Library/TeXShop/bin/latexmkrcedit >> /Volumes/Home/Library/TeXShop/bin/tslatexmk/pdflatexmkrc >> Latexmk: This is Latexmk, John Collins, 15 June 2025. Version 4.87. >> Latexmk: applying rule 'pdflatex'... >> Rule 'pdflatex': Reasons for rerun >> Changed files or newly in use/created: >> 09-10-2025 Lecture Slides.aux >> 09-10-2025 Lecture Slides.tex >> Category 'changed_user': >> 09-10-2025 Lecture Slides.tex >> Category 'never_run': >> pdflatex >> >> ------------ >> Run number 1 of rule 'pdflatex' >> ------------ >> ------------ >> Running 'pdflatex --synctex=1 --file-line-error -recorder "09-10-2025 Lecture Slides.tex"' >> ------------ >> >> And, when it gets to the TikZ code, I get the following error: >> >> ./09-10-2025 Main.tex:233: Package pgfplots Error: Sorry, the gnuplot-result file '"09-10-2025 Lecture Slides.cosh.table"' could not be found. Maybe you need to enable the shell-escape feature? For pdflatex, this is '>> pdflatex -shell-escape'. You can also invoke '>> gnuplot .gnuplot' manually on the respective gnuplot file.. >> >> What am I doing wrong? >> >> Thanks, >> Josh > > Howdy, > > First, do you really have the sepdflatexmk engine enabled (i.e., is the sepdflatexmk.engine file in ~/Library/TeXShop/Engines folder)? > > More important, recent version of the basic latexmk engines [(pdf/xe/lua)latexmk] are able to use shell-escape by using a TeXShop directive (magic comment): > > % !TEX parameter = -shell-escape > > to add that to parameter list. So the lines > > % !TEX TS-program = pdflatexmk > % !TEX parameter = -shell-escape > > shold do what you want. I.e., the `se' version of pdflatexmk is outmoded and is provided only for backward compatibility. > > Good Luck, > > Herb Schulz > herbs2 at mac.com Hi Herb, I found my problem. I was using a root/child file structure, and I had placed the command % !TEX TS-program = pdflatexmk in the root file. Later, I was adding % !TEX TS-program = sepdflatexmk to the child file, but it was being overwritten by the command in the root file. Thanks, Josh From herbs2 at mac.com Tue Jul 8 15:49:30 2025 From: herbs2 at mac.com (Herbert Schulz) Date: Tue, 8 Jul 2025 14:49:30 -0500 Subject: [OS X TeX] TeXShop not running the sepdflatexmk engine In-Reply-To: <7B93B471-B8C4-4520-A9DE-63F293AE0BDE@gmail.com> References: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> <7B93B471-B8C4-4520-A9DE-63F293AE0BDE@gmail.com> Message-ID: <090F0BB4-D1B2-4064-8BAD-5C2733663A54@mac.com> > On Jul 8, 2025, at 2:28?PM, Joshua Smith wrote: > ... > Hi Herb, > > I found my problem. I was using a root/child file structure, and I had placed the command > > % !TEX TS-program = pdflatexmk > > in the root file. Later, I was adding > > % !TEX TS-program = sepdflatexmk > > to the child file, but it was being overwritten by the command in the root file. > > Thanks, > Josh > Since it'ss the root file that is compiled (other file are read in by that file) only the TeXShop directives in the root file are used. Good Luck, Herb Schulz herbs2 at mac.com From herbs2 at mac.com Tue Jul 8 16:33:50 2025 From: herbs2 at mac.com (Herbert Schulz) Date: Tue, 8 Jul 2025 15:33:50 -0500 Subject: [OS X TeX] TeXShop not running the sepdflatexmk engine In-Reply-To: <090F0BB4-D1B2-4064-8BAD-5C2733663A54@mac.com> References: <822F691A-8563-44DC-A8BD-3F5C8CBC59DF@lafayette.edu> <7B93B471-B8C4-4520-A9DE-63F293AE0BDE@gmail.com> <090F0BB4-D1B2-4064-8BAD-5C2733663A54@mac.com> Message-ID: <7162B1C8-78BB-4314-897F-57E4BF38A27C@mac.com> > On Jul 8, 2025, at 2:49?PM, Herbert Schulz via MacOSX-TeX wrote: > > > >> On Jul 8, 2025, at 2:28?PM, Joshua Smith wrote: >> ... >> Hi Herb, >> >> I found my problem. I was using a root/child file structure, and I had placed the command >> >> % !TEX TS-program = pdflatexmk >> >> in the root file. Later, I was adding >> >> % !TEX TS-program = sepdflatexmk >> >> to the child file, but it was being overwritten by the command in the root file. >> >> Thanks, >> Josh >> > > Since it'ss the root file that is compiled (other file are read in by that file) only the TeXShop directives in the root file are used. > > Good Luck, > > Herb Schulz > herbs2 at mac.com Howdy, Slightly overstated. There are a very few TeXShop directives that can be scattered throughout a document; e.g., the single directive I know of %:my tag name places `my tag name' on the tag list in the Source toolbar and will take you to that location when chosen from the list. Good Luck, Herb Schulz herbs2 at mac.com