[Orgmode] XHTML export - customizing via local variables

2007-11-02 Thread Adam Spiers
Is org-export-html-style the only aspect of XHTML export which can be
customized via Local Variables?  It would be nice to be able to
override org-export-html-table-tag per-file, for instance, but it
didn't work for me and I wasn't clever enough to figure out how the
code works from a quick glance.  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] switching between todo groups

2007-11-02 Thread Richard G Riley
Bastien [EMAIL PROTECTED] writes:

 Richard G Riley [EMAIL PROTECTED] writes:

 Will it be possible to have same state names in different groups at
 some stage? e.g Most Subsequence (to use a word from the info file)
 would have a Done state I would think.

 Actually, you can already switch between sets of keywords if their
 *first* element is different.

 But imagine this:

 Seq1: k1 k2 k3 | k0
 Seq2: ka k1 kb kc | k0

 If a headline starts with k1, how Org would know what should be the next
 logical keyword?  k2 or kb?  For now, it uses k2, ignoring Seq2.

Occam's razor. Simplest solution. The first one unless the user selects
the second group and this is remembered in memory for the duration of
the session or the user changes it again. Certainly better than showing
two groups but only allowing selection of first group.


 This problem is not *that* fundamental when two sequences share the same
 k0 state, because it's more likely that this state won't change.


___
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] XHTML export - nbsp; etc.

2007-11-02 Thread Adam Spiers
On Fri, Nov 02, 2007 at 03:26:19PM +, Bastien wrote:
 Adam Spiers [EMAIL PROTECTED] writes:
 
  Another XHTML export question - is it possible to export special
  symbols such as nbsp; ?  If not, perhaps the @ syntax could be
  extended from simple tags to these too, i.e. @nbsp; ?
 
 Have a look at `org-html-entities'.
 
 You can use \nbsp in Org source file, it'll be converted to nbsp;
 smoothly.

Perfect, thanks!  Probably worth adding this to the docs?


___
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] Removing org files after opening agenda

2007-11-02 Thread Eddward DeVilla
Actually, this is how I load all my org files in one shot.  It did
annoy me once upon a time.

Edd

On 11/2/07, Stefan Kamphausen [EMAIL PROTECTED] wrote:
 Hi,

 when opening an agenda for TODO items (via M-x org-agenda t) all files
 from org-agenda-files will be opened.  This clutters the buffer space
 and I think the buffers should be killed after reading their contents.

 Probably I could do it myself using org-finalize-agenda-hook but it
 may be worth thinking about a general solution.  And maybe I am
 missing something?

 The simple approach, to close all buffers associated with files in
 org-agenda-files, is obviously not what one wants, instead only those
 opened transparently should be removed afterwards.

 What do you think?

 Kind Regards
 Stefan
 --
 Stefan Kamphausen --- http://www.skamphausen.de
 a blessed +42 regexp of confusion (weapon in hand)
 You hit. The format string crumbles and turns to dust.


 ___
 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] XHTML export - nbsp; etc.

2007-11-02 Thread Daniel Clemente
Oops!

--  : dash, not hyphen :-)

„hyphen 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] XHTML export - nbsp; etc.

2007-11-02 Thread Daniel Clemente
  Hi,

   Bastien suggested in other thread adding ~ to get a „protected
space in LaTeX, and now I discover that a \nbsp is also to get a
protected space in HTML.  So why can't we use the same syntax for
LaTeX and HTML?

   Some other similar signs:
\-   : breaking allowed
~  : protected space
--   : hyphen
Also -  ,  ---

   It would be nice if the behaviour in HTML and LaTeX were the same.


___
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] switching between todo groups

2007-11-02 Thread Richard G Riley
Bastien [EMAIL PROTECTED] writes:

 Richard G Riley [EMAIL PROTECTED] writes:

 Seq1: k1 k2 k3 | k0
 Seq2: ka k1 kb kc | k0

 If a headline starts with k1, how Org would know what should be the next
 logical keyword?  k2 or kb?  For now, it uses k2, ignoring Seq2.

 Occam's razor. Simplest solution. The first one unless the user selects
 the second group and this is remembered in memory for the duration of
 the session or the user changes it again. Certainly better than showing
 two groups but only allowing selection of first group.

 Mh... how do you remember what set you're using for en entry?  

I don't know the details of the elisp but I assume that for one open
file there is a current sequence variable? It is initialised to the
first.

It is only to be remembered for the life of the session.


 Even if we imagine some internal mechanism to keep track of sets
 changes, how do the user knows what is the current set in use for
 a headline, if its TODO keyword belongs to several sets? 

He knows because he set it. If he is unsure he can just loop around back
with the status showing which is the current sequence group-


 Should this be remembered between emacs sessions as well??


I am not suggesting anything is remembered between sessions.


___
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-occur customize

2007-11-02 Thread Bastien
Harald Weis [EMAIL PROTECTED] writes:

 I need the following customization of the org-occur function:
 If the match is in a headline, headline _and_ body are made visible.

 Is there a way to accomplish this?

Have a look at the variable `org-show-hierarchy-above':

