[Orgmode] Latex export issues when external links are used inside tables.

2009-06-15 Thread Yuva
hi,
   If I try to use link abbrevations inside tables, there are some issues
when exporting to latex. Say for example, if we consider the following eg :

8<-8<

#+TITLE: Simple refs stuff
#+AUTHOR:Yuva
#+EMAIL:
#+DATE:
#+DESCRIPTION:
#+KEYWORDS:
#+LANGUAGE:  en
#+OPTIONS:   H:3 num:t toc:t \n:nil @:t ::t |:t ^:t -:t f:t *:t <:t
#+OPTIONS:   TeX:t LaTeX:nil skip:t d:nil todo:t pri:nil tags:not-in-toc
#+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0
path:http://orgmode.org/org-info.js
#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
#+LINK_UP:
#+LINK_HOME:

* Bug-References

#+CAPTION: References
#+LABEL: tbl:references
#+LINK: bugzilla http://10.1.2.9/bugzilla/show_bug.cgi?id=
#+LINK: ads 
http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%s&db_key=AST
| bug  | link |
|--+--|
| 129  | [[bugzilla:129]] |
| test | [[ads:test]] |


8<-8<

If the link contains this ampersand '&' character, which has special meaning
inside latex table, org mode generates incompatible .tex file. With the
latest org-mode {from git sources}, I have the following generated output :



8<-8<

% Created 2009-06-15 Mon 16:51
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{hyperref}


\title{Simple refs stuff}
\author{Yuva}
\date{15 June 2009}

\begin{document}



\setcounter{tocdepth}{3}
\tableofcontents
\vspace*{1cm}
\section{Bug-References}
\label{sec-1}


\begin{table}[htb]
\caption{\label{tbl:references}References}
\begin{center}
\begin{tabular}{ll}
 bug   &  link

  \\
\hline
 129   &  
