<div dir="ltr"><div>P.S. on shell scripting and so on...</div><div><br></div><div>(Disclaimer - I have bought from this commercial outfit in the past, and got a newsletter from them today but that is my only contact with them :-) ...</div><div>PacktPub are offering some "free" e-books for reading online, or (offline?-) in their apps (Mac and Android)</div><div><br></div><div>Here is an example link...</div><div><a href="https://www.packtpub.com/free-ebooks/modern-c-plus-plus-programming-cookbook">https://www.packtpub.com/free-ebooks/modern-c-plus-plus-programming-cookbook</a></div><div>And<br><a href="https://www.packtpub.com/free-learning">https://www.packtpub.com/free-learning</a></div><div><br></div><div>Their newsletter today says: "<font size="2"><span style="font-weight:normal">100+ free eBooks to add to your Packt account</span></font>" <br>- you'd have to search and find your own way around I'm afraid <br>and sure that they have designed it all to lead you into buying something :-)</div><div>And they'd want you to sign up fro a free account.<br></div><div><br></div><div>Titles (some older?) among many that may be of interest to some TeXworks Users/developers/scripters include:</div><div><br></div><div>Linux Shell Scripting Cookbook (Third Edition)<br>Getting Started with Powershell (Windows)<br><br>Modern C++ Programming Cookbook<br>Learning ECMAScript 6 [JavaScript one level ahead?]<br>Creating your MySQL [MariaDB] Database: Practical Design Tips and Techniques<br><br>Practical Responsive Typography<br>Practical Web Development<br>HTML5 Graphing and Data Visualization Cookbook<br><br>VMware Workstation</div><div><br></div><div>Coy of list for titles to search on attached.<br></div><div><br></div><div>Kind regards,</div><div>paul<br></div><div> </div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 7 Oct 2019 at 18:45, Paul A Norman <<a href="mailto:paul.a.norman@gmail.com">paul.a.norman@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Arno,</div><div><br></div><div>Good on you. <br>The 'problem' can actually be very useful for people who need certain utilities (ImageMagick php MySql/MariaDB etc..) and in particular certain versions of those utilities available to TeXworks (particularly Scripting) or their overall LaTeX (etc..) installation, which they do not want potentially interfering with things system wide.</div><div><br></div><div>This is particularly useful for running TeXWorks etc as a portable installation.<br></div><div><br></div><div>Under Windows you can call TeXworks from a batch file passing it only the specific path(s) that you need. (Under Windows remember to specify your windows and windows\system32 directories if you are replacing the whole Path!). <br>If you need to elevate your permissions you can start the calling batch file you write for TeXworks <br>using a Privileged User (Administrator) you previously make, say called 'latex', (you'll be asked for the Password at least once in a while) - with TW.bat having whatever you need in it...<br></div><div><span style="font-family:monospace"><br></span></div><div style="margin-left:40px"><span style="font-family:monospace">X:<br>cd X:\LaTeXPortable<br></span></div><div style="margin-left:40px"><span style="font-family:monospace">runas /user:YourComputerName\latex  /savecred X:\LaTeXPortable\TW.bat</span></div><div><br></div><div>You can do the same with Environment variables. There is a lot of help on the Internet for the details overall for all this - (this is not the place to cover them).</div><div>Look around places like  ( <a href="https://ss64.com/nt/syntax-variables.html" target="_blank">https://ss64.com/nt/syntax-variables.html</a> ) and of course <a href="https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands" target="_blank">https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/windows-commands</a></div><div><br></div><div>The general principles are the same for most operating systems.</div><div><a href="https://ss64.com/" target="_blank">https://ss64.com/</a></div><div><br></div><div>Paul<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 6 Oct 2019 at 06:20, Arno Trautmann <<a href="mailto:arno.trautmann@gmx.de" target="_blank">arno.trautmann@gmx.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
just in case someone should ever have the same problem, and maybe this<br>
will lead to a solution:<br>
<br>
The problem seems to be the way I start texworks: Starting from bashrun<br>
as I start all programs, the PATH is set wrong. When calling texworks<br>
from my normal terminal, it works fine. I'm sure that was different back<br>
some time, but maybe the difference is now in bashrun, not in texworks.<br>
<br>
Best,<br>
Arno<br>
<br>
On 9/2/19 9:42 PM, Arno Trautmann wrote:<br>
> Hi Stefan,<br>
><br>
> On 9/2/19 9:35 PM, Stefan Löffler wrote:> Hi Arno,<br>
>  ><br>
>  > On 02.09.19 11:23, Arno Trautmann wrote:<br>
>  >> On 7/15/19 3:06 PM, Arno Trautmann wrote:<br>
>  >>> Hi Stefan,<br>
>  >>><br>
>  >>> On 7/13/19 11:25 AM, Stefan Löffler wrote:<br>
>  >>>> Hi Arno,<br>
>  >>>><br>
>  >>>> On 07.07.19 13:36, Arno Trautmann wrote:<br>
>  >>>>> I have weird behavior of texworks when trying to externalize a tikz<br>
>  >>>>> figure an in the example below. texworks tells me<br>
>  >>>>> ––<br>
>  >>>>> sh: lualatex: command not found<br>
>  >>>>> ––<br>
>  >>>>> However if I call in my terminal:<br>
>  >>>>> ––<br>
>  >>>>> sh-5.0$ lualatex<br>
>  >>>>> This is LuaTeX, Version 1.10.0 (TeX Live 2019)<br>
>  >>>>> ––<br>
>  >>>>> So sh knows lualatex. Also, this did work since a long time and<br>
>  >>>>> suddenly<br>
>  >>>>> stopped about last week. I get the externalization when calling from<br>
>  >>>>> terminal, so it seems that texworks is calling something wrong but I<br>
>  >>>>> cannot figure out what.<br>
>  >>>><br>
>  >>>> As far as Tw is concerned, there were no relevant changes to the<br>
>  >>>> code in<br>
>  >>>> the past few weeks.<br>
>  >>><br>
>  >>> Ok, interesting …<br>
>  >>><br>
>  >>>> I am a bit surprised that lualatex is explicitly called through sh...<br>
>  >>>> maybe you could check the definition of the lualatex typesetting<br>
> tool?<br>
>  >>>><br>
>  >>>> Also, can you trace down where lualatex is placed and how it's<br>
> defined?<br>
>  >>>> On my system, it's a maze of symlinks that ultimately points to<br>
> luatex.<br>
>  >>>> That could potential;y also cause problems if all symlinks are<br>
> resolved<br>
>  >>>> and luatex is called instead of lualatex...<br>
>  >>><br>
>  >>> /home/texlive2019/bin/x86_64-linux/lualatex<br>
>  >>><br>
>  >>> How do I check the definition? Or what kind of information would you<br>
>  >>> need?<br>
>  ><br>
>  > To check, you can e.g. run in a terminal<br>
>  > ls -l /home/texlive2019/bin/x86_64-linux/lualatex<br>
>  > If it's a symlink, it should point (with "->") to the target. Than you<br>
>  > can "ls -l" the target until no -> redirection is found anymore. But I<br>
>  > would first try the suggestion below before going down this rabbit hole.<br>
><br>
> $ls -l /home/texlive2019/bin/x86_64-linux/lualatex<br>
> lrwxrwxrwx 1 arno wheel 6 Oct  3  2018<br>
> /home/texlive2019/bin/x86_64-linux/lualatex -> luatex<br>
><br>
> $ls -l /home/texlive2019/bin/x86_64-linux/luatex<br>
> -rwxr-xr-x 1 arno wheel 6545664 Apr 10 17:08<br>
> /home/texlive2019/bin/x86_64-linux/luatex<br>
><br>
>  >>> This is the output of tw with env:<br>
>  >>><br>
>  >>> [...]<br>
>  >>><br>
> PATH=/usr/lib/hardening-wrapper/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/lib/jvm/default/bin:/usr/bin/site_perl:/usr/bin/vendor_perl:/usr/bin/core_perl<br>
><br>
>  >>><br>
>  ><br>
>  > I just noticed that your path, i.e. /home/texlive2019/bin/x86_64-linux/,<br>
>  > does not show up here. Can you try adding it under Edit > Preferences ><br>
>  > Typesetting > Paths for TeX and related programs?<br>
> It is already added in the GUI and works (e.g. I can change between tl18<br>
> and tl19 by changing the order of the paths there)<br>
><br>
> Best<br>
> Arno<br>
><br>
<br>
</blockquote></div>
</blockquote></div>