[O] Bug in LaTeX export for links with underscores in captions. (Easy to fix for elispers)

2011-10-02 Thread Magnus Nilsson
This is a bug which elisp-driven orgers with access to the git
repository can fix quickly.

* Linking to [[a_file.txt][a file with underscore]] in a headline works well
with LaTeX export

#+CAPTION: Linking [[a_file.txt][a file with underscore]] in a caption does
_not_ work well with LaTeX export.
[[/Path_to_figure/figure.png]]

The reason is because org-export-latex-links processes the figure's
caption with org-export-latex-fontify-headline, which in turn
processes the caption's link (with altered underscores for some
reason). For example,
(org-export-latex-fontify-headline [[/Path_to_figure/figure.png][a file
with underscore]])
returns
#(\\href{file://./Path\\_{}to\\_{}figure/figure.png}{a file with
underscore} 14 15 (org-attr nil) 15 24 (org-protected t org-attr nil) 24 25
(org-protected t org-attr nil) 25 28 (org-protected t org-attr nil) 28 35
(org-protected t org-attr nil) 35 46 (org-attr nil))

There must be a way to process links (whose path contains underscores)
within captions to floats correctly.

Best regards,
Magnus


[Orgmode] Check for broken links in org-mode?

2010-11-06 Thread Magnus Nilsson
Dear all,

Is there any nice way to check for broken links of different kinds in org
files?

For example by parsing the file and reporting the lines with broken links in
a separate buffer so they can be fixed one after another?  If not, I imagine
this is possible to implement (at least to some extent) as a lisp-function.
What do you all think? :)

My incentive for having this function is the following:
I have started using org mode to organize things at work.
One of the nice uses of org-mode is to keep link reminders together with my
notes, so that I quickly can find where information is located when I need
to retrieve it months/years later.
However, paths to where I keep files may be renamed as projects develop,
servers are changed, or as I brainstorm my way through different projects.
As my org-files can be quite large now, I have no way of remembering which
links I need to rename.
It would be great to (org-check-for-broken-links optional org-files-list)
once in a while to keep links up-to-date.  This could make it easier for me
and perhaps the next person that sometime will take over my job.
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] abstract in exported latex and html

2010-10-31 Thread Magnus Nilsson
Dear all,

Is there a way to include an abstract that suits both LaTeX export and html
export?

I am thinking in lines of
#+BEGIN_ABSTRACT:
 My abstract goes here
#+END_ABSTRACT:
and have it interpreted differently depending on the export used.

Thanks
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] stuck projects and org-agenda-dim-blocked-tasks

2010-10-27 Thread Magnus Nilsson
Dear all,

I now use
(setq org-agenda-dim-blocked-tasks 'invisible)
in order to not see parent tasks and tasks further down in ordered task
lists. I like this.

But I would still really like to see stuck projects with
(org-agenda-list-stuck-projects)

With the above setting, however, they unfortunately also become invisible.

How can I meet both my requirements:
1. Keep parent tasks invisible
2. Show stuck projects.

Does anyone have a solution to my problem?

Best,
Magnus
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: stuck projects and org-agenda-dim-blocked-tasks

2010-10-27 Thread Magnus Nilsson
2010/10/27 Magnus Nilsson magnus.nils...@alumni.chalmers.se

 Dear all,

 I now use
 (setq org-agenda-dim-blocked-tasks 'invisible)
 in order to not see parent tasks and tasks further down in ordered task
 lists. I like this.

 But I would still really like to see stuck projects with
 (org-agenda-list-stuck-projects)

 With the above setting, however, they unfortunately also become invisible.

 How can I meet both my requirements:
 1. Keep parent tasks invisible
 2. Show stuck projects.

 Does anyone have a solution to my problem?

 Best,
 Magnus


I made a working solution to my above requirements through a quick hack that
seems to work.
Not the prettiest solution, but I thought I'd post it if anyone else is
interested in the same requirements.
I'd be happy to hear if anyone has got a better solution, or if I have
missed something related in the manual.
I simply redefined org-finalize-agenda in my .emacs file to:

(defun org-finalize-agenda ()
  Finishing touch for the agenda buffer, called just before
  displaying it.

NOTE: I have deliberately changed this function to only make blocked
tasks invisible for the todo-list (if org-agenda-dim-blocked-tasks is set to
'invisible).
Compare with the original org-finalize-agenda function. /Magnus
  (unless org-agenda-multi
(save-excursion
  (let ((inhibit-read-only t))
(goto-char (point-min))
(while (org-activate-bracket-links (point-max))
  (add-text-properties (match-beginning 0) (match-end 0)
   '(face org-link)))
(org-agenda-align-tags)
(unless org-agenda-with-colors
  (remove-text-properties (point-min) (point-max) '(face nil
  (goto-char (point-min))
  (let  ((todo-listp (looking-at Global))) ;; Seems like all
todo-lists start with the word 'Global'
(if (and (boundp 'org-agenda-overriding-columns-format)
 org-agenda-overriding-columns-format)
(org-set-local 'org-agenda-overriding-columns-format
   org-agenda-overriding-columns-format))
(if (and (boundp 'org-agenda-view-columns-initially)
 org-agenda-view-columns-initially)
(org-agenda-columns))
(when org-agenda-fontify-priorities
  (org-agenda-fontify-priorities))
(when (and todo-listp org-agenda-dim-blocked-tasks org-blocker-hook)
  (org-agenda-dim-blocked-tasks))
(org-agenda-mark-clocking-task)
(when org-agenda-entry-text-mode
  (org-agenda-entry-text-hide)
  (org-agenda-entry-text-show))
(if (functionp 'org-habit-insert-consistency-graphs)
(org-habit-insert-consistency-graphs))
(run-hooks 'org-finalize-agenda-hook)
(setq org-agenda-type (org-get-at-bol 'org-agenda-type))
(when (or org-agenda-filter (get 'org-agenda-filter :preset-filter))
  (org-agenda-filter-apply org-agenda-filter)))
  )))
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Invisible parent tasks (request)

2010-10-22 Thread Magnus Nilsson
Dear all,

When using Getting Things Done, it would be nice to customize org-mode such
that parent tasks are not seen from the agenda view with C-a t...
...unless all subtasks are in a done state!

A variable like org-show-parent-tasks could perhaps be introduced.

I know that org-enforce-todo-dependencies can make the parents text gray in
the agenda view, but I haven't found a way to make the parent tasks not
show.

Any comments?

/Magnus
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] MobileOrg : Reminders

2010-10-21 Thread Magnus Nilsson
Hi,

Does MobileOrg support reminders, like a buzz from the phone 10 (or a
customizable number of) minutes before any appointment from the agenda?
I haven't used MobileOrg much yet on my Iphone, but think I would use such a
feature. More experienced users are free to argue why this wouldn't be
useful.
I would like it to be optionable in the form of a switch, so that can either
be switched on or off.

Magnus
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] org-crypt and org-mobile-crypt; user info?

2010-10-21 Thread Magnus Nilsson
Dear subscribers,

I haven't found much information about org-crypt and org-mobile-crypt.  Will
these topics be expanded in the org-manual?

I would be delighted if anyone could teach me (informatively) how to succeed
with the following two tasks:

1. Encrypt a password-table I keep in an org-file when saved to disk,
while text would be plain in the buffer. (Best if it can be transparent
without passwords, but that is not a must.)
2. Encrypt files on the Dropbox server, in a transparent way, so that I do
not need to use passwords to sync between org and Iphone (which I let Emacs
do automatically once each day).

Thanks in advance,
Magnus
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode