Transform citekeys to find correct notes and library files #844
Replies: 3 comments 6 replies
-
Been awhile since I've worked with this code, so can't point you to anything specific. But you'd want to look in Am not sure if we allow that sort of configurability, though; we've always assumed key and file name match. You'd likely have to somehow transform the key before running the functions to get those files (citar-file--get-library-files might be worth looking at). But please report back what you figure out. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the hint! I tried to redefine how the
|
Beta Was this translation helpful? Give feedback.
-
I'm typing from my phone so code is hard, but string-replace returns a new
string instead of modifying the string you pass it. Your code is looping
over the list of strings, modifying each of them, but not doing anything
with the result.
You might want to use a mapcar instead of dolist.
…On Tue, Oct 22, 2024, 4:10 a.m. Till A. Heilmann ***@***.***> wrote:
According to the docstring of string-replace, yes. But that should not
matter in my case because there is only ever one colon (to be replaced by a
period) in a citekey. If
(dolist (item keys)
(string-replace ":" "." item))
looks correct to you (instead of a simple keys in above code), then there
maybe something else wrong with my setup.
—
Reply to this email directly, view it on GitHub
<#844 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEG76HEQR6KUITXPDX2TTLZ4YQCNAVCNFSM6AAAAABQJYBJD2VHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMBRGU2DANQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
My BibTeX keys include a colon to join author name and publication year, like this:
@seideman.j:1999
In associated note and library files, the colon is substituted by a period, like this:
~/notes/seideman.j.1999.txt
and~/pdf/seideman.j.1999.pdf
What is the right place in citar functions and variables to make the according changes so the package finds the right .txt and .pdf files?
Beta Was this translation helpful? Give feedback.
All reactions