\href{http://10.1.2.9/bugzilla/show_bug.cgi?id=129}{http://10.1.2.9/bugzilla/show\_bug.cgi?id=129}
   \\
 test  &  
\href{http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=test&db_key=AST}{http://adsabs.harvard.edu/cgi-bin/nph-abs\_connect?author=test\&db\_key=AST}
 \\
\end{tabular}
\end{center}
\end{table}


\end{document}


8<-8<

'pdflatex' simply fails to produce a pdf because '&' has creeped in due to
'#+LINK: ads' expansion. This simple problem can be solved by treating
'&' as special character, and replace it with '\&'. For above example,
just replace 'test&db' with 'test\&db' IN-THE-FIRST-ARG-OF \href. Well, I
am new to elisp, and I am still figuring out how to counter this issue.
[Oh! what a lame excuse!].

Thanks,

-- 
YUVA


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


Re: [Orgmode] Alternate Table Row Colors

2009-06-15 Thread Xin Shi
Hi Russell,

Thanks for your posting!

Unfortunately, this is quite a new feature for CSS 3, which is not supported
by the Firefox 3.  It would be great if the org-mode can just add the class
attribute in the .

Xin


On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams wrote:

> Not that I'm a CSS expert, but it appears you could do this without
> changing how Org outputs tables by adding this styling to your CSS.
>
> http://www.zorked.com/css/alternating-table-rows-using-css-only/
>
> Quote:
>
> tr:nth-child(odd) {
> background-color: #CC;
> }
>
> tr:nth-child(even) {
> background-color: #6699FF;
> }
>
> Good luck! If you make an example, please post it!
>
> On Sun, Jun 14, 2009 at 03:00:15PM -0400, Xin Shi wrote:
> > Hello Experts,
> >
> > I use org-mode to produce a lot of big tables with numbers in them. When
> I
> > present these tables by HTML, I found it's hard to keep track which row
> it
> > is. I'm wondering if it's possible to implement additional class
> attribute
> > to the , such as:
> >
> >
> > 
> > OneFish
> > TwoFish
> > RedFish
> > BlueFish
> > 
> >
> > So, that in the CSS file, it'll be easier to implement the color:
> >
> > 
> > table.sample {
> >   border: 6px inset #8B8378;
> >   -moz-border-radius: 6px;
> > }
> > table.sample td {
> >   border: 1px solid black;
> >   padding: 0.2em 2ex 0.2em 2ex;
> >   color: black;
> > }
> > table.sample tr.d0 td {
> >   background-color: #FCF6CF;
> > }
> > table.sample tr.d1 td {
> >   background-color: #FEFEF2;
> > }
> > 
> >
> > I borrowed idea from this article:
> > http://www.somacon.com/p338.php
> >
> > Thanks!
> >
> > Xin
>
> > ___
> > Emacs-orgmode mailing list
> > Remember: use `Reply All' to send replies to the list.
> > Emacs-orgmode@gnu.org
> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
>
> --
> Russell Adamsrlad...@adamsinfoserv.com
>
> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>
> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Bastien
Hi all,

I managed to create a short video for the SCCA 2009:

  http://www.youtube.com/watch?v=TlTDSX0vRiA
  http://vimeo.com/5155665 (for those who prefer)

Chritopher Baker kindly allowed me to use some of his great
video material from his "Hello world!" project:

  http://christopherbaker.net/projects/helloworld/

I also used Manish's great code swarm video:

  http://www.vimeo.com/4581697

And an electro song by Silence:

  http://www.jamendo.com/fr/album/395

I hope you'll like the video!

Thanks,

-- 
 Bastien


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


Re: [Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Eric Schulte
magnificent,

I like every facet of the video, it does a great job of concisely
introducing the tool in a visually/aurally pleasing manner.

really great

Bastien  writes:

> Hi all,
>
> I managed to create a short video for the SCCA 2009:
>
>   http://www.youtube.com/watch?v=TlTDSX0vRiA
>   http://vimeo.com/5155665 (for those who prefer)
>
> Chritopher Baker kindly allowed me to use some of his great
> video material from his "Hello world!" project:
>
>   http://christopherbaker.net/projects/helloworld/
>
> I also used Manish's great code swarm video:
>
>   http://www.vimeo.com/4581697
>
> And an electro song by Silence:
>
>   http://www.jamendo.com/fr/album/395
>
> I hope you'll like the video!
>
> Thanks,


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


Re: [Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Russell Adams
*Applause!* Wow! Thats was a great mix, and Carsten's clips are very
 inspirational and sounding his best!

On Mon, Jun 15, 2009 at 04:03:16PM +0200, Bastien wrote:
> Hi all,
> 
> I managed to create a short video for the SCCA 2009:
> 
>   http://www.youtube.com/watch?v=TlTDSX0vRiA
>   http://vimeo.com/5155665 (for those who prefer)
> 
> Chritopher Baker kindly allowed me to use some of his great
> video material from his "Hello world!" project:
> 
>   http://christopherbaker.net/projects/helloworld/
> 
> I also used Manish's great code swarm video:
> 
>   http://www.vimeo.com/4581697
> 
> And an electro song by Silence:
> 
>   http://www.jamendo.com/fr/album/395
> 
> I hope you'll like the video!
> 
> Thanks,
> 
> -- 
>  Bastien
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 


--
Russell Adamsrlad...@adamsinfoserv.com

PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/

Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3


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


Re: [Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Manish
  On Mon, Jun 15, 2009 at 7:33 PM, Bastien wrote:
  > Hi all,
  >
  > I managed to create a short video for the SCCA 2009:
  >
  > http://www.youtube.com/watch?v=TlTDSX0vRiA
  > http://vimeo.com/5155665 (for those who prefer)
  >
  > Chritopher Baker kindly allowed me to use some of his great video
  > material from his "Hello world!" project:
  >
  > http://christopherbaker.net/projects/helloworld/
  >
  > I also used Manish's great code swarm video:
  >
  > http://www.vimeo.com/4581697
  >
  > And an electro song by Silence:
  >
  > http://www.jamendo.com/fr/album/395
  >
  > I hope you'll like the video!

Wow! Wow! Wow!

BTW, that bit at the end with Carsten's voice is sweet touch. :)

Thanks for creating it.

-- 
Manish


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


[Orgmode] Re: Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Bernt Hansen
Bastien  writes:

> I managed to create a short video for the SCCA 2009:
>
>   http://www.youtube.com/watch?v=TlTDSX0vRiA
>   http://vimeo.com/5155665 (for those who prefer)
>
> Chritopher Baker kindly allowed me to use some of his great
> video material from his "Hello world!" project:
>
>   http://christopherbaker.net/projects/helloworld/
>
> I also used Manish's great code swarm video:
>
>   http://www.vimeo.com/4581697
>
> And an electro song by Silence:
>
>   http://www.jamendo.com/fr/album/395
>
> I hope you'll like the video!

Awesome!!  Very well done!

-Bernt


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


Re: [Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread srandby

Fantastic video!

Scott Randby

Bastien wrote:

Hi all,

I managed to create a short video for the SCCA 2009:

  http://www.youtube.com/watch?v=TlTDSX0vRiA
  http://vimeo.com/5155665 (for those who prefer)

Chritopher Baker kindly allowed me to use some of his great
video material from his "Hello world!" project:

  http://christopherbaker.net/projects/helloworld/

I also used Manish's great code swarm video:

  http://www.vimeo.com/4581697

And an electro song by Silence:

  http://www.jamendo.com/fr/album/395

I hope you'll like the video!

Thanks,





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


Re: [Orgmode] Alternate Table Row Colors

2009-06-15 Thread Xin Shi
Hello Experts,

I took a look in the lisp directory, the related function is in the
org-html.el:

(defun org-format-org-table-html (lines &optional splice)

There it might need a counter for the row in the line
(push (concat ""  ...

I don't know how to continue from here ... Any suggestions from our Lisp
experts?

Thanks!

Xin


On Mon, Jun 15, 2009 at 8:39 AM, Xin Shi  wrote:

> Hi Russell,
>
> Thanks for your posting!
>
> Unfortunately, this is quite a new feature for CSS 3, which is not
> supported by the Firefox 3.  It would be great if the org-mode can just add
> the class attribute in the .
>
> Xin
>
>
>
> On Sun, Jun 14, 2009 at 3:11 PM, Russell Adams 
> wrote:
>
>> Not that I'm a CSS expert, but it appears you could do this without
>> changing how Org outputs tables by adding this styling to your CSS.
>>
>> http://www.zorked.com/css/alternating-table-rows-using-css-only/
>>
>> Quote:
>>
>> tr:nth-child(odd) {
>> background-color: #CC;
>> }
>>
>> tr:nth-child(even) {
>> background-color: #6699FF;
>> }
>>
>> Good luck! If you make an example, please post it!
>>
>> On Sun, Jun 14, 2009 at 03:00:15PM -0400, Xin Shi wrote:
>> > Hello Experts,
>> >
>> > I use org-mode to produce a lot of big tables with numbers in them. When
>> I
>> > present these tables by HTML, I found it's hard to keep track which row
>> it
>> > is. I'm wondering if it's possible to implement additional class
>> attribute
>> > to the , such as:
>> >
>> >
>> > 
>> > OneFish
>> > TwoFish
>> > RedFish
>> > BlueFish
>> > 
>> >
>> > So, that in the CSS file, it'll be easier to implement the color:
>> >
>> > 
>> > table.sample {
>> >   border: 6px inset #8B8378;
>> >   -moz-border-radius: 6px;
>> > }
>> > table.sample td {
>> >   border: 1px solid black;
>> >   padding: 0.2em 2ex 0.2em 2ex;
>> >   color: black;
>> > }
>> > table.sample tr.d0 td {
>> >   background-color: #FCF6CF;
>> > }
>> > table.sample tr.d1 td {
>> >   background-color: #FEFEF2;
>> > }
>> > 
>> >
>> > I borrowed idea from this article:
>> > http://www.somacon.com/p338.php
>> >
>> > Thanks!
>> >
>> > Xin
>>
>> > ___
>> > Emacs-orgmode mailing list
>> > Remember: use `Reply All' to send replies to the list.
>> > Emacs-orgmode@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>>
>> --
>> Russell Adamsrlad...@adamsinfoserv.com
>>
>> PGP Key ID: 0x1160DCB3   http://www.adamsinfoserv.com/
>>
>> Fingerprint:1723 D8CA 4280 1EC9 557F  66E8 1154 E018 1160 DCB3
>>
>>
>> ___
>> Emacs-orgmode mailing list
>> Remember: use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>
>
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] "Ctrl-c a a" does not switch automatically to agenda view

2009-06-15 Thread Willi Richert
Hi,

if I invoke org-agenda-list it opens the list in a not visible buffer. I have 
to manually switch to that buffer all the time. 

My Emacs version:
GNU Emacs 23.0.94.1 (i486-pc-linux-gnu, GTK+ Version 2.16.1)
 of 2009-06-15 on lychee, modified by Debian

.emacs contains the following related stuff:

...
 '(org-agenda-skip-deadline-if-done t)
 '(org-agenda-skip-scheduled-if-done t)
 '(org-agenda-skip-timestamp-if-done t)
...

(require 'org-install)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
(global-set-key "\C-cb" 'org-iswitchb)
(global-set-key "\C-cr" 'org-remember)
(setq org-log-done t)

(org-remember-insinuate)
(setq org-default-notes-file "~/org/notes.org")


Is my emacs installation broken, or is the org verison outdated? It is the 
standard org-mode that came with emacs.

Regards,
wr


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


[Orgmode] Filing todos from agenda list view?

2009-06-15 Thread Willi Richert
Hi,

is there a possibility to created todos directly from the agenda view?

Thanks,
wr


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


[Orgmode] Hosed configuration

2009-06-15 Thread Birch Browning
Earlier today I tried to update my org-mode/remember stuff following
http://doc.norang.ca/org-mode.html. Somehow I hosed my org-mode/remember
config so I started over from scratch. (See http://pastebin.com/m1937d804).

I STILL get an error when I try to use ANY template what-so-ever: wrong type
of argument: listp, 5. If I remove (org-remember-insinuate) I don't get the
error, but I only store a note in a file NOT listed as an agenda file in the
configuration: (~/.notes).

This leads me to believe that some org-mode/agenda/remember stuff is stored
in an 'undisclosed location' and that perhaps that has something funny
stored in it. Is there a way to clear that cached info?

I'm stumped and damn near desperate to get back to work.

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


Re: [Orgmode] Org video for the SourceForge Commmunity Choices Award 2009

2009-06-15 Thread Rick Moynihan
2009/6/15 Bastien :
> Hi all,
>
> I managed to create a short video for the SCCA 2009:
>
>  http://www.youtube.com/watch?v=TlTDSX0vRiA
>  http://vimeo.com/5155665 (for those who prefer)
>

Wow Bastien, great job

Care to say what tools you used?

R.


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


[Orgmode] Re: Hosed configuration

2009-06-15 Thread Birch Browning
Birch Browning  gmail.com> writes:

> 
> Earlier today I tried to update my org-mode/remember stuff following
http://doc.norang.ca/org-mode.html. Somehow I hosed my org-mode/remember config
so I started over from scratch. (See http://pastebin.com/m1937d804). I STILL get
an error when I try to use ANY template what-so-ever: wrong type of argument:
listp, 5. If I remove (org-remember-insinuate) I don't get the error, but I only
store a note in a file NOT listed as an agenda file in the configuration:
(~/.notes).This leads me to believe that some org-mode/agenda/remember stuff is
stored in an 'undisclosed location' and that perhaps that has something funny
stored in it. Is there a way to clear that cached info?
> I'm stumped and damn near desperate to get back to work.Help, please ...
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode  gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
> 

Thumper_ on #org-mode helped me get started from scratch with a new .emacs file.
I must have hosed something but good ...

Thanks Thumper_!




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


[Orgmode] orgtbl-mode-map is missing TAB-related bindings

2009-06-15 Thread sand
The Emacs 23 org-table.el library (6.21b) includes a binding for
org-table-previous-field:

(org-defkey orgtbl-mode-map [(shift tab)]
  (orgtbl-make-binding 'org-table-previous-field 104
   [(shift tab)] [(tab)] "\C-i"))

On both my work and home machines, Shift+TAB generates the event
, which is then translated to .  The above
binding does not match those events.  For comparison, the org-mode-map
definition has complete coverage:

  (unless (featurep 'xemacs)
(org-defkey org-mode-map [S-iso-lefttab]  'org-shifttab))
  (org-defkey org-mode-map [(shift tab)]'org-shifttab)
  (define-key org-mode-map [backtab] 'org-shifttab)

Can someone add the necessary bindings to orgtbl-mode-map?

Thanks,

Derek

-- 
Derek Upham
s...@blarg.net


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


[Orgmode] Re: Filing todos from agenda list view?

2009-06-15 Thread Matthew Lundin
Willi Richert  writes:

> is there a possibility to created todos directly from the agenda view?

You can call org-remember from the agenda (k r) to capture a new todo
without losing your place. If your remember template is setup to insert
a timestamp (i.e., active, scheduled, deadline), the date inserted in
the remember buffer will be the same as the one the cursor is on in the
agenda buffer.

Or if you want to add a related task to something already in the agenda,
you can simply type RET or TAB to go to the relevant place in the org
file.

Regards,
Matt


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


[Orgmode] [Buglet] issue where org-agenda always prints to PostScript "with faces"

2009-06-15 Thread James
If you tweak org-agenda-custom-commands to create a PostScript version of your
agenda (for example by following this link...

http://orgmode.org/worg/org-tutorials/org-custom-agenda-commands.php#sec-5.4

) ... and like me you happen to use a dark background in Emacs
(set-face-background 'default "black"), you end up with PostScript files which
take account of your background colour. In my case if I were to actually print
my agenda on a printer, I'd probably drain it of black ink! :-)

This problem appears to be because org-agenda always prints using
"ps-print-buffer-with-faces".

Please could a variable be added such that for awkward users like me org-mode
would use "ps-print-buffer" instead.

Thanks for a fantastic productivity tool!

Regards,

James.



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


[Orgmode] Re: "Ctrl-c a a" does not switch automatically to agenda view

2009-06-15 Thread Tassilo Horn
Willi Richert  writes:

Hi Willi,

> if I invoke org-agenda-list it opens the list in a not visible
> buffer. I have to manually switch to that buffer all the time.

This behavior doesn't sound like a problem of the org configs, and what
you've posted looks sane.  Instead I think it may have something to do
with some variable influencing functions like `display-buffer'.
Something like `split-window-preferred-function' maybe.

Or maybe `display-buffer-reuse-frames' is set to true and the agenda is
already shown in another emacs frame on a different workspace.  In that
case, the frame is focussed, but you won't notice it cause it's on an
different workspace.

Bye,
Tassilo
-- 
Richard Stallman takes notes in binary.



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