From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id MOBmLloO2mVBQQEA62LTzQ:P1 (envelope-from ) for ; Sat, 24 Feb 2024 16:42:18 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id MOBmLloO2mVBQQEA62LTzQ (envelope-from ) for ; Sat, 24 Feb 2024 16:42:18 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=ySrznWan; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708789338; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iYpS844AlUXTIk3EzEktNjY7OphCMaOAh4wPbLQ86zw=; b=o41lqngGYaE+8P4jjIbFVVQDqWkANP+1PpF2QleYtDxtbVSfeG0ZBb7MsUkUMDlzvCzNMZ 3ynXTKBJWlShww0rHf9TVbOWFypCwna+ZaoKJwZ1IG1Xb575jjguY+m3ZNhDFIngkdklnM YXqQCYWGU317n1JtfHMAKE5zkvFsOMj+AV8q3USnEKQLcmsL6U4igsmrRH08xvV+AMERz2 f0L64XNe5AlPR9cgsq07gul6CzaL91u8ODBr/39YptmUNb5cp/oyGGZos/a4pgm6HFlnoB aHCVyIOPNBSKeSQ9YehBVY3FhJWcArhI+MfOqxGmXEBBVJYqriHq8FvoOmKuDQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=slmails.com header.s=dkim header.b=ySrznWan; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=quarantine) header.from=slmails.com; arc=pass ("simplelogin.co:s=arc-20230626:i=1") ARC-Seal: i=2; s=key1; d=yhetil.org; t=1708789338; a=rsa-sha256; cv=pass; b=gtL/KJfA6fQB1NFqgQh4sGLG5sPDEZkN7emat28VPGrXfZxtHFupdRi9aHPMicgqRCouy9 khql/ClCdDZpd2E8dyBd+N3C/79iKZz+7nI4rUy0XgYFaZqqpGVALKIrivbo9O4uH2kQRU WrTABlEu3kK/9cAUTyfJwErtJzhZK5Ccy8P9z0VYz8wja5APsPxWWGGhtKU4vJGF24Mfny EU+QQKdR05z3831p6tGyEXPBrljWtOPoZWWTCcM6pJ1louhMtvPD7tEpIkadkcECGlPOYv Ayx7ztc/8aVPr1zu5dr7D79hfzH3A9tdvfJt2C9TuDx6Ni0Wg1sA9441My1MBw== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 88B2224B12 for ; Sat, 24 Feb 2024 16:42:18 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rdu8N-0004Kk-3E; Sat, 24 Feb 2024 10:40:15 -0500 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 1rbQpt-0005a4-Pd for emacs-orgmode@gnu.org; Sat, 17 Feb 2024 14:58:57 -0500 Received: from mail-200165.simplelogin.co ([176.119.200.165]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rbQpr-0001Pg-NS for emacs-orgmode@gnu.org; Sat, 17 Feb 2024 14:58:57 -0500 ARC-Seal: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1708199601; cv=none; b=lvFArFHaaRTFkdj97ifnFybvpLPRWgHoIvm/jxWSlqtqqqarUJLmb/NrmaQqV/XrYQlyQiO0hnAE4uT/u6jZU3AcKEIn2WOlX0PlfnFYv9wChvxcrDBsNZHbNQ6YJ2wCTmbNmB/jYEiuMWa1djusn2eaCuQAh0ghmc5s2tDHkzI0Od1zYKyJF8IB2p5gPUkE0h9HLyI1pT9+BuSoH2zUsYmTvwP1N+vGbO3Es47iGfmNVl9rNwSyEeR++hxPd4kTYD3TKnp9G4qbFdbBs/7rAstaYvz5dqH/HVFjJr8nioD89Rd4k6DyJy8RIfTJZUzXwp8BM918pmtB/AFPn8llSw== ARC-Message-Signature: i=1; a=rsa-sha256; d=simplelogin.co; s=arc-20230626; t=1708199601; c=relaxed/simple; bh=QaZ+4OXLjq3vpgvOWcNUKCeR50U0ew1ytmuT7s8GvbA=; h=Date:Subject:In-Reply-To:From:To:References; b=AwXVbUJ9+WUH5+ZXOO4iyz+lKQqgPnWVVD4+JT/MPJUTay8HBQ86YNlsI9DU8Jm7MIsB7w+wy5SoGdVTgupDvpoOpNGRJrIJA+MT3VasqznozCItC3CaO0MS0Ivgqx0zlkPB9xPKeHGArImfYh31o5elgYwqYjAqMQ4t+/OwCtB3mmbgIafmn1ER+HFgvZNiklMKHOyCrrEvZPAPuhVUuTAVKbom2aiUJaeXISb0QzZ/JuPLNl2+o/4G0QM7SYtoo1Nk+qDGnDgp1GCP+PRwkfMDNiht7+j6kDXXua+1kiBNeVn2vvsmZAHOIvtOSdW7DIMf/H7uZnNarWDBu1id7Q== ARC-Authentication-Results: i=1; mail.protonmail.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=slmails.com; s=dkim; t=1708199601; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=iYpS844AlUXTIk3EzEktNjY7OphCMaOAh4wPbLQ86zw=; b=ySrznWanPcXlS9hXC7Re4dEIvrRXr7JE4KbHCeAodouvrONRgV+0leUnr0ap21ktN9y4Gp y5yiMVYHzuI/h2aXBKqk6MAtSRP+feJoU9lOri1AZNviD8uNsCeZb7tvJf50pLiBrPxmZY CvaALV34hhahcqQlqxaiwyDLsNQ7+58= Content-Type: multipart/alternative; boundary="------------hI08lh2PVqjDM25XfKyP0aNW" Date: Sat, 17 Feb 2024 20:53:16 +0100 MIME-Version: 1.0 Subject: Re: Help: How to change faces of words between parenthesis In-Reply-To: <1BC1TD8r1phw6PP4kop7d27s1Ru-sE_cqTat7Da4jDKdhjl317tDUkGByI-afktvkp-oUv5NTF0Hv2z6crpidhO7ApFXvCHrFxNSKWhgn0A=@williamdenton.org> Content-Transfer-Encoding: 7bit From: Kepa To: emacs-orgmode@gnu.org,william@williamdenton.org Message-ID: <170819960140.7.14335189139030186584.269474478@slmails.com> References: <42e05c0e-a57e-4052-358f-bcb82660fd7e@gmail.com> <1BC1TD8r1phw6PP4kop7d27s1Ru-sE_cqTat7Da4jDKdhjl317tDUkGByI-afktvkp-oUv5NTF0Hv2z6crpidhO7ApFXvCHrFxNSKWhgn0A=@williamdenton.org> X-SimpleLogin-Type: Reply X-SimpleLogin-EmailLog-ID: 269474478 X-SimpleLogin-Want-Signing: yes Received-SPF: pass client-ip=176.119.200.165; envelope-from=sl.lmysyibsgy4tinzugq3tqlbageytembqg4zv2.nbnk2cfn2q4is@slmails.com; helo=mail-200165.simplelogin.co 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, HTML_MESSAGE=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-Mailman-Approved-At: Sat, 24 Feb 2024 10:40:05 -0500 X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -4.49 X-Spam-Score: -4.49 X-Migadu-Queue-Id: 88B2224B12 X-TUID: kzTnTZDt/k3J This is a multi-part message in MIME format. --------------hI08lh2PVqjDM25XfKyP0aNW Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Thanks, William I'm not writing citation. I am studying a text, and it has citations. To delete them all, generates friction, while to let them all be, generates distraction. So with the help of Ihor (and chatgpt) I have added this code to my init file, so they are shadowed: (defun yant/apply-custom-faces ()   (add-to-list 'org-font-lock-extra-keywords '("(\\([A-Z][a-zA-Z]*[^)]*[0-9]\\{4\\}[^)]*\\))" . (0 'shadow prepend)) 'append)) (add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces) About citations: A time ago I learned to use org-ref, but my PC is not very powerful, so Emacs turned to be too slow. Then I stopped working with citations. By now I am adding bibtex properties to my headlines, so in the future I can use org-bibtex and probably I will learn about citation with your tutorials: https://www.miskatonic.org/2024/01/08/org-citations-basic/ Best regards On 14/02/2024 0:33, William Denton wrote: > On Sunday, February 11th, 2024 at 08:57, Ypo wrote: > >> Could it be possible to change the color of words between parentheses? >> >> For example, in: >> >> "mejorar su bienestar psicológico (Cronin et al., 2012; Molero, Fuster, Jetten y Moriano, 2011; Outten, Schmitt, García y Branscombe, 2009; Pérez-Garín et al., 2016)." > For citations in brackets, another approach might be to use Org's citation system with the CSL export processor, and then use András Simonyi's org-cite-csl-activate and customize the face: > > https://github.com/andras-simonyi/org-cite-csl-activate > > That might involve changing your whole citation process, which is a big step, but citations are on my mind so I thought I'd mention it. > > Bill > > -- > William Denton > https://www.miskatonic.org/ > Librarian, artist and licensed private investigator. > Toronto, Canada > > >> >> >> Best regards --------------hI08lh2PVqjDM25XfKyP0aNW Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit

