[O] Generating an Index.org file from a directory?
Hi, I wish to generate an Index.org file from a directory that contain only org files. In the Manual there isn't an instruction how to do that but only how to generate an Index.html file from a directory. Why must one publish org files to html if and only want to get an Index.org file? -- Best Regards, Paul http://csanyi-pal.info
[O] Exporting to FreeMind - opened in FreeMind failed
Hi, I have installed GNU Emacs 23.4.1 (x86_64-pc-linux-gnu, GTK+ Version 2.24.10) of 2012-04-07 on trouble, modified by Debian installed from Debian repository, and FreeMind Version 0.9.0 installed from Debian repository. In Emacs Org-mode I export a tree by running C-c C-e m and try open the exported file.mm in FreeMind but get error message: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element type "br" must be followed by either attribute specifications, ">" or "/>". What is the problem here? Is this an Org-mode, or FreeMind bug, or both? -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Bastien writes: > Hi, > > Csanyi Pal writes: > >> In Emacs Org-mode I export a tree by running >> C-c C-e m >> >> and try open the exported file.mm in FreeMind but get error message: >> javax.xml.transform.TransformerException: >> javax.xml.transform.TransformerException: >> com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element >> type "br" must be followed by either attribute specifications, ">" or >> "/>". > > org-freemind.el correctly exports .org files using > > can you try to replace "" by "" (with no space) > and see if that's better? I doubt it's so simple. I try out to replace "" by "" (with no space) and see again that FreeMind can't open this file.mm. > In any case, surely a bug if org-freemind.el. I'm copying > Lennart, the author of this library. Note however that I don't have installed org-mode but in my Emacs still I can to edit in org-mode probably because my Version of Emacs support org-mode by default? -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Bastien writes: > Csanyi Pal writes: > >> Note however that I don't have installed org-mode but in my Emacs still >> I can to edit in org-mode probably because my Version of Emacs support >> org-mode by default? > > You can get Org's version with M-x org-version RET. Indeed! I have Org-mode version 6.33x -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Bastien writes: > Csanyi Pal writes: > >> Indeed! I have Org-mode version 6.33x > > This is prehistory, close to the Big Bang. > > Please update your Emacs or your Org! OK After I search with 'aptitude search emacs' command, I find that emacs24 is installable on my debian system, so I installed it. So now I have Org-mode version 7.8.11 Now, when I try to export a tree in Arduino.org I get a message: Can't find library org What can I do now? -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Csanyi Pal writes: [snip] > So now I have Org-mode version 7.8.11 > > Now, when I try to export a tree in Arduino.org I get a message: > Can't find library org > > What can I do now? I find the solution: I installed emacs24-el and after that I can to export again the tree from Arduino.org to Arduino.mm. However I still get error in FreeMind when I'm trying to open Arduino.mm: javax.xml.transform.TransformerException: javax.xml.transform.TransformerException: com.sun.org.apache.xml.internal.utils.WrappedRuntimeException: Element type "br" must be followed by either attribute specifications, ">" or "/>". -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Bastien writes: [snip] > What is the value of major-mode? It's 'Org'. > What format do you export to? Maybe I don't understand your question. English isn't my first language. I'm exporting .org format to .mm format. > Did you try all this with emacs -Q? What is 'emacs -Q'? > Please help us help you. I want to do so. -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Nick Dokos writes: [snip] > Good: if you can reproduce the problem with emacs -Q, then it's probably > a bug in org (presumably org-freemind.el in this case). In that case, the > best thing you can do is to trim down your input file as far as possible > while still reproducing the problem (that's what people refer to as an ECM > around these parts) and post that on the list with a description of what > needs to be done. OK I started emacs with the command 'emacs -Q' and did the followings: Open the Test.org file in Org mode. Export the tree into FreeMind format with the command: C-c C-e m Get the Test.mm file. In the FreeMind when I open the Test.mm file, I get the following message: Error while parsing file:freemind.main.XMLParseException: XML Parse Exception during parsing of a map element at line 80: Expected: map What can I do further to solve this problem? The attached files: * A program testének részei ** Változók megadása // a piezoelektromos kristály "hangszóró" a 9-ik // digitális tűre van csatlakoztatva int hangszoroTu = 9; // a hangjegyek száma a dallamban int ahangjegyekszama = 28; // a dallam egy sorozatban vannak megadva // a betűk a hangjegyeket, a végén a szóköz szünetet jelent char hangjegysor[] = "cecegg cecegg Chagfa gfedcc "; // az egymást követő hangok hossza egy sorozatban van megadva int hanghossza[] = { 1, 1, 1, 1, 2, 1, 1, 1, 1, 1, 1, 2, 1, 1, 1,1,1,1,2,1,1,1,1,1,1,2,1,4 }; int sebesseg = 300; ** szolaHang függvény // létrehozza a szolaHang függvényt, amely megszólaltatja a hangot // a függvény két egész számú változót kér, melyek: hang és idotartam // a hang változó a szolaHangjegyHangja függvényben kap értéket // Itt rezegtetjük meg a membránt! void szolaHang(int hang, int idotartam) { // alább egy ismétlődő rész következik: // tedd, míg i kisebb (időtartam x 1000L) értékénél // Mi az L? Válasz itt, az U & L formatters cím alatt: // http://arduino.cc/en/Reference/IntegerConstants // i értékét növeld minden lépésben a hang változó kétszeresével // i += hang * 2 jelentése: i = i + hang x 2 for (long i = 0; i < idotartam * 1000L; i += hang * 2) { // 5 Voltot adunk a piezoelektromos kristálynak digitalWrite(hangszoroTu, HIGH); // legyen 5V a 'hang' értékének megfelelő időhosszig delayMicroseconds(hang); // 0 Voltot adunk a piezoelektromos kristálynak digitalWrite(hangszoroTu, LOW); // legyen 0V a 'hang' értékének megfelelő időhosszig delayMicroseconds(hang); } } ** szolaHangjegyHangja függvény // létrehozza a szolaHangjegyHangja függvényt, amely // kér egy betűjel (hangjegy), és egy egész számú (idotartam) változót, // megadja a hangjegyek neveit és a nekik megfelelő hosszúságú időtartamot, // ameddig majd kapják a szögletes hullám MAGAS értékét. void szolaHangjegyHangja(char hangjegy, int idotartam) { char hangjegynevek[] = { 'c', 'd', 'e', 'f', 'g', 'a', 'h', 'C' }; int hangok[] = { 1915, 1700, 1519, 1432, 1275, 1136, 1014, 956 }; // lejátssza a hangjegy nevének megfelelő hangot for (int i = 0; i < 8; i++) { // ha a hangjegyeknevek sorozatból az egyik elem // megfelel a hangjegy változó pillanatnyi értékének if (hangjegynevek[i] == hangjegy) { // akkor hívja a szolaHang függvényt a következő változókkal // hangok és időtartam; itt a hangok[i] értéke // lesz a hang változó értéke a szolaHang függvény számára szolaHang(hangok[i], idotartam); } } } ** Beállítások // a digitális 9-ik tű kimenetre van beállítva void setup() { pinMode(hangszoroTu, OUTPUT); } ** Hurok rész // ezt ismételgeti, míg le nem játszotta // a dallam összes hangját void loop() { // amíg az i változó értéke nem lesz 28, addig ismétli // a lenti parancsokat, vagyis lejátssza egyenként // a dallam hangjait for (int i = 0; i < ahangjegyekszama; i++) { // ha a hangjegysor eleme szóköz, if (hangjegysor[i] == ' ') { // akkor szünet lesz egy darabig delay(hanghossza[i] * sebesseg); // ez a szünet } else { // máskülönben megszólal egy hang a hangjegysorból // hívjuk a szolaHangjegyHangja függvényt, megadva neki a // a hangjegysor egyik elemét, a hang hosszát szorozva a sebességgel szolaHangjegyHangja(hangjegysor[i], hanghossza[i] * sebesseg); } // szünet a dallam hangjai között delay(sebesseg / 2); } } Test.mm Description: Test.mm file -- Regards from Pal
Re: [O] Exporting to FreeMind - opened in FreeMind failed
Nick Dokos writes: > Csanyi Pal wrote: [snip] > Well, I suspect that none of us here is a freemind "expert" (I know I'm > not), with the possible exception of Lennart Borgman, the author of > org-freemind.el. So the main question is: is this a bug in freemind or > is this a bug in the org freemind export? You have not posted the org > file that produced all of this (or if you have, I cannot see it clearly > in your mail). That could help. If Lennart could be persuaded to take a > look, that might help. And if you could be persuaded to simplify the > example (ECM = complete *minimal* example) so that it exhibits the > problem with as few nodes as possible (I count seven nodes in your .mm > file: does it need to be that complicated?), that might help. > > Here is an example of an org file that produces a map that works: > > > * foo > > this > > How much do you need to complicate it to produce something that does > *not* work? I start with this example abowe and exported it successfully. Then I add again and again more and more to it and get a working file.mm that I can to open in FreeMind. Finally I did export successfully my first Arduino.org file, that is complicated. Well, it works now. What did I to get it working? I'm start using an .emacs file that has the following content only: (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(default ((t (:family "Bitstream Vera Sans Mono" :foundry \ "bitstream" :slant normal :weight normal :height 150 \ :width normal) (setq initial-frame-alist '((top . 16) (left . 64) (width . 122) (height . 41)) ) (setq default-frame-alist '((top . 16) (left . 64) (width . 122) (height . 41) (menu-bar-lines . 1) (vertical-scroll-bars . nil) \ (tool-bar-lines . 0)) ) Thank you for help! -- Regards from Pal
[Orgmode] Not Match - When follow Hyperlink
Hi, I have installed on Debian GNU/Linux Lenny GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) of 2008-11-09 on raven, modified by Debian In emacs-org mode when follow a Hyperlink I get a Message: 'Not Match'. When the file whereof the Hyperlink points is another file.org, then the file being opened and get the 'Not Match' message, but when the file is say PDF or DVI I can't to open that file and get the message 'Not Match'. I edited the .emacs file: --> (defun define-trivial-mode(mode-prefix file-regexp &optional command) (or command (setq command mode-prefix)) (let ((mode-command (intern (concat mode-prefix "-mode" (fset mode-command `(lambda () (interactive) (toggle-read-only t) (start-process ,mode-prefix nil ,command (buffer-file-name)) (kill-buffer (current-buffer (add-to-list 'auto-mode-alist (cons file-regexp mode-command))) ) (define-trivial-mode "gv" "\\.ps$") (define-trivial-mode "evince" "\\.pdf$") (define-trivial-mode "gschem" "\\.sch$") ;; dvi (defun view-dvi () "Use evince to view DVIs." (interactive) (progn (toggle-read-only t) (start-process "dvi" nil "evince" (buffer-file-name))) ) (add-to-list 'auto-mode-alist '("\\.dvi\\'" . view-dvi)) ----> Is there a way how to open in emacs org-mode a pdf or dvi file with Evince? Any advices will be appreciated! -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Not Match - When follow Hyperlink
Csanyi Pal writes: > I have installed on Debian GNU/Linux Lenny > GNU Emacs 22.2.1 (i486-pc-linux-gnu, GTK+ Version 2.12.11) > of 2008-11-09 on raven, modified by Debian > > In emacs-org mode when follow a Hyperlink I get a Message: 'Not > Match'. > > When the file whereof the Hyperlink points is another file.org, then > the file being opened and get the 'Not Match' message, but when the > file is say PDF or DVI I can't to open that file and get the message > 'Not Match'. Sorry, it's my mistake. I was edited these org files on Debian GNU/Linux Etch, but now, after upgraded my system to Lenny, I have changed the directory of my Org files. So, after I fixed the path to the directory of my org files in my Hyperlinks, I can to open PDF files from org files again. -- Regards, Paul Csanyi http://www.freewebs.com/csanyi-pal/index.htm ___ Emacs-orgmode mailing list Remember: use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode