> -----Original Message----- > From: Jürgen Spitzmüller <jspi...@gmail.com> > Sent: Saturday, July 19, 2025 3:01 AM > To: lyx-users@lists.lyx.org > Subject: Re: ERT or def in URL > > Am Donnerstag, dem 17.07.2025 um 15:43 +0000 schrieb Denniston, Todd A > CIV USN NSWC CD CRANE IN (USA) via lyx-users: > > %in preamble > > \def\NETAddrFT{10.10.10} > > \def\NETAddrDNS{{\ NETAddrFT}.5} > > ------------ > > Why do you have this extra group in the first place? > > \def\NETAddrDNS{\NETAddrFT.5} > > seems to work well for me. >
The original logic was that I have about 15 "named machines" in my network, and it would be nice to use those names throughout the document, example: \NETAddrDNS for the DNS machine. For the most part they all only differ by the last octet. The current change to the document involved changing the first three (\NETAddrFT) octets, so I just made that as a def and used it inside the other defs. However in _one_ section of the document I had created convenience URLs for folks to click on, and in that one section the expansion broke down. (BTW... some of the IP_Addrs & URLs are needed for use in the doc BEFORE the DNS machine is up in the network, thus I can't just use the DNS names everywhere.) Even though it means I'll have to pay attention to that section editing the document in the future, for now your suggestion of just using half dozen instances of things like \NETAddrFT.5 in that section became my "easy button" choice to solve it. Thanks for the feedback.
smime.p7s
Description: S/MIME cryptographic signature
-- lyx-users mailing list lyx-users@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-users