,[ org-show-hierarchy-above ]
|
| Non-nil means, show full hierarchy when revealing a location.
| Org-mode often shows locations in an org-mode file which might have
| been invisible before.  When this is set, the hierarchy of headings
| above the exposed location is shown.
|
| [...]
`

HTH,

-- 
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] switching between todo groups

2007-11-02 Thread Bastien
Richard G Riley [EMAIL PROTECTED] writes:

 Seq1: k1 k2 k3 | k0
 Seq2: ka k1 kb kc | k0

 If a headline starts with k1, how Org would know what should be the next
 logical keyword?  k2 or kb?  For now, it uses k2, ignoring Seq2.

 Occam's razor. Simplest solution. The first one unless the user selects
 the second group and this is remembered in memory for the duration of
 the session or the user changes it again. Certainly better than showing
 two groups but only allowing selection of first group.

Mh... how do you remember what set you're using for en entry?  

Even if we imagine some internal mechanism to keep track of sets
changes, how do the user knows what is the current set in use for
a headline, if its TODO keyword belongs to several sets? 

Should this be remembered between emacs sessions as well??

...

-- 
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] XHTML export - customizing via local variables

2007-11-02 Thread Bastien
Hi Adam,

Adam Spiers [EMAIL PROTECTED] writes:

 Is org-export-html-style the only aspect of XHTML export which can be
 customized via Local Variables?  It would be nice to be able to
 override org-export-html-table-tag per-file, for instance, but it
 didn't work for me and I wasn't clever enough to figure out how the
 code works from a quick glance.  

A buffer-local value for `org-export-html-table-tag' won't be of any
help here, so you can't blame yourself :)

