From: Kepa <gnu.cognition199@slmails.com>
To: emacs-orgmode@gnu.org,william@williamdenton.org
Subject: Re: Help: How to change faces of words between parenthesis
Date: Sat, 17 Feb 2024 20:53:16 +0100 [thread overview]
Message-ID: <170819960140.7.14335189139030186584.269474478@slmails.com> (raw)
In-Reply-To: <1BC1TD8r1phw6PP4kop7d27s1Ru-sE_cqTat7Da4jDKdhjl317tDUkGByI-afktvkp-oUv5NTF0Hv2z6crpidhO7ApFXvCHrFxNSKWhgn0A=@williamdenton.org>
[-- Attachment #1: Type: text/plain, Size: 1855 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 3411 bytes --]
prev parent reply other threads:[~2024-02-24 15:42 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-11 13:57 Help: How to change faces of words between parenthesis Ypo
2024-02-11 14:20 ` Ihor Radchenko
2024-02-13 23:33 ` William Denton
2024-02-17 19:53 ` Kepa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=170819960140.7.14335189139030186584.269474478@slmails.com \
--to=gnu.cognition199@slmails.com \
--cc=emacs-orgmode@gnu.org \
--cc=william@williamdenton.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).