From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime Newsgroups: gmane.emacs.help Subject: Re: AW: Question about Latex Style files Date: Fri, 17 Nov 2023 19:23:17 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23048"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Alois Steindl , Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Nov 17 20:24:23 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1r44Ry-0005km-TN for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Nov 2023 20:24:22 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r44RI-0007dP-9b; Fri, 17 Nov 2023 14:23:40 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r44RF-0007dC-Vx for help-gnu-emacs@gnu.org; Fri, 17 Nov 2023 14:23:39 -0500 Original-Received: from mail-4318.protonmail.ch ([185.70.43.18]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r44RD-0006FC-24 for help-gnu-emacs@gnu.org; Fri, 17 Nov 2023 14:23:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1700249010; x=1700508210; bh=dGiGghGr3XqcCyWLOSx/leePsonvYQHkaWxl4PEsTaA=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=GbQLXzhWkJr/09iRsEsJr2LuFY7ueSo+A4sDXX8/Rnd/xKz6H3dZJD5y/k7wQy4b8 eT8NIn8IYtAA2kZBfxEDZDDxSkws2e2y1Z2z6rW4jyaTN9Nw0DsyMaaJE9jQKLa5h7 oKQS7TXFTrFOhY+oYRw208ii5J+HUG9jh4HxH8K+ERU6KB/vgRNnpGk8Yf3zfSwYdX mkzzfAr/wt4POTRzQn0ImNJREaXK889qoALGXnQ6SrsdMaM6kVqgDWaVxyDmHckcmC QnlOB4tOFJ54OkaJQXw/AeUntdrWSLzUTnMH1fk9Tn3/8fl7eTxRd3j9PnssSAsv/D 0vEtgyDpaVL1Q== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.43.18; envelope-from=heimeborgia@protonmail.com; helo=mail-4318.protonmail.ch X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, TO_EQ_FM_DIRECT_MX=0.262, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:145554 Archived-At: Sent with Proton Mail secure email. On Tuesday, November 7th, 2023 at 8:40 PM, Heime wrote: > In this code, the third level picks up the colour value from level two. > But I want the third level to take the default red colour value. >=20 > How does one apply a default set of keys at the start of each environment > exactly ? Shouldn't \keys_set:nn {tlapis_keys} {#1} do that ? >=20 > \documentclass[a4paper,10pt]{article} > \usepackage{xcolor} > \usepackage{enumitem} >=20 > \ExplSyntaxOn >=20 > \makeatletter > \setlistdepth{13} > \newlist{wvTlaps}{enumerate}{13} > \setlist[wvTlaps] > { > label=3D$\langle$\the\enit@depth$\rangle$\arabic*., > left=3D0pt, parsep=3D0pt, itemindent=3D8pt, > } > \makeatother >=20 > \tl_new:N \l_tlapis_kl_tl > \tl_new:N \l_tlapis_lv_tl >=20 > \keys_define:nn { tlapis_keys } > %% Define Key-Value Interface within namespace tlapis_keys. > { > kl .tl_set:N =3D \l_tlapis_kl_tl, > kl .default:n =3D {red}, > kl .initial:n =3D {red}, >=20 > lv .tl_set:N =3D \l_tlapis_lv_tl, > lv .default:n =3D {}, > lv .initial:n =3D {}, > } >=20 > \NewDocumentEnvironment {wvTlapis} { O{} } > { > \keys_set:nn {tlapis_keys} {#1} >=20 > \tl_if_empty:NTF {\l_tlapis_lv_tl} > { > \begin{wvTlaps}[format=3D\color{\l_tlapis_kl_tl}] > } > { > \begin{wvTlaps} > [format=3D\color{\l_tlapis_kl_tl}, > label=3D$\langle$\l_tlapis_lv_tl$\rangle$\arabic*.] > } > } > { \end{wvTlaps} } >=20 > \ExplSyntaxOff >=20 > \begin{document} >=20 > \begin{wvTlapis} > \item First level > \begin{wvTlapis}[kl=3Dgreen] > \item Second level > \begin{wvTlapis} > \item Third level > \end{wvTlapis} > \end{wvTlapis} > \end{wvTlapis} >=20 > \end{document} >=20 >=20 > ------- Original Message ------- > On Tuesday, November 7th, 2023 at 4:47 AM, Alois Steindl Alois.Steindl@tu= wien.ac.at wrote: >=20 >=20 >=20 > > Hello, > > on https://tug.org/begin.html you could find a lot of useful links. > > Further I would recommend the LaTeX Companion, which should answer quit= e all possible questions. > > Good luck > > Alois I want to see how I can handle package options using expl3, but have not fo= und useful information about how to do it. The Latex Team provide help in Tex Stack E= xchange,=20 an amazingly terrible place to ask for help.=20 =20 > > ------ Originalnachricht------ > > Von: Heime > > Datum: Mo., 6. Nov. 2023 17:15 > > An: Heime via Users list for the GNU Emacs text editor; > > Cc: > > Betreff:Question about Latex Style files > >=20 > > Is there any place where I can ask a question about > > Latex Style files ?