Re: appearance of list as results from evaluating code blocks

2021-06-24 Thread Johannes Brauer
Hi John!

There is no „return“ in Lisp languages. The return value of (list 1 2 3) is (1 
2 3). Clojure is a Lisp language similar to Elisp. So

#+begin_src clojure :results code
(list 1 2 (+ 1 2))
  #+end_src

should work for Clojure as it does für Elisp.

Johannes

Am 24.06.2021 um 18:28 schrieb John Kitchin 
mailto:jkitc...@andrew.cmu.edu>>:

That probably means the clojure block is returning nil as the value. I don't 
know what it means to return something in clojure, but here is what you have to 
do with Python, for example.

#+BEGIN_SRC python :results value code
[1, 2, 3]
#+END_SRC

#+RESULTS:
#+begin_src python
None
#+end_src

You have to explicitly return a value to see it.

#+BEGIN_SRC python :results value code
return [1, 2, 3]
#+END_SRC

#+RESULTS:
#+begin_src python
[1, 2, 3]
#+end_src


John

---
Professor John Kitchin (he/him/his)
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu<http://kitchingroup.cheme.cmu.edu/>



On Thu, Jun 24, 2021 at 10:31 AM Johannes Brauer 
mailto:bra...@nordakademie.de>> wrote:
What about :results code
The default is a elisp code block so you get syntax coloring

That works fore lisp:

  #+begin_src elisp :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src elisp
  (1 2 3)
  #+end_src

But with Clojure I get

  #+begin_src clojure :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src clojure
  nil
  #+end_src




Re: appearance of list as results from evaluating code blocks

2021-06-24 Thread Johannes Brauer
What about :results code
The default is a elisp code block so you get syntax coloring

That works fore lisp:

  #+begin_src elisp :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src elisp
  (1 2 3)
  #+end_src

But with Clojure I get

  #+begin_src clojure :results code
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src clojure
  nil
  #+end_src



Re: appearance of list as results from evaluating code blocks

2021-06-24 Thread Johannes Brauer
Hi Rodrigo!

Thanks a lot for the detailed information. In the meantime I’ve studied the 
org-mode manual a bit more closely (perhaps, I should have done that before 
asking my question …) and found the following interesting possibilitiy:

  #+begin_src clojure :results verbatim :wrap src clojure
(list 1 2 (+ 1 2))
  #+end_src

  #+RESULTS:
  #+begin_src clojure
  (1 2 3)
  #+end_src

Johannes

> Am 23.06.2021 um 23:14 schrieb Rodrigo Morales :
> 
> Johannes Brauer  writes:
> 
> Johannes Brauer writes:
> 
>> thanks, that works
> 
> While that works, you might be interested in ":results verbatim" instead
> of ":results raw" since when using "verbatim" the results are replaced
> when re-evaluating the code block. See minimal working example below.
> 
> After pressing =C-c C-c= five times
> 
> #+BEGIN_SRC elisp :results raw
> (list 1 2 3)
> #+END_SRC
> 
> #+RESULTS:
> (1 2 3)
> (1 2 3)
> (1 2 3)
> (1 2 3)
> (1 2 3)
> 
> After pressing =C-c C-c= five times
> 
> #+BEGIN_SRC elisp :results verbatim
> (list 1 2 3)
> #+END_SRC
> 
> #+RESULTS:
> #+begin_example
> (1 2 3)
> #+end_example
> 
> PS: If you haven't customized Org Mode enough, you might get a ":" as
> the prefix of some of your results.
> 
> #+BEGIN_SRC elisp :results verbatim
> (list 1 2 3)
> #+END_SRC
> 
> #+RESULTS:
> : (1 2 3)
> 
> As can be seen above, the results are not enclosed within
> #+begin_example and #+end_example. To enable this, set the following.
> 
> #+BEGIN_SRC elisp
> (setq org-babel-min-lines-for-block-output 0)
> #+END_SRC
> 
> Once you set the option shown above, you might get the following when
> evaluating the code block.
> 
> #+BEGIN_SRC elisp :results verbatim
> (list 1 2 3)
> #+END_SRC
> 
> #+RESULTS:
> #+begin_example
> (1 2 3)
> #+end_example



Re: appearance of list as results from evaluating code blocks

2021-06-23 Thread Johannes Brauer
Hi Juan Manuel,

thanks, that works

Best regards
Johannes

> Am 23.06.2021 um 21:43 schrieb Juan Manuel Macías :
> 
> Hi Johannes,
> 
> Johannes Brauer writes:
> 
>> Hi!
>> Evaluating a code block containing a list expression using org-babel for 
>> elisp or Clojure, for example
>> (list 1 2 3)
>> I get
>> #+RESULTS:
>>  | 1 | 2 | 3 |
>> I would prefer
>> #+RESULTS:
>>  ( 1  2  3 )
>> 
>> Is it possible to get this.
> 
> Try
> 
> #+begin_src emacs-lisp :results raw 
> (list 1 2 3)
> #+end_src
> 
> #+RESULTS:
> (1 2 3)
> 
> Best regards,
> 
> Juan Manuel 
> 



appearance of list as results from evaluating code blocks

2021-06-23 Thread Johannes Brauer
Hi!
Evaluating a code block containing a list expression using org-babel for elisp 
or Clojure, for example
(list 1 2 3)
I get
 #+RESULTS:
  | 1 | 2 | 3 |
I would prefer
 #+RESULTS:
  ( 1  2  3 )

Is it possible to get this.

I am using
Aquamacs 3.5nightly  GNU Emacs 25.3.50.1 (x86_64-apple-darwin19.6.0, NS 
appkit-1894.60 Version 10.15.7 (Build 19H2))
macOs 11.4
Org mode version 9.3.7

Johannes




Bug: html export fails after upgrading to 9.4 [9.4.1 (9.4.1-elpa @ /Users/jb/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20201212/)]

2020-12-12 Thread Johannes Brauer
Hi!

Trying to export a buffer to html containing

#+TITLE: Titel
* header

