Giter Club home page Giter Club logo

Comments (8)

JonatanSahar avatar JonatanSahar commented on June 11, 2024

I've set my citar-templates to

((main . "${author editor:30} ${date year issued:4} ${title:48}")
(suffix . " ${tags keywords keywords:*} ${=key= id:15} ${=type=:12}")
(preview . "${author editor} (${year issued date}) ${title}, ${journal journaltitle publisher container-title collection-title}.\n")
(note . ""))

and it persists. Before I had

(note . "Notes on ${author}, ${title}")

but that had no effect, as the title was taken from the prompt oferred which was populated with the title, in accordance with citar-denote-title-format

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi Jonatan,

I am glad the package is helpful to you.

This behaviour does not occur in my workflow. I use citar-open in most cases.

The citar-denote-create-note function creates new notes. This function does not use citar-templates but invokes the denote function.

My config is here: https://github.com/pprevos/emacs-config/blob/main/emacs-configuration.org

Lets try to isolate the cause.

P:)

from citar-denote.

JonatanSahar avatar JonatanSahar commented on June 11, 2024

that's very strange, so citar-denote-create-note just passes the requested file title, without the #+title? what would make denote do this..? it's also strange the way the whole top of the file gets marked.

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi Jonatan,

The string "#+title:" does not appear anywhere in the citar-denote source code. The package generates notes using the denote function from the Denote package. My package inserts a generated title and keywords with an optional subdirectory. It then adds the reference key to the front matter.

I'll have to check what the Citar templates do. I have never used them before.

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi Jonathan,

Has this issue been resolved?

P:)

from citar-denote.

JonatanSahar avatar JonatanSahar commented on June 11, 2024

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Hi Jonatan,

I am unable to replicate your issues.

What is the value of the denote-prompts variable? Do you use a Denote template?

Also, are you using the latest version of Denote and Citar-Denote?

I have tried to replicate your problems with this minimal install, but everything works fine with new note creation. Could you find which part of your config causes the issue?

;; Minimum citar-denote configuration
;; Assumes all required packages are installed

;; Use-package
(package-initialize)
(require 'use-package)

;; Citar
(use-package citar ;; version 
  :custom
  ;; Location of bibliography
  (citar-bibliography '("~/Documents/library/lucidmanager.bib")))

;; Denote
(use-package denote
  :custom
  ;; Folder where Denote files lives
  (denote-directory "~/Documents/notes/"))

;; Citar-denote
(use-package citar-denote
  :init (citar-denote-mode))

;; Mini Buffer Completion
  ;; Enable vertico
  (use-package vertico
    :init
    (vertico-mode)
    :custom
    (vertico-sort-function 'vertico-sort-history-alpha))

from citar-denote.

pprevos avatar pprevos commented on June 11, 2024

Unable to replicate.

from citar-denote.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.