Re: [O] Document of org-map-entries

2016-10-12 Thread York Zhao
One more question: how do I map only the entries that has a specific property defined? The following code didn't work. (org-map-entries (lambda () (...)) "mytag+myproperty<>nil") Thanks, On Thu, Oct 13, 2016 at 1:00 AM, York Zhao wrote: > Thank you very much Nick. > > (info "(org) U

Re: [O] Document of org-map-entries

2016-10-12 Thread York Zhao
Thank you very much Nick. (info "(org) Using the mapping API") was the first doc I read which has very little information on how to use the "match" parameter. (info "(org) Matching tags and properties") does have a lot more detail though. On Thu, Oct 13, 2016 at 12:46 AM, Nick Dokos wrote: >

Re: [O] Document of org-map-entries

2016-10-12 Thread Nick Dokos
York Zhao writes: > I wanted to know how to use the MATCH parameter in > `org-map-entries'. I've searched extensively, but was unable to find > much useful information. Can somebody please shed some lights on > this? > See (info "(org) Using the mapping API") and (info "(org) Matching

[O] Document of org-map-entries

2016-10-12 Thread York Zhao
Hi list, I wanted to know how to use the MATCH parameter in `org-map-entries'. I've searched extensively, but was unable to find much useful information. Can somebody please shed some lights on this? Thanks, York

Re: [O] Problem with python session

2016-10-12 Thread William Henney
Yep, I agree. This is a wart in the vanilla python REPL, and org-mode can't really do much about it. Except maybe warn people. As John noted, this is less of a problem if you use ipython as your REPL. I think it is enough to just do #+BEGIN_SRC emacs-lisp (setq org-babel-python-command "ipython"

Re: [O] Export tangle filename with source block

2016-10-12 Thread Thibault Marin
Thibault Marin writes: > OK, then it looks like I may be able to build a list of source block > name/tangle filename pairs on pre-processing, store it in a global > variable and use it when processing source-blocks. It is probably a > little hack-ish but that would be fine for me. On my initial

Re: [O] One org file to multiple pages static website.

2016-10-12 Thread Pierre-Henry Frohring
Unlike http://endlessparentheses.com/how-i-blog-one-year-of-posts-in-a-single-org-file.html https://github.com/phfrohring/org-to-blog has nothing to do with jekyll or any particular webserver. It just produces html files, sitemap, preserves links and assets in < 400 LOC.

Re: [O] PDF font

2016-10-12 Thread Eric S Fraga
On Tuesday, 11 Oct 2016 at 20:55, Eduardo Mercovich wrote: [...] > I tried a bit of HTML as documents, but the un-packaged nature of it > (document + images + css + etc.) always gave me problems with other > people. Self contained pdfs, on the other hand, just work in every OS. This is where epu

Re: [O] PDF font

2016-10-12 Thread Eduardo Mercovich
Hi Philip. [...] > My goal is a 1-page PDF invoice [...] >> If the only specs you'd like to change are just those fonts, and >> something like Memoir starts with a decent general layout (depending on >> your needs), then it makes sense to tweak it a bit and from then on, >> just use the latex exp

Re: [O] exporting latex to html

2016-10-12 Thread Jeremie Juste
Hello Rasmus, Thanks for the tip but I'm could not find org-preview-latex-process-alist. Ok I'm still investigating. One thing that might be interesting is to convert the latex to html direclty when exporting to html. Another solution could be using pandoc to bypass the images entirely and

Re: [O] gnus org and tags

2016-10-12 Thread Eric Abrahamsen
Uwe Brauer writes: > Hi > > I would like to add to certain messages (which I read via gnus and the > imap protocol) tags so that searching is simplified. Is there a way to > do that using the org tags engine? Gnorb would be a candidate but that > feature is listed in the TODO list. Yup, I haven'

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Daniele Nicolodi
On 10/12/16 4:37 AM, Nicolas Goaziou wrote: > Hello, > > Daniele Nicolodi writes: > >> I use org-insert-link [C-c C-l] to edit links. I think this solved your >> problem with the difficulty in editing the link description. > > No, it doesn't. The problem also arises with text _around_ the link

Re: [O] Remaining document problems

2016-10-12 Thread Peter Davis
On Wed, Oct 12, 2016, at 11:39 AM, Nick Dokos wrote: > Peter Davis writes: > > > A. Source code listings > > > > 1) Source code blocks: Using > > > > #+BEGIN_SRC js > > > > works for HTML output, but not for LaTeX/PDF. It seems js is not > > understood by the listings package, and I have to use

[O] How to fix path to figures in included files

2016-10-12 Thread Nikolaus Rath
Hi, When using INCLUDE in an org-file to include a file in a sub-directory (e.g. "#+INCLUDE: preamble/preamble.org"), and the included file in turn refers to a file ("[[./figure1.png]]"), then the LaTeX export for the top-level org file refers to the file with its path relative to the included .or

Re: [O] Remaining document problems