Perhaps something like #+TABLE_TAG: would be useful so that
`org-export-plist-vars' can know about a :table-tag property.

I don't know -- Carsten would be of a wiser advice on this.

-- 
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] Removing org files after opening agenda

2007-11-02 Thread Bastien
Stefan Kamphausen [EMAIL PROTECTED] writes:

 The simple approach, to close all buffers associated with files in
 org-agenda-files, is obviously not what one wants, instead only those
 opened transparently should be removed afterwards.

While we may come up with an org-specific solution at some point, you
might also be interested in tempbuf.el:

  http://www.emacswiki.org/cgi-bin/wiki?TempbufMode

I didn't try it with

  (add-hook 'find-file-hooks 'turn-on-tempbuf-mode)

but tempbuf.el explicitely says it might be worth the try...

HTH,

-- 
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] multiple authors in html export:

2007-11-02 Thread Bastien
Yes, your right about creating multiple EMAIL links in HTML.  I'll try
to propose a fix to Carsten for that.

Thanks,

T. V. Raman [EMAIL PROTECTED] writes:

 #+AUTHOR: a,b

 produces the right thing.

 However 
 #+EMAIL:[EMAIL PROTECTED],[EMAIL PROTECTED]
 produces a single mailtoURL
 that is incorrect --- how does one create multiple EMAIL links?

 Creating multiple #+EMAIL: lines ends up picking the last one.

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


[Orgmode] Archive tag

2007-11-02 Thread Uwe Jochum
Hi all,

when I change (using customize menue for Org Archive) the archive tag
from Archive (English) to Archiv (German) I have to set the faces
for Archiv anew, and the Archiv tag doesn't do what the Archive
tag does, i.e. Archiv doesn't work. Is this intentionally so? (Problem
seen in Emacs 22.1.1 with org 5.13.)

Schöne Grüße,

Uwe



___
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] Include other files?

2007-11-02 Thread Bastien
Richard G Riley [EMAIL PROTECTED] writes:

 common.inc:

 #+SEQ_TODO: TODO(t) WAITING(w@) INPROGRESS(p@) | DONE(d) CANCELLED(x@) 
 DELEGATED(l@)
 #+SEQ_TODO: apple(a) | orange(d)

 todo.org:

 #+include common.inc

This is not that straitforward, because org needs to read options like
#+SEQ_TODO before being able to fontify the buffer correctly.

But you can use a dynamic block for that:

(defun org-dblock-write:insert-file (params)
  Insert a header from a file.
  (let ((file (plist-get params :file)))
(if (file-exists-p file)
(insert-file-contents file)
  (error File %s cannot be found file

Then at the beginning of your file:

#+BEGIN: insert-file :file ~/org/my-header.org
#+END:

-- 
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] switching between todo groups

2007-11-02 Thread Bastien
Richard G Riley [EMAIL PROTECTED] writes:

 Will it be possible to have same state names in different groups at
 some stage? e.g Most Subsequence (to use a word from the info file)
 would have a Done state I would think.

Actually, you can already switch between sets of keywords if their
*first* element is different.

But imagine this:

Seq1: k1 k2 k3 | k0
Seq2: ka k1 kb kc | k0

If a headline starts with k1, how Org would know what should be the next
logical keyword?  k2 or kb?  For now, it uses k2, ignoring Seq2.

This problem is not *that* fundamental when two sequences share the same
k0 state, because it's more likely that this state won't change.

-- 
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] Re: void-function remember-buffer

2007-11-02 Thread Bastien
Michael Olson [EMAIL PROTECTED] writes:

 I think fixes are needed to make org.el work with remember.el in Emacs.

 I didn't realize that other modes were using remember-buffer when I
 renamed it to remember-finalize.  I've added an alias for
 remember-buffer to upstream Emacs so that things work again.

Thanks!  See my message on emacs-devel for conditions under which we can
remove this alias.  FWIW.

-- 
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] XHTML export - nbsp; etc.

2007-11-02 Thread Bastien
Adam Spiers [EMAIL PROTECTED] writes:

 Another XHTML export question - is it possible to export special
 symbols such as nbsp; ?  If not, perhaps the @ syntax could be
 extended from simple tags to these too, i.e. @nbsp; ?

Have a look at `org-html-entities'.

You can use \nbsp in Org source file, it'll be converted to nbsp;
smoothly.

-- 
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] LaTeX export

2007-11-02 Thread Xiao-Yong Jin
Daniel Dehennin [EMAIL PROTECTED] writes:

 Le 5175 Septembre 1993, Bastien a tapoté:
 Daniel Dehennin [EMAIL PROTECTED] writes:

 I have 2 problems:

 - the underscore _ is not escaped,

 Can you provide an example with context for both the input and the
 output?  Maybe the #+OPTIONS: line could be useful as well.

 Well, having _ in my ORG file was litteraly a _ in my LaTeX source
 and compiling the LaTex source complains about missing $.

 I'm not able to reproduce this I don't understand what happend :-/

 But now, how can I have some\_thing in my LaTeX source ?

 I write many documents with something like:

 variable_name

  and I don't want them to become:

 $variable_{name}$

 in my LaTeX source.

I've also spotted this.  I guess it's hard to make it right.
By default, org-mode doesn't require `$'s to recognize
certain region as math environment.  See info page

: 10.2 Subscripts and Superscripts
: 
: 
: Just like in LaTeX, `^' and `_' are used to indicate super- and
: subscripts.  Again, these can be used without embedding them in
: math-mode delimiters.  To increase the readability of ASCII text, it is
: not necessary (but OK) to surround multi-character sub- and superscripts
: with curly braces.  For example
: 
:  The mass if the sun is M_sun = 1.989 x 10^30 kg.  The radius of
:  the sun is R_{sun} = 6.96 x 10^8 m.
: 
:To avoid interpretation as raised or lowered text, you can quote `^'
: and `_' with a backslash: `\_' and `\^'.
: 
:During HTML export (*note HTML export::), subscript and superscripts
: are surrounded with `sub' and `sup' tags, respectively.

