[O] [PATCH] (contrib) Documentation fixes for org-mac-link

2013-12-08 Thread Daniil Frumin
- org-mac-message.el and org-mac-link-grabber have been combined into
  org-mac-link.el
- The menu option for grabbing links from Google Chrome is `[c]hrome'

the .patch file is attached

-- 
Sincerely yours,
-- Daniil Frumin


0001-Documentation-fixes-for-org-mac-link.patch
Description: Binary data


Re: [O] per file face keywords, /in/ file

2013-12-08 Thread Suvayu Ali
On Sun, Dec 08, 2013 at 05:57:12AM +, brady trainor wrote:
 Suvayu Ali fatkasuvayu+linux at gmail.com writes:

 https://github.com/suvayu/.emacs.d/blob/master/themes/dark-emacs-theme.el#L16

 [...chomp...chomp...chomp...]

 Further, I appreciate your link to a sample of colors, as I am confident you
 have pointed me to a great introduction to some good color choices for faces. 

Well ... if you like dark themes, you could use the theme I pointed to.
Set a custom-theme-directory, and put the file there and load it with
`M-x load-theme RET'.  You can get an example in the emacs-custom.el
file in the same repository.

GL,

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] text-only plots

2013-12-08 Thread Suvayu Ali
On Sat, Dec 07, 2013 at 07:48:51PM +, Thierry Banel wrote:
 
 I wrote a package to draw such small-quick-and-text-only graphs.
 It is here: http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
 Just type C-c p

This looks cool!

-- 
Suvayu

Open source is the future. It sets us free.



Re: [O] text-only plots

2013-12-08 Thread Michael Brand
Hi Thierry

On Sat, Dec 7, 2013 at 8:48 PM, Thierry Banel tbanelweb...@free.fr wrote:
 What about text-only plots in tables ?
 All in Emacs, without any external package.

 |  x | x^2 |  |
 |+-+--|
 |  0 |   0 |  |
 |  1 |   1 | .|
 |  2 |   4 | :|
 |  3 |   9 | u|
 |  4 |  16 | W|
 |  5 |  25 | Wu   |
 |  6 |  36 | WW:  |
 |  7 |  49 | WWH  |
 |  8 |  64 | WWWV |
 |  9 |  81 | H|
 | 10 | 100 | WW   |
 | 11 | 121 | WWW- |
 | 12 | 144 | l|
 | 13 | 169 | WW.  |
 | 14 | 196 | WWWV |
 #+TBLFM: $3='(orgtbl-ascii-draw $2 0 200)

 I wrote a package to draw such small-quick-and-text-only graphs.
 It is here: http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
 Just type C-c p

 Comments and enhancements are welcome!
 Have fun.

Your idea is very good. I suggest to have also a unicode variant using
http://en.wikipedia.org/wiki/Block_Elements
with (elt  ▏▎▍▌▋▊▉ [...]) to divide one char into eight widths which
I will use often for time series:

| year |  % | ascii| unicode  |
|--++--+--|
| 2009 | 55 | WWl  | ▉▉▌  |
| 2010 | 54 | WWu  | ▉▉▍  |
| 2011 | 60 | WWW: | ▉▉▉▏ |
| 2012 | 62 | WWW; | ▉▉▉▍ |
#+TBLFM: $3 = '(orgtbl-ascii-draw $2 0 100) :: $4 = '(orgtbl-uc-draw $2 0 100)

