[O] Ruby babel src block does not run some code
For example, I have a ruby src block like this: ``` #+BEGIN_SRC ruby module A CREF = "*** CREF in module A" end module A module B puts CREF end end #+END_SRC ``` And press `[C-c C-c]` to execute, get this error: ``` #+BEGIN_EXAMPLE -:3: module definition in method body -:4: dynamic constant assignment CREF = "*** CREF in module A" ^ -:7: module definition in method body -:8: module definition in method body #+END_EXAMPLE ``` My emacs version: 24.5.1 My org-mode version: 8.3.4 (installed from MELPA) [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/
Re: [O] [OT] A new web browser‽
Ramon Diaz-Uriartewrites: > Dear Eric, > > On Sun, 10-04-2016, at 15:17, Eric Abrahamsen wrote: >> Eric S Fraga writes: >> >> >> I installed the eww-lnum package right away, as that provides the main >> functionality I liked from Conkeror: hit a key, and pick a link to do >> something with. Rather strangely, the KeySnail plugin for Firefox seems >> to do everything *but* this, which I thought was weird since, if you're >> going to control your browser through the keyboard, following links is >> generally the main thing you want to do. I've only had it for a few >> hours, though, so maybe I'm missing something. >> > > I think you might want to try the "HoK" (hit a hint for KeySnail) extension, > available here > > https://github.com/mooz/keysnail/wiki/plugin That looks like just the thing, thank you! Just installed it, and am playing around now. E
Re: [O] [OT] A new web browser‽
Richard Lawrencewrites: > Eric Abrahamsen writes: > >> I installed the eww-lnum package right away, as that provides the main >> functionality I liked from Conkeror: hit a key, and pick a link to do >> something with. Rather strangely, the KeySnail plugin for Firefox seems >> to do everything *but* this, which I thought was weird since, if you're >> going to control your browser through the keyboard, following links is >> generally the main thing you want to do. I've only had it for a few >> hours, though, so maybe I'm missing something. > > IIUC, Firefox actually has this behavior out of the box: press ' (single > quote) and start typing the link text. I was surprised and pleased to > learn about that when I first found it. That may be why it isn't > included in KeySnail. Clearly I've been away from the "normal browser world" for too long -- I had no idea Firefox did this...
Re: [O] Promote/demote an Active Region
Nicolas, Upgraded to org 8.3.4, made no difference. But I have just now realised what the problem is! I have been using org-demote-subtree, not org-demote , Meta-Shift-Right, not Meta-Right. And org-demote does indeed work on an active region for me. I suppose you could argue that org-demote-subtree ought to do the same, but (a) there's no need and (b) there might be a question about what is meant by 'subtrees' in a region. Doh! Thanks for your help. Regards, Ron - Original message - From: Nicolas GoaziouTo: Ron Mitchell Cc: emacs-orgmode@gnu.org Subject: Re: Promote/demote an Active Region Date: Sun, 10 Apr 2016 09:03:02 +0200 Hello, Ron Mitchell writes: > In "2.5 Structure Editing" the org info manual says > > "When there is an active region (Transient Mark mode), promotion and > demotion work on all headlines in the region." > > That doesn't work for me. Only the line at point is pro- or de- moted. I cannot reproduce it. E.g., in the following document, where region boundaries are marked with |, |* H1 ** H11| * H2 using M-Right gives ** H1 *** H11 * H2 Regards, -- Nicolas Goaziou
Re: [O] [BUG] Failure to run sh source block
On 2016-04-10 at 16:44, Christian Moewrote: > I've hit a couple of odd problems after updating to Emacs 24.5 and Org > 8.3.4 (freshly pulled). > > Trying to run a simple shell source block, e.g. > > #+begin_src sh > pwd > #+end_src > > fails with this error: > > org-babel-variable-assignments:sh: Symbol's function definition is void: > org-babel-get-header org-babel-load-languages now uses 'shell' instead of 'sh'. -k.
[O] [BUG] Capture template table line specification
Hi again, Another odd problems after updating to Emacs 24.5 and Org 8.3.4: I have a capture template that puts the captured info into a table line before the second horizontal line of the table. Capture fails with this message: Capture template `x': Invalid table line specification "II-1" Far as I can tell from the manual, the specification is exactly right, and it has always worked before. Yours, Christian
[O] [BUG] Failure to run sh source block
I've hit a couple of odd problems after updating to Emacs 24.5 and Org 8.3.4 (freshly pulled). Trying to run a simple shell source block, e.g. #+begin_src sh pwd #+end_src fails with this error: org-babel-variable-assignments:sh: Symbol's function definition is void: org-babel-get-header Yours, Christian
Re: [O] Promote/demote an Active Region
Hello, Ron Mitchellwrites: > When I do Meta-Shift-Right on your example (with, as in yours, the > region set to the first two lines): > > * H1 > ** H11 > * H2 > > I get > > * H1 > *** H11 > * H2 > > It's not a problem with key binding, because I get the same result if I > execute the command 'org-demote-subtree'. You could update Org and try again. The issue may have been fixed already. Regards, -- Nicolas Goaziou
[O] Exporting a new markup
Hi everyone, I need your help. Prior to version 8.3.* I used a custom marker () to export keyboard shortcut in html (that is to kbd tags). What I have done is, in ox-org.el or org-element.el, every time there was a function with "bold" or "code", I copied/pasted the function and modified it to meet my needs. For instance, I have created a =org-element-my-object-keystroke-interpreter= function, or override the =org-element-object-successor-alist= const. I have detailed what I have done in this emacs.stackexchange answer: http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-more-markups/12822#12822 My setup works great with org versions 8.2.10, but with 8.3.1 (to 8.3.4), it doesn't do the job I have tried to edebug, and looked at commits, but I can't pinpoint what's the problem. The Release notes doesn't seem either to indicate that there was a change between the versions that could broke my workflow :( What have I missed? -- Fred
Re: [O] Promote/demote an Active Region
Hi Nicolas, Thanks, that's interesting. When I do Meta-Shift-Right on your example (with, as in yours, the region set to the first two lines): * H1 ** H11 * H2 I get * H1 *** H11 * H2 It's not a problem with key binding, because I get the same result if I execute the command 'org-demote-subtree'. Regards Ron - Original message - From: Nicolas GoaziouTo: Ron Mitchell Cc: emacs-orgmode@gnu.org Subject: Re: Promote/demote an Active Region Date: Sun, 10 Apr 2016 09:03:02 +0200 Hello, Ron Mitchell writes: > In "2.5 Structure Editing" the org info manual says > > "When there is an active region (Transient Mark mode), promotion and > demotion work on all headlines in the region." > > That doesn't work for me. Only the line at point is pro- or de- moted. I cannot reproduce it. E.g., in the following document, where region boundaries are marked with |, |* H1 ** H11| * H2 using M-Right gives ** H1 *** H11 * H2 Regards, -- Nicolas Goaziou
Re: [O] latex preview in latex block
Nicolas Goaziouwrites: > Hello, > > Jérémie Juste writes: > >> Is it possible to activate the latex preview in org-mode within in latex >> bloc? > > It isn't possible out of the box. Org doesn't look at the contents of > src blocks, which are supposed to be written in a foreign language. > > However, you can probably write a function for your own use, starting > from `org-format-latex'. > > Regards, Thanks for the lead, I'll give it a try post the code back here if it works. Best regards, Jeremie
[O] [OT] A new web browser‽
For my part I use IceCat. They have made a lot of progress recently if you are hesitating. As for key bindings the closest options to emacs I have found is firemacs: http://www.mew.org/~kazu/proj/firemacs/en/ Best regards, Jeremie
Re: [O] [OT] A new web browser‽
Dear Eric, On Sun, 10-04-2016, at 15:17, Eric Abrahamsenwrote: > Eric S Fraga writes: > > > I installed the eww-lnum package right away, as that provides the main > functionality I liked from Conkeror: hit a key, and pick a link to do > something with. Rather strangely, the KeySnail plugin for Firefox seems > to do everything *but* this, which I thought was weird since, if you're > going to control your browser through the keyboard, following links is > generally the main thing you want to do. I've only had it for a few > hours, though, so maybe I'm missing something. > I think you might want to try the "HoK" (hit a hint for KeySnail) extension, available here https://github.com/mooz/keysnail/wiki/plugin In fact, it might already be available by default (I think it was in my installation) but you might not have key bindings set up for it (you can check if it is available by M-x: hok) There is a comment about this extension (and the also very neat Tanything extension) in http://blog.binchen.org/posts/use-firefox-in-emacs-way-3.html I have configured HoK in my .keysnail.js so that the behavior of HoK is now similar to what I had with conkeror (follow links in new buffers (or tabs) or new windows, etc). Caveat emptor: I only started playing with KeySnail a few hours ago, after seeing Rasmus' comment this morning. Best, R. -- Ramon Diaz-Uriarte Department of Biochemistry, Lab B-25 Facultad de Medicina Universidad Autónoma de Madrid Arzobispo Morcillo, 4 28029 Madrid Spain Phone: +34-91-497-2412 Email: rdia...@gmail.com ramon.d...@iib.uam.es http://ligarto.org/rdiaz
Re: [O] the role of org-odt-preferred-output-format etc
>>> "Ken" == Ken Mankoffwrites: > On 2016-04-10 at 11:52, Uwe Brauer wrote: >> Thanks that works, as far as the setq are concerned, what is use-package >> supposed to do, in my GNU emacs 25 I cannot find it. > https://github.com/jwiegley/use-package > It is a replacement for (require) that takes care of installing > dependencies and defers loading. It lets me launch emacs in <2 seconds > when my old require-based init.el took ~15. Oh very cool, but this means I would have to rewrite all my init files, I leave this for the summer :-D Uwe
Re: [O] the role of org-odt-preferred-output-format etc
On 2016-04-10 at 11:52, Uwe Brauerwrote: > Thanks that works, as far as the setq are concerned, what is use-package > supposed to do, in my GNU emacs 25 I cannot find it. https://github.com/jwiegley/use-package It is a replacement for (require) that takes care of installing dependencies and defers loading. It lets me launch emacs in <2 seconds when my old require-based init.el took ~15. -k.
Re: [O] the role of org-odt-preferred-output-format etc
>>> "Ken" == Ken Mankoffwrites: > I convert to DOC with the following on OS X: > (use-package ox-odt > :ensure nil > :config (progn > (setq org-odt-preferred-output-format "doc") > (setq org-odt-convert-processes > '(("LibreOffice" "/path/to/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to %f%x %i") Thanks that works, as far as the setq are concerned, what is use-package supposed to do, in my GNU emacs 25 I cannot find it. > It fails if LibreOffice is running, but works if it is not running. Ah this is a point, I did not consider, thanks!
Re: [O] [OT] A new web browser‽
Marcin Borkowski writes: > https://vivaldi.com/ > > Did anyone hear about it? Any thoughts/experiences? "Taking notes > while browsing" seems to be something close to org-capture, no? > Keyboard-driven might mean either vim-like or emacs-like bindings, or > (hopefully) configurable ones. I, for one, would like to try it out, > though I do not have too high hopes. > > Best, It looks interesting, but not interesting enough to replace Icecat/Firefox for me. What would be interesting enough to replace it for me: getting browser sandboxing in place. This is the one thing that makes Chromium more appealing than Firefox/Icecat right now... but since all we have is Icecat, that's what I'm using here! - Chris
[O] [OT] Emacs on Android
Since there have been discussions on this list about using Org on an Android phone, I thought some might be interested in this: http://endlessparentheses.com/running-emacs-on-android.html Scott Randby sran...@gmail.com http://srandby.org/ PGP key ID: 0xF2D38A63 Key server: http://pool.sks-keyservers.net/ Key fingerprint: 5418 123E DCD3 7DA0 1770 0BDE 301E E657 F2D3 8A63
Re: [O] [OT] A new web browser‽
Eric Abrahamsenwrites: > I installed the eww-lnum package right away, as that provides the main > functionality I liked from Conkeror: hit a key, and pick a link to do > something with. Rather strangely, the KeySnail plugin for Firefox seems > to do everything *but* this, which I thought was weird since, if you're > going to control your browser through the keyboard, following links is > generally the main thing you want to do. I've only had it for a few > hours, though, so maybe I'm missing something. IIUC, Firefox actually has this behavior out of the box: press ' (single quote) and start typing the link text. I was surprised and pleased to learn about that when I first found it. That may be why it isn't included in KeySnail. Best, Richard
Re: [O] the role of org-odt-preferred-output-format etc
I convert to DOC with the following on OS X: (use-package ox-odt :ensure nil :config (progn (setq org-odt-preferred-output-format "doc") (setq org-odt-convert-processes '(("LibreOffice" "/path/to/LibreOffice.app/Contents/MacOS/soffice --headless --convert-to %f%x %i") It fails if LibreOffice is running, but works if it is not running. -k. On 2016-04-10 at 09:41, Uwe Brauerwrote: "Eric" == Eric Abrahamsen writes: > >> Uwe Brauer writes: >>> Hello >>> >>> Maybe I misunderstood the manual >>> http://orgmode.org/manual/Extending-ODT-export.html >>> and >>> > http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter >>> >>> I can successfully convert a org file to odt, but sometimes I need it to >>> be directly in doc format. >>> >>> So I thought I set org-odt-preferred-output-format >>> to «doc». > >> I set that option to the string "rtf", and everything works as expected. >> You don't actually specify the preferred output, you just export to ODT, >> and then the secondary conversion happens automtically. Ie, I now just >> export to ODT, and automatically end up with an RTF file. I haven't >> tried that programmatically, but I'd guess it works the same way: just >> don't put the "doc" in there at all. Does that work? > > I made some progress, I tried out docx and it failed I went back to doc > format in in the message buffer, the following lines > > Executing soffice --headless --convert-to doc:"MS Word 97" --outdir > /home/oub/tex/Proy-MTM-2016/LaTeX-org/ > /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt > > Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed > > Indicate that it fails again, but I don't understand why. > > I tried rtf and got > > Executing soffice --headless --convert-to doc:"MS Word 97" --outdir > /home/oub/tex/Proy-MTM-2016/LaTeX-org/ > /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt > > Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed > > He also claims that the directory > /home/oub/tex/Proy-MTM-2016/LaTeX-org/rft does not exist. Why the heck > he needs it is beyond me. > > What I understand is that he uses soffice, which is the official old > version from my ubuntu version, I have newer versions which I installed > in /opt/libreoffice4.3 and /opt/libreoffice5.1. > > How can I tell org to use those? > > Uwe Brauer
Re: [O] [OT] A new web browser‽
On Sunday, 10 Apr 2016 at 13:17, Eric Abrahamsen wrote: > I installed the eww-lnum package right away, as that provides the main Thanks for the pointer! Excellent addition to eww. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
Re: [O] the role of org-odt-preferred-output-format etc
>>> "Eric" == Eric Abrahamsenwrites: > Uwe Brauer writes: >> Hello >> >> Maybe I misunderstood the manual >> http://orgmode.org/manual/Extending-ODT-export.html >> and >> http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter >> >> I can successfully convert a org file to odt, but sometimes I need it to >> be directly in doc format. >> >> So I thought I set org-odt-preferred-output-format >> to «doc». > I set that option to the string "rtf", and everything works as expected. > You don't actually specify the preferred output, you just export to ODT, > and then the secondary conversion happens automtically. Ie, I now just > export to ODT, and automatically end up with an RTF file. I haven't > tried that programmatically, but I'd guess it works the same way: just > don't put the "doc" in there at all. Does that work? I made some progress, I tried out docx and it failed I went back to doc format in in the message buffer, the following lines Executing soffice --headless --convert-to doc:"MS Word 97" --outdir /home/oub/tex/Proy-MTM-2016/LaTeX-org/ /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed Indicate that it fails again, but I don't understand why. I tried rtf and got Executing soffice --headless --convert-to doc:"MS Word 97" --outdir /home/oub/tex/Proy-MTM-2016/LaTeX-org/ /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt Export to /home/oub/tex/Proy-MTM-2016/LaTeX-org/cv-libre.doc failed He also claims that the directory /home/oub/tex/Proy-MTM-2016/LaTeX-org/rft does not exist. Why the heck he needs it is beyond me. What I understand is that he uses soffice, which is the official old version from my ubuntu version, I have newer versions which I installed in /opt/libreoffice4.3 and /opt/libreoffice5.1. How can I tell org to use those? Uwe Brauer
Re: [O] the role of org-odt-preferred-output-format etc
Uwe Brauerwrites: > Hello > > Maybe I misunderstood the manual > http://orgmode.org/manual/Extending-ODT-export.html > and > http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter > > I can successfully convert a org file to odt, but sometimes I need it to > be directly in doc format. > > So I thought I set org-odt-preferred-output-format > to «doc». I set that option to the string "rtf", and everything works as expected. You don't actually specify the preferred output, you just export to ODT, and then the secondary conversion happens automtically. Ie, I now just export to ODT, and automatically end up with an RTF file. I haven't tried that programmatically, but I'd guess it works the same way: just don't put the "doc" in there at all. Does that work? > But then what? > > Shall I use > > org-odt-convert > > For example > (org-odt-convert "~/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt" "doc") > > That did not work > > I also checked the variable > org-odt-convert-process > > which was set to «Libreoffice», I changed that to «unoconv», but that did > not help. > > Any suggestion? > > thanks > > Uwe Brauer
Re: [O] [OT] A new web browser‽
Eric S Fragawrites: > On Sunday, 10 Apr 2016 at 02:42, Eric Abrahamsen wrote: >> Ahem... What I meant to say is that I haven't spent the time to figure >> out a quick, intuitive way to say "open *this* link in eww... now open >> *this* link in my external browser", etc. That was all. > > My typical use is that eww is the default for any link I run into in > emacs. If the page visited is not appropriate, I simply hit w > (eww-copy-page-url), switch to Firefox and open the page ("o C-v RET" in > vimperator...). I installed the eww-lnum package right away, as that provides the main functionality I liked from Conkeror: hit a key, and pick a link to do something with. Rather strangely, the KeySnail plugin for Firefox seems to do everything *but* this, which I thought was weird since, if you're going to control your browser through the keyboard, following links is generally the main thing you want to do. I've only had it for a few hours, though, so maybe I'm missing something. In eww, I was originally looking for "open in new tab"/"open in background tab" functionality, but it's not there. Then I discovered that eww-lnum is supposed to provide exactly that, through various permutations of the prefix argument to `eww-lnum-follow'. You're supposed to get "follow in new session" with a C-u prefix, and "follow in background" with a negative prefix. But when I used either of those options, the links were instead opened in my (newly-installed, newly-KeySnailed) Firefox instance. That was unexpected, but actually welcome -- it means I have a way of choosing whether to open links in Emacs/Eww, or Firefox. It's clearly not the way eww-lnum is meant to work (and I'd still like to be able to open a link in a background eww session), but that can remain another mystery for another day. E
[O] org-readme-convert-to-markdown, or org-md-export-as-markdown in the export menu
Hello How can I one or both of the above functions in the standard org export menu? thanks Uwe Brauer
[O] org-readme-changelog-to-readme?
Hello Maybe I misunderstood the function org-readme-changelog-to-readme: I thought I fire it up in a ChangeLog buffer and a README.org file is generated, but that seems not to be the case. What do I miss? Uwe Brauer
[O] the role of org-odt-preferred-output-format etc
Hello Maybe I misunderstood the manual http://orgmode.org/manual/Extending-ODT-export.html and http://orgmode.org/manual/Configuring-a-document-converter.html#Configuring-a-document-converter I can successfully convert a org file to odt, but sometimes I need it to be directly in doc format. So I thought I set org-odt-preferred-output-format to «doc». But then what? Shall I use org-odt-convert For example (org-odt-convert "~/tex/Proy-MTM-2016/LaTeX-org/cv-libre.odt" "doc") That did not work I also checked the variable org-odt-convert-process which was set to «Libreoffice», I changed that to «unoconv», but that did not help. Any suggestion? thanks Uwe Brauer
Re: [O] [OT] A new web browser‽
On Sunday, 10 Apr 2016 at 11:53, Sauli Heinola wrote: > I mostly use eww's `eww-browse-with-external-browser'-command, bound to > the &-key by default. The external browser is specified by the > `shr-external-browser'-variable. Ah, very helpful. Thanks. Works well. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
Re: [O] [OT] A new web browser‽
* Eric S Fraga: > My typical use is that eww is the default for any link I run into in > emacs. If the page visited is not appropriate, I simply hit w > (eww-copy-page-url), switch to Firefox and open the page ("o C-v RET" in > vimperator...). I mostly use eww's `eww-browse-with-external-browser'-command, bound to the &-key by default. The external browser is specified by the `shr-external-browser'-variable.
Re: [O] importing tasks from .ics
On Saturday, 9 Apr 2016 at 19:03, Victor A.Stoichita wrote: > I still have one major issue though: importing tasks from ics to > org. The awk script referenced here [1] works fine for calendar events > [VEVENT] but doesn’t seem to parse tasks [VTODO]. Does anyone know > another script that does that already? It should be relatively straightforward (famous last words ;-) to adapt the script to handle VTODO items. Can you send me an ics file with some typical such entries? If I have time, I'll try to update the script. -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
Re: [O] [OT] A new web browser‽
On Sunday, 10 Apr 2016 at 02:42, Eric Abrahamsen wrote: > Ahem... What I meant to say is that I haven't spent the time to figure > out a quick, intuitive way to say "open *this* link in eww... now open > *this* link in my external browser", etc. That was all. My typical use is that eww is the default for any link I run into in emacs. If the page visited is not appropriate, I simply hit w (eww-copy-page-url), switch to Firefox and open the page ("o C-v RET" in vimperator...). -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.92.1, Org release_8.3.4-705-g716e33
Re: [O] export to odt is not per default in the export menu
>>> FWIW, I also think this would be a good thing to load by default. >> >> Done. > > Thanks very much, Nicolas! +1! Yours, Christian
[O] org-mode -> latex
For a long time I've wanted to write in org-mode and export it to latex, but I've never been successful until now. So here is a yasnippet that allows you to do it - --8<---cut here---start->8--- # -*- mode: snippet -*- # name: org2latex # key: org2latex # -- #+TITLE: foobar #+LaTeX_HEADER: \usepackage[utf8]{inputenc} #+LaTeX_HEADER: \usepackage[T1]{fontenc} #+LaTeX_HEADER: \usepackage{palatino} #+LaTeX_HEADER: \usepackage{fixltx2e} #+latex_header: \usepackage[backend=biber,style=philosophy-modern,doi=true,hyperref=true,backref=true,backrefstyle=two,date=year,maxcitenames=3]{biblatex} #+LATEX_HEADER: \addbibresource{~/foo/foo/foo.bib} #+LATEX_HEADER: \usepackage{makeidx} #+latex_header: \makeindex #+latex_header: \usepackage[acronym]{glossaries} #+latex_header: \makeglossaries #+latex_header: \usepackage[unhide]{todo} #+latex_header: \usepackage{everypage} #+latex_header: \usepackage{draftwatermark} #+latex_header: \usepackage{hyperref} #+latex_header: \hypersetup{colorlinks,linkcolor={red},citecolor={magenta},urlcolor={blue}} # #+options: num:nil #+OPTIONS: toc:2 \clearpage \renewcommand{\thesection}{} \renewcommand{\thesubsection}{} \renewcommand{\thesubsubsection}{} \input{foo.glos} \input{foo.acro} /foo/ Your main text goes here /foo/ 'glos' is your glossary file, and 'acro' is your acronyms file, and 'bib' is your biblatex references. 'foo.glos' ;; needs to be a proper latex glossary file 'foo.acro' ;; needs to be a proper latex acronym file 'foo.bib' ;; needs to be a proper latex bib file, I'm using 'JabRef' for it. This file will accept a 'cite:foo' for biblatex references, and also '\gls{foo}' for glossary and acronym entries, and '\index{foo}' for index entries. You *must* give the complete path of your 'foo.bib' file as it sets up where every other file can be found. This works with a complete setup of 'TexLive 2015'. \todo{This is how your 'TODO' items should appear} \clearpage \addcontentsline{toc}{chapter}{Glossary} \printglossaries \clearpage \addcontentsline{toc}{chapter}{References} \printbibliography \clearpage \addcontentsline{toc}{chapter}{Index} \printindex \todos \end{document} --8<---cut here---end--->8--- If you don't like something, then comment it out and do a rebuild to see if your modification works. To use - a - 'C-c C-e l l' to get a latex tex file b - Then use your favourite tex command to build it into a PDF file. I use my 'pdfbuild' file which I've uploaded to my blog "A taste of linux". The above template will give you a nice PDF file with a table of contents, every page with a watermark on saying 'DRAFT', the ability to put '\todo{comments}' in to show you what needs to be done at that point. And if you've set them up, a bibliography, glossary and acronyms and an index. As they say in Parliament "I commend it to the house." :) And I hope its useful for you? Sharon. -- A taste of linux = http://www.sharons.org.uk TGmeds = http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.92 signature.asc Description: PGP signature
[O] Generate custom org-agenda
Hi! org-agenda-list generates my default agenda. I can generate it via Elisp via org-agenda-list. What about a different agenda I already defined with org-agenda-custom-commands? Am I able to generate it via Elisp as well? The agenda dispatcher generates my custom agenda of choice via «n». Is it possible to get this «n»-agenda via something like (org-agenda-list "n") or similar? If possible: I don't want to define the org-agenda-custom-commands multiple times: one for the interactive org-agenda-custom-commands and one for the Elisp-call for «n» ... Thanks! Background: I'm trying to come up with a few lines of Elisp to generate a (non-default) agenda, take a screenshot (via imagemagick), and place its result in a specific PNG file. -- mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode: > get Memacs from https://github.com/novoid/Memacs < https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
Re: [O] export to odt is not per default in the export menu
Nicolas Goaziouwrites: > Hello, > > Eric Abrahamsen writes: > >>> This question pops up fairly often. I suggest that ODT should be >>> provided out of the box. It is clearly in demand. It meets the needs of >>> a whole segment of users that need to work with office software. Sure, >>> nothing prevents them from using it by adding a brief line to their init >>> file. But why not advertise it? It's a major feature and it works well. >> >> FWIW, I also think this would be a good thing to load by default. > > Done. Thanks very much, Nicolas!
Re: [O] export to odt is not per default in the export menu
Hello, Eric Abrahamsenwrites: >> This question pops up fairly often. I suggest that ODT should be >> provided out of the box. It is clearly in demand. It meets the needs of >> a whole segment of users that need to work with office software. Sure, >> nothing prevents them from using it by adding a brief line to their init >> file. But why not advertise it? It's a major feature and it works well. > > FWIW, I also think this would be a good thing to load by default. Done. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] expose nrepl's timeout setting in ob-clojure.el
Hello, Thank you for the update. Frederick Giassonwrites: > +(defcustom org-babel-clojure-sync-nrepl-timeout 10 > + "Timeout value, in seconds, of a Clojure sync call. > + If the value is nil, timeout is disabled." > + :type 'integer > + :group 'org-babel) Some keywords are missing: :version "25.1" :package-version '(Org . "9.0") and perhaps :safe #'wholenump > (defcustom org-babel-clojure-backend >(cond ((featurep 'cider) 'cider) > (t 'slime)) > @@ -94,8 +100,9 @@ > (let ((result-params (cdr (assoc :result-params params >(setq result > (nrepl-dict-get > - (nrepl-sync-request:eval > - expanded (cider-current-connection) (cider-current-session)) > + (let ((nrepl-sync-request-timeout > org-babel-clojure-sync-nrepl-timeout)) > + (nrepl-sync-request:eval > +expanded (cider-current-connection) (cider-current-session))) You forgot to (defvar nrepl-sync-request-timeout) I also think it makes sense to merge the 3 patches. Regards, -- Nicolas Goaziou
Re: [O] [PATCH] org-attach: Use relative path for git annex
Hello, Erik Hetznerwrites: > I don’t believe it was ever applied, nor was it superseded by another. This > was > to fix a problem with testing older versions of git-annex. I believe David > remove git-annex on the buildbot, which stopped it from failing, because it > was > not being tested. > > If you need me to make any changes to this patch, let me know. Thank > you! I applied it. Thank you. Regards, -- Nicolas Goaziou
Re: [O] a patch to ob-lisp.el
Hello, "numbch...@gmail.com"writes: > Oh, right. I should attach it. Applied, with a few fixes. Thank you. Regards, -- Nicolas Goaziou
Re: [O] Fxporting a new markup
Thanks! I don't know if it was right in front of me or if I didn't look at the right files, but as it was indicated in the commit and in org-element.el: > ;; Creating a new type of object requires to alter > ;; `org-element--object-regexp' and `org-element--object-lex', add the > ;; new type in `org-element-all-objects', and possibly add > ;; restrictions in `org-element-object-restrictions'. So I did, and my export works now. A big thanks for showing me the right way! -- Fred Quoting "Charles C. Berry": > On Sat, 9 Apr 2016, fredtant...@free.fr wrote: > > > Hi everyone, > > > > I need your help. > > > > Prior to version 8.3.* I used a custom marker () to export keyboard > > shortcut in html (that is to kbd tags). What I have done is, in ox-org.el > or > > org-element.el, every time there was a function with "bold" or "code", > > I copied/pasted the function and modified it to meet my needs. > > For instance, I have created a > =org-element-my-object-keystroke-interpreter= > > function, or override the =org-element-object-successor-alist= const. > > > > I have detailed what I have done in this emacs.stackexchange answer: > > > http://emacs.stackexchange.com/questions/12814/extending-org-mode-with-more-markups/12822#12822 > > > > My setup works great with org versions 8.2.10, but with 8.3.1 (to > 8.3.4), > > it doesn't do the job I have tried to edebug, and looked at commits, > but > > I can't pinpoint what's the problem. The Release notes doesn't seem either > to > > indicate that there was a change between the versions that could broke my > > workflow :( > > > > What have I missed? > > There is no `org-element-object-successor-alist'. You need to look two > years back in the commits: > > bash-3.2$ git log -Sorg-element-object-successor > >commit b5dd32c7e49f3125e5541e85197b8e83e34739a6 >Author: Nicolas Goaziou >Date: Thu Mar 27 00:04:04 2014 +0100 > >org-element: Rewrite object parsing algorithm > >* lisp/org-element.el (org-element-all-successors, >org-element-object-successor-alist): Remove variables. >[...] > > HTH, > > Chuck >
Re: [O] ox-texinfo: add support for NONODE element property
Hello, Jonas Bernoulliwrites: > In the Magit manual I usually use separate nodes for sections and > subsections, but in a few cases a section's children should be part > of the section's node. > > I accomplished that by adding an additional element property NONODE > and redefining `org-texinfo-headline' and `org-texinfo--menu-entries' > accordingly. Here is an equivalent patch: This sounds interesting. What happens if one tries to link to a "nonode" heading within Org? > +(numberedp (and (not nonode) > +(org-export-numbered-headline-p headline info))) This change is unrelated to the specification. There is already :UNNUMBERED: property for this. Regards, -- Nicolas Goaziou
Re: [O] ox-texinfo: non-numbered links to numbered sections
Hello, Jonas Bernoulliwrites: > Currently "#+OPTIONS: num:N" not only affects whether sections are > numbered, it also controls whether links to numbered sections look > like > > See *note 5.2.3: Section hooks. > > or > > See *note Section hooks: Section hooks. > > in the info file. This is not specific to texinfo back-end: all export back-ends behave this way. > Here the first seems better, but when looking at this inside the Info > viewer, then it is either > > See 5.2.3. > > or > > See Section hooks. > > And now the numbered variant is just not informative enough for my > needs. I want links to inform the user what they will get when they > click on it, not how far away from the current location the link > takes them ;-) The point is that you can add text around the section number. This is the only way to get the section number of a given headline. > I would like if the second form were always used, or if you could add > an option that allowed selecting the desired style. The former could > be accomplished simply by removing > > ((org-export-numbered-headline-p destination info) >(mapconcat > #'number-to-string > (org-export-get-headline-number destination info) ".")) > > from `org-texinfo-link'. Instead of reducing the numbers of allowed options, you can use [[*Headline][{{{property(item)}}}]] > Also note that the use of "numbered links" seems to mess with paragraph > justification. In that case lines that contain links tend to be to > short and it gets worse the longer the title gets, probably because that > is present in the info file (and therefor used for justification (maybe > that could be changed?)), but then not displayed in the Info viewer. Please make a different bug report, with an ECM, about it. Regards, -- Nicolas Goaziou
Re: [O] Promote/demote an Active Region
Hello, Ron Mitchellwrites: > In "2.5 Structure Editing" the org info manual says > > "When there is an active region (Transient Mark mode), promotion and > demotion work on all headlines in the region." > > That doesn't work for me. Only the line at point is pro- or de- moted. I cannot reproduce it. E.g., in the following document, where region boundaries are marked with |, |* H1 ** H11| * H2 using M-Right gives ** H1 *** H11 * H2 Regards, -- Nicolas Goaziou
Re: [O] latex preview in latex block
Hello, Jérémie Justewrites: > Is it possible to activate the latex preview in org-mode within in latex > bloc? It isn't possible out of the box. Org doesn't look at the contents of src blocks, which are supposed to be written in a foreign language. However, you can probably write a function for your own use, starting from `org-format-latex'. Regards, -- Nicolas Goaziou