[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 #+BE

[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 /sdcard

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 the

Re: [Orgmode] table, moving cells

2010-09-27 Thread Martin G. Skjæveland
On 26/09/10 00:24, Nick Dokos wrote: Charles C. Berry wrote: 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

[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" 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 is

[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 woul

[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 "" #+end_src Line no. [[(imp)]] is important! ---end to html I get (copying from my browser) ---start 1 test 1: 2: 3: Lin

[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 exe

[Orgmode] [babel] tangle and Makefile

2010-01-28 Thread Martin G. Skjæveland
Hi, I have two questions regarding org-babel-tangle and Makefile. Running org-babel-tangle on the following file --start * test #+begin_src makefile :tangle Makefile test: echo "hello" #+end_src --end writes a file 'M

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 fi

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

2010-01-20 Thread Martin G. Skjæveland
Hi, I pulled a fresh copy of org-mode this morning and got an error I did not have before the pull. When I export the following to pdf --begin * test #+begin_src java -n :exports none :tangle test.java private void abcdefghi throws IOException

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 ___ Emacs-orgmo

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 some

[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 \href

Re: [Orgmode] bug in source code referencing?

2010-01-14 Thread Martin G. Skjæveland
e-sensitively git bisect good 7062a884107fd8ab261fc098096a7d5918b40229 $ Carsten Dominik wrote: Hi Martin, could I ask you to use "git bisect" it identify the commit when this went wrong? That would be most helpful! Thanks - Carsten On Jan 14, 2010, at 12:01 PM, Martin G. Skjæveland wrote: Remembe

[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
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] 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 separat

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, forgo

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 :expo

[Orgmode] verbatim bug?

2009-11-07 Thread Martin G . Skjæveland
Hi, Then I write some text some text ~<>~. because I want "<>" 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 \label{some_src_block_name}some_src_block_name in verbatim. I have

[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 #+INCLU

[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 thi

[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 progr