Thanks, that works perfectly. I made a simple summary of this thread on my site: http://kdr2.com/tech/emacs/1805-approach-org-ref-code-to-text.html Greetings. ZHUO QL (KDr2, http://kdr2.com) On Thursday, May 17, 2018, 11:11:39 AM GMT+8, John Kitchin wrote: I believe you can do that with the Library of Babel (https://orgmode.org/worg/org-contrib/babel/library-of-babel.html) John ----------------------------------- Professor John Kitchin  Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803@johnkitchin http://kitchingroup.cheme.cmu.edu