yields the error message:
apply: Wrong type argument: listp, #("Titel" 0 5 (:parent (#0)))

What can I do?

Johannes

Emacs  : Aquamacs 3.5nightly  GNU Emacs 25.3.50.1 (x86_64-apple-darwin19.6.0, 
NS appkit-1894.60 Version 10.15.7 (Build 19H2))
dated 2020-12-12 rev. 29cda0694004ad1fc615be7b1553fe7b9bb884ca
Package: Org mode version 9.4.1 (9.4.1-elpa @ 
/Users/jb/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20201212/)

current state:
==
(setq
org-tab-first-hook '(org-babel-hide-result-toggle-maybe 
org-babel-header-arg-expand)
org-shiftleft-final-hook '(windmove-left)
org-latex-default-packages-alist '(("AUTO" "inputenc" t ("pdflatex")) ("T1" 
"fontenc" t ("pdflatex")) ("" "graphicx" t nil)
("" "grffile" t nil) ("" "longtable" nil 
nil) ("" "wrapfig" nil nil) ("" "rotating" nil nil)
("normalem" "ulem" t nil) ("" "amsmath" t 
nil) ("" "textcomp" t nil) ("" "amssymb" t nil)
("" "capt-of" nil nil) ("greek, ngerman" 
"babel" t nil) ("" "hyperref" nil nil))
org-speed-command-hook '(org-speed-command-activate 
org-babel-speed-command-activate)
org-clock-display-default-range 'untilnow
org-re-reveal-revealjs-version "4"
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-latex-format-inlinetask-function 
'org-latex-format-inlinetask-default-function
org-confirm-shell-link-function 'yes-or-no-p
org-image-actual-width nil
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-agenda-loop-over-headlines-in-active-region nil
org-latex-pdf-process '("pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f" "%bibtex %b"
 "pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f"
 "pdflatex -shell-escape -interaction nonstopmode 
-output-directory %o %f")
org-babel-clojure-backend 'cider
org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default) ("\\.x?html?\\'" . 
default) ("\\.pdf\\'" . "open -a /Applications/Skim.app %s"))
org-list-allow-alphabetical t
org-support-shift-select t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(org-clock-load #[0 "\300\301\302\303\304$\207" [add-hook 
change-major-mode-hook org-show-all append local] 5]
 #[0 "\301\211\207" [imenu-create-index-function 
org-imenu-get-tree] 2]
 #[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-bibtex-headline-format-function '(closure (org-id-locations 
org-agenda-search-view-always-boolean org-agenda-overriding-header t) (entry)
   (cdr (assq :title entry)))
