#StackBounty: #org-mode #latex #bibtex How to generate cited references with biber and xelatex

Bounty: 50

I would like to generate cited references and bibliography using biber and xelatex through org mode, but have not figured out how to do so.

I have to use xelatex because I am working with Chinese articles.

Sample Document:

#+TITLE: How to Automate Footnote Citations in Org-Mode
#+AUTHOR: Sati Bodhi

* Cite Test

This is a statement with a footnote reference. [fn:2a55720f42c74dd:This is the footnote with a citation that is supposed to be formatted in Chicago-fullnote style. cite:Rogersbecoming1995。]


bibliography:thesis.bib
bibliographystyle:chicago-notes

Bibtex Entry:

@book{Rogersbecoming1995,
  title = {On Becoming a Person: A Therapist's View of Psychotherapy},
  author = {Rogers, Carl R.},
  year = {1995},
  publisher = {{Houghton Mifflin}},
  address = {{Boston, New York}},
  abstract = {Collection of essays by American psychotherapist Carl Rogers written between 1951 and 1961, in which he put forth his ideas about self-esteem, flexibility, respect for self, and acceptance of others.},
  isbn = {9780395755310},
  keywords = {Client-centered psychotherapy},
  language = {eng},
  place = {;}
}

Configuration:

(setq org-latex-classes
      '(("article"
         "
%\documentclass[12pt,a4paper]{article}
\documentclass[12pt,a4paper]{ctexart}

\usepackage{xeCJK}
\usepackage{zhnumber} % package for Chinese formatting of date time (use /zhtoday)
%\usepackage[yyyymmdd]{datetime} % set date time to numeric

% For Generation of Citations and Bibliography
\usepackage[backend=biber]{biblatex-chicago}

% Set Font.
\setsansfont{Times New Roman}
\setmainfont{Calibri} % Set serifed font to Calibri. Originally set to 'Times New Roman', but it cannot display certain characters such as ①②③.
\setCJKmainfont{Songti TC}
\setCJKsansfont{Kaiti TC} % Set Chinese font. NOTE: Remember to append CJK before of the font class. CJK HAS to be there for the font to show.
\setCJKmonofont{PingFang TC}

% Set title font.
\renewcommand{\maketitlehooka}{\sffamily}

% Set quotation font.
\usepackage{etoolbox}
\newCJKfontfamily\quotefont{Kaiti TC}
\AtBeginEnvironment{quote}{\quotefont\normalsize}

% Tweak default settings.
\renewcommand{\baselinestretch}{1.2} % Set line width.
%\renewcommand{\contentsname}{\hfill\bfseries\Large 目\hspace{0.5cm} 次\hfill} % Translate content page title to Chinese.
%\renewcommand{\cftaftertoctitle}{\hfill} % Center contents title.

% For text-boxes

\usepackage{mdframed}
\BeforeBeginEnvironment{minted}{\begin{mdframed}}
\AfterEndEnvironment{minted}{\end{mdframed}}

% For tables

\usepackage{float}
\restylefloat{table}

% [FIXME] ox-latex 的設計不良導致 hypersetup 必須在這裡插入
\usepackage{hyperref}
\hypersetup{
  colorlinks=true, %把紅框框移掉改用字體顏色不同來顯示連結
  linkcolor=[rgb]{0,0.37,0.53},
  citecolor=[rgb]{0,0.47,0.68},
  filecolor=[rgb]{0,0.37,0.53},
  urlcolor=[rgb]{0,0.37,0.53},
  pagebackref=true,
  linktoc=all,}
"
         ("\section{%s}" . "\section*{%s}")
         ("\subsection{%s}" . "\subsection*{%s}")
         ("\subsubsection{%s}" . "\subsubsection*{%s}")
         ("\paragraph{%s}" . "\paragraph*{%s}")
         ("\subparagraph{%s}" . "\subparagraph*{%s}"))
        ))

(setq org-latex-with-hyperref t)

(setq org-latex-default-packages-alist
      '(("" "hyperref" nil)
        ("" "graphicx" t)
        ("" "longtable" nil)
        ("" "wrapfig" nil)
        ("" "rotating" nil)
        ("normalem" "ulem" t)
        ("" "amsmath" t)
        ("" "textcomp" t)))

;; Use XeLaTeX to export PDF in Org-mode
(setq org-latex-pdf-process
      '("xelatex -interaction nonstopmode -output-directory %o %f"
        "xelatex -interaction nonstopmode -output-directory %o %f"
        "xelatex -interaction nonstopmode -output-directory %o %f"))

