Org-Mode Citations with Ivy-Bibtex

John Kitchin’s org-ref is a great way to handle citations in Emacs’ org-mode. It uses helm-bibtex to search for and select citatitions to insert, but does not support the corresponding ivy version. Org-ref does have an ivy search function, but it is not nearly as good as ivy-bibtex. Ivy-bibtex will insert citations into org documents, but its default format is not the same as it is in org-ref.

To fix that, I added the following to my init file:

(defun bibtex-completion-format-citation-orgref (keys)
  "Formatter for org-ref citations."
  (let* ((prenote  (if bibtex-completion-cite-prompt-for-optional-arguments (read-from-minibuffer "Prenote: ") ""))
         (postnote (if bibtex-completion-cite-prompt-for-optional-arguments (read-from-minibuffer "Postnote: ") "")))
(if (and (string= "" prenote) (string= "" postnote))
                (format "%s" (s-join "; " (--map (concat "autocite:" it) keys)))
    (format "[[%s][%s::%s]]"  (s-join "; " (--map (concat "autocite:" it) keys)) prenote postnote))))

This prompts for both pre and post-note text when selecting the citation. Here are the org-mode citations that are produced:

  • Citation only: autocite:lewisCounterfactuals1973
  • Citation with post-text: [[autocite:lewisCounterfactuals1973][::25]]
  • Citation with pre-text: [[autocite:lewisCounterfactuals1973][As seen in::]]
  • Citation with both pre and post-text: [[autocite:lewisCounterfactuals1973][As seen in::25]]

When exported, these produce the following LaTeX code:

\autocite{lewisCounterfactuals1973}

\autocite[][25]{lewisCounterfactuals1973}

\autocite[As seen in][]{lewisCounterfactuals1973}

\autocite[As seen in][25]{lewisCounterfactuals1973}

I use Chicago parenthetical references – so these compile like this:

  • (Lewis 1973)
  • (Lewis 1973, 25)
  • (As seen in Lewis 1973)
  • (As seen in Lewis 1973, 25)

Prayer for Trinity Sunday

Triune God,

In those times
that we feel alone,
lost in the crowd,
and disconnected
from those around us,
we take comfort in knowing
that at the center of reality
is an unending community of love,
and that we, your children,
have been invited into
the eternal fellowship
that is the
Father,
Son,
and Holy Spirit,
three persons,
but one God,
forever and ever.

Amen

Insurance Update

I feel a bit better today after a close reading of both the Aetna and the AFLAC policies. It seems that Aetna just wants to know if there are any other policies that could provide coverage. Why they want to know that now, but didn’t earlier, I have no idea.

So, I am hopeful – but I’ll know when I call tomorrow.

UPDATE: I gave the Aetna representative the number for our AFLAC policy – she confirmed that Aetna was primary and AFLAC secondary, and told me that the claims would be resubmitted. Sometimes, things go well, even when dealing with insurance.

Insurance Woes

I have often wondered how people with no insurance survive a serious illness. Now, I’m beginning to wonder how people who do have insurance can survive a serious illness.

Last week, I had a small surgical procedure to determine if the bladder needed to be removed or not. Yesterday, I got an email from Aetna saying there was a response on a new claim. When I opened the site, there was a flag by the claim saying that additional information was required. When I clicked on that link, there was no description of an requested information, just a statement that, of the $19,768.45 billed by the provider, Aetna would pay $0, and I would pay the remaining $19,768.45.

Why have I been paying ever more expensive premiums?

Cancer

In March, I started to notice blood in my urine. At Sheri’s insistence, I made an appointment to see our family doctor. After waiting two weeks for approval from the insurance company, I was referred to a urologist, Dr. Archer in Oklahoma City. After another two weeks of waiting for approval, the urologist performed a procedure to see if anything was wrong with the bladder. He noticed tumors, and diagnosed it as an invasive bladder cancer.

He then referred me to Dr. Stratton at the Stephenson Cancer Center at OU. Dr. Stratton scheduled the same procedure, since Dr. Archer was not able to go very deep. He told us that the treatment options were dependent on the depth of the tumor. If the tumor extended into the muscle, then the only option is to remove the bladder. If not, then the cancer is treated with BCG, the vaccine for tuberculosis.

The results were good – I do not now need to have the bladder removed, and I have been admitted to a clinical trial of BCG. My first treatment is on Thursday, June 6.