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: Tue, 07 Nov 2023 08:40:04 +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="21384"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Alois Steindl Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 07 09:41:11 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 1r0He2-0005Pl-Pu for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 07 Nov 2023 09:41:10 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r0HdR-0005K1-Si; Tue, 07 Nov 2023 03:40:33 -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 1r0HdP-0005Fv-JY for help-gnu-emacs@gnu.org; Tue, 07 Nov 2023 03:40:31 -0500 Original-Received: from mail-40132.protonmail.ch ([185.70.40.132]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r0HdK-0001lm-2G for help-gnu-emacs@gnu.org; Tue, 07 Nov 2023 03:40:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1699346421; x=1699605621; bh=L7eWhxLCPex6HnDGw5Nid4h9qCoMJJQ2au4WbL5SIls=; 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=iEkbpv8pkkypsOxh5Ix/QTOyD2/J/TZ62a8T3w4v0lN+j2feNghE/coR5w79euBY4 6AxpVegOdaWHa6O6RJCm/Ak4Lrqhyw1suwEWWXAdgyDPwDStNs3ta3N69qIGukWKcW 5wvh4/zoMzFIwwmdkPnH+jyawyt8iKTiX/4EpoIIZBR5N88POh9Vb34CdBf2gG6U7+ jwQWTLV0jVSwNXXzq/xEt4apdAJtDxC9SxkJ3z6cn1UZPAmMCqLxRzPxdd4e7XNArn YdEaAOi9uLzDdxlhqYbQw6lD8XKIJoFCVcErsDFJEiTGONhVMWLMtraQdACC5Ybvtp OfAaplGyLINsw== In-Reply-To: Feedback-ID: 57735886:user:proton Received-SPF: pass client-ip=185.70.40.132; envelope-from=heimeborgia@protonmail.com; helo=mail-40132.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, 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:145463 Archived-At: In this code, the third level picks up the colour value from level two. =20 But I want the third level to take the default red colour value. How does one apply a default set of keys at the start of each environment= =20 exactly ? Shouldn't \keys_set:nn {tlapis_keys} {#1} do that ? \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} ------- Original Message ------- On Tuesday, November 7th, 2023 at 4:47 AM, Alois Steindl wrote: > Hello,=C2=A0 > on=C2=A0https://tug.org/begin.html you could find a lot of useful links. > Further I would recommend the LaTeX Companion, which should answer quite = all possible questions. > Good luck=C2=A0 > Alois >=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 >=20 > Is there any place where I can ask a question about > Latex Style files ?