From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jens Lechtenboerger Subject: License information for figures in Org mode? Date: Fri, 14 Dec 2018 11:54:04 +0100 Message-ID: <87zht8crar.fsf@wi.uni-muenster.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:39192) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gXl6q-0001qe-QO for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 05:54:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gXl6l-0004hJ-Pf for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 05:54:20 -0500 Received: from zivm-wwu3-1.uni-muenster.de ([128.176.192.17]:55879 helo=zivm-wwu3.uni-muenster.de) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gXl6j-0004ax-Ct for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 05:54:15 -0500 Received: from localhost (D-3140W19.WIWI.UNI-MUENSTER.DE [128.176.158.169]) by udc-mail.uni-muenster.de (Postfix) with ESMTP id D677020ADF3A for ; Fri, 14 Dec 2018 11:54:04 +0100 (CET) Received: from user by localhost with local (Exim 4.84_2) (envelope-from ) id 1gXl6a-0001Lc-Pv for emacs-orgmode@gnu.org; Fri, 14 Dec 2018 11:54:04 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Hi there, I=E2=80=99ve written code based on Org mode to generate Open Educational Resources (OER, learning material under free licenses, typically variants of Creative Commons), which include figures with proper license attribution (source, author, license) [1]. If you ever wanted to publish OER yourself, you are probably aware of the hassle of doing that properly as figures usually do not embed license information, which needs to be obtained and annotated separately. Currently, I use Org macros to embed figures, e.g.: #+BEGIN_SRC org {{{reveallicense("./figures/org/jitt/JiTT-Java-MX.meta","33vh","figure frag= ment appear")}}} #+END_SRC The meta file in the first argument uses an ad-hoc text format, embedding a path for the figure along with licensing information inspired by standard metadata vocabularies, e.g.: #+BEGIN_SRC emacs-lisp ((filename . "./figures/org/jitt/JiTT-Java-MX.png") (licenseurl . "https://creativecommons.org/licenses/by-sa/4.0/") (licensetext . "CC BY-SA 4.0") (cc:attributionName . "Jens Lechtenb=C3=B6rger") (cc:attributionURL . "https://gitlab.com/lechten") (dc:source . "https://gitlab.com/oer/figures/blob/master/org/jitt/JiTT-Jav= a-MX.org") (sourcetext . "GitLab") (dc:title . "Improved Java MX understanding") (texwidth . 0.9) ) #+END_SRC Currently, export to LaTeX (and, thus, PDF) and reveal.js (HTML with RDFa) are supported (templates and the essential function reveal-export-attribution are in [2]). The above macro uses eval, whose syntax differs between released Org mode versions and the master branch, which implies that I need to reconsider my approach. Any ideas or interest how such functionality could be integrated into Org mode in general? Best wishes Jens [1] https://gitlab.com/oer/emacs-reveal [2] https://gitlab.com/oer/emacs-reveal/blob/master/reveal-config.el