But I would like to propose a work-around.  How about make
`^' and `_' in those regions marked as =this_code= or
something similar not be interpreted as super- and
subscripts?


Xiao-Yong
-- 
c/*__o/*
\ * (__
*/\  


___
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] Include other files?

2007-11-02 Thread Richard G Riley
Bastien [EMAIL PROTECTED] writes:

 Richard G Riley [EMAIL PROTECTED] writes:

 common.inc:

 #+SEQ_TODO: TODO(t) WAITING(w@) INPROGRESS(p@) | DONE(d) CANCELLED(x@) 
 DELEGATED(l@)
 #+SEQ_TODO: apple(a) | orange(d)

 todo.org:

 #+include common.inc

 This is not that straitforward, because org needs to read options like
 #+SEQ_TODO before being able to fontify the buffer correctly.

 But you can use a dynamic block for that:

 (defun org-dblock-write:insert-file (params)
   Insert a header from a file.
   (let ((file (plist-get params :file)))
 (if (file-exists-p file)
   (insert-file-contents file)
   (error File %s cannot be found file

 Then at the beginning of your file:

 #+BEGIN: insert-file :file ~/org/my-header.org
 #+END:

Wonderful stuff.


___
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] switching between todo groups

2007-11-02 Thread Bastien
Richard G Riley [EMAIL PROTECTED] writes:

 Mh... how do you remember what set you're using for en entry?  

 I don't know the details of the elisp but I assume that for one open
 file there is a current sequence variable? It is initialised to the
 first.

`org-todo-sets' is buffer-local and is a list of keywords sets.

AFAIK there is no variable identifying the current sequence. 

And I don't know if such a variable would be useful, because the
current sequence has no sense outside each specific headline.

BTW, having slightly different keywords could be a temporary
workaround.  What about:

  #+SEQ_TODO: TODO_1 | DONE_1
  #+SEQ_TODO: TODO_2 NEXT WAITING | DONE_2

 It is only to be remembered for the life of the session.

I think I need an example to see how such a piece of information could
be used...  can you provide one?

-- 
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] XHTML export - nbsp; etc.

2007-11-02 Thread Bastien
Adam Spiers [EMAIL PROTECTED] writes:

 You can use \nbsp in Org source file, it'll be converted to nbsp;
 smoothly.

 Perfect, thanks!  Probably worth adding this to the docs?

Yes, you're right.

I guess (info (org)Enhancing text) is the appropriate place for that.

-- 
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] Archive tag

2007-11-02 Thread Bastien
Hi Uwe,

Uwe Jochum [EMAIL PROTECTED] writes:

 when I change (using customize menue for Org Archive) the archive
 tag from Archive (English) to Archiv (German) I have to set the
 faces for Archiv anew, and the Archiv tag doesn't do what the
 Archive tag does, i.e. Archiv doesn't work. Is this intentionally
 so? (Problem seen in Emacs 22.1.1 with org 5.13.)

I don't have a solution, but just to remind you that Using the ARCHIVE
tag is the old way of handling archives - Org now prefers to use the
ARCHIVE property:

,
| * A headline
|   :PROPERTIES:
|   :ARCHIVE: archives/patres_archive::
|   :END:
| 
| ** This headline will be archived in archives/patres_archive
`

Unlike the ARCHIVE tag, the property name ARCHIVE is fixed and cannot be
changed.  

HTH,

-- 
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] jumping to category

2007-11-02 Thread Bastien
Hi Richard,

Richard G Riley [EMAIL PROTECTED] writes:

 where register.org is a list of personal stuff including passwords etc
 so I have it protected with different file permissions to the normal
 todo.org file.

You might also have a look at John's org-crypt.el:
http://www.mail-archive.com/emacs-orgmode@gnu.org/msg03435.html

I didn't test it yet, but it seems to be the right approach.

 Whats the best way to get to register.org from my agenda or my general
 todo.org file? is there some built in jump to other org file utility
 I can customise similar to one key tag commands?

Have a look at org-iswitchb.el:

  http://www.cognition.ens.fr/~guerry/u/org-iswitchb.el

Load it and use

M-x org-iswitchb to switch to Org buffers
C-u M-x org-iswitchb to restrict the list to Org files
C-u C-u M-x org-iswitchb to restrict to Org agenda files

It's largely inspired by `erc-iswitchb'. Not heavily tested.
Could be part of org.el if needed.

-- 
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] XHTML export - nbsp; etc.

2007-11-02 Thread Bastien
Daniel Clemente [EMAIL PROTECTED] writes:

Bastien suggested in other thread adding ~ to get a „protected
 space in LaTeX, and now I discover that a \nbsp is also to get a
 protected space in HTML.  So why can't we use the same syntax for
 LaTeX and HTML?

Some other similar signs:
 \-   : breaking allowed
 ~  : protected space
 --   : hyphen
 Also -  ,  ---

What about this:

| Org| HTML   | LaTeX |
|++---|
| \- | shy;  | \-|
| ~ or   | nbsp; | ~ |
| -- | -  | --|
| ---| -- | ---   |

I'm not sure about the the last two columns.  Maybe it's simpler to
let -- and --- be -- and --- in HTML output as well.

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


[Orgmode] org-occur customize

2007-11-02 Thread Harald Weis
Hello All,

I need the following customization of the org-occur function:
If the match is in a headline, headline _and_ body are made visible.

Is there a way to accomplish this?

Thanks in advance.
Harald Weis
-- 
FreeBSD 6.2-RELEASE-p2 #0: Tue Feb 27 22:56:09 UTC 2007


___
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: void-function remember-buffer

2007-11-02 Thread Leo
On 2007-11-02 03:43 +, Michael Olson wrote:
 Leo [EMAIL PROTECTED] writes:

 Hi Bastien,

 On 2007-11-01 17:31 +, Bastien wrote:
 Leo [EMAIL PROTECTED] writes:

 Apparently, remember.el bundled with Emacs CVS has been changed. And
 the function 'remember-buffer' is no more.

 Did you explicitely required the remember.el package somewhere in
 your configuration?  I think Emacs maintainers plan to remove some
 autoloads in remember.el, not the function themselves...

 No. But I check through remember.el in Emacs and there is no function
 'remember-buffer' which org.el in Emacs explicitly used.

 I think fixes are needed to make org.el work with remember.el in Emacs.

 I didn't realize that other modes were using remember-buffer when I
 renamed it to remember-finalize.  I've added an alias for
 remember-buffer to upstream Emacs so that things work again.

BTW, Bastien has already posted a fix to org.el in emacs-devel:

Message-ID: [EMAIL PROTECTED] or
http://permalink.gmane.org/gmane.emacs.devel/82311

-- 
.:  Leo  :.  [ sdl.web AT gmail.com ]  .:  [ GPG Key: 9283AA3F ]  :.

   Use the most powerful email client -- http://gnus.org/


___
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] LaTeX export