2016-10-12 Thread Nick Dokos
Peter Davis writes: > A. Source code listings > > 1) Source code blocks: Using > > #+BEGIN_SRC js > > works for HTML output, but not for LaTeX/PDF. It seems js is not > understood by the listings package, and I have to use java. > > 2) Even with java, the output is pretty ugly. Any way to get som

[O] Remaining document problems

2016-10-12 Thread Peter Davis
After days and days of wrestling with this, I still seem to be unable to solve some basic problems: A. Source code listings 1) Source code blocks: Using #+BEGIN_SRC js works for HTML output, but not for LaTeX/PDF. It seems js is not understood by the listings package, and I have to use java. 2

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Rasmus
Nicolas Goaziou writes: >> Here’s a quick-and-dirty "mockup" in Emacs 25.1. It doesn’t work >> properly, obviously, but try to move the cursor from left-to-right to get >> a taste of what it could be like. Of course, the behavior could be >> tweaked, e.g. characters displayed etc... >> >> (pro

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Nicolas Goaziou
Hello, Rasmus writes: > I agree there’s a problem, but I find the proposed solution potentially > annoying... I understand. I thought the advantages would mitigate the drawbacks. In any case, I'd rather have a solution, active by default, and a way to disable it than no solution at all. > It i

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Rasmus
Nicolas Goaziou writes: > A "good writing experience" includes a "good editing experience", or so > I think. I'm suggesting to solve some problems related to the latter, > under certain circumstances I explained in my original post. I agree there’s a problem, but I find the proposed solution po

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Nicolas Goaziou
Correcting myself, > No, it doesn't. The problem also arises with text _around_ the link > itself, which can be painful to edit. You could try, e.g., to start an > empty buffer with and try to add anything before it (no M-x visible-mode a bracket link

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Nicolas Goaziou
Hello, Daniele Nicolodi writes: > I use org-insert-link [C-c C-l] to edit links. I think this solved your > problem with the difficulty in editing the link description. No, it doesn't. The problem also arises with text _around_ the link itself, which can be painful to edit. You could try, e.g.,

Re: [O] member-ignore-case: Wrong type argument: stringp, nil

2016-10-12 Thread Nicolas Goaziou
Hello, Vikas Rawal writes: >> On 12-Oct-2016, at 9:10 am, Vikas Rawal >> wrote: >> >> Wrong type argument: stringp, nil > > > Debug gives me this: > > Debugger entered--Lisp error: (wrong-type-argument stringp nil) I guess this is a cache bug. Try M-x org-element-cache-reset in a buffer wher

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Nicolas Goaziou
Hello, Rasmus writes: > I don't like this proposal. Links are already highlighted with a separate > face, org-link. That is enough IMO. It makes Org look more cluttered, > and personally I value having a good writing experience, including a crisp > display of the buffer (these days I even use

Re: [O] Multi-line macros (again)

2016-10-12 Thread Rasmus
Hi, >> To me, the syntax is a bit tiresome for inline calls, >> >> call_[]()[> arguments>] > > This is where macros can shine. You can define a macro expanding to this > template. Sure. >> I wonder if we could allow remote editing of macros like with table >> formulas. > > This is orthogona

Re: [O] Multi-line macros (again)

2016-10-12 Thread Nicolas Goaziou
Hello, Rasmus writes: > To me, the syntax is a bit tiresome for inline calls, > > call_[]()[ arguments>] This is where macros can shine. You can define a macro expanding to this template. > I wonder if we could allow remote editing of macros like with table > formulas. This is orthogonal

Re: [O] Use headings in sitemap

2016-10-12 Thread Nicolas Goaziou
Hello, Rasmus Pank Roulund writes: > Nicolas Goaziou writes: > It’s not quite that complicated in my patch/WIP. You specify an ordering > function. E.g. the plain list is: > > (defun org-publish-org-sitemap-as-list (files project-plist) >"Insert FILES as simple list separated by

Re: [O] One org file to multiple pages static website.

2016-10-12 Thread Rasmus
Pierre-Henry Frohring writes: > Hi! > > Here is some code to go from one org-file to a multiple pages static > website, > one heading -> one post. > > Since I did not find anything like it, did it myself, think maybe others may > find this helpful. I think it's similar to here: http://endl

Re: [O] Multi-line macros (again)

2016-10-12 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Jarmo Hurri writes: > >> One of the most useful properties of LaTeX is \newcommand, which allows >> you to reuse document structures. I really, _really_ miss this feature >> in Org. Org has #+MACRO, but it is limited to a single line. That is >> very inconven

Re: [O] mark src blocks feature proposal

2016-10-12 Thread Nicolas Goaziou
Hello, Uwe Brauer writes: > In auctex, there is a cool function called > LaTeX-mark-environment which marks a latex environment > such as > > \begin{equation} > \label{eq:README:1} > \frac{dy}{dt}=y^2(1-y) > \end{equation} > > There is no similar function for orgmode and the src blocks? `

Re: [O] mark src blocks feature proposal

2016-10-12 Thread Marco Wahl
Uwe Brauer writes: > Please consider > > #+begin_src matlab :results output > > y = dsolve('Dy = y^2 - y^3','y(0) = 1/100') > y = simplify(y) > set(gca,'FontSize',18) > > fplot('1/(lambertw(99*exp(1)*exp(99)*exp(-t-1))+1)',[0 200 -0.15 1.13]) > grid on > print -dpng lambertw.png > #+end_src > >

Re: [O] exporting latex to html

2016-10-12 Thread Rasmus
Hi Jeremie, Jeremie Juste writes: > How is it possibile to modify the image attributes when exporting latex > to html? > > > For instance if I have a table in the following org-buffer. Doing > org-mime-org-buffer-htmlize convert the table into an image and put put > it in latex as a picture. I w

Re: [O] member-ignore-case: Wrong type argument: stringp, nil

2016-10-12 Thread Rasmus
Hi Vikas, Thanks for your report. Vikas Rawal writes: > I get this message when trying to export an org file (with embedded source > code blocks) to latex: > > member-ignore-case: Wrong type argument: stringp, nil Somewhere, a member-ignore-case is given a result that is not a string... > Ho

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Rasmus
Nicolas Goaziou writes: > Hello, > > Clément Pit--Claudel writes: > >> What about having our cake and eating it too? :) We could do just the >> same as what prettify-symbols-mode does with its >> prettify-symbols-unprettify-at-point variable. Namely, we could show >> the brackets when point is a

Re: [O] One org file to multiple pages static website.

2016-10-12 Thread Pierre-Henry Frohring
http://www.holgerschurig.de/en/emacs-blog-from-org-to-hugo/ ​"So I wrote my own “publish *this* specific subtree” export. [...] markdown [...| Hugo [...]"​ Well, in this case https://github.com/phfrohring/org-to-blog it is quite ≠: headings with :ready: tag of the source org file are mapped to p

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Rasmus
Hi Nicolas, Nicolas Goaziou writes: > Feedback welcome. I don't like this proposal. Links are already highlighted with a separate face, org-link. That is enough IMO. It makes Org look more cluttered, and personally I value having a good writing experience, including a crisp display of the bu

Re: [O] [RFC] Release Org 9.0 by the end of the next week?

2016-10-12 Thread Rasmus
Hi Nicolas, Sorry I'm so terribly slow. It's a bit of a transitional time at the moment, putting strains on my time. Nicolas Goaziou writes: >> - ox-html: move title to preamble for more control over layout/final output >> - ox-beamer: more keywords (needs to incorporate Nicolas’ feedback)

Re: [O] Use headings in sitemap

2016-10-12 Thread Rasmus Pank Roulund
Nicolas Goaziou writes: > Hello, > > Thibault Marin writes: > >> I would like to generate a sitemap for a published website and use >> it to extract >> the last few entries in a specific folder to put on the main page. >> >> The site structure looks like: >> . >> ├── index.org >> ├── posts >> │

Re: [O] ODT export

2016-10-12 Thread Christian Moe
Haven't done this in a while, but I just tested, and ODT custom style files work fine for me under Org 8.3.4. (Note: I haven't pulled the latest Org changes; waiting for another package to catch up.) I've never know this to fail as such. I did have a problem for a while using .odt files as styles

Re: [O] PDF font

2016-10-12 Thread Philip Hudson
On 12 October 2016 at 08:14, Eric S Fraga wrote: > On Tuesday, 11 Oct 2016 at 20:55, Eduardo Mercovich wrote: > > [...] > >> I tried a bit of HTML as documents, but the un-packaged nature of it >> (document + images + css + etc.) always gave me problems with other >> people. Self contained pdfs, o

Re: [O] PDF font

2016-10-12 Thread Philip Hudson
On 11 October 2016 at 21:55, Eduardo Mercovich wrote: > HTML is easier to style, yes. Does that format, exported to pdf, has > what you need? No. Almost, but hyperlinks are not clickable. > Because latex may take more effort, but it's only once. > Then, you have pdfs with the index, pages of th

[O] mark src blocks feature proposal

2016-10-12 Thread Uwe Brauer
Hello Please consider #+begin_src matlab :results output y = dsolve('Dy = y^2 - y^3','y(0) = 1/100') y = simplify(y) set(gca,'FontSize',18) fplot('1/(lambertw(99*exp(1)*exp(99)*exp(-t-1))+1)',[0 200 -0.15 1.13]) grid on print -dpng lambertw.png #+end_src In auctex, there is a cool function c

[O] gnus org and tags

2016-10-12 Thread Uwe Brauer
Hi I would like to add to certain messages (which I read via gnus and the imap protocol) tags so that searching is simplified. Is there a way to do that using the org tags engine? Gnorb would be a candidate but that feature is listed in the TODO list. Regards Uwe Brauer

Re: [O] [RFC] Change visibility for bracket links

2016-10-12 Thread Daniele Nicolodi
On 05/10/16 09:40, Nicolas Goaziou wrote: > Hello, > > I'd like to make the following change to bracket links display (i.e., > when `org-highlight-links' contains `bracket', which is the default). > > Basically, I want to leave a visible pair of brackets around the link, I don't like the bracket