Attached is a screenshot with DejaVu Sans Mono as an example of a font
that shows the same block height for all block widths (some other
fonts don't show the same block height for all block widths). Remember
C-u C-x = too see the name etc. of the char at point.

Michael
attachment: unicode.png

Re: [O] Exams with Org?

2013-12-08 Thread Roger Mason

Hello,

On 12/06/2013 03:53 PM, Roger Mason wrote:

Hello,

Has anyone used Org to create exams?  It would be useful to have the 
value per question totalled to provide the total per section etc and 
to be able to embed the answers in the exam and expose them in the 
final document using some kind of conditional processing.


If anyone has done this kind of thing I'd be interested to see an 
example file.


Thanks,
Roger


Thanks Suvayu Ali, John Kitchin, Marvin Doyley and Alan Schmitt for your 
suggestions, which I will try out.  I may not have time to implement a 
complete solution for the upcoming exam (Wednesday morning), so I will 
wait until the new year.  In the meantime, may I ask John if he is 
willing to share an example file as a starting point?  I read through 
the blog but my experience with org is too short for me to see how it 
all works.


Thanks again,
Roger




Re: [O] text-only plots

2013-12-08 Thread Michael Brand
On Sun, Dec 8, 2013 at 12:27 PM, Michael Brand
michael.ch.br...@gmail.com wrote:
 I suggest to have also a unicode variant using
 http://en.wikipedia.org/wiki/Block_Elements

To make it more complete: Distinguish between the variant with
coordinate grid and the one continuous:

| year |  % | ascii| grid (0 to 7 8th) | continuous (0 to 8 8th) |
|--++--+---+-|
| 2009 | 55 | WWl  | ▉▉▌   | ██▋ |
| 2010 | 54 | WWu  | ▉▉▍   | ██▌ |
| 2011 | 60 | WWW: | ▉▉▉▏  | ███▎|
| 2012 | 62 | WWW; | ▉▉▉▍  | ███▌|
#+TBLFM: $3 = '(orgtbl-ascii-draw $2 0 100) :: $4 =
'(orgtbl-uc-draw-grid $2 0 100) :: $5 = '(orgtbl-uc-draw-cont $2 0
100)

#+BEGIN_SRC emacs-lisp
  ;; orgtbl-uc-draw-grid
  [...]
  (make-string (floor column) ?\▉)
  (string (elt  ▏▎▍▌▋▊▉ (round (* (- column (floor column)) 7
  ;; orgtbl-uc-draw-cont
  [...]
  (make-string (floor column) ?\█)
  (string (elt  ▏▎▍▌▋▊▉█ (round (* (- column (floor column)) 8
#+END_SRC

Michael
attachment: DejaVu_Sans_Mono.png

Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Michael Brand michael.ch.brand at gmail.com writes:

 To make it more complete: Distinguish between the variant with
 coordinate grid and the one continuous:
 
 | year |  % | ascii| grid (0 to 7 8th) | continuous (0 to 8 8th) |
 |--++--+---+-|
 | 2009 | 55 | WWl  | ▉▉▌   | ██▋ |
 | 2010 | 54 | WWu  | ▉▉▍   | ██▌ |
 | 2011 | 60 | WWW: | ▉▉▉▏  | ███▎|
 | 2012 | 62 | WWW; | ▉▉▉▍  | ███▌|
 #+TBLFM: $3 = '(orgtbl-ascii-draw $2 0 100) :: $4 =
 '(orgtbl-uc-draw-grid $2 0 100) :: $5 = '(orgtbl-uc-draw-cont $2 0
 100)


Hi Michael

I love your extension!
I will integrate it.
The unicode (unicorn?) version should fall-back gracefully to the ascii
version if utf is not supported.

Thierry






Re: [O] text-only plots

2013-12-08 Thread Achim Gratz
Michael Brand writes:
 Your idea is very good. I suggest to have also a unicode variant using
 http://en.wikipedia.org/wiki/Block_Elements
 with (elt  ▏▎▍▌▋▊▉ [...]) to divide one char into eight widths which

These would be even more useful if all UPPER and RIGHT variants
existed.  Oh well.


Regards,
Achim.
-- 
+[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Hello all.

Following a suggestion from Michael Brand (thanks, Michael!),
I implemented a version able to use unicode block characters.
It is here:
http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html

Use =C-u C-c p= in the column to plot, and answer questions.
Without =C-u= prefix, the base ascii, 12 characters wide version is used.

|  x | x^2 | ascii| uc cont  | uc grid  |
|+-+--+--+--|
|  0 |   0 |  |  |  |
|  1 |   1 |  |  |  |
|  2 |   4 | :| ▏| ▏|
|  3 |   9 | u| ▍| ▌|
|  4 |  16 | H| ▊| ▉|
|  5 |  25 | Wu   | ▉▍   | █▌   |
|  6 |  36 | WW.  | ▉▉▏  | ██▏  |
|  7 |  49 | WWH  | ▉▉▉  | ███  |
|  8 |  64 | WWWV | ▉▉▉▊ | ███▉ |
|  9 |  81 | V| ▊| ▉|
| 10 | 100 | WW   | ▉▉   | ██   |
| 11 | 121 | WWW: | ▉▉▉▎ | ███▍ |
| 12 | 144 | l| ▋| ▊|
| 13 | 169 | WW.  | ▉▉▎  | ██▎  |
| 14 | 196 | WWWh |  |  |
#+TBLFM: $4='(orgtbl-uc-draw-grid $2 0 196 12)::$5='(orgtbl-uc-draw-cont $2
0 196 12)::$3='(orgtbl-ascii-draw $2 0 200)

Have fun
Thierry






[O] Yet another Jekyll Org mode setup

2013-12-08 Thread Waldemar Quevedo
Hello list,

This is just to share my setup for using Jekyll and Org mode in case
someone finds it useful...
https://github.com/wallyqs/yet-another-jekyll-org-template

What I like about this setup is that I can avoid having to add YAML front
matter to Org mode posts by patching Jekyll with a plugin (link:
https://github.com/wallyqs/jekyll-org/blob/master/convert.rb). It also
disables Liquid templates since Org mode syntax can already cover some of
those cases (like including files).

In this setup I am using the Org-ruby parser to render into HTML for
convenience, though it could also be possible to shell out to the Emacs Org
mode parser, I just would have to catchup on how to do that in latest
versions of Org (last time I did I used 'org-export-as-html', fix would be
to shell out to Emacs here:
https://github.com/wallyqs/jekyll-org/blob/master/convert.rb#L49).

Cheers,

- Waldemar


Re: [O] text-only plots

2013-12-08 Thread Carsten Dominik
Hi Thierry,

This is really nice. Thank you!

This is not a lot of code - I would not mind simply integrating this into 
org-table.el  The only hickup might be that this could be trouble for the 
exporters - or have you produced the webpage directly from an org file?

- Carsten

On 8.12.2013, at 18:43, Thierry Banel tbanelweb...@free.fr wrote:

 Hello all.
 
 Following a suggestion from Michael Brand (thanks, Michael!),
 I implemented a version able to use unicode block characters.
 It is here:
 http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
 
 Use =C-u C-c p= in the column to plot, and answer questions.
 Without =C-u= prefix, the base ascii, 12 characters wide version is used.
 
 |  x | x^2 | ascii| uc cont  | uc grid  |
 |+-+--+--+--|
 |  0 |   0 |  |  |  |
 |  1 |   1 |  |  |  |
 |  2 |   4 | :| ▏| ▏|
 |  3 |   9 | u| ▍| ▌|
 |  4 |  16 | H| ▊| ▉|
 |  5 |  25 | Wu   | ▉▍   | █▌   |
 |  6 |  36 | WW.  | ▉▉▏  | ██▏  |
 |  7 |  49 | WWH  | ▉▉▉  | ███  |
 |  8 |  64 | WWWV | ▉▉▉▊ | ███▉ |
 |  9 |  81 | V| ▊| ▉|
 | 10 | 100 | WW   | ▉▉   | ██   |
 | 11 | 121 | WWW: | ▉▉▉▎ | ███▍ |
 | 12 | 144 | l| ▋| ▊|
 | 13 | 169 | WW.  | ▉▉▎  | ██▎  |
 | 14 | 196 | WWWh |  |  |
 #+TBLFM: $4='(orgtbl-uc-draw-grid $2 0 196 12)::$5='(orgtbl-uc-draw-cont $2
 0 196 12)::$3='(orgtbl-ascii-draw $2 0 200)
 
 Have fun
 Thierry
 
 
 
 




Re: [O] Exams with Org?

2013-12-08 Thread John Kitchin
I also just wrote a little bit about selective exporting, eg problems and
solutions from org files here:

http://kitchingroup.cheme.cmu.edu/blog/2013/12/08/Selectively-exporting-headlines-in-org-mode/

j

John

---
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Sun, Dec 8, 2013 at 3:55 PM, John Kitchin jkitc...@andrew.cmu.eduwrote:

 the org-source for all the posts are accessible by a link at the bottom of
 the page. the one you want is
 http://kitchingroup.cheme.cmu.edu/org/2013/10/23/Writing-exams-in-org-mode.org

 John

 ---
 John Kitchin
 Associate Professor
 Doherty Hall A207F
 Department of Chemical Engineering
 Carnegie Mellon University
 Pittsburgh, PA 15213
 412-268-7803
 http://kitchingroup.cheme.cmu.edu



 On Sun, Dec 8, 2013 at 6:35 AM, Roger Mason rma...@mun.ca wrote:

 Hello,


 On 12/06/2013 03:53 PM, Roger Mason wrote:

 Hello,

 Has anyone used Org to create exams?  It would be useful to have the
 value per question totalled to provide the total per section etc and to be
 able to embed the answers in the exam and expose them in the final document
 using some kind of conditional processing.

 If anyone has done this kind of thing I'd be interested to see an
 example file.

 Thanks,
 Roger


 Thanks Suvayu Ali, John Kitchin, Marvin Doyley and Alan Schmitt for your
 suggestions, which I will try out.  I may not have time to implement a
 complete solution for the upcoming exam (Wednesday morning), so I will wait
 until the new year.  In the meantime, may I ask John if he is willing to
 share an example file as a starting point?  I read through the blog but my
 experience with org is too short for me to see how it all works.

 Thanks again,
 Roger






Re: [O] text-only plots

2013-12-08 Thread Michael Brand
Hi Thierry

On Sun, Dec 8, 2013 at 6:43 PM, Thierry Banel tbanelweb...@free.fr wrote:
 Following a suggestion from Michael Brand (thanks, Michael!),
 I implemented a version able to use unicode block characters.
 It is here:
 http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html

Thank you for implementing these variations.

Michael



[O] [BUG] inline source breaks paragraphs

2013-12-08 Thread Andreas Leha
Hi all,

inline source -- when on its own line -- breaks the paragraph, which is
unexpected.

Here is a test file:

--8---cut here---start-8---
* Test

This is a broken
src_R[:exports results :results raw]{10}
paragraph.
--8---cut here---end---8---


Here is (the relevant part of) the output of the LaTeX export:

,
| \section{Test}
| \label{sec-1}
| 
| This is a broken
| 10
| 
| paragraph.
`


Some info:
GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
2013-09-27 on trouble, modified by Debian
Org-mode version 8.2.4 (release_8.2.4-332-g7059d3 @ 
/home/andreas/local/emacs/org-mode-install/lisp/)


Regards,
Andreas




Re: [O] [BUG] inline source breaks paragraphs

2013-12-08 Thread Andreas Leha
Hi all,

I sent too quickly...

Andreas Leha andreas.l...@med.uni-goettingen.de writes:

 Hi all,

 inline source -- when on its own line -- breaks the paragraph, which is
 
 delete that.

 unexpected.

 Here is a test file:

 * Test

 This is a broken
 src_R[:exports results :results raw]{10}
 paragraph.


 Here is (the relevant part of) the output of the LaTeX export:

 ,
 | \section{Test}
 | \label{sec-1}
 | 
 | This is a broken
 | 10
 | 
 | paragraph.
 `


 Some info:
 GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of 
 2013-09-27 on trouble, modified by Debian
 Org-mode version 8.2.4 (release_8.2.4-332-g7059d3 @ 
 /home/andreas/local/emacs/org-mode-install/lisp/)


 Regards,
 Andreas




Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Carsten Dominik carsten.dominik at gmail.com writes:

 
 Hi Thierry,
 
 This is really nice. Thank you!
 
 This is not a lot of code - I would not mind simply integrating this into
org-table.el  The only hickup might be
 that this could be trouble for the exporters - or have you produced the
webpage directly from an org file?
 
 - Carsten
 


Hi Carsten.

Wonderful!
It will be useful to many.

I'm not sure I understand the exporters issue.
Do you talk about the html exporter, the Odt exporter, and so on ?
Well, once a plot has been added to a table, it is just text.
It will be exported as any other content in the table.
Maybe I'm missing something...

Yes, this webpage:
http://orgmode.org/worg/org-contrib/orgtbl-ascii-plot.html
was produced by the Worg engine, from a regular Org file.

Another issue is the key-binding.
I bound the plotter to C-c p
(p as plot)
But this can be discussed.

Thierry
PS: thanks for Org-mode, it changed my life.





Re: [O] text-only plots

2013-12-08 Thread Thierry Banel
Michael Brand michael.ch.brand at gmail.com writes:

 
 Thank you for implementing these variations.
 
 Michael
 
 

Thanks for this simple and effective idea.

Thierry