[Orgmode] [WISH] LaTeX Export: Expand link abbreviations first before exporting LaTeX links

2008-07-04 Thread Frank Chang
Hi, Carsten

Thank you for fixing the tag problem in headline.
It's really amazing that the problem can be fixed so quick (just few hours)!

Now I have another problem:)

Since I put all image files in one directory called, for example, ~/notes/img.
And I want it to be a link abbreviation,

#+LINK: imagefile:~/notes/img/

so the image link will be easy to write:

   [[image:demo.jpg]]

and also easy to maintain.

But when I export the file, LaTeX exporter doesn't take it as a valid image link
(\includegraphics[...]{~/notes/img/demo.jpg}).

In function org-export-latex-links(), it seems that only the links beginning
with 'file:' can be valid image links, and the link abbreviations are not
replaced first.

So is it possible to expand link abbreviations first before exporting LaTeX
links (maybe apply the function org-link-expand-abbrev() in org.el)?


Thanks.


Best regards,
Frank




___
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] Re: R: WISH: separate org-mode customization file

2008-07-04 Thread Harri Kiiskinen

Eddward DeVilla wrote:

On Tue, Jul 1, 2008 at 1:21 PM, Harri Kiiskinen <[EMAIL PROTECTED]> wrote:

Thank you all for the answers, but it seems that I was not quite clear
enough. I'm quite able to set the 'custom-file' to whatever I want, and
I can (load "myconfig.el") - which is what I currently do. Lets restate
the problem:

1. I cannot and do not want to share _all_ customizations, since many of
them are system specific - absolute paths, modes which function on Linux
but not on XP (e.g. whizzy-tex), face settings etc.
2. I want to share org-mode customization, which is system independent,
in my case. This I can do with (load "myconfig.el"), but the file has to
be edited by hand, as the Emacs Customize for org-mode saves everything
where 'custom-file' points to.
3. If I set 'custom-file' to "myconfig.el", then I contradict no. 1.


Sorry for not responding sooner.  I've had init split
(http://www.emacswiki.org/cgi-bin/wiki/InitSplit) suggested to me for
the same problem.  The thread might be in the archive.  I haven't had
a chance to set this up yet, so I can say if it is really usable.

Edd


Thanks all,

InitSplit did just the trick I was looking for.

As the documentation of it is quite bad, I'll include my current setup 
as an usage example, just in case someone else is interested.


from .emacs:
---

(load "initsplit")
(load "~/emacs_customs/font-latex")
(load "~/emacs_customs/bibtex")
(load "~/emacs_customs/org")

(custom-set-variables
;; This you can do with customize:
;; M-x customize-variable initsplit-customizations-alist
 '(initsplit-customizations-alist (quote (("org-" 
"~/emacs_customs/org.el" t) ("bibtex-" "~/emacs_customs/bibtex.el" t) 
("font-latex-" "~/emacs_customs/font-latex.el" t

)

---

The code can be abstracted more, but then it gets unclear to beginners 
like me...



Best Wishes,

Harri K.



___
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-publish

2008-07-04 Thread Richard G Riley

I would like to suggest that 

C-c C-e P  "Publish the project containing the current file." also
publishes any projects which contain that project. e.g I have a
"container project"

("cv"
 :components ("cv-html" "cv-raw")
 )

This would mean one doesn't have to manually select org-publish and then
enter "cv" to publish the entire project. One can do it using hot keys
from any file within cv-html or cv-raw.



___
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] can't make org-publish do anything

2008-07-04 Thread Dan Davison
I'm trying to get going with org-publish, but am falling at the first hurdle. I 
can't get it to do anything...

C-h v shows that org-publish-projects-alist has the value

(("website" :base-directory "~/website/" :publishing-directory 
"~/pub_html/website/" :section-numbers nil :table-of-contents nil))

The directory ~/website exists and contains a trivial org syntax file called 
root.org ('* hello' followed by a newline)

The directory ~/pub_html/website exists.

I was expecting org-publish website, and C-c C-e X website (incidentally the X 
is erroneously down as a C in the documentation node 13.3) to result in a file 
called root.html being written to ~/pub_html/website, but that directory 
remains empty, despite repeated invocations of the same commands...

I know I'm being stupid... how, please?

Cheers,

Dan

Org-mode version 6.06pre01

I've tried with and without the trailing slashes on the 
base/publishing-directory values, the documentation shows trailing slashes
I've tried manually expanding ~, to no avail. (But I believe ~ should be fine 
as it is)


___
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] can't make org-publish do anything

