On Thu, Jul 17, 2025 at 11:51 AM Denniston, Todd A CIV USN NSWC CD CRANE IN (USA) via lyx-users <lyx-users@lists.lyx.org> wrote:
> Hi again folks. > > I am defining some things the preamble and then using them later in the > document. > > Using ERT inside of URL environments is apparently not allowed. > > The below (lyx file snippets) works where ever I use ERT (comes out as > 10.10.10.5), but is giving me grief when I want to use it in a URL(comes > out as {10.10.10}.5). > > I have attempted to search the web for combinations > > lyx or latex > > and > > ERT.in.URL > > Or > > def.in.URL > > > > But is not helping. > > Anyone have suggestions on how I might better achieve my desired result or > at least some better search.the.web keyword combos? > > Thanks for the clues. > > ------------ > > %in preamble > > \def\NETAddrFT{10.10.10} > > \def\NETAddrDNS{{\ NETAddrFT}.5} > > ------------ > > > > ------------ > > %When in ERT it works i.e. it comes out as 10.10.10.5 > > \begin_inset ERT > > status open > > \begin_layout Plain Layout > > \backslash > > NETAddrDNS > > \end_layout > > \end_inset > > ------------ > > > > > > ------------ > > % but when used in a URL it comes out as {10.10.10}.5 > > \begin_inset Flex URL > > status open > > \begin_layout Plain Layout > > https:// > > \backslash > > NETAddrDNS/login.html > > \end_layout > > \end_inset > > ------------ > Is there a reason you can't just put the \url command inside the ERT? Alex
-- lyx-users mailing list lyx-users@lists.lyx.org https://lists.lyx.org/mailman/listinfo/lyx-users