Re: [org-cite, oc-basic] Citation disambiguation
Hello, András Simonyi writes: > --8<---cut here---start->8--- > First: (Doe, John, 1973a) > > Second: (Doe, John, 1973b) > > Doe, John (1973a). /Minor Work/, Journal of Philosophy. > > Doe, John (1973b). /Magnum Opus/, Journal of Philosophy. > --8<---cut here---end--->8--- > > I think some kind of disambiguation strategy should be implemented for > the basic citation backend to be really usable with the author-year > style. WDYT? Implemented in latest wip-cite-new branch. Regards, -- Nicolas Goaziou
Confusion about ox-slimhtml's inclusion statement
Hi, according to https://github.com/balddotcat/ox-slimhtml, ox-slimhtml got included into the Org project. However, I cannot find ox-slimhtml or any mentions in neither any file nor git log --grep. Was ox-slimhtml actually included in Org's or Emacs' source or is there any plan to include it in future releases? Kind regards, Benjamin
Re: [oc-csl] citations in footnotes
On Fri, Jun 4, 2021 at 9:28 AM Nicolas Goaziou wrote: > OK. Fixed. Thank you. Looks good; thanks! Bruce
Re: viewing appointments while scheduling event
I found something that seems to work. I’m posting it here in case anyone is interested or has better suggestions. First, I understood that my diary file should read: &%%(org-diary) ~/calendriers/victor.org This was clearly explained in the docstring of org-diary (if it was also in the org-mode manual, then I missed it there). With this set, one can hit "!" from the minibuffer while scheduling an event to view the diary for the corresponding date. I found it a bit cumbersome though to hit "!" after each move in the calendar. So I ended up with the following code. Pressing "!" now toggles following the diary when the cursor moves in the calendar. #+begin_src emacs-lisp ; Follow diary from calendar when scheduling events (defvar-local vic/org-read-date-diary t "Whether to display diary for current calendar date when scheduling an event from org-mode") (defun vic/org-read-date-calendar-display-diary ( arg) "Used as advice after `org-eval-in-calendar'. Display diary for that day if `vic/org-read-date-diary' is non nil." (when (and vic/org-read-date-diary ;; Check that the cursor was actually moved ;; Otherwise too many calls (member arg '(((calendar-goto-today)) ((calendar-backward-day 1)) ((calendar-forward-day 1)) ((calendar-backward-week 1)) ((calendar-forward-week 1)) ((calendar-backward-month 1)) ((calendar-forward-month 1)) ((calendar-backward-year 1)) ((calendar-forward-year 1) (org-eval-in-calendar '(diary-view-entries)) (message ""))) (advice-add 'org-eval-in-calendar :after 'vic/org-read-date-calendar-display-diary) (defun vic/org-read-date-toggle-diary () "Toggle following diary from calendar when scheduling events." (interactive) (if vic/org-read-date-diary (setq vic/org-read-date-diary nil) (setq vic/org-read-date-diary t))) (define-key org-read-date-minibuffer-local-map (kbd "!") 'vic/org-read-date-toggle-diary) #+end_src It’s a bit hackish I suppose, partly because I could not find an easy way to advise the functions in org-read-date-minibuffer-local-map which are all lambdas. But it seems to work. I’m still interested in learning from more advanced setups that people might have for the same purpose (which is: display existing events for the date that is currently selected in the org-schedule minibuffer/calendar). Cheers Victor
Re: [oc-csl] citations in footnotes
Hello, "Bruce D'Arcus" writes: > In the approach taken by CSL implementations, and by biblatex > autocite, when dealing with note styles, you have two kinds of > citations in notes: > > 1. what we might call "automatically footnoted"; citations in the > running text that get converted on export to footnotes (or endnotes) > 2. citations within footnotes, that get output as is, without any > footnote wrapping. > > With this input: > > --- > Body text with a citation: [cite:@mcneill2011]. > > Footnote: [fn:1] > > #+print_bibliography: > > * Footnotes > > [fn:1] A commentary, and then a citation: [cite:@low2001]. > - > > ... the citation within the footnote now generates an additional footnote. > > > [3] A commentary, and then a citation:[4]. > > [4] Low, “The Edge and the Center: Gated Communities and the Discourse > of Urban Fear.” > - > > It should not; output should be: > > > [3] A commentary, and then a citation: Low, “The Edge and the Center: > Gated Communities and the Discourse of Urban Fear.” > - OK. Fixed. Thank you. Regards, -- Nicolas Goaziou
Re: [org-cite, oc-csl] setting no-link parameter within document?
Hello, "Bruce D'Arcus" writes: > On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga wrote: >> >> On Friday, 4 Jun 2021 at 14:01, Denis Maier wrote: >> > Ok, I first thought you can just add the configuration to the >> > LATEX_HEADER keywords, but that won't work since everything in there >> > is loaded before hyperref. >> >> I am not sure what is loaded before but most of my documents have >> something along the lines of >> >> #+latex_header: >> \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black} >> >> adjusted for individual documents; this works just fine for me. > > Good to know; thanks! > > I still think it would be valuable to have the option to do something > like this, so it works across export backends. > > #+print_bibliography: :links nil You can use file local variables, or bind keywords. Regards, -- Nicolas Goaziou
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Friday, 4 Jun 2021 at 14:20, Denis Maier wrote: > Ok, that would mean you can load \hypersetup before having > \usepackage{hyperref}. Good if it works. My exported LaTeX file has the usepackage appearing before the hypersetup. Does the order differ for you? Org Latex header lines should be inserted in the exported LaTeX file after the contents of the LaTeX class specifications (org-latex-classes). -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-549-ga0a87d
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Fri, Jun 4, 2021 at 8:51 AM Denis Maier wrote: > > I still think it would be valuable to have the option to do something > > like this, so it works across export backends. > > > > #+print_bibliography: :links nil > > Turns out, such an option already exists, at least for biblatex: > \usepackage[hyperref=false]{biblatex} > > IIRC, it is possible to pass options to the biblatex package, right? As > this is mostly relevant for biblatex I assume this here does the job. What is "this"? In any case, to restate: Citeproc-el has a "no-links" parameter that can currently be controlled with 'org-cite-csl-link-cites'. By default it is set to t, which means one gets linked citations in all output formats. This is fine and good. I'm just asking to be able to do that at the document level. That keyword could also be recognized by oc-biblatex too, though I'm not specifically suggesting that ATM. Bruce
Re: [org-cite, oc-csl] setting no-link parameter within document?
Am 04.06.2021 um 14:24 schrieb Bruce D'Arcus: On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga wrote: On Friday, 4 Jun 2021 at 14:01, Denis Maier wrote: Ok, I first thought you can just add the configuration to the LATEX_HEADER keywords, but that won't work since everything in there is loaded before hyperref. I am not sure what is loaded before but most of my documents have something along the lines of #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black} adjusted for individual documents; this works just fine for me. Good to know; thanks! I still think it would be valuable to have the option to do something like this, so it works across export backends. #+print_bibliography: :links nil Turns out, such an option already exists, at least for biblatex: \usepackage[hyperref=false]{biblatex} IIRC, it is possible to pass options to the biblatex package, right? As this is mostly relevant for biblatex I assume this here does the job. Denis
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Fri, Jun 4, 2021 at 8:18 AM Eric S Fraga wrote: > > On Friday, 4 Jun 2021 at 14:01, Denis Maier wrote: > > Ok, I first thought you can just add the configuration to the > > LATEX_HEADER keywords, but that won't work since everything in there > > is loaded before hyperref. > > I am not sure what is loaded before but most of my documents have > something along the lines of > > #+latex_header: > \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black} > > adjusted for individual documents; this works just fine for me. Good to know; thanks! I still think it would be valuable to have the option to do something like this, so it works across export backends. #+print_bibliography: :links nil Bruce
Re: [org-cite, oc-csl] setting no-link parameter within document?
On Friday, 4 Jun 2021 at 14:01, Denis Maier wrote: > Ok, I first thought you can just add the configuration to the > LATEX_HEADER keywords, but that won't work since everything in there > is loaded before hyperref. I am not sure what is loaded before but most of my documents have something along the lines of #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black} adjusted for individual documents; this works just fine for me. -- : Eric S Fraga via Emacs 28.0.50, Org release_9.4.6-549-ga0a87d
Re: [org-cite, oc-csl] setting no-link parameter within document?
Am 04.06.2021 um 14:18 schrieb Eric S Fraga: On Friday, 4 Jun 2021 at 14:01, Denis Maier wrote: Ok, I first thought you can just add the configuration to the LATEX_HEADER keywords, but that won't work since everything in there is loaded before hyperref. I am not sure what is loaded before but most of my documents have something along the lines of #+latex_header: \hypersetup{colorlinks=true,citecolor=red!80!black,urlcolor=blue!60!black} adjusted for individual documents; this works just fine for me. Ok, that would mean you can load \hypersetup before having \usepackage{hyperref}. Good if it works. Denis
Re: [org-cite, oc-csl] setting no-link parameter within document?
Am 04.06.2021 um 13:50 schrieb Bruce D'Arcus: I see the processor has a org-cite-csl-link-cites defcustom to set this globally, but can one set it at the document level? Further explanation: The default hyperref settings in latex export in general are too much, with boxes everywhere and garish colors. When coupled with a note style with bibliography, like chicago-note-bibliography-16th-edition.csl, it's overwhelming, Notably each footnoted text becomes linked. And in that case, the linked data is redundant. Example and screenshots here: https://github.com/andras-simonyi/citeproc-el/issues/24 So I can imagine a user generally leaving the defcustom set to true, but on individual documents (like with the chicago example) wanting to turn it off. Note that one can, per the thread I link to above, turn off links, or modify their colors, using hyperref. But that's specific to the latex export, and I don't think (?) there's an easy way to set that at the document level. Ok, I first thought you can just add the configuration to the LATEX_HEADER keywords, but that won't work since everything in there is loaded before hyperref. So, I guess a LATEX_HYPERSETUP could make sense? In the meantime users can just use a hyperref.cfg file to store their settings. Denis Bruce
[org-cite, oc-csl] setting no-link parameter within document?
I see the processor has a org-cite-csl-link-cites defcustom to set this globally, but can one set it at the document level? Further explanation: The default hyperref settings in latex export in general are too much, with boxes everywhere and garish colors. When coupled with a note style with bibliography, like chicago-note-bibliography-16th-edition.csl, it's overwhelming, Notably each footnoted text becomes linked. And in that case, the linked data is redundant. Example and screenshots here: https://github.com/andras-simonyi/citeproc-el/issues/24 So I can imagine a user generally leaving the defcustom set to true, but on individual documents (like with the chicago example) wanting to turn it off. Note that one can, per the thread I link to above, turn off links, or modify their colors, using hyperref. But that's specific to the latex export, and I don't think (?) there's an easy way to set that at the document level. Bruce
Re: [bug?] org-link-set-parameters: when `:display 'full', link face is applied only in description part
Hello again, To simplify what I mentioned in my previous message, the bug is simply reproducible with any link, when running `org-toggle-link-display'. I'm not sure, but I would say it was introduced in the commit: 8bdcf51ac lisp/org.el: Update previews correctly when color chnages Best regards, Juan Manuel Juan Manuel Macías writes: > Hi all, > > In master: > > if I do: > > (org-link-set-parameters "foo" >:display 'full >:face '(:foreground "chocolate" :weight bold > :underline t)) > > and then: > > [[foo:target][description]] > > the face parameter is only applied in the description part. > > Expected result: shouldn't the face be applied to the entire link? > > Best regards, > > Juan Manuel >
Re: suggestion to change default org-latex-pdf-process to latexmk
Tim Cross writes: > Scott Randby writes: > >> On 6/2/21 8:07 AM, Bruce D'Arcus wrote: >>> On Wed, Jun 2, 2021 at 4:28 AM Tim Cross wrote: >>> The more I think about it, I think the best solution would be to update the code which sets the default and have it check for latexmk. If it is found, set it as the default and if it is not found, set the existing default. This would have minimum impact on users and allow those who have installed latexmk to get the benefits while not forcing those who don't need it to install it. >>> If this were possible, I agree it would be the best approach. >> >> Perhaps this is a stupid question, but what about the case in which TeX is >> installed after Emacs is installed? I do this sometimes. >> > > No impact. The code is initialised each time you load org. This is the point I missed. Sounds like a good solution to me then. Best wishes, Arne -- Unpolitisch sein heißt politisch sein ohne es zu merken signature.asc Description: PGP signature
Bug: Org Agenda [9.4.6 (9.4.6-gab9f2a @ /home/rh-2015/.emacs.d/elpa/org-9.4.6/)]
A friendly hello, since the change to Org mode version 9.4.6 (9.4.6-gab9f2a @ /home/rh-2015/.emacs.d/elpa/org-9.4.6/) the Org-Agenda is not produced. Let's say your org-file 'Test.org' consists of this *Test1:test: DEADLINE: <2021-06-04 Fr 13:00> and you issue the command to generate the Org Agenda, everything works fine. Howerver, if your org-file is * TODO Test1 :test: DEADLINE: <2021-06-04 Fr 13:00> i.e. has a TODO-tag, the Org Agenda is not produced. Best regards Reiner Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See https://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org mailing list. Emacs : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.14) of 2020-03-26, modified by Debian Package: Org mode version 9.4.6 (9.4.6-gab9f2a @ /home/rh-2015/.emacs.d/elpa/org-9.4.6/) current state: == (setq org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-link-shell-confirm-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-reveal-root "file:///home/rh-2015/reveal.js" org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function org-odt-format-headline-function 'org-odt-format-headline-default-function org-agenda-files '("~/Test.org") org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-startup-folded t org-mode-hook '(abbrev-mode #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-show-all append local] 5] #[0 "\300\301\302\303\304$\207" [add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-finalize-agenda-hook '(org-agenda-to-appt) org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"] org-archive-hook '(org-attach-archive-delete-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-agenda-before-write-hook '(org-agenda-add-entry-text) org-metaup-hook '(org-babel-load-in-session-maybe) org-bibtex-headline-format-function #[257 "\300\236A\207" [:title] 3 "\n\n(fn ENTRY)"] org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"] org-babel-pre-tangle-hook '(save-buffer) org-tab-first-hook '(org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-babel-load-languages '((R . t) (shell . t)) org-html-creator-string "" org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"] org-agenda-loop-over-headlines-in-active-region nil org-occur-hook '(org-first-headline-recenter) org-export-coding-system 'utf-8 org-structure-template-alist '(("n" . "notes") ("a" . "export ascii") ("c" . "center") ("C" . "comment") ("e" . "example") ("E" . "export") ("h" . "export html") ("l" . "export latex") ("q" . "quote") ("s" . "src") ("v" . "verse")) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-speed-command-hook '(org-speed-command-activate org-babel-speed-command-activate) org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function org-export-before-parsing-hook '(org-attach-expand-links) org-font-lock-set-keywords-hook '(org-drill-add-cloze-fontification) org-confirm-shell-link-function 'yes-or-no-p org-link-parameters '(("attachment" :follow org-attach-follow :complete org-attach-complete-link) ("id" :follow org-id-open) ("image" :export (closure (t) (path desc backend) (cond ((eq (quote md) backend) (let* ((fname (file-name-nondirectory path)) (img-data (base64-encode-string (encode-coding-string (let ((temp-buffer (generate-new-buffer " *temp*"))) (save-current-buffer (set-buffer temp-buffer) (unwind-protect (progn (insert-file-contents path) (buffer-string)) (and (buffer-name temp-buffer) (kill-buffer temp-buffer))) ) )
routine "org-vm-select-message" in "ol-vm.el"
I am using: Org mode version 9.4.6 (9.4.6-2-g21eb69-elpa @ /Users/alanwehmann/.emacs.d/elpa/org-20210524/) GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12 VM version is: 8.2.0b org-plus-contrib-20210531 package I have found emails (in VM) which have e.g. the following lines in them: Message-ID: i.e. a line break after the colon. This cannot be matched by the following code from function "org-vm-select-message" found in "ol-vm.el" from "org-plus-contrib-20210531": (if (not (re-search-forward (concat "^" "message-id: *" (regexp-quote message-id (error "Could not find the specified message in this folder")) The following change to this code works: (if (not (re-search-forward (concat "^" "message-id:\\s-*" (regexp-quote message-id (error "Could not find the specified message in this folder")) since "\\s-" matches white space, including line breaks. Alan Wehmann alan.wehm...@gmail.com
viewing appointments while scheduling event
When scheduling an event with C-c C-s (org-schedule) a calendar pops up. While navigating that calendar to choose a date, is it possible to view the events already scheduled in the agenda for that date? I found this answer to a similar question: https://emacs.stackexchange.com/questions/30512/show-tasks-during-orgmode-scheduling It says that pressing "!" should pop to the diary file. I don’t use the diary file, all my appointments are in org-mode files. The answer mentions adding the following line to the diary file: %%(org-diary :timestamp :sexp) In my init file I have set: (setq diary-file "~/calendriers/diary") (setq calendar-mark-diary-entries-flag t) And in ~/calendriers/diary I have just the following line: %%(org-diary :timestamp :sexp) This does work. When trying to schedule an event the calendar is not opened any more, I just get a message "End of buffer". I suppose that it’s not the correct way to write the diary file, but I’m unfamiliar with the diary syntax and could find no documentation for the particular feature which %%(org-diary :timestamp :sexp) might provide. Does anyone have a working setup for this? Regards, Victor