<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;"><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Hello Richard</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">Sorry (again, to everyone who reads the list I guess… 😕 ) for the late response and for (probably) the mess with the text of the answer. I had digest mode enabled and did not know how to properly respond to digest mail. I have disabled it now so I should be better with the responses starting tomorrow (it says it could still be in digest form today, sorry).</span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><font color="#000000">Thank you for clarifying my thinking. I think I might have know it would work, but not expressed it well. As I said in my answer to Herbert, I have been looking a lot at this lately (for fun, to understand better, cause I want to setup the accounts on the computer properly, lots of reasons 😂). I will keep in mind the separation of the two and explain better next time.</font></div><div><font color="#000000"><br></font></div><div><font color="#000000">That said, when looking at the data structure and the GUI side of things, is my observation wrong ? Did I get it wrong that even if a GUI were to take advantage of the data structure (which none do as far as you (or I) know if I understand <span style="caret-color: rgb(0, 0, 0);">correctly), it would actually not be able to do so reliably for a system with multiple users ?</span></font></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);">Anyhow, thanks a lot for the answers.</span></font></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);">Your time is appreciated.</span></font></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);">Ghyslain</span></font></div><div><font color="#000000"><span style="caret-color: rgb(0, 0, 0);"><br></span></font></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><span style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);"><br></span></div><div><div>></div><div>> Ghyslain,</div><div>> </div><div>> This question (understandably) mixes two items that should be considered separately.</div><div>> </div><div>> The data structure is totally irrelevant for running TeX. TeX Live doesn't know that it is even there.</div><div>> The purpose of the data structure is three-fold:</div><div>> </div><div>> a) Provide a link to the TeX binaries, so GUI apps can see them</div><div>> </div><div>> b) Make it easy to change where this link points, so it is easy to switch from</div><div>> one distribution to another, and all GUI apps are automatically</div><div>> reconfigured without doing anything</div><div>> </div><div>> c) Provide locations where GUI apps can find key parts of the active</div><div>> TeX distribution. For example, suppose you GUI app wants to display</div><div>> the documents in TL. It cannot point directly to TL, because if you</div><div>> switch to another distribution, this link would have to be changed.</div><div>> But instead, the GUI app can open the TeX Dist structure and</div><div>> essentially ask "in the currently active distribution, where are</div><div>> the documents?"</div><div>> </div><div>> The items you list for TEXMFHOME, etc., are in the TeX distribution, and thus are</div><div>> available in case a GUI app wants to know their values. To the best of my</div><div>> knowledge, this facility has never actually been used!</div><div>> </div><div>> </div><div>> -------------</div><div>> </div><div>> However, as Herbert points out, TEXMFHOME, TEXMFCONFIG, and TEXMFVAR are also</div><div>> terms used by TeX Live itself. They are set when you use the Unix install script. In you message,</div><div>> it is unclear to me if you actually created another install of TL somewhere else using this</div><div>> script. If you did, you'll see where the user determines their values. If not, it would be</div><div>> instructive for you to run the Unix install script, maybe not all the way to installing a new</div><div>> distribution, but just the initial steps where you answer a series of questions. You'll</div><div>> see where you are asked to provide these three values.</div><div>> </div><div>> Suppose you install TL in /usr/local/texlive, as we do. This location isn't owned by you. So</div><div>> on rare occasions when TL needs to write configuration data, it needs to write it in a location</div><div>> owned by the user. These three items say where to write.</div><div>> </div><div>> The actual values we give are</div><div>> </div><div>> ~/Library/texmf</div><div>> ~/Library/texlive/2023basic/texmf-config</div><div>> ~/Library/texlive/2023basic/texmf-var</div><div>> </div><div>> Here, of course, ~ refers to the user's home directory. These values allow the distribution</div><div>> to be used by all users, since these locations depend on who is running the machine and</div><div>> thus on their home directory. The locations in ~/Library need not be created in advance;</div><div>> TL will create them when needed.</div><div>> </div><div>> Richard Koch</div><div>></div><br><blockquote type="cite" style="caret-color: rgb(0, 0, 0); color: rgb(0, 0, 0);">On Mar 29, 2023, at 4:49 AM, Ghyslain Leclerc <<a href="mailto:ghleclerc@gmail.com">ghleclerc@gmail.com</a>> wrote:<br><br>Hello.<br><br>Sorry for the long mail. I can be verbose.<br><br>So, I have been trying to replicate the MacTeX "Multiple TeX / TeX data structure" initially developed by Gerben Wierda and Jerome Laurens, both to learn more about it and because I want an install location that is not /usr/local and that is not supported by the MacTeX installers (as far as I understand, sorry if I am wrong).<br><br>I have a small program that will write the data structure (with slight modifications, but nothing major or that would affect what I am inquiring about here). I used the program to create data structures (I have installed and created multiple in order to test and understand) and even "TeX Live Utility" seems to recognize the links as valid distributions. So far so good.<br><br>Then, my partner tried using LaTeX on my computer (we share for some things) and I realized there is something I don't understand. In the data structure, there are these links (just an example for some hypothetical distribution):<br><br> ... /Distributions/TeXLive-2023-Basic/Contents/Local/TEXMFHOME -> /Users/me/Library/texmf<br> ... /Distributions/TeXLive-2023-Basic/Contents/Local/TEXMFCONFIG -> /Users/me/Library/texlive/2023basic/texmf-config<br> ... /Distributions/TeXLive-2023-Basic/Contents/Local/TEXMFVAR -> /Users/me/Library/texlive/2023basic/texmf-var<br><br>and looking at it, I realized that if my partner wanted some custom things installed just for him (we tend to not have the same needs in terms of packages), it would not work because the links are pointing at my Library folder and not his. And to my knowledge, there is not way to make links point to multiple places on macOS.<br><br>So I am wondering if this is a limitation of the data structure or something I misunderstand? Is the data structure OK for multiple TeX installations, but not really for multiple users? Or is there something I am doing wrong with those links (I installed MacTeX itself after realizing this to confirm that the links are the same as those I was writing and they appear the same to me)?<br><br>Hope my question makes sense and that someone might have insight into this.<br>Thanks in any case.<br><br>Ghyslain<br>----------- Please Consult the Following Before Posting -----------<br>TeX FAQ: <a href="https://www.tug.org/mactex/faq/index.html">https://www.tug.org/mactex/faq/index.html</a><br>List Reminders and Etiquette: <a href="https://sites.esm.psu.edu/~gray/TeX/">https://sites.esm.psu.edu/~gray/TeX/</a><br>List Archives: <a href="http://dir.gmane.org/gmane.comp.tex.macosx">http://dir.gmane.org/gmane.comp.tex.macosx</a><br> <a href="https://email.esm.psu.edu/pipermail/macosx-tex/">https://email.esm.psu.edu/pipermail/macosx-tex/</a><br>TeX on Mac OS X Website: <a href="https://www.tug.org/mactex/index.html">https://www.tug.org/mactex/index.html</a><br>List Info: <a href="https://email.esm.psu.edu/mailman/listinfo/macosx-tex">https://email.esm.psu.edu/mailman/listinfo/macosx-tex</a><br></blockquote><br><br><br>------------------------------<br><br>Message: 4<br>Date: Wed, 29 Mar 2023 16:13:15 +0000<br>From: Richard Koch <<a href="mailto:koch@uoregon.edu">koch@uoregon.edu</a>><br>To: TeX on Mac OS X <<a href="mailto:macosx-tex@email.esm.psu.edu">macosx-tex@email.esm.psu.edu</a>><br>Subject: Re: [OS X TeX] Question about the Multiple TeX Data Structure<br>Message-ID: <<a href="mailto:BD07D7BC-DBDC-4CA7-AE7D-E3CCC8653631@uoregon.edu">BD07D7BC-DBDC-4CA7-AE7D-E3CCC8653631@uoregon.edu</a>><br>Content-Type: text/plain; charset="us-ascii"<br><br>I should have written<br><br>The items you list for TEXMFHOME, etc., are in the TeX-Dist data structure, and thus are<br>available in case a GUI app wants to know their values. To the best of my<br>knowledge, this facility has never actually been used!<br><br>Richard Koch</div></body></html>