(require 'ox-latex)
(setq org-latex-inputenc-alist '(("utf8" . "utf8x")))

;; Use XeLaTeX to compile in Latex-mode

(setq tex-compile-commands '(("xelatex %r")))
(setq tex-command "xelatex")
(setq-default TeX-engine 'xetex)

Generated Bibliography and Footnote:

Bibliography

Footnote


Get this bounty!!!

#StackBounty: #org-mode #org-agenda Copy the extra information lines from *Org Agenda*

Bounty: 50

It’s somehow strange.

In the *Org Agenda* you can get extra information with v c (time gaps) or v E (some entry text).

What I want is just to copy the extra information (text lines) with the rest of the text, so just to copy all the text from the *Org Agenda* buffer — nothing else.

I have tried org-copy-visible or even C-x C-w; org ignores the extra information and doesn’t copy them.
C-x h also ignores the extra information lines.

How can I copy the whole buffer text?


Get this bounty!!!

#StackBounty: #org-mode #evil Archive all marked entries with evil-mode

Bounty: 100

I recently switched to evil mode and cannot figure out how to archive all marked entries at once.

The way I did it earlier, when I was in a list seeing the candidate entries for archiving I pressed * to mark them all (this works) and then B $ to archive them in bulk. But now B is a motion command and means bo back a word. Is there an evil-mode equivalent of B $? I know that dA stands for $ but I cannot figure out how to do this for all marked entries.


Get this bounty!!!

#StackBounty: #org-mode org-set-effort fast effort selection?

Bounty: 50

I wonder if there is any easy way to configure effort selection dialogue to allow selecting effort value from the list using single key.

Currently I have configured Effort_ALL in the following way:

(add-to-list 'org-global-properties
         '("Effort_ALL". "0:05 0:15 0:30 1:00 2:00"))

and am using org-set-effort to pop up the dialogue. However the dialogue that it shows is just a regular narrow-list-of-candidates dialogue which takes multiple keystrokes (either arrows or partial string followed by return) to select the option I need.

What I would rather have instead is a org-fast-tag-selection-single-key-style dialogue that allows to select an entry from the list by just pressing a single button (e.g. 1, 2, 3, etc).

I’ve tried to look at the code for the org-set-effort and google for the ivy-like list-narrowing modules, but so far wasn’t able to find much.


Get this bounty!!!

#StackBounty: #org-mode column view doesn't tabulate all headings and it modifies buffer in org mode

Bounty: 50

Running column view (C-c C-x C-c) shouldn’t change buffer at all. However, in some cases, I found it adds extra whitespaces in some locations in the buffer. In the example in the snapshot, the column view, for unknown reason, did not tabulate the heading Known Issues and it modified the buffer (the 3 whitespaces added after the heading as I show in red in the git diff in the screenshot). Does anyone know why column view doesn’t tabulate all headings and why it modifies a buffer? This is very undesirable.

enter image description here

enter image description here

The org file is available here for testing: https://www.dropbox.com/s/uj5vnzpn3ls4pd2/foo2.org?dl=0

And I am using:

  • Org mode version 9.3.6 (9.3.6-25-g685b2c-elpa @ /Users/john/.emacs.d/elpa/org-20200330/)

  • GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02

  • Mac OS Catalina


Get this bounty!!!

#StackBounty: #org-mode column view doesn't tabulate all headings and it modifies buffer in org mode

Bounty: 50

Running column view (C-c C-x C-c) shouldn’t change buffer at all. However, in some cases, I found it adds extra whitespaces in some locations in the buffer. In the example in the snapshot, the column view, for unknown reason, did not tabulate the heading Known Issues and it modified the buffer (the 3 whitespaces added after the heading as I show in red in the git diff in the screenshot). Does anyone know why column view doesn’t tabulate all headings and why it modifies a buffer? This is very undesirable.

enter image description here

enter image description here

The org file is available here for testing: https://www.dropbox.com/s/uj5vnzpn3ls4pd2/foo2.org?dl=0

And I am using:

  • Org mode version 9.3.6 (9.3.6-25-g685b2c-elpa @ /Users/john/.emacs.d/elpa/org-20200330/)

  • GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02

  • Mac OS Catalina


Get this bounty!!!

#StackBounty: #org-mode column view doesn't tabulate all headings and it modifies buffer in org mode

Bounty: 50

Running column view (C-c C-x C-c) shouldn’t change buffer at all. However, in some cases, I found it adds extra whitespaces in some locations in the buffer. In the example in the snapshot, the column view, for unknown reason, did not tabulate the heading Known Issues and it modified the buffer (the 3 whitespaces added after the heading as I show in red in the git diff in the screenshot). Does anyone know why column view doesn’t tabulate all headings and why it modifies a buffer? This is very undesirable.

enter image description here

enter image description here

The org file is available here for testing: https://www.dropbox.com/s/uj5vnzpn3ls4pd2/foo2.org?dl=0

And I am using:

  • Org mode version 9.3.6 (9.3.6-25-g685b2c-elpa @ /Users/john/.emacs.d/elpa/org-20200330/)

  • GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02

  • Mac OS Catalina


Get this bounty!!!

#StackBounty: #org-mode column view doesn't tabulate all headings and it modifies buffer in org mode

Bounty: 50

Running column view (C-c C-x C-c) shouldn’t change buffer at all. However, in some cases, I found it adds extra whitespaces in some locations in the buffer. In the example in the snapshot, the column view, for unknown reason, did not tabulate the heading Known Issues and it modified the buffer (the 3 whitespaces added after the heading as I show in red in the git diff in the screenshot). Does anyone know why column view doesn’t tabulate all headings and why it modifies a buffer? This is very undesirable.

enter image description here

enter image description here

The org file is available here for testing: https://www.dropbox.com/s/uj5vnzpn3ls4pd2/foo2.org?dl=0

And I am using:

  • Org mode version 9.3.6 (9.3.6-25-g685b2c-elpa @ /Users/john/.emacs.d/elpa/org-20200330/)

  • GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 Version 10.14.3 (Build 18D109)) of 2019-09-02

  • Mac OS Catalina


Get this bounty!!!