2007-11-02 Thread Daniel Dehennin
Hello,

Using org mode for near everything, I want to use LaTeX export.

I have 2 problems:

- the underscore _ is not escaped,
- I use non-breakable spaces in my input files, like « some text »,
  is-it possible to replace this by ~ ?

Regards.
-- 
Daniel Dehennin
Récupérer ma clef GPG:
gpg --keyserver pgp.mit.edu --recv-keys 0x2A408F69


___
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] LaTeX export

2007-11-02 Thread Bastien
Xiao-Yong Jin [EMAIL PROTECTED] writes:

 But I would like to propose a work-around.  How about make
 `^' and `_' in those regions marked as =this_code= or
 something similar not be interpreted as super- and
 subscripts?

You can already protect strings from conversion by playing with 
`org-export-latex-emphasis-alist', which default value is:

  '((* \\textbf{%s} nil)
(/ \\emph{%s} nil)
(_ \\underline{%s} nil)
(+ \\texttt{%s} nil)
(= \\texttt{%s} nil))

If you use `t' instead of `nil' for the last element of this list, then
=this_string= will be converted as \texttt{this_string} instead of

  \texttt{$this_{string}$}  when ^:t
  \texttt{this\_{}string}   when ^:nil

I do agree that all this could be improved, and I hope I'll come with a
general solution for the next release.  Ideas welcome!

In the meanwhile, testing latest org-export-latex.el will help *a lot*:

  http://www.cognition.ens.fr/~guerry/u/org-export-latex.el

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


