[O] paste from clip to code block

2015-04-17 Thread Xebar Saram
Hi all

i was wondering if anyone has every created a function to auto paste what
in the sysclip/emas clip into org but as a formatted code block?
any clue anyone?

best

Z


Re: [O] paste from clip to code block

2015-04-17 Thread Xebar Saram
thx john

that are very helpful tips!

Z

On Fri, Apr 17, 2015 at 4:56 PM, John Kitchin jkitc...@andrew.cmu.edu
wrote:

 I like this kind of keyboard shortcut:

 For python:
 p TAB C-w

 For emacs-lisp

 el TAB C-w

 What else would you want?

 If you like yasnippets, you could do this:

 # -*- mode: snippet; require-final-newline: nil -*-
 # --

 #+begin_src python
 `(yank)`
 #+end_src

 $0

 Or some kind of lisp function like:
 #+BEGIN_SRC emacs-lisp
 (defun paste-python-code ()
   (interactive)
   (insert #+BEGIN_SRC python\n)
   (yank)
   (insert \n#+END_SRC))
 #+END_SRC

 I guess you need one of these for every language type.
 Xebar Saram writes:

  Hi all
 
  i was wondering if anyone has every created a function to auto paste what
  in the sysclip/emas clip into org but as a formatted code block?
  any clue anyone?
 
  best
 
  Z

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



Re: [O] paste from clip to code block

2015-04-17 Thread John Kitchin
I like this kind of keyboard shortcut:

For python:
p TAB C-w

For emacs-lisp

el TAB C-w

What else would you want?

If you like yasnippets, you could do this:

# -*- mode: snippet; require-final-newline: nil -*-
# --

#+begin_src python
`(yank)`
#+end_src

$0

Or some kind of lisp function like:
#+BEGIN_SRC emacs-lisp
(defun paste-python-code ()
  (interactive)
  (insert #+BEGIN_SRC python\n)
  (yank)
  (insert \n#+END_SRC))
#+END_SRC

I guess you need one of these for every language type.
Xebar Saram writes:

 Hi all

 i was wondering if anyone has every created a function to auto paste what
 in the sysclip/emas clip into org but as a formatted code block?
 any clue anyone?

 best

 Z

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



Re: [O] Org to ics calendar with location links?

2015-04-17 Thread Nick Dokos
Eric Abrahamsen e...@ericabrahamsen.net writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 I've been exporting some agenda files to iCalendar, then uploading them
 to my server and getting them into the calendar app on my Android
 tablet, by means of Radicale and DAVDroid. It all works fine, though I
 wish I were able to get org-caldav working for two-way syncing.

 I recently put a LOCATION property on one of my events, and was very
 pleased to see that, in the google calendar app, the location was made
 clickable and I was given the option of opening the location in OSMand.
 I've wanted this for a long time! The only problem now is that I have no
 idea how to format the LOCATION property value so that it's recognized
 as a valid link. I assume I'd have to get the GPS coordinates and put
 them in there... but how?

 I guess this is what they call an intent in Android land, but I found
 it surprisingly difficult to google an answer.

 I know this is verging on OT, but if anyone knows how to do this, please
 let me know! It would be nice to make a few custom functions for
 inputting this kind of information.

 Nevermind, I'm an idiot! It looks like it's supposed to be
 geo:latitude,longitude, which matches up nicely with Org link
 formats.

 I'll go experiment for a bit.

 https://developer.android.com/guide/components/intents-common.html#Maps


You might want to look at Julien Danjou's google-maps.el package and its
org integration:

   https://julien.danjou.info/projects/emacs-packages

It's old and probably not directly applicable to what you are trying to
do, but at the very least it might be tangentially interesting.

Nick




Re: [O] agenda view of state changes

2015-04-17 Thread Ken Mankoff
v l (ell) and v L in agenda view shows logged items. 

Doesn't work for notes. Work around is to not use notes but instead state 
change to the current state. 

  -k. 

Please excuse brevity. Sent from pocket computer with tiny non-haptic feedback 
keyboard. 

 On Apr 17, 2015, at 06:44, grewil3 . gre...@gmail.com wrote:
 
 Hi,
 
 is there a way to create a customised agenda view that will list all my 
 recent timestamped activities? I would like a chronologically ordered list, 
 where each line corresponds to a timestamp found in the current agenda file. 
 
 I have set my configuration to add timestamps whenever I change states on 
 items, add notes to items, archive items and perhaps more. It would be useful 
 to be able to review achievements based on these timestamped events (not 
 restricted to scheduled/deadlined items).
 
 Something like this:
 [2015-04-16 thu 18:10] State INPROGRESS from WAIT: todo-out...
 [2015-04-17 fri 09:10] State DONE from TODO: todo-outline
 [2015-04-17 fri 10:10] Note taken: the beginning of the note...
 ...
 
 Best regards Greg



[O] agenda view of state changes

2015-04-17 Thread grewil3 .
Hi,

is there a way to create a customised agenda view that will list all my
recent timestamped activities? I would like a chronologically ordered list,
where each line corresponds to a timestamp found in the current agenda
file.

I have set my configuration to add timestamps whenever I change states on
items, add notes to items, archive items and perhaps more. It would be
useful to be able to review achievements based on these timestamped events
(not restricted to scheduled/deadlined items).

Something like this:
[2015-04-16 thu 18:10] State INPROGRESS from WAIT: todo-out...
[2015-04-17 fri 09:10] State DONE from TODO: todo-outline
[2015-04-17 fri 10:10] Note taken: the beginning of the note...
...

Best regards Greg


Re: [O] paste from clip to code block

2015-04-17 Thread Jorge A. Alfaro-Murillo

John Kitchin writes:

I like this kind of keyboard shortcut: 

For python: p TAB C-w 

For emacs-lisp 

el TAB C-w 



I agree, this is the best method. Although probably you mean C-y 
instead of C-w.


For the record, this requires you to set up 
`org-structure-template-alist' to include python and emacs-lisp. 
For example, I use p and E, for python and emacs-lisp, so in my 
.emacs I have:


#+BEGIN_SRC emacs-lisp
 (eval-after-load org
'(progn
   (add-to-list 'org-structure-template-alist
'(E
  #+BEGIN_SRC emacs-lisp\n?\n#+END_SRC
  src 
  lang=\\emacs-lisp\\\n\n?/src))

   (add-to-list 'org-structure-template-alist
'(p
  #+BEGIN_SRC python\n?\n#+END_SRC
  src 
  lang=\\python\\\n\n?/src

#+END_SRC

I even use the method in message-mode, for writing emails with 
code, like I just did now =)


Best,

--
Jorge.




Re: [O] paste from clip to code block

2015-04-17 Thread John Kitchin
you are right, I meant C-y ;)

I have these templates defined in my setup:

;; * Expansions for blocks
;; add p for python expansion
(add-to-list 'org-structure-template-alist
 '(p #+BEGIN_SRC python\n?\n#+END_SRC src
lang=\python\\n?\n/src))

;; add por for python expansion with raw output
(add-to-list 'org-structure-template-alist
 '(por #+BEGIN_SRC python :results output raw\n?\n#+END_SRC
src lang=\python\\n?\n/src))

;; add pv for python expansion with value
(add-to-list 'org-structure-template-alist
 '(pv #+BEGIN_SRC python :results value\n?\n#+END_SRC src
lang=\python\\n?\n/src))

;; add el for emacs-lisp expansion
(add-to-list 'org-structure-template-alist
 '(el #+BEGIN_SRC emacs-lisp\n?\n#+END_SRC src
lang=\emacs-lisp\\n?\n/src))

;; add sh for shell
(add-to-list 'org-structure-template-alist
 '(sh #+BEGIN_SRC sh\n?\n#+END_SRC src
lang=\shell\\n?\n/src))

John

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


On Fri, Apr 17, 2015 at 11:08 AM, Jorge A. Alfaro-Murillo 
jorge.alfaro-muri...@yale.edu wrote:

 John Kitchin writes:

  I like this kind of keyboard shortcut:
 For python: p TAB C-w
 For emacs-lisp
 el TAB C-w


 I agree, this is the best method. Although probably you mean C-y instead
 of C-w.

 For the record, this requires you to set up `org-structure-template-alist'
 to include python and emacs-lisp. For example, I use p and E, for python
 and emacs-lisp, so in my .emacs I have:

 #+BEGIN_SRC emacs-lisp
  (eval-after-load org
 '(progn
(add-to-list 'org-structure-template-alist
 '(E
   #+BEGIN_SRC emacs-lisp\n?\n#+END_SRC
   src
  lang=\\emacs-lisp\\\n\n?/src))
(add-to-list 'org-structure-template-alist
 '(p
   #+BEGIN_SRC python\n?\n#+END_SRC
   src
  lang=\\python\\\n\n?/src
 #+END_SRC

 I even use the method in message-mode, for writing emails with code, like
 I just did now =)

 Best,

 --
 Jorge.





Re: [O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread John Hendy
On Fri, Apr 17, 2015 at 12:28 PM, Peter Davis p...@pfdstudio.com wrote:
 Hi

 I'm trying to get a single .org file I can use to general PDF, HTML or even
 (gasp!) Word format versions of my resume. The problem I'm having now is
 that the PDF is 7 pages, compared with the 4 pages I get from my directly
 editing LaTeX file. One big difference is that individual jobs, titles, etc.
 are in a separate left column in the LaTeX version, while they're just
 subheaders and subsubheaders in the org version. I think this will be easier
 for on-line resume upload systems to parse correctly.

 Beyond that, though, the org output has lots of white space. While it looks
 beautiful, I'd like to squeeze together:
  1) the headers, subheaders, etc.
  2) The items in a bullet list
  3) Lists and surrounding paragraphs.


Everything you'll do in Org will simply involve passing the right
parameters to LaTeX via Org. In other words, you should start by
finding out how to do what you want to do in LaTeX; for example google
how to change line spacing latex and peruse the top result:
- http://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting

Then pick something that does one of the above, and add it to Org.
Most likely these options will be passed using:

#+latex: \command{foo} %%% this is just in-lining some latex command
somewhere in the document

#+latex_header: \usepackage[foo]{bar} %%% this is loading some
package, e.g. enumitem, and passing options

#+attr_latex: :foo bar %%% this would go above a table or picture to
set attributes for that particular element

Sorry to not be more specific... Org is just a middle-man to tell
LaTeX what to do, so there's really not Org-specific syntax for
changing your spacing. It's LaTeX syntax that can be inserted via
methods like the above, which will then get interpreted when you
compile/export.

That said, this is the setupfile I use for all my LaTeX exports. I'll
tweak individual files here and there to adjust various things, but
for the most part I've been happy with how this looks for reports, and
think it removes some of the white space issue.

#+OPTIONS: *:t TeX:t LaTeX:t H:5 creator:nil toc:nil num:nil
#+latex_header: \usepackage[hmargin=2.5cm,vmargin=2.5cm]{geometry}
#+latex_header: \usepackage{mathpazo} \usepackage{paralist}
#+latex_header: \usepackage{enumitem}
#+latex_header: \usepackage{amsmath}
#+latex_header: \setlength{\parskip}{0.5cm} \setlength{\parindent}{0cm}
#+latex_header: \usepackage{lscape}
#+latex_header: \usepackage{booktabs}
#+latex_header: \hypersetup{colorlinks=true,linkcolor=blue,urlcolor=blue}

Definitely look at paralist and enumitem for tweaking spacing as a
starting point.


Hope that helps.
John


 Is there a way to do this in org?

 Thank you!
 -pd

 --
 
 Peter Davis
 The Tech Curmudgeon
 www.techcurmudgeon.com





[O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread Peter Davis

Hi

I'm trying to get a single .org file I can use to general PDF, HTML or 
even (gasp!) Word format versions of my resume. The problem I'm having 
now is that the PDF is 7 pages, compared with the 4 pages I get from my 
directly editing LaTeX file. One big difference is that individual jobs, 
titles, etc. are in a separate left column in the LaTeX version, while 
they're just subheaders and subsubheaders in the org version. I think 
this will be easier for on-line resume upload systems to parse correctly.


Beyond that, though, the org output has lots of white space. While it 
looks beautiful, I'd like to squeeze together:

 1) the headers, subheaders, etc.
 2) The items in a bullet list
 3) Lists and surrounding paragraphs.

Is there a way to do this in org?

Thank you!
-pd

--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




Re: [O] Bug: HTML export ignoring CUSTOM_ID properties

2015-04-17 Thread T.F. Torrey
Hi Rasmus,

As someone with all my personal and work files in Org, I sincerely
appreciate all the work you do to improve Org.  But...

Rasmus ras...@gmx.us writes:

 With the latest from Git master, the HTML export ignores CUSTOM_ID
 properties for subtrees.  I've seen list traffic that the names of the
 export ID's are being changed, but this is not intentional, right?

 It doesn't ignore it, but it is translate to a generic anchor as
 needed.

Isn't translating it to a generic anchor the same as ignoring it?
Without a CUSTOM_ID you get a generic anchor.  With a CUSTOM_ID you get
a generic anchor.

 Previously, both a generic anchor and the custom_id would be inserted in
 html.  E.g. for a headline with id h1:

 h2 id=h1a id=sec-1 name=sec-1/a

Yes, that was a little clunky, but it did work, and the name attributes
could be suppressed.

 The problem is that we don't know that h1 is unique.

 However, in html custom_id serves as an important measure to facilitate
 css customization, e.g. on a section level-basis.

Yes, the user was responsible for making sure CUSTOM_ID's were unique,
but in practice that never amounted to what could be described as the
problem.

However, CUSTOM_ID's are not just CSS targets, they are link targets.

Consider this typical usage:

I have a page of my favorite presidents:

#+BEGIN_SRC org
* Favorite Presidents

** George Washington
:PROPERTIES:
:CUSTOM_ID: washington
:END:

He was tall.

** Bill Clinton
:PROPERTIES:
:CUSTOM_ID: clinton
:END:

He liked the ladies.
#+END_SRC

Because I know (knew) the id of the section about Clinton, I could link
to my page from another document outside Org with a link to
presidents.html#clinton.

This is how all the links between documents are done on my website, and
it's mostly how internal links in the HTML that becomes e-books is done.

However, with the new export code, many, perhaps all, of my links are
broken, because what comes out of the HTML exporter is this:

#+BEGIN_HTML
div id=outline-container-sec:4 class=outline-2
h2 id=sec:4span class=section-number-21/span Favorite Presidents/h2
div class=outline-text-2 id=text-1
/divdiv id=outline-container-sec:1 class=outline-3
h3 id=sec:1span class=section-number-31.1/span George Washington/h3
div class=outline-text-3 id=text-washington
p
He was tall.
/p
/div
/div

div id=outline-container-sec:2 class=outline-3
h3 id=sec:2span class=section-number-31.2/span Bill Clinton/h3
div class=outline-text-3 id=text-clinton
p
He liked the ladies.
/p
/div
/div
#+END_HTML

Notice how my CUSTOM_ID's are no longer ID's at all.  And simply adding
text- to my CUSTOM_ID's is not an answer.  For one thing, CUSTOM_ID
exports should not change on the breeze of developer whims.  For
another, the ID should be attached to the heading, not the body of the
text; otherwise, a person following the link would have no idea if it
went to the Clinton section or not.

Note that this also breaks any CSS styling for the section with the
CUSTOM_ID (which I also use).  If I used a CUSTOM_ID because wanted a
swanky background for the heading saying Bill Clinton, the current
export not only doesn't use that ID, it doesn't encompass the heading
with his name in.

 Thus, I think it is a bug, unless there is a better way to allow
 per-section css. I will look at this later unless somebody beets me to it.

Given the lack of outcry, I may be the only one using CUSTOM_ID's for
HTML export.  However, if usage is widespread enough and accidental
duplicates are a problem enough that this needs to be addressed,
wouldn't it be better for the exporter to simply report duplicate ID's
as they are found?

Finally, given that this doesn't appear to work at all in any form of
its intended usage, how did this even get committed to master?  Sure,
code in master may have bugs, but this is more than a bug; this is
unusable code that breaks code that worked.  Shouldn't it be developed
on a feature branch or in someone's private repo until it actually
works?

Unless there is a quick fix that restores external (non-Org-generated)
links to sections with CUSTOM_ID's, please revert these changes until
the development reaches a usable state.

All the best,
Terry
-- 
T.F. Torrey



[O] How to deal with conflicting org-toc?

2015-04-17 Thread Leo Ufimtsev
Hello, 

There is a build-in org-toc in contrib, that shows a dynamic toc on right side.
And there is org-toc that generates a toc from an org file: 
https://github.com/snosov1/org-toc

They have a name conflict. 

Is three any way to resolve this without forking and renaming the variables?

Thank you

Leo Ufimtsev | Intern Software Engineer @ Eclipse Team





Re: [O] Org to ics calendar with location links?

2015-04-17 Thread Eric S Fraga
On Friday, 17 Apr 2015 at 13:43, Eric Abrahamsen wrote:

[...]

 Nevermind, I'm an idiot! It looks like it's supposed to be
 geo:latitude,longitude, which matches up nicely with Org link
 formats.

 I'll go experiment for a bit.

Keep us posted.  I would love to have this functionality as well.  The
LOCATION property does make it through org - MobileOrg - Google
Calendar so an easy to create geo: aware property would be quite useful.

Thanks,
eric
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-820-gd92ef9



Re: [O] How to deal with conflicting org-toc?

2015-04-17 Thread Rasmus
Leo Ufimtsev lufim...@redhat.com writes:

 Is three any way to resolve this without forking and renaming the variables?

Not that I know of.  Perhaps you can fix the github package?

—Rasmus

-- 
Lasciate ogni speranza o voi che entrate: siete nella mani di'machellaio




Re: [O] Org to ics calendar with location links?

2015-04-17 Thread Eric Abrahamsen
Nick Dokos ndo...@gmail.com writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 Eric Abrahamsen e...@ericabrahamsen.net writes:

 I've been exporting some agenda files to iCalendar, then uploading them
 to my server and getting them into the calendar app on my Android
 tablet, by means of Radicale and DAVDroid. It all works fine, though I
 wish I were able to get org-caldav working for two-way syncing.

 I recently put a LOCATION property on one of my events, and was very
 pleased to see that, in the google calendar app, the location was made
 clickable and I was given the option of opening the location in OSMand.
 I've wanted this for a long time! The only problem now is that I have no
 idea how to format the LOCATION property value so that it's recognized
 as a valid link. I assume I'd have to get the GPS coordinates and put
 them in there... but how?

 I guess this is what they call an intent in Android land, but I found
 it surprisingly difficult to google an answer.

 I know this is verging on OT, but if anyone knows how to do this, please
 let me know! It would be nice to make a few custom functions for
 inputting this kind of information.

 Nevermind, I'm an idiot! It looks like it's supposed to be
 geo:latitude,longitude, which matches up nicely with Org link
 formats.

 I'll go experiment for a bit.

 https://developer.android.com/guide/components/intents-common.html#Maps


 You might want to look at Julien Danjou's google-maps.el package and its
 org integration:

https://julien.danjou.info/projects/emacs-packages

 It's old and probably not directly applicable to what you are trying to
 do, but at the very least it might be tangentially interesting.

Thanks! I'll take a look.




Re: [O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread Peter Davis


On 4/17/15 2:13 PM, John Hendy wrote:
Definitely look at paralist and enumitem for tweaking spacing as a 
starting point. Hope that helps. John 

Thanks, John. This

#+LATEX_HEADER: \usepackage{enumitem}
#+LATEX_HEADER: \setlist{nolistsep}

produced nice tight lists, though there is still a lot of white space 
before/after the headings. I'll dig around.


Also, is there a way to get orgmode to stop output the author and date 
lines in maketitle?


Thanks,
-pd

--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




Re: [O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread John Hendy
On Fri, Apr 17, 2015 at 2:13 PM, Peter Davis p...@pfdstudio.com wrote:

 On 4/17/15 2:13 PM, John Hendy wrote:

 Definitely look at paralist and enumitem for tweaking spacing as a
 starting point. Hope that helps. John

 Thanks, John. This

 #+LATEX_HEADER: \usepackage{enumitem}
 #+LATEX_HEADER: \setlist{nolistsep}

 produced nice tight lists, though there is still a lot of white space
 before/after the headings. I'll dig around.

Glad those helped. Try googline reduce whitespace latex for more.

 Also, is there a way to get orgmode to stop output the author and date lines
 in maketitle?

http://orgmode.org/manual/Export-settings.html

:)


 Thanks,
 -pd

 --
 
 Peter Davis
 The Tech Curmudgeon
 www.techcurmudgeon.com




Re: [O] agenda view of state changes

2015-04-17 Thread Samuel Wales
i do not recommend this:

;; (eval-after-load 'org-agenda
;;   '(pushnew 'state org-agenda-log-mode-items :test 'eq))
;; (setq org-agenda-log-mode-items '(closed clock))

===

i do this:

  (setq org-agenda-include-inactive-timestamps t)

and this [i am not signed with fsf]:

=== alpha make agenda display inactive timestamp lines with a new face

Modified lisp/org-agenda.el
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index a0f47ab..9fe49b8 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -5619,6 +5619,9 @@ This function is invoked if
`org-agenda-todo-ignore-deadlines',
 'org-category-position category-pos
 'todo-state todo-state
 'warntime warntime
+ 'face (if inactivep
+'org-agenda-inactive
+  'org-agenda-calendar-event)
 'type timestamp)
  (push txt ee))
(if org-agenda-skip-additional-timestamps-same-entry
Modified lisp/org-faces.el
diff --git a/lisp/org-faces.el b/lisp/org-faces.el
index f8625f1..47ccc96 100644
--- a/lisp/org-faces.el
+++ b/lisp/org-faces.el
@@ -346,6 +346,16 @@ is of course immediately visible, but for example
a passed deadline is
 of the frame, for example.
   :group 'org-faces)

+(defface org-agenda-inactive ;; originally copied from font-lock-type-face
+  (org-compatible-face nil
+'class color) (min-colors 16) (background light))
(:foreground ForestGreen))
+  (((class color) (min-colors 16) (background dark)) (:foreground
#546b00))
+  (((class color) (min-colors 8)) (:foreground green))
+  (t (:bold nil
+  Face used in agenda to indicate lines that appear because
+inactive timestamps appear in the entries.
+  :group 'org-faces)
+
 (defface org-headline-done ;; originally copied from font-lock-string-face
   (org-compatible-face nil
 'class color) (min-colors 16) (background light))
(:foreground RosyBrown))

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

Ramsay's disease DOES progress.  MANY people have died from it.  And
ANYBODY can get it.

Denmark: free Karina Hansen NOW.



[O] org-collector bug

2015-04-17 Thread Charles Millar

I have attempted to use org-collector. Each time, including the example at
[Search domain orgmode.org] 
https://duckduckgo.com/?q=org%2Dcollector%20worg+site:orgmode.orgorgmode.org/worg/org-contrib/org-collector-example.html 
http://orgmode.org/worg/org-contrib/org-collector-example.html
all columns except ITEM evaluate to the default error. The ITEM column 
does evaluate as expected.


GNU Emacs 24.4.1 (i586-pc-linux-gnu, GTK+ Version 3.14.5)
of 2015-03-07 on binet, modified by Debian

Org: 8.3beta release_8.3beta-1030-g65bbb1

Charlie Millar






Re: [O] Org to ics calendar with location links?

2015-04-17 Thread Eric Abrahamsen
Eric S Fraga e.fr...@ucl.ac.uk writes:

 On Friday, 17 Apr 2015 at 13:43, Eric Abrahamsen wrote:

 [...]

 Nevermind, I'm an idiot! It looks like it's supposed to be
 geo:latitude,longitude, which matches up nicely with Org link
 formats.

 I'll go experiment for a bit.

 Keep us posted.  I would love to have this functionality as well.  The
 LOCATION property does make it through org - MobileOrg - Google
 Calendar so an easy to create geo: aware property would be quite useful.

Preliminary experiments are positive! In fact, it was enough just to use
a string like geo:, as the LOCATION property. That survived
the ical export, and the caldav transfer, and when I clicked the
resulting location line in the Android calendar app, it offered to open
the link with OSMand, and showed me the correct coordinates.

The nature of OSMand's response made me suspect that it might also
accept arbitrary strings to search on (ie POI names or something), but
further messing about will have to wait until tomorrow.

Next up is finding out how to mark up the links so we can have a
human-readable link text, with the link address hidden. Perhaps it will
honor HTML, I don't know.

Eric




[O] Error when using org-ctrl-c-ctrl-c to add tags

2015-04-17 Thread Vicente Vera
Hello. This shows up when trying to add tags to a headline with
org-ctrl-c-ctrl-c:

apply: Wrong type argument: listp, org-tags-completion-function

Org-mode version 8.3beta (release_8.3beta-1045-gd8494b @
/usr/local/share/emacs/site-lisp/org/)
GNU Emacs 24.5.50.1 (i686-pc-linux-gnu, GTK+ Version 3.4.2)



Re: [O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread Peter Davis


Thanks. I've had some success with these headers:

#+LATEX_HEADER: \setlength{\parskip}{0pt}
#+LATEX_HEADER: \setlength{\parsep}{6pt}
#+LATEX_HEADER: \setlength{\headsep}{0pt}
#+LATEX_HEADER: \setlength{\topskip}{0pt}
#+LATEX_HEADER: \setlength{\topmargin}{0pt}
#+LATEX_HEADER: \setlength{\topsep}{-10pt}
#+LATEX_HEADER: \setlength{\partopsep}{0pt}
#+LATEX_HEADER: \linespread{0.75}
#+LATEX_HEADER: \usepackage{enumitem}
#+LATEX_HEADER: \setlist{nolistsep}
#+LATEX_HEADER: \usepackage[compact]{titlesec}
#+LATEX_HEADER: \titlespacing{\section}{0pt}{1ex}{1ex}
#+LATEX_HEADER: \titlespacing{\subsection}{0pt}{1ex}{1ex}
#+LATEX_HEADER: \titlespacing{\subsubsection}{0pt}{1ex}{1ex}

In fact, the spacing's a little too tight now. I'll have to play with 
the settings some more. Right now, the paragraph spacing between bullet 
items is tighter than the spacing between lines within a paragraph.


--

Peter Davis
The Tech Curmudgeon
www.techcurmudgeon.com




[O] Sparse tree for undated TODOs, or hierachical agenda?

2015-04-17 Thread Nikolaus Rath
Hello,

I'm starting to like orgmode more and more. Thanks for working on this!

However, for me the global todo list in the Agenda very hard to digest
(even when excluding sublevels), so I'd rather have a view that
conserves the document structure.

Is there a way to create a sparse tree that shows only undated TODOs
(i.e., excludes anything that scheduled or has a deadline)?

Or, alternatively, is there a way to generate an Agenda view that
preserves the outline of the document (i.e., TODO items are grouped by
their headings)?

Thanks,
-Nikolaus
-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

 »Time flies like an arrow, fruit flies like a Banana.«



Re: [O] Resume: Squeezing lines tighter in LaTeX output?

2015-04-17 Thread Marcin Borkowski

On 2015-04-17, at 20:13, John Hendy jw.he...@gmail.com wrote:

 Everything you'll do in Org will simply involve passing the right
 parameters to LaTeX via Org. In other words, you should start by

Personally, I prefer configuring on the LaTeX side, but this is because
I find it much easier.

 finding out how to do what you want to do in LaTeX; for example google
 how to change line spacing latex and peruse the top result:
 - http://en.wikibooks.org/wiki/LaTeX/Paragraph_Formatting

Be cautious, though: the LaTeX wikibook has some parts which are very
outdated (at least this was the situation when I looked at it some time
ago).  I'd rather recommend searching CTAN and searching/asking at
TeX.StackExchange.

 Definitely look at paralist and enumitem for tweaking spacing as a
 starting point.

Also, check out the titlesec package (http://www.ctan.org/pkg/titlesec)
and/or memoir and/or koma-script.

 Hope that helps.
 John

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University