2008-07-04 Thread Manish
On Sat, Jul 5, 2008 at 1:04 AM, Dan Davison wrote:
> I'm trying to get going with org-publish, but am falling at the first hurdle. 
> I can't get it to do anything...
>
> C-h v shows that org-publish-projects-alist has the value
>
> (("website" :base-directory "~/website/" :publishing-directory 
> "~/pub_html/website/" :section-numbers nil :table-of-contents nil))
>
> The directory ~/website exists and contains a trivial org syntax file called 
> root.org ('* hello' followed by a newline)
>
> The directory ~/pub_html/website exists.
>
> I was expecting org-publish website, and C-c C-e X website (incidentally the 
> X is erroneously down as a C in the documentation node 13.3) to result in a 
> file called root.html being written to ~/pub_html/website, but that directory 
> remains empty, despite repeated invocations of the same commands...

I had similar issue.  Suggestion here might help:
http://article.gmane.org/gmane.emacs.orgmode/7117

-- 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


Re: [Orgmode] can't make org-publish do anything

2008-07-04 Thread Dan Davison
On Sat, Jul 05, 2008 at 12:04:48AM +0200, Sebastian Rose wrote:
> Hi Dan,
>
> org-publish-to-html is the default as I look in the code ...
>
> Sorry.
>
> When I put the value of your org-publish-projects-alist into my
> own one and evaluate it, it works here. So maybe Manish was on
> the right track, hopefully.

Yes, he was. I think I may have identified the bug. The symptom is
that when the directory ~/.org-timestamps does not exist, org-publish
does nothing. I think what it should do is create ~/.org-timestamps,
and go ahead with the requested publishing. org-publish.el contains
the function org-publish-needed-p which is supposed to return 't' if
the file should be published.  Here's my suggested change which seems
to result in the behaviour I was expecting. But I haven't looked at
the code extensively, maybe there's some more appropriate place to
make the missing timestamp directory. Also, I barely know what I'm
doing in elisp. The original defun is below.

~> diff -uNr /usr/local/src/org-mode/lisp/org-publish.el ~/org-publish-dan.el 
--- /usr/local/src/org-mode/lisp/org-publish.el  2008-07-04 
23:25:36.0 +0100
+++ /home/dan/org-publish-dan.el 2008-07-04 
23:27:17.0 +0100
@@ -312,7 +312,9 @@
   org-publish-timestamp-directory)
   ;; there is a timestamp, check if FILENAME is newer
   (file-newer-than-file-p
-   filename (org-publish-timestamp-filename 
filename
+filename (org-publish-timestamp-filename 
filename)))
+(make-directory 
org-publish-timestamp-directory)
+t)
 ;; don't use timestamps, always return t
 t))
 

Thanks Manish and Sebastian.

Dan


current version:

(defun org-publish-needed-p (filename)
  "Return `t' if FILENAME should be published."
  (if org-publish-use-timestamps-flag
  (if (file-exists-p org-publish-timestamp-directory)
  ;; first handle possible wrong timestamp directory

 
  (if (not (file-directory-p org-publish-timestamp-directory))
  (error "Org publish timestamp: %s is not a directory"
 org-publish-timestamp-directory)
;; there is a timestamp, check if FILENAME is newer 

 
(file-newer-than-file-p
 filename (org-publish-timestamp-filename filename
;; don't use timestamps, always return t

 
t))



>
>
> Regards, Sebastian
>
>
> Dan Davison schrieb:
>> I'm trying to get going with org-publish, but am falling at the first 
>> hurdle. I can't get it to do anything...
>>
>> C-h v shows that org-publish-projects-alist has the value
>>
>> (("website" :base-directory "~/website/" :publishing-directory 
>> "~/pub_html/website/" :section-numbers nil :table-of-contents nil))
>>
>> The directory ~/website exists and contains a trivial org syntax file called 
>> root.org ('* hello' followed by a newline)
>>
>> The directory ~/pub_html/website exists.
>>
>> I was expecting org-publish website, and C-c C-e X website (incidentally the 
>> X is erroneously down as a C in the documentation node 13.3) to result in a 
>> file called root.html being written to ~/pub_html/website, but that 
>> directory remains empty, despite repeated invocations of the same commands...
>>
>> I know I'm being stupid... how, please?
>>
>> Cheers,
>>
>> Dan
>>
>> Org-mode version 6.06pre01
>>
>> I've tried with and without the trailing slashes on the 
>> base/publishing-directory values, the documentation shows trailing slashes
>> I've tried manually expanding ~, to no avail. (But I believe ~ should be 
>> fine as it is)
>>
>>
>> ___
>> 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


Re: [Orgmode] can't make org-publish do anything

2008-07-04 Thread Sebastian Rose

Hi Dan,

fine, just tested. Works. :)


Sebastian
begin:vcard
fn:Sebastian Rose
n:Rose;Sebastian
email;internet:[EMAIL PROTECTED]
title:Fachinformatiker/Anwendendungsentwicklung
tel;cell:+49 173 / 83 93 417
note;quoted-printable:Entwicklung  von Internetanwendungen und Programmen  mit  freien  Werkzeu=
	gen  und Bibliotheken.=0D=0A=
	=0D=0A=
	PHP, Java, C/C++,  Bash,  Perl,  Apache, MySQL,  PostgreSQL, xt::commerce=
	, Typo3, Server,  Netzwerk,  Desktop, Datenbank, gtkmm=0D=0A=
	
x-mozilla-html:FALSE
version:2.1
end:vcard

___
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] can't make org-publish do anything

2008-07-04 Thread Carsten Dominik

I just pushed this change, thanks!

- Carsten

On Jul 4, 2008, at 3:50 PM, Dan Davison wrote:


On Sat, Jul 05, 2008 at 12:04:48AM +0200, Sebastian Rose wrote:

Hi Dan,

org-publish-to-html is the default as I look in the code ...

Sorry.

When I put the value of your org-publish-projects-alist into my
own one and evaluate it, it works here. So maybe Manish was on
the right track, hopefully.


Yes, he was. I think I may have identified the bug. The symptom is
that when the directory ~/.org-timestamps does not exist, org-publish
does nothing. I think what it should do is create ~/.org-timestamps,
and go ahead with the requested publishing. org-publish.el contains
the function org-publish-needed-p which is supposed to return 't' if
the file should be published.  Here's my suggested change which seems
to result in the behaviour I was expecting. But I haven't looked at
the code extensively, maybe there's some more appropriate place to
make the missing timestamp directory. Also, I barely know what I'm
doing in elisp. The original defun is below.

~> diff -uNr /usr/local/src/org-mode/lisp/org-publish.el ~/org- 
publish-dan.el
--- /usr/local/src/org-mode/lisp/org-publish.el		 2008-07-04  
23:25:36.0 +0100
+++ /home/dan/org-publish-dan.el			 2008-07-04 23:27:17.0  
+0100

@@ -312,7 +312,9 @@
   org-publish-timestamp-directory)
   ;; there is a timestamp, check if FILENAME is newer
   (file-newer-than-file-p
-   filename (org-publish-timestamp-filename 
filename
+filename (org-publish-timestamp-filename 
filename)))
+(make-directory 
org-publish-timestamp-directory)
+t)
;; don't use timestamps, always return t
t))


Thanks Manish and Sebastian.

Dan


current version:

(defun org-publish-needed-p (filename)
 "Return `t' if FILENAME should be published."
 (if org-publish-use-timestamps-flag
 (if (file-exists-p org-publish-timestamp-directory)
 ;; first handle possible wrong timestamp directory
 (if (not (file-directory-p org-publish-timestamp-directory))
 (error "Org publish timestamp: %s is not a directory"
org-publish-timestamp-directory)
   ;; there is a timestamp, check if FILENAME is newer
   (file-newer-than-file-p
filename (org-publish-timestamp-filename filename
   ;; don't use timestamps, always return t
   t))






Regards, Sebastian


Dan Davison schrieb:
I'm trying to get going with org-publish, but am falling at the  
first hurdle. I can't get it to do anything...


C-h v shows that org-publish-projects-alist has the value

(("website" :base-directory "~/website/" :publishing-directory "~/ 
pub_html/website/" :section-numbers nil :table-of-contents nil))


The directory ~/website exists and contains a trivial org syntax  
file called root.org ('* hello' followed by a newline)


The directory ~/pub_html/website exists.

I was expecting org-publish website, and C-c C-e X website  
(incidentally the X is erroneously down as a C in the  
documentation node 13.3) to result in a file called root.html  
being written to ~/pub_html/website, but that directory remains  
empty, despite repeated invocations of the same commands...


I know I'm being stupid... how, please?

Cheers,

Dan

Org-mode version 6.06pre01

I've tried with and without the trailing slashes on the base/ 
publishing-directory values, the documentation shows trailing  
slashes
I've tried manually expanding ~, to no avail. (But I believe ~  
should be fine as it is)



___
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




___
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