[Orgmode] Removing org files after opening agenda

2007-11-02 Thread Stefan Kamphausen
Hi,

when opening an agenda for TODO items (via M-x org-agenda t) all files
from org-agenda-files will be opened.  This clutters the buffer space
and I think the buffers should be killed after reading their contents.

Probably I could do it myself using org-finalize-agenda-hook but it
may be worth thinking about a general solution.  And maybe I am
missing something?

The simple approach, to close all buffers associated with files in
org-agenda-files, is obviously not what one wants, instead only those
opened transparently should be removed afterwards.

What do you think?

Kind Regards
Stefan
-- 
Stefan Kamphausen --- http://www.skamphausen.de
a blessed +42 regexp of confusion (weapon in hand)
You hit. The format string crumbles and turns to dust.


___
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] LaTeX export

2007-11-02 Thread Bastien
Daniel Dehennin [EMAIL PROTECTED] writes:

 Well, having _ in my ORG file was litteraly a _ in my LaTeX source
 and compiling the LaTex source complains about missing $.

 I'm not able to reproduce this I don't understand what happend :-/

:)

 But now, how can I have some\_thing in my LaTeX source ?

At least two solutions:

- directly write some\_thing in your Org source

- use ^:nil in your #+OPTIONS (this will turn off any sub/superscript
  conversion) 

-- 
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] XHTML export - nbsp; etc.

2007-11-02 Thread William Henney
Hi list

On 11/2/07, Bastien [EMAIL PROTECTED] wrote:

 I'm not sure about the the last two columns.  Maybe it's simpler to
 let -- and --- be -- and --- in HTML output as well.


Shouldn't they be `endash;' and `emdash;' in HTML?

http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_Symbols

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


___
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] Archive tag

2007-11-02 Thread Daniel J. Sinder
On 11/02/2007 11:43 AM, Bastien wrote:
 Hi Uwe,
 
 Uwe Jochum [EMAIL PROTECTED] writes:
 
 when I change (using customize menue for Org Archive) the archive
 tag from Archive (English) to Archiv (German) I have to set the
 faces for Archiv anew, and the Archiv tag doesn't do what the
 Archive tag does, i.e. Archiv doesn't work. Is this intentionally
 so? (Problem seen in Emacs 22.1.1 with org 5.13.)
 
 I don't have a solution, but just to remind you that Using the ARCHIVE
 tag is the old way of handling archives - Org now prefers to use the
 ARCHIVE property:
 
 ,
 | * A headline
 |   :PROPERTIES:
 |   :ARCHIVE: archives/patres_archive::
 |   :END:
 | 
 | ** This headline will be archived in archives/patres_archive
 `
 
 Unlike the ARCHIVE tag, the property name ARCHIVE is fixed and cannot be
 changed.  
 
 HTH,
 

I don't have a solution either, but wanted to point out that there
is nothing old about the ARCHIVE tag -- it serves a different
purpose than the ARCHIVE property.

The ARCHIVE tag leaves a heading where it is, but locks the tree
from visibility cycling and hides it from sparse trees and agendas.

The ARCHIVE property is alternative for #+ARCHIVE which is a
file-specific way of setting org-archive-location.

Dan


___
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] XHTML export - nbsp; etc.

