[O] Specifying ATTR_HTML class for source blocks

2019-10-03 Thread Martin G . Skjæveland
Hi all, I would like my source blocks to be exported to HTML as textareas with a class attribute -- so I can later use this in my javascript code. I can use ":textarea t" [1], but it seems that other attributes except width and height are ignored: #+ATTR_HTML: :textarea t :class testing

[Orgmode] [mobileorg-android] sync error, sdcard, index.org was not found

2010-11-30 Thread Martin G. Skjæveland
Hi, I just got myself a HTC Z, but I cannot get mobileorg to sync. The error message I get when pressing the sync button is: The file /sdcard/dropbox/org/index.org was not found. Here is what I did to get the error: - Installed Dropbox from Android Market. (Downloaded org-files to

Re: [Orgmode] table, moving cells

2010-09-30 Thread Martin G. Skjæveland
On 29/09/10 17:58, Carsten Dominik wrote: Hi Martin, On Sep 25, 2010, at 6:02 PM, Martin G. Skjæveland wrote: Hi, is there a quick way for moving a cell about in a table? I enjoy swapping the order of rows and columns in a table using Meta + [arrow], but I have not found a ways of doing

[Orgmode] table, moving cells

2010-09-25 Thread Martin G. Skjæveland
Hi, is there a quick way for moving a cell about in a table? I enjoy swapping the order of rows and columns in a table using Meta + [arrow], but I have not found a ways of doing the same for a single cell. Is it possible? Example, with the cursor on '2' in the following table | A | B | C |

Re: [Orgmode] [babel] tangle creates different filename than it used to

2010-03-01 Thread Martin G. Skjæveland
Dan Davison wrote: Martin G. Skjæveland mart...@ifi.uio.no writes: Hi, running tangle with the following values #+begin_src xml :tangle test.rdf ... #+end_src used to create a file called test.rdf. However, after a fresh git pull today this now tangles to the file test.rdf.xml, which

[Orgmode] [babel] bug exporting code blocks to html

2010-02-26 Thread Martin G. Skjæveland
Hi, when I export ---start * test #+begin_src xml -n -r -l !--(ref:%s)-- test important/ !--(ref:imp)-- /test #+end_src Line no. [[(imp)]] is important! ---end to html I get (copying from my browser)

[Orgmode] [babel] tangle creates different filename than it used to

2010-02-26 Thread Martin G. Skjæveland
Hi, running tangle with the following values #+begin_src xml :tangle test.rdf ... #+end_src used to create a file called test.rdf. However, after a fresh git pull today this now tangles to the file test.rdf.xml, which is not what I want. I think I could add rdf as a language babel

[Orgmode] [babel] bug, exporting scrname source blocks html

2010-02-03 Thread Martin G. Skjæveland
Hi, when I export the following to html -start * test #+srcname: test1 #+begin_src n3 -n subject predicate object #+end_src #+begin_src n3 -n subject predicate object #+end_src -end the two source blocks are exported as

[Orgmode] headline numbering in html export

2010-02-02 Thread Martin G. Skjæveland
Hi, I thought I'd share some stuff I'm quite happy with so that others can enjoy it if it is good, and so that I can stop using or improve it if it is not so good! :) I am writing a set of exercises for a course and publishing a chapter once a week in both pdf and html. I like having the

[Orgmode] [babel] tangle and Makefile

2010-01-28 Thread Martin G. Skjæveland
-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Martin G\\. Skjæveland\\ org

Re: [Orgmode] Re: changing \href to \myhref in LaTex export