org-archive-hook '(org-attach-archive-delete-maybe)
org-ascii-format-drawer-function #[771 "\207" [] 4 "\n\n(fn NAME CONTENTS 
WIDTH)"]
org-odt-format-inlinetask-function 'org-odt-format-inlinetask-default-function
org-clock-persist 'history
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
org-shiftup-final-hook '(windmove-up)
org-link-shell-confirm-function 'yes-or-no-p
org-export-before-parsing-hook '(org-attach-expand-links)
org-html-mathjax-options '((path 
"https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML;) (scale 
"100") (align "center")
(font "TeX") (linebreaks "false") (autonumber 
"AMS") (indent "0em") (multlinewidth "85%") (tagindent ".8em")
(tagside "right"))
org-export-with-drawers '(not "LOGBOOK DRAWERNAME")
org-link-elisp-confirm-function 'yes-or-no-p
org-latex-packages-alist '(("" "minted"))
org-babel-tangle-lang-exts '(("sml" . "sml") ("clojurescript" . "cljs") 
("clojure" . "clj") ("emacs-lisp" . "el") ("elisp" . "el"))
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-latex-listings 'minted
org-shiftdown-final-hook '(windmove-down)
org-html-format-headline-function 'org-html-format-headline-default-function
org-link-parameters '(("attachment" :follow org-attach-follow :complete 
org-attach-complete-link) ("id" :follow org-id-open)
   ("eww" 

How to avoid additional blank lines in html export of list

2020-11-16 Thread Johannes Brauer
Hi,

exporting the list example in chapter 2.6 of orgmode manual

1. The attack of the Rohirrim
2. Eowyn's fight with the witch king
   + this was already my favorite scene in the book
   + I really like Miranda Otto.
3. Peter Jackson being shot by Legolas
   - on DVD only
   He makes a really funny face when it happens.


to html the browser shows the output:

  1.  The attack of the Rohirrim
  2.  Eowyn's fight with the witch king
 *   this was already my favorite scene in the book
 *   I really like Miranda Otto.
  3.  Peter Jackson being shot by Legolas

 *   on DVD only

He makes a really funny face when it happens.

Is it possible to avoid the ugly blank lines?

Removing the last line of the source, the output looks like

  1.  The attack of the Rohirrim
  2.  Eowyn's fight with the witch king
 *   this was already my favorite scene in the book
 *   I really like Miranda Otto.
  3.  Peter Jackson being shot by Legolas
 *   on DVD only

That’s fine.

Johannes


export of coderefs to reveal.js

2020-11-08 Thread Johannes Brauer
Hi!

Using coderefs for normal html export works fine. On mouseover the target line 
is highlighted. But exporting the same org file to reveal.js with org-reveal I 
get the following error message (in Chrome):

VM22943 slide-org57a7ad2:249 Uncaught ReferenceError: CodeHighlightOn is not 
defined
at HTMLAnchorElement.onmouseover (VM22943 slide-org57a7ad2:249) 

There is no CodeHighlightOn/Off script in the exported file.
Is it possible to get this working?

Johannes


problem with org-ref

2020-07-20 Thread Johannes Brauer
Hi!
After having upgraded my packages I can activate org-ref anymore. 
(require 'org-ref) results in the error message:
File error: Cannot open load file, No such file or directory, biblio

Any hints what is going wrong?

I am using
org-ref-20200710.1516
Aquamacs 3.5  GNU Emacs 25.3.50.1 (x86_64-apple-darwin16.7.0
macOs 10.15.6

Johannes




Re: equal syntax highlighting for publishing code blocks to html and pdf

2020-02-29 Thread Johannes Brauer
In the meantime I figure out these two options, too. But I decided the effort 
seems to high for me. Especially as emacs an minted use different syntactic 
categories.

Johannes

Am 01.02.2020 um 14:50 schrieb John Kitchin 
mailto:jkitc...@andrew.cmu.edu>>:

My guess is you have two options:

1. Customize the colors in minted to match what is on your screen. I am pretty 
sure that code in html looks very much like what is on your screen. This might 
be an entry point to customizing minted style. 
https://tex.stackexchange.com/questions/131456/customize-comment-color-in-minted-style

2. Customize the faces emacs uses for syntax highlighting to match the look in 
minted.

either way, I don't see a simple way to have a common theme between them, and 
they will probably always have some minor differences. It might be easier to 
hack a new exporter for src blocks that turns the htmlized code into latex 
markup perhaps.

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<http://kitchingroup.cheme.cmu.edu/>



On Sat, Feb 1, 2020 at 4:28 AM Bastien mailto:b...@gnu.org>> 
wrote:
Hi Johannes,

Johannes Brauer mailto:bra...@nordakademie.de>> writes:

> Frequently I publish org-mode documents containing source code blocks
> to html (htmlize) and pdf (minted). I would like to see the same
> colors in both export types. But
> I cannot figure out, what’s the best way to achieve this.
>
> Has anyone solved this problem? Are there any hints?

I don't know how to do this and I guess it's difficult.

If you find a solution, please mention it here, others may be
interested.

Thanks!

--
 Bastien




BUG? - opening an org file containing #+STARTUP: inlineimages results in error message ...

2019-12-30 Thread Johannes Brauer
… File mode specification error: (void-variable image-map)

It seems that the problem arised since I’ve upgraded orgmode from version 9.2.6 
(9.2.6-4-ge30905-elpa to version 9.3 resp. 9.3.1
On a system where the 9.2.6 is installed, images are shown.

Johannes




equal syntax highlighting for publishing code blocks to html and pdf

2019-12-26 Thread Johannes Brauer
Hi!
Frequently I publish org-mode documents containing source code blocks to html 
(htmlize) and pdf (minted). I would like to see the same colors in both export 
types. But 
I cannot figure out, what’s the best way to achieve this.

Has anyone solved this problem? Are there any hints?

Johannes



problem with org-toggle-inline-images - SORRY - WRONG SUBJECT

2019-12-26 Thread Johannes Brauer
Hi!
Frequently I publish org-mode documents containing source code blocks to html 
(htmlize) and pdf (minted). I would like to see the same colors in both export 
types. But 
I cannot figure out, what’s the best way to achieve this.

Has anyone solved this problem? Are there any hints?

Johannes



problem with org-toggle-inline-images

2019-12-26 Thread Johannes Brauer
Hi!
Frequently I publish org-mode documents containing source code blocks to html 
(htmlize) and pdf (minted). I would like to see the same colors in both export 
types. But 
I cannot figure out, what’s the best way to achieve this.

Has anyone solved this problem? Are there any hints?

Johannes



Re: problem with org-toggle-inline-images

2019-12-25 Thread Johannes Brauer
I didn’t heard of image-mode. Perhaps I will give it a try.
But until orgmode version 9.2.6 worked  without it.


Am 24.12.2019 um 20:14 schrieb briangpowell . 
mailto:briangpowel...@gmail.com>>:

I use iimage-mode

Have you tried iimage-mode?

Notice the 2 i's in iimage

Toggling works great with iimage-mode

On Tue, Dec 24, 2019 at 8:09 AM Johannes Brauer 
mailto:bra...@nordakademie.de>> wrote:
It seems that the problem arised since I’ve upgraded orgmode from version 9.2.6 
(9.2.6-4-ge30905-elpa to version 9.3 (9.3-8-geab7c4-elpa.
On a system where the older version is installed, toggling works fine.

Johannes


Am 24.12.2019 um 11:30 schrieb Johannes Brauer 
mailto:bra...@nordakademie.de>>:

Hi Marco,

thank for your answer

Am 24.12.2019 um 11:00 schrieb Marco Wahl 
mailto:marcowahls...@gmail.com>>:

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

Hi Johannes,

Thanks for the report.

Typing C-c C-x C-v the image is displayed in the org buffer
correctly. Typing C-c C-x C-v again the image does not disappear and I
get the error message:

org-toggle-inline-images: Symbol’s value as variable is void: image-map

Any hints what is going wrong?

Possibly variable image-map is not used correctly in Org or should not
be used at all.  The easiest fix would be to drop the usage of that
variable within Org, I guess.

Does the issue disappear when you do

M-: (require 'image) RET

before the image toggling?
no, the behavior remains the same.

Johannes




Re: problem with org-toggle-inline-images

2019-12-24 Thread Johannes Brauer
It seems that the problem arised since I’ve upgraded orgmode from version 9.2.6 
(9.2.6-4-ge30905-elpa to version 9.3 (9.3-8-geab7c4-elpa.
On a system where the older version is installed, toggling works fine.

Johannes


Am 24.12.2019 um 11:30 schrieb Johannes Brauer 
mailto:bra...@nordakademie.de>>:

Hi Marco,

thank for your answer

Am 24.12.2019 um 11:00 schrieb Marco Wahl 
mailto:marcowahls...@gmail.com>>:

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

Hi Johannes,

Thanks for the report.

Typing C-c C-x C-v the image is displayed in the org buffer
correctly. Typing C-c C-x C-v again the image does not disappear and I
get the error message:

org-toggle-inline-images: Symbol’s value as variable is void: image-map

Any hints what is going wrong?

Possibly variable image-map is not used correctly in Org or should not
be used at all.  The easiest fix would be to drop the usage of that
variable within Org, I guess.

Does the issue disappear when you do

M-: (require 'image) RET

before the image toggling?
no, the behavior remains the same.

Johannes



Re: problem with org-toggle-inline-images

2019-12-24 Thread Johannes Brauer
Hi Marco,

thank for your answer

Am 24.12.2019 um 11:00 schrieb Marco Wahl 
mailto:marcowahls...@gmail.com>>:

The following message is a courtesy copy of an article
that has been posted to gmane.emacs.orgmode as well.

Hi Johannes,

Thanks for the report.

Typing C-c C-x C-v the image is displayed in the org buffer
correctly. Typing C-c C-x C-v again the image does not disappear and I
get the error message:

org-toggle-inline-images: Symbol’s value as variable is void: image-map

Any hints what is going wrong?

Possibly variable image-map is not used correctly in Org or should not
be used at all.  The easiest fix would be to drop the usage of that
variable within Org, I guess.

Does the issue disappear when you do

M-: (require 'image) RET

before the image toggling?
no, the behavior remains the same.

Johannes


problem with org-toggle-inline-images

2019-12-23 Thread Johannes Brauer
Hi!
Typing C-c C-x C-v the image is displayed in the org buffer correctly. Typing 
C-c C-x C-v again the image does not disappear and I get the error message:

org-toggle-inline-images: Symbol’s value as variable is void: image-map

Any hints what is going wrong?

I am using
Aquamacs 3.5  GNU Emacs 25.3.50.1 (x86_64-apple-darwin16.7.0, NS
macOs 10.15.2
Org mode version 9.3 (9.3-8-geab7c4-elpa

Johannes



[O] questionable result of Clojure code execution in org babel

2019-08-08 Thread Johannes Brauer
Hi

executing the the following code section in an org-mode file with C-c C-c

#+BEGIN_SRC clojure :results value
(* 3 5)
#+END_SRC

I get

 #+RESULTS:
 : nil15

instead of

 #+RESULTS:
 : 15

Trying the same with emacs-lisp instead of clojure the correct result appears.
My versions:
;; org-mode 9.2.5
;; Aquamacs 3.5  GNU Emacs 25.3.50.1
;; CIDER 0.21.0 (New York), nREPL 0.6.0
;; Clojure 1.9.0, Java 11

Peter Hull, (using nrepl-toggle-message-logging) has figured out the following 
problem:
In org-mode 9.1.9 the sent message looks like:
(-->
 id "8"
 op "eval"
 session "a34917da-541a-4d4a-b790-af8e11020c96"
 time-stamp "2019-08-07 13:18:00.307045105"
 code "(* 1 2 3 4)"
 ns "org-babel-clojure.core"
)

in 9.2.5 it's

(-->
 id "18"
 op "eval"
 session "86281560-e467-47c4-869d-043b03f5c546"
 time-stamp "2019-08-07 12:23:33.769213028"
 code "(ns org-babel-clojure.core)
(* 1 2 3 4)"
)

In the latter we're sending two forms (ns ...) and (* ...) so we get two 
responses. Previously it sent only one and used the ns key in the message to 
set the message.

I am not sure if this list ist the right place to post the problem.

Johannes



Re: [O] Two bibliography slides using org-reveal - SORRY no new problem

2019-07-31 Thread Johannes Brauer
Accidentally, I loaded the library org-ref-reveal instead of org-re-reveal-ref.

Sorry!

Johannes

> Am 31.07.2019 um 23:19 schrieb Johannes Brauer :
> 
> Hi Jens,
> 
> I fear I updated my org-re-reveal from melpa (org-re-reveal-20190731.924) and 
> now  I’ve got two problems:
> 1. With
> * Bibliography
> printbibliography:referenzen.bib
>   :PROPERTIES:
>   :CUSTOM_ID: bibliography
>   :END:
> I get a bib slide with tow headlines „Bibliography“.
> 2. Clicking on a cite-link shows the title slide instead of the bib slide.
> 
> Have I anything to change?
> 
> Best wishes
> Johannes
> 
>> Am 26.07.2019 um 23:19 schrieb Johannes Brauer :
>> 
>> Hi Jens,
>> 
>> thanks a lot for your detailed helpful answers.
>> 
>> Best wishes
>> Johannes
>> 
>>> Am 26.07.2019 um 21:21 schrieb Jens Lechtenboerger 
>>> :
>>> 
>>> Johannes Brauer  writes:
>>> 
>>>> GET 
>>>> file:///Users/jb/Downloads/org-re-reveal-ref-master/reveal.js/lib/js/head.min.js
>>>>  net::ERR_FILE_NOT_FOUND  README.html:173 
>>>> 
>>>> Is this a relevant message?
>>> 
>>> Hi Johannes,
>>> 
>>> that message appears for newer versions of reveal.js (but does not
>>> hurt).  You can avoid it by customizing variable
>>> org-re-reveal-script-files to remove lib/js/head.min.js, which does not
>>> seem to exist for your version.
>>> 
>>> Alternatively, if you added (require 'org-re-reveal) in your ~/.emacs,
>>> you could add the following:
>>> (setq org-re-reveal-script-files '("js/reveal.js"))
>>> 
>>> Best wishes
>>> Jens
>> 
> 



Re: [O] Two bibliography slides using org-reveal - new prblem

2019-07-31 Thread Johannes Brauer
Hi Jens,

I fear I updated my org-re-reveal from melpa (org-re-reveal-20190731.924) and 
now  I’ve got two problems:
1. With
* Bibliography
 printbibliography:referenzen.bib
   :PROPERTIES:
   :CUSTOM_ID: bibliography
   :END:
I get a bib slide with tow headlines „Bibliography“.
2. Clicking on a cite-link shows the title slide instead of the bib slide.

Have I anything to change?

Best wishes
Johannes

> Am 26.07.2019 um 23:19 schrieb Johannes Brauer :
> 
> Hi Jens,
> 
> thanks a lot for your detailed helpful answers.
> 
> Best wishes
> Johannes
> 
>> Am 26.07.2019 um 21:21 schrieb Jens Lechtenboerger 
>> :
>> 
>> Johannes Brauer  writes:
>> 
>>> GET 
>>> file:///Users/jb/Downloads/org-re-reveal-ref-master/reveal.js/lib/js/head.min.js
>>>  net::ERR_FILE_NOT_FOUND  README.html:173 
>>> 
>>> Is this a relevant message?
>> 
>> Hi Johannes,
>> 
>> that message appears for newer versions of reveal.js (but does not
>> hurt).  You can avoid it by customizing variable
>> org-re-reveal-script-files to remove lib/js/head.min.js, which does not
>> seem to exist for your version.
>> 
>> Alternatively, if you added (require 'org-re-reveal) in your ~/.emacs,
>> you could add the following:
>> (setq org-re-reveal-script-files '("js/reveal.js"))
>> 
>> Best wishes
>> Jens
> 



Re: [O] Two bibliography slides using org-reveal

2019-07-26 Thread Johannes Brauer
Hi Jens,

thanks a lot for your detailed helpful answers.

Best wishes
Johannes

> Am 26.07.2019 um 21:21 schrieb Jens Lechtenboerger 
> :
> 
> Johannes Brauer  writes:
> 
>> GET 
>> file:///Users/jb/Downloads/org-re-reveal-ref-master/reveal.js/lib/js/head.min.js
>>  net::ERR_FILE_NOT_FOUND  README.html:173 
>> 
>> Is this a relevant message?
> 
> Hi Johannes,
> 
> that message appears for newer versions of reveal.js (but does not
> hurt).  You can avoid it by customizing variable
> org-re-reveal-script-files to remove lib/js/head.min.js, which does not
> seem to exist for your version.
> 
> Alternatively, if you added (require 'org-re-reveal) in your ~/.emacs,
> you could add the following:
> (setq org-re-reveal-script-files '("js/reveal.js"))
> 
> Best wishes
> Jens




Re: [O] Two bibliography slides using org-reveal

2019-07-26 Thread Johannes Brauer
Hi Jens,

now I could export README.org<http://README.org> to a reveal.js presentation 
with a nice bib slide.
Thank you for your help.

When I open the developer tools Chrome shows me this error message:

GET 
file:///Users/jb/Downloads/org-re-reveal-ref-master/reveal.js/lib/js/head.min.js
 net::ERR_FILE_NOT_FOUND  README.html:173

Is this a relevant message?

Johannes

Am 26.07.2019 um 08:43 schrieb Jens Lechtenboerger 
mailto:lech...@wi.uni-muenster.de>>:

Johannes Brauer mailto:bra...@nordakademie.de>> writes:

I downloaded [1] but when I try M-x load-library  followed by org-re-reveal-ref 
I get
"Cannot open load file: No such file or directory, org-re-reveal"
although I’ve org-ref installed. What is going wrong?

Hi Johannes,

you also need to install org-re-reveal, from MELPA or from GitLab [2].
I just updated org-re-reveal-ref to clarify this.  Sorry for the
omission.

Best wishes
Jens

[2] https://gitlab.com/oer/org-re-reveal/



Re: [O] Two bibliography slides using org-reveal

2019-07-25 Thread Johannes Brauer
Thank you Jens für your hint. 
I downloaded [1] but when I try M-x load-library  followed by org-re-reveal-ref 
I get
"Cannot open load file: No such file or directory, org-re-reveal"
although I’ve org-ref installed. What is going wrong?

Johannes

> Am 25.07.2019 um 19:00 schrieb Jens Lechtenboerger 
> :
> 
> I created org-re-reveal-ref [1] based on my fork org-re-reveal for
> bibliographies with org-ref.  I only use it for export to reveal.js and
> PDF, but HTML seems fine as well.  That package is part of emacs-reveal
> [2].
> 
> Best wishes
> Jens
> 
> [1] https://gitlab.com/oer/org-re-reveal-ref
> [2] https://gitlab.com/oer/emacs-reveal
> 
> John Kitchin  writes:
> 
>> the bibliography export is not too fancy. It is defined in the function 
>> org-ref-bibliography-format.
>> 
>> I am not sure you can win, for latex export it doesn't make sense to put the 
>> bibliography link in a heading. you might be able to add a specific reveal 
>> export
>> option to the export function though.
>> 
>> 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
>> 
>> On Thu, Jul 25, 2019 at 9:55 AM Johannes Brauer  
>> wrote:
>> 
>> Yes, I have tried that and indeed then I get only one bib slide. But then, 
>> in normal Html export, the bibliography appears under the preceding headline,
>> that’s ugly.
>> 
>>> Am 25.07.2019 um 14:41 schrieb Fraga, Eric :
>>> 
>>> I have no idea but, on the off-chance, maybe don't make that line a
>>> headline?
>>> -- 
>>> Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222



Re: [O] Two bibliography slides using org-reveal

2019-07-25 Thread Johannes Brauer


Am 25.07.2019 um 15:59 schrieb John Kitchin 
mailto:jkitc...@andrew.cmu.edu>>:

the bibliography export is not too fancy. It is defined in the function 
org-ref-bibliography-format.

I am not sure you can win, for latex export it doesn't make sense to put the 
bibliography link in a heading
I am using only Html export (which works correctly) and org-reveal (with 2 bib 
slides)

. you might be able to add a specific reveal export option to the export 
function though.
I haven’t a clue how to do that

Johannes



On Thu, Jul 25, 2019 at 9:55 AM Johannes Brauer 
mailto:bra...@nordakademie.de>> wrote:
Yes, I have tried that and indeed then I get only one bib slide. But then, in 
normal Html export, the bibliography appears under the preceding headline, 
that’s ugly.


> Am 25.07.2019 um 14:41 schrieb Fraga, Eric 
> mailto:e.fr...@ucl.ac.uk>>:
>
> I have no idea but, on the off-chance, maybe don't make that line a
> headline?
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222




Re: [O] Two bibliography slides using org-reveal

2019-07-25 Thread Johannes Brauer
Yes, I have tried that and indeed then I get only one bib slide. But then, in 
normal Html export, the bibliography appears under the preceding headline, 
that’s ugly.


> Am 25.07.2019 um 14:41 schrieb Fraga, Eric :
> 
> I have no idea but, on the off-chance, maybe don't make that line a
> headline?
> -- 
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222



[O] Two bibliography slides using org-reveal

2019-07-25 Thread Johannes Brauer
Hi,

I am not sure wether this is the right place for my question. I am using 
org-reveal for building reveal.js slides.
The last line of my org file is something like that:
* bibliography:referenzen.bib
Since I am using reveal.js-3.8.0 I get two bibliography slides instead of one 
at the end of the slide deck.
Normal Html export works correctly, there I see only one bibliography header.

Any hints what's going wrong?

Johannes


Re: [O] org-ref, html-export, citation links

2018-08-01 Thread Johannes Brauer
I didn’t see this before, too. Now, I tried to create a minimal example showing 
the described behaviour, but I cannot reproduce it anymore. Now all is correct.

Sorry!

Johannes

Am 01.08.2018 um 13:06 schrieb John Kitchin 
mailto:jkitc...@andrew.cmu.edu>>:

I don't think I have ever seen this, and can't think of a reason why it might 
be occurring.

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<http://kitchingroup.cheme.cmu.edu/>


On Sun, Jul 29, 2018 at 12:23 PM, Johannes Brauer 
mailto:bra...@nordakademie.de>> wrote:
Hi!

I have an older Html-file exported from an org-mode file with org-ref 
citations. All citation links are internal links into the reference section, 
fine! But if I anew export the org-mode file, now, the generated citation links 
are external file links to (not existing) files. For example, cite:Hales2008 is 
exported to "file:///.../Hales2008“.

Any hints?

Johannes






[O] org-ref, html-export, citation links

2018-07-29 Thread Johannes Brauer
Hi!

I have an older Html-file exported from an org-mode file with org-ref 
citations. All citation links are internal links into the reference section, 
fine! But if I anew export the org-mode file, now, the generated citation links 
are external file links to (not existing) files. For example, cite:Hales2008 is 
exported to "file:///.../Hales2008“.

Any hints?

Johannes




Re: [O] org-babel oz?

2017-11-12 Thread Johannes Brauer
> 
>> Hi,
>> 
>> I am looking for a working configuration for using oz code blocks in 
>> org-mode file. I've installed
>> Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. I've put
>> (org-babel-do-load-languages
>> 'org-babel-load-languages
>> '((emacs-lisp . t)
>>  (oz . t)))
>> into my Aquamacs initialization and the ob-z.el in a path where Emacs can 
>> read it.
>> If I try to execute (C-C C-C) the following code block
>> 
>> #+begin_src oz :results value
>> 39 + 3
>> #+end_src
>> 
>> I get the following error messages:
>> 
>> executing Oz code block...
>> Org-babel: executing Oz expression
>> Create OPI socket for evaluating expressions
>> open-network-stream: make client process failed: Connection refused, :name, 
>> *Org-babel-OPI-socket*,
>> :buffer, nil, :host, localhost, :service, 6001, :nowait, nil
>> 
>> I cannot figure out, what to do?
>> Any hints?
>> 
> 
> [this "answer" is uncontaminated by such mundane things as testing - I know
> nothing about Oz except what I read in contrib/lisp/ob-oz.el and I don't have
> Mozart installed on my machine (except for various pieces in my Music folder)]
> 
> You need to start the server using the contrib/scripts/StartOzServer.oz
> script.
> 
> -- 
> Nick
Thanks Nick!
I downloaded StartOzServer.oz into a suited directory.  The file ob-oz.el had 
to be adapted  for looking for StartOzServer.oz in that directory. 
Now executing (C-C C-C) on a code block the process Org-babel-OPI-socket is 
started but now I get the error message:

Org-babel: executing Oz expression
Create OPI socket for evaluating expressions
open-network-stream: make client process failed: Connection refused, :name, 
*Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, 
:nowait, nil

If I execute (C-C C-C) once more I get a different message:

executing Oz code block...
Org-babel: executing Oz expression
Create OPI socket for evaluating expressions
org-babel-insert-result: Wrong type argument: markerp, nil

If I do it a third time then all works fine, i. e. executing the code block

#+begin_src oz :results value
39 + 3
#+end_src

results in insertion of
#+RESULTS:
: 42
into the org file.

It seems a bit strange for me, but it is usable.

Johannes





Re: [O] Emacs-orgmode Digest, Vol 141, Issue 12

2017-11-12 Thread Johannes Brauer
> 
>> Hi,
>> 
>> I am looking for a working configuration for using oz code blocks in 
>> org-mode file. I've installed
>> Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. I've put
>> (org-babel-do-load-languages
>> 'org-babel-load-languages
>> '((emacs-lisp . t)
>>   (oz . t)))
>> into my Aquamacs initialization and the ob-z.el in a path where Emacs can 
>> read it.
>> If I try to execute (C-C C-C) the following code block
>> 
>> #+begin_src oz :results value
>>  39 + 3
>> #+end_src
>> 
>> I get the following error messages:
>> 
>> executing Oz code block...
>> Org-babel: executing Oz expression
>> Create OPI socket for evaluating expressions
>> open-network-stream: make client process failed: Connection refused, :name, 
>> *Org-babel-OPI-socket*,
>> :buffer, nil, :host, localhost, :service, 6001, :nowait, nil
>> 
>> I cannot figure out, what to do?
>> Any hints?
>> 
> 
> [this "answer" is uncontaminated by such mundane things as testing - I know
> nothing about Oz except what I read in contrib/lisp/ob-oz.el and I don't have
> Mozart installed on my machine (except for various pieces in my Music folder)]
> 
> You need to start the server using the contrib/scripts/StartOzServer.oz
> script.
> 
> -- 
> Nick
Thanks Nick!
I downloaded StartOzServer.oz into a suited directory.  The file ob-oz.el had 
to be adapted  for looking for StartOzServer.oz in that directory. 
Now executing (C-C C-C) on a code block the process Org-babel-OPI-socket is 
started but now I get the error message:

Org-babel: executing Oz expression
Create OPI socket for evaluating expressions
open-network-stream: make client process failed: Connection refused, :name, 
*Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, 
:nowait, nil

If I execute (C-C C-C) once more I get a different message:

executing Oz code block...
Org-babel: executing Oz expression
Create OPI socket for evaluating expressions
org-babel-insert-result: Wrong type argument: markerp, nil

If I do it a third time then all works fine, i. e. executing the code block

#+begin_src oz :results value
 39 + 3
#+end_src

results in insertion of
#+RESULTS:
: 42
into the org file.

It seems a bit strange for me, but it is usable.

Johannes





[O] org-babel oz?

2017-11-09 Thread Johannes Brauer
Hi,

I am looking for a working configuration for using oz code blocks in org-mode 
file. I've installed Mozart2 on macOS 10.12.6 and use org-mode version 9.0.9. 
I've put
(org-babel-do-load-languages
 'org-babel-load-languages
 '((emacs-lisp . t)
   (oz . t)))
into my Aquamacs initialization and the ob-z.el in a path where Emacs can read 
it.
If I try to execute (C-C C-C) the following code block

#+begin_src oz :results value
  39 + 3
#+end_src

I get the following error messages:

executing Oz code block...
Org-babel: executing Oz expression
Create OPI socket for evaluating expressions
open-network-stream: make client process failed: Connection refused, :name, 
*Org-babel-OPI-socket*, :buffer, nil, :host, localhost, :service, 6001, 
:nowait, nil

I cannot figure out, what to do?
Any hints?

Johannes


Re: [O] org-ref, html-export, bibtex url, webpage

2017-09-11 Thread Johannes Brauer
Thanks, John, for your hint.
I am able to find bibtex-biblatex-entry-alist but not the 
bibtex-BibTeX-entry-alist in the Bibtex customization group.

Johannes
Am 11.09.2017 um 02:38 schrieb John Kitchin 
<jkitc...@andrew.cmu.edu<mailto:jkitc...@andrew.cmu.edu>>:

I am pretty sure you cannot use entry types that are not defined in 
bibtex-BibTeX-entry-alist or bibtex-biblatex-entry-alist. You can add types to 
those variables to get them to work.

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<http://kitchingroup.cheme.cmu.edu/>


On Sun, Sep 10, 2017 at 2:50 PM, Johannes Brauer 
<bra...@nordakademie.de<mailto:bra...@nordakademie.de>> wrote:
Hi!

isn’t it allowed to use bibtex entries @url or @webpage? Using one of them the 
html export complains that the entry is not found, for example:

Carro1998 not found in 
/Users/johannes/Documents/lehre/Informatik/Programmierparadigmen/Vorlesung/referenzen.bib
org-ref-get-bibtex-entry-citation: Wrong type argument: stringp, nil

Johannes




[O] org-ref, html-export, bibtex url, webpage

2017-09-10 Thread Johannes Brauer
Hi!

isn’t it allowed to use bibtex entries @url or @webpage? Using one of them the 
html export complains that the entry is not found, for example:

Carro1998 not found in 
/Users/johannes/Documents/lehre/Informatik/Programmierparadigmen/Vorlesung/referenzen.bib
org-ref-get-bibtex-entry-citation: Wrong type argument: stringp, nil

Johannes

Re: [O] problem with org-ref after upgrading org-mode from 8.3 to 9.0.5

2017-04-05 Thread Johannes Brauer
The problem was a corrupted let-plist package in my elpa folder. After 
reinstalling the package all works fine.

Johannes
Am 03.04.2017 um 20:05 schrieb John Kitchin 
<jkitc...@andrew.cmu.edu<mailto:jkitc...@andrew.cmu.edu>>:

That looks like an issue with helm-Bibtex. You might try updating it and/or 
raise an issue with that package.


On Mon, Apr 3, 2017 at 11:03 AM Johannes Brauer 
<bra...@nordakademie.de<mailto:bra...@nordakademie.de>> wrote:
that’s what I get executing (require 'org-ref):

Debugger entered--Lisp error: (error "Required feature ‘let-alist’ was not 
provided")
  require(let-alist)
  
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\207"
 [require bibtex browse-url hl-line ido json url-queue dash let-alist seq] 2)
  require(biblio-core)
  
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\311\312!\207"
 [require biblio-core biblio-doi biblio-arxiv biblio-crossref biblio-dblp 
biblio-hal biblio-dissemin biblio-download provide biblio] 2)
  require(biblio)
  eval-buffer(# nil 
"/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" nil t)  ; 
Reading at buffer position 1340
  load-with-code-conversion("/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" 
"/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" nil t)
  require(bibtex-completion)
  byte-code("\306\307!\210\306\310!\210\306\311!\210\306\312!\210\313 \314\211  
\314  :\203f
--
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<http://kitchingroup.cheme.cmu.edu/>




Re: [O] problem with org-ref after upgrading org-mode from 8.3 to 9.0.5

2017-04-03 Thread Johannes Brauer
that’s what I get executing (require 'org-ref):

Debugger entered--Lisp error: (error "Required feature ‘let-alist’ was not 
provided")
  require(let-alist)
  
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\300\311!\207"
 [require bibtex browse-url hl-line ido json url-queue dash let-alist seq] 2)
  require(biblio-core)
  
byte-code("\300\301!\210\300\302!\210\300\303!\210\300\304!\210\300\305!\210\300\306!\210\300\307!\210\300\310!\210\311\312!\207"
 [require biblio-core biblio-doi biblio-arxiv biblio-crossref biblio-dblp 
biblio-hal biblio-dissemin biblio-download provide biblio] 2)
  require(biblio)
  eval-buffer(# nil 
"/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" nil t)  ; 
Reading at buffer position 1340
  load-with-code-conversion("/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" 
"/Users/johannes/Library/Preferences/Aquamacs 
Emacs/Packages/elpa/helm-bibtex-20170321.1306/bibtex-completion.el" nil t)
  require(bibtex-completion)
  
byte-code("\306\307!\210\306\310!\210\306\311!\210\306\312!\210\313\314\211\314:\203f

[O] problem with org-ref after upgrading org-mode from 8.3 to 9.0.5

2017-04-01 Thread Johannes Brauer
Hi,
after the upgrade (require 'org-ref) results in the error message:
 (error "Required feature ‘let-alist’ was not provided“)

I am using Aquamacs 3.3  GNU Emacs 25.1.1. I looked for let-plist using 
list-packages and found:
  let-alist  1.0.4 built-in 

 What is going wrong?

Johannes

[O] problem with html export of links

2016-09-26 Thread Johannes Brauer
Hi!

I have two files.

 a.org contains the anchor defined by custom_id property

* headline
  :PROPERTIES:
  :CUSTOM_ID: anchor
  :END:

and

b.org contains the link to a headline in a.org with custom id #anchor

[[file:a.org::#anchor]]

Clicking the link in b.org all works fine. But exporting b.org to html I get 

…
  b.org contains the link to a headline in a.org with custom id #anchor
  

  
  a.html#MissingReference
  
...
with #MissingReference instead of #anchor. I cannot figure out, what the 
failure is.

Johannes

Re: [O] org-ref bibliography html export & bigblow

2016-08-14 Thread Johannes Brauer
In the meantime I figured out that all works fine if the bibliography is a 
org-mode level 1 headline:

* bibliography:referenzen.bib
But if you write

bibliography:referenzen.bib

the bibliography is in the html but not displayed

Johannes
Am 14.08.2016 um 18:43 schrieb John Kitchin 
<jkitc...@andrew.cmu.edu<mailto:jkitc...@andrew.cmu.edu>>:

Is the bibliography actually in the html but not displayed in a browser?

It is hard to see how a theme would change the link export, although via few it 
might change what is visible.


On Saturday, August 13, 2016, Johannes Brauer 
<bra...@nordakademie.de<mailto:bra...@nordakademie.de>> wrote:
Hi,

using org-ref by John Kitchin bibliography html export works fine as long as I 
don’t activate the org-html-theme bigblow by Fabrice Niessen which I like very 
much. With this theme the bibliography doesn’t appear in the exported html 
anymore.

Are there any ideas what I could do?

Johannes


--
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<http://kitchingroup.cheme.cmu.edu/>





[O] org-ref bibliography html export & bigblow

2016-08-13 Thread Johannes Brauer
Hi,

using org-ref by John Kitchin bibliography html export works fine as long as I 
don’t activate the org-html-theme bigblow by Fabrice Niessen which I like very 
much. With this theme the bibliography doesn’t appear in the exported html 
anymore.

Are there any ideas what I could do?

Johannes


Re: [O] Scaling of image previews in org-mode

2016-08-09 Thread Johannes Brauer
thank you for the hint, I will give it a try

Johannes

> Am 08.08.2016 um 01:16 schrieb John Kitchin <jkitc...@andrew.cmu.edu>:
> 
> I use this code here:
> https://github.com/jkitchin/scimax/blob/master/scimax-org.el#L957
> 
> to provide inline scaling in Emacs when it is not built with imagemagick.
> 
> Johannes Brauer writes:
> 
>> Hi!
>> 
>> If I insert a jpg in my org-mode document, I can preview it but not scale 
>> its width, like so:
>> 
>> Add the following code to my init.el file:
>> (setq org-image-actual-width nil)
>> 
>> Then insert this code in my document, where I want the image to appear:
>> #+ATTR_ORG: :width 20
>> [[./test.jpg]]
>> 
>> No matter which value I give for the width argument the image appears in the 
>> buffer always in its original size.
>> 
>> However, scaling for html export with #+attr_html works fine.
> 
> Export is not the same as the inline scaling. I am not sure what happens
> with export, but the browser may be doing the scaling.
> 
>> 
>> What is going wrong?
>> 
>> (Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ 
>> /Users/johannes/Library/Preferences/Aquamacs 
>> Emacs/Packages/elpa/org-20160704/)
>> 
>> Johannes
> 
> 
> -- 
> 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




[O] bibliography html export

2016-08-07 Thread Johannes Brauer
Using ox-bibtex for bibliography html export I always get the complete content 
of my .bib file under the headline References. How can I achieve that the 
bibliography contains only the references cited in the org file?

Johannes


Re: [O] Scaling of image previews in org-mode

2016-08-04 Thread Johannes Brauer
I think my Aquamacs 3.2 GNU Emacs 24.4.51.2 has got ImageMagick support.

Am 04.08.2016 um 00:09 schrieb Giri Prashanth 
<giri.prasha...@gmail.com<mailto:giri.prasha...@gmail.com>>:

I think you need to build emacs with ImageMagick support for image scaling to 
work.


On Wed, Aug 3, 2016 at 12:20 PM, Johannes Brauer 
<bra...@nordakademie.de<mailto:bra...@nordakademie.de>> wrote:
Hi!

If I insert a jpg in my org-mode document, I can preview it but not scale its 
width, like so:

Add the following code to my init.el file:
(setq org-image-actual-width nil)

Then insert this code in my document, where I want the image to appear:
#+ATTR_ORG: :width 20
[[./test.jpg]]

No matter which value I give for the width argument the image appears in the 
buffer always in its original size.

However, scaling for html export with #+attr_html works fine.

What is going wrong?

(Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ 
/Users/johannes/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/)

Johannes



--
-giri



[O] Scaling of image previews in org-mode

2016-08-03 Thread Johannes Brauer
Hi!

If I insert a jpg in my org-mode document, I can preview it but not scale its 
width, like so:

Add the following code to my init.el file:
(setq org-image-actual-width nil)

Then insert this code in my document, where I want the image to appear:
#+ATTR_ORG: :width 20
[[./test.jpg]]

No matter which value I give for the width argument the image appears in the 
buffer always in its original size.

However, scaling for html export with #+attr_html works fine.

What is going wrong?

(Org-mode version 8.3.4 (8.3.4-99-ga8e4a3-elpa @ 
/Users/johannes/Library/Preferences/Aquamacs Emacs/Packages/elpa/org-20160704/)

Johannes