2007-11-02 Thread Daniel Clemente
 Shouldn't they be `endash;' and `emdash;' in HTML?

 http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_Symbols


  You mean ndash; and mdash;
  ndash; and mdash; for -- and --- respectively is ok. I think there
exist no  and -
  shy; with \-and   nbsp; with ~   are also good... There exists
also #8203;  (zero-width space), but that's not a sign for breaking
words into syllables; shy; is in addition better implemented.

   That means that following signs:
\-
~
--
---
   would have a special meaning when being exported on all org documents.

   I don't know if ~ is a good election. It should be looked for
inside of words (li~ke this), but probably excluding URLs. Maybe that
causes more problems to the users who want to write a literal ~.
   The symbol for „breaking allowed could also be \~ ...  That's an
inconsistency with LaTeX ~, but is consistent with LaTeX's \-   And
that would leave ~ untouched and just use \- and \~ for hyphenation.


   Greets,
Daniel


___
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] Archive tag

2007-11-02 Thread Bastien
Daniel J. Sinder [EMAIL PROTECTED] writes:

 I don't have a solution either, but wanted to point out that there
 is nothing old about the ARCHIVE tag -- it serves a different
 purpose than the ARCHIVE property.

 The ARCHIVE tag leaves a heading where it is, but locks the tree
 from visibility cycling and hides it from sparse trees and agendas.

 The ARCHIVE property is alternative for #+ARCHIVE which is a
 file-specific way of setting org-archive-location.

Yes, thanks for the clarification!

-- 
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] XHTML export - nbsp; etc.

2007-11-02 Thread Bastien
I don't know if ~ is a good election. It should be looked for
 inside of words (li~ke this), but probably excluding URLs. Maybe that
 causes more problems to the users who want to write a literal ~.

I also think this is too complex.

The symbol for „breaking allowed could also be \~ ...  That's an
 inconsistency with LaTeX ~, but is consistent with LaTeX's \-   And
 that would leave ~ untouched and just use \- and \~ for hyphenation.

What is wrong with \- ?  It seems enough to me.

-- 
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] Values of org-indirect-buffer-display

2007-11-02 Thread Carsten Dominik


On  17Oct2007, at 12:38 PM, Chris Randle wrote:


I'm new to emacs and org-mode, so please forgive me if I've missed
something fundamental.

I've been using org-tree-to-indirect-buffer bound to the default C- 
c C-x
b, and saw in the help that you can modify org-indirect-buffer- 
display.

In my .emacs file, I've got the following:

(setq org-indirect-buffer-display 'new-frame)

When I hit C-c C-x b on a subtree, I do indeed get a narrowed  
subtree in
a new frame (call it frame 2). When I go back to the original frame  
and
repeat for a different subtree, that works too, but the buffer in  
frame

2 is killed. The help for org-tree-to-indirect-buffer says that a C-u
prefix will keep the last buffer, and this works as stated: the buffer
in frame 2 is then kept.

So my question: if C-u controls the persistence of the previous  
buffer,

what is intended difference between new-frame and dedicated-frame?

I had expected C-c C-x b with new-frame to work the same as C-u C-c  
C-x
b with dedicated-frame, and I feel that new-frame is redundant. I  
don't
see why anyone would want to keep opening new frames whilst killing  
the

indirect buffers in the previous ones.


Yes, you are right here. I plan the following change, please comment:

When `org-indirect-buffer-display' is `new-frame', the old buffer is  
always kept
and C-u would be redundant.  For any other value of `org-indirect- 
buffer-display',

the C-u prefix will keep the old buffer.

I guess this still means that `new-frame' is the least useful value  
of this variable,

but still it might find its applications.

- Carsten



___
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] property constants in elisp formulas

2007-11-02 Thread Eddward DeVilla
On 11/1/07, Carsten Dominik [EMAIL PROTECTED] wrote:
 
  Lastly, since I'm whining, there's a bug in the formula editor that
  I'm not sure if I've mentioned before.  Edit the table below with
  C-c
  '.  The '(@-I$2..$2) will become '(@-I$2..B) which causes #ERRORs.

 This is the same, @-I$2..$2 is the same as @-I$2..B

 The errors are caused by interpolations: you get something like

 (car '2 18 58)

 which is obvioulsly a bug.  You need to enclose the properties in
 parenthesis,
 or supply the parenthesis in the formula, so that interpolation will
 lead to

 (car '(2 18 58))

Actually, that wasn't what I was seeing.  In the table formula editor
it highlight the region represented by @-I$2..B as though it were
@-I$2..$3.  I'll have to see if I can put together a better recreate.
I have this happen on my machine at work, but it's not happening not
at home.  Sorry.

Edd


___
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] XHTML export - nbsp; etc.

2007-11-02 Thread William Henney
On 11/2/07, Daniel Clemente [EMAIL PROTECTED] wrote:
  Shouldn't they be `endash;' and `emdash;' in HTML?
 
  http://www.w3.org/TR/xhtml1/dtds.html#a_dtd_Symbols
 

   You mean ndash; and mdash;

Yes. Thanks for the correction.

Personally, I tend to just use the unicode characters directly in my
org file. This works quite well om the whole (see attached example).

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia


unicode.org
Description: Binary data
___
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