Thanks, William

I'm not writing citation. I am studying a text, and it has citations. To delete them all, generates friction, while to let them all be, generates distraction. So with the help of Ihor (and chatgpt) I have added this code to my init file, so they are shadowed:

(defun yant/apply-custom-faces ()
  (add-to-list 'org-font-lock-extra-keywords '("(\\([A-Z][a-zA-Z]*[^)]*[0-9]\\{4\\}[^)]*\\))" . (0 'shadow prepend)) 'append))
(add-hook 'org-font-lock-set-keywords-hook #'yant/apply-custom-faces)


About citations: A time ago I learned to use org-ref, but my PC is not very powerful, so Emacs turned to be too slow. Then I stopped working with citations.

By now I am adding bibtex properties to my headlines, so in the future I can use org-bibtex and probably I will learn about citation with your tutorials: https://www.miskatonic.org/2024/01/08/org-citations-basic/

Best regards


On 14/02/2024 0:33, William Denton wrote:
On Sunday, February 11th, 2024 at 08:57, Ypo <ypuntot@gmail.com> wrote:

Could it be possible to change the color of words between parentheses?

For example, in:

"mejorar su bienestar psicológico (Cronin et al., 2012; Molero, Fuster, Jetten y Moriano, 2011; Outten, Schmitt, García y Branscombe, 2009; Pérez-Garín et al., 2016)."
For citations in brackets, another approach might be to use Org's citation system with the CSL export processor, and then use András Simonyi's org-cite-csl-activate and customize the face:

https://github.com/andras-simonyi/org-cite-csl-activate

That might involve changing your whole citation process, which is a big step, but citations are on my mind so I thought I'd mention it.

Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada




Best regards
--------------hI08lh2PVqjDM25XfKyP0aNW--