2010-01-20 Thread Martin G. Skjæveland
Sébastien Vauban wrote: Hi Martin, Martin G. Skjæveland wrote: is it possible to change how hyperlinks are exported to LaTex without going into to org-latex.el, but setting by a variable or similar in my .emacs file? I would like to export hyperlinks in Latex as \myhref (or something else

Re: [Orgmode] Re: changing \href to \myhref in LaTex export

2010-01-20 Thread Martin G. Skjæveland
Carsten Dominik wrote: Hi Martin, OK, please pull and then use the variable `org-export-latex-hyperref-format'. Hi Carsten, setting (setq org-export-latex-hyperref-format \\myhref{%s}{%s}) works like a charm. Thanks! Martin ___

[Orgmode] [babel] error running source code? [6.34trans (release_6.34c.6.gcae0.dirty)]

2010-01-20 Thread Martin G. Skjæveland
-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Martin G\\. Skjæveland\\ org-export-preprocess-before-selecting-backend-code-hook '(org-beamer-select

Re: [Orgmode] Re: changing \href to \myhref in LaTex export

2010-01-20 Thread Martin G. Skjæveland
Sébastien Vauban wrote: Hi Martin, Martin G. Skjæveland wrote: Sébastien Vauban wrote: Martin G. Skjæveland wrote: is it possible to change how hyperlinks are exported to LaTex without going into to org-latex.el, but setting by a variable or similar in my .emacs file? I would like

[Orgmode] changing \href to \myhref in LaTex export

2010-01-19 Thread Martin G. Skjæveland
Hi, is it possible to change how hyperlinks are exported to LaTex without going into to org-latex.el, but setting by a variable or similar in my .emacs file? I would like to export hyperlinks in Latex as \myhref (or something else) instead of \href, so that I can redefine \myhref using

[Orgmode] bug in source code referencing?

2010-01-14 Thread Martin G. Skjæveland
Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list.

[Orgmode] [babel] problems with :exports results [6.33trans (release_6.33c.7.g69b46)]

2009-11-16 Thread Martin G. Skjæveland
org-babel-execute-src-block-maybe) org-confirm-elisp-link-function 'yes-or-no-p org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src org-babel-exp-inline-src-blocks)) org-occur-hook '(org-first-headline-recenter) org-from-is-user-regexp \\Martin G

[Orgmode] [babel] problem removing label from src

2009-11-11 Thread Martin G. Skjæveland
Hi all, I use the -r -l option for source blocks to change the format of labels. This works in org-mode without org-babel, but this does not fully work with org-babel (and I really like org-babel, so that's a shame :) ) The following --start- #+begin_src xml -n -r -l

[Orgmode] problem including graphics

2009-11-09 Thread Martin G. Skjæveland
Hi all, I have a problem including dot generated graphics in my export. The code is #+begin_src dot :file ./test.pdf :cmdline -Tpdf digraph test { Hello - World; }; #+end_src When I export to latex it turns into \hyperref[./test.pdf]{file:./test.pdf} However, then I tried this in a

Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Martin G. Skjæveland
andrea Crotti wrote: I'm with org-mode 6.31a, I was trying to get output in the exported files but I never see the output. Hi, not sure if this is related -- or helpful, but here goes! When I export the following file: start--- * lowercase #+begin_src python

Re: [Orgmode] What is output for org-babel?

2009-11-08 Thread Martin G. Skjæveland
Martin G. Skjæveland wrote: andrea Crotti wrote: I'm with org-mode 6.31a, I was trying to get output in the exported files but I never see the output. Writing begin_src in lowercase or uppercase makes a difference. I am not sure if this is a feature or a bug. Oh, forgot to mention: I can't

[Orgmode] verbatim bug?

2009-11-07 Thread Martin G . Skjæveland
Hi, Then I write some text some text ~some_scr_block_name~. because I want some_scr_block_name written as verbatim in my latex export, I get, in latex, \texttt{\textbackslash{}label\{some\_src\_block\_name\}some\_src\_block\_name}. which gives me the text

[Orgmode] [babel] trimming tangled code

2009-11-04 Thread Martin G. Skjæveland
Hi all, I'm using org-babel to tangle XML documents. That works fine (thanks to help from Eric S. on this list yesterday), except it adds(?) space in the beginning (and end) of the output document and front of the xml declaration thus making an invalid XML document. Is it possible to trim

[Orgmode] texttt inside verbatim

2009-11-04 Thread Martin G. Skjæveland
Hi all, when I import the file --8---cut here---start-8--- - | grandmother | = | sim:Jackeline | | sim:Mona | - --8---cut here---end-8--- using the command #+INCLUDE

[Orgmode] org-babel-tangle xml text

2009-11-03 Thread Martin G. Skjæveland
Hi all, I am quite new to the wonderful world of org-mode and org-babel. Right now I am using org-mode to make exercises for a semantic web programming course. org-mode and its friends give me a efficient writing tool, a presentation tool, export for web, export for print and a literate