Re: [Orgmode] copying headline structure without contents

2009-04-23 Thread Mike Newman
I think this is handled easily enough with existing org-mode + emacs
facilities

1) Mark the sub-tree (C-c @ is useful)
2) Copy and yank where you need it
3) Mark the new copy (or activate transient mark mode)
4) M-C-% (query-replace-regexp in region) to eliminate all the lines not 
starting with *

A suitable regexp should be ^[^*].*^J where the ^J (linefeed) is entered by 
C-q C-j.

On Thu, 23 Apr 2009 11:47:02 +0200
Rainer Stengele rainer.steng...@diplan.de wrote:

 hi all,
 
 is it possible to clone all visible or marked headlines without
 contents?
 
 Example:
 
 
 Having these lines:
 
 * header1
   - contents
 ** header11
- contents
 * header2
   - contents
 ** header21
- contents
 
 
 I'd like to have
 
 
 * header1
   - contents
 ** header11
- contents
 * header2
   - contents
 ** header21
- contents
 * header1
 ** header11
 * header2
 ** header21
 
 
 application:
 having written a spec for a job I want to write another
 one for a similar subject with headlines as before but changed
 contents
 
 
 Thanks for any thought!
 
 Rainer
 
 
 
 ___
 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] Extremely weird key bug in emacs

2009-04-18 Thread Mike Newman
Can you let us know which operating system you are using, what version
of emacs and what version of org-mode, please?

This information would help us to make sensible suggestions.

On Fri, 17 Apr 2009 23:11:30 -0300
Krishan Rajaratnam krishan...@hotmail.com wrote:

 
 Hi, I just installed org mode for emacs and found out that every key
 uses C-c. The problem
 
 is my emacs thinks C-c is C-g, but the funny thing is the ctrl button
 works fine with other shortcuts
 
 in emacs and the c buttons works fine in emacs when used in writing
 code. But when used together emacs
 
 considers it equivalent to C-g, I reinstalled emacs many times and
 use Ctrl-c to copy and paste 
 
 things from the clipboard in windows all the time, so I am completely
 clueless as to what caused this problem or what to do about it. If
 anyone knows anything about this issue I would really appreicate it
 if you could
 
 let me know how to fix it, thanks for your time.
 
 _
 Share photos with friends on Windows Live Messenger
 http://go.microsoft.com/?linkid=9650734


___
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: Patch to fix two bugs in HTML/DocBook exporters

2009-04-09 Thread Mike Newman


On Thu, 9 Apr 2009 12:33:55 +0200
Carsten Dominik carsten.domi...@gmail.com wrote:

 I really don't see why.  Under what circumstances would you
 want to mix list types like this, without at least on little
 transition sentence between the lists?  I cannot remember any
 occasion when I would have wanted this to be possible.
 

I can't resist a challenge like that!

I often write quick lists summarising the advantages and disadvantages
of a proposed solution to a problem, eg:

 + It is faster
 - It is more expensive
 + It uses less memory
 - It is a horrible colour

But I don't think it is worth trying to support something like this.


___
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] shifting table cells

2009-04-01 Thread Mike Newman
kill-rectangle (C-x r k) and yank-rectangle (C-x r y) can be very
useful for this sort of thing.

On Tue, 31 Mar 2009 15:35:03 +0100
n...@aleblanc.cotse.net wrote:

 Hi,
is there any way to shift cells up/down within a column while
 leaving remaining columns intact. If not could someone point me in
 the right direction to any org-functions I could use to help me
 implement this?
 


___
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] Handling org-file agenda dependenncies?

2009-03-27 Thread Mike Newman
When you use the standard commands to add/removes files from the
agenda, it will write a definition for the variable org-agenda-files to
the custom section of your .emacs file.

If you want to deal with trees of files, you might be better off
removing the variable from the custom section, defining it
yourself and updating it manually.

I would find it useful to be able to switch to an *Org Agenda Files
Buffer*, edit this and save it to update - but I don't suppose anyone 
would think it worth the effort of coding.

As an interesting aside - if in Dired I rename a file that I am
currently visiting, the buffer's name will be changed automatically.
However, org-agenda-files will not be updated in this case.

On Fri, 27 Mar 2009 01:31:19 +0100
Eraldo Helal off...@eraldo.at wrote:

 I have projects with non-text files.
 Many of them having sub-,subsub-projects etc. (nested)
 Therefore I made directories for them using the project
 name. /project
 name/subproject name/etc
 Each having it's own (sub-)project name.org file in it.
 
 My question:
 
 How can I add|remove a whole project from the agenda?
 
 e.g. If I remove project1.org file from the agenda...
  /project1/subprojectX.org would still be in there!
 
 Or is there a way to assign and then set a group of org.files to
 inactive(=remove from agenda)?
 
 Any other suggestions|methods for solving this problem?


___
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] Problem with autoloads

2009-03-03 Thread Mike Newman
I would check that you are running the same version of org on both -
call the function org-version.

On Tue, 03 Mar 2009 14:39:52 -0800
Mark Elston m.els...@advantest-ard.com wrote:

 I have two machines:  WinXP and Vista (64 bit) with Emacs 22.3
 on both.
 
 Both are configured the same in terms of libraries and, specifically,
 the org-mode configuration is the same.
 
 However, the (require 'org-install) on the Vista system doesn't
 seem to work the same as it does on WinXP.  When I type C-c a
 on the XP system I get the usual menu asking for the additional
 key for the type of agenda I want.
 
 On the Vista system, though, when I type C-c a I don't get this
 menu and it provides the agenda in the default format (which isn't
 really as useful to me).
 
 I do a C-h f on org-agenda and it tells me (on the Vista system)
 that it is an interactive  Lisp function in 'org.el'.
 
 Apparently, even with the (require ...) in my .emacs file I am
 not loading 'org-install.
 
 Any ideas why this would be?
 
 Mark
 
 
 ___
 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] Prefix arg required for agenda TODO cycle now?

2009-02-04 Thread Mike Newman
I think this is the result of the change in the default value of:
  org-use-fast-todo-selection

I believe that if you customise this the old behaviour will return.

On Wed, 04 Feb 2009 13:24:51 -0600
Charles Sebold cseb...@gmail.com wrote:

 I'm having trouble finding the specific diff where this would have
 changed, and I'm wondering if I've done this to myself, or if this is
 a bug?
 
 I jumped this morning from 6.20h (or maybe 6.20i, don't remember now)
 to latest, and I find that, in agenda view, to toggle a TODO task to
 DONE I have to use C-u t instead of just t.  Then, in the org file
 itself, I'm used to using the prefix arg C-u C-c C-t to pull up the
 full list of TODO possibilities, but now that cycles, and just C-c
 C-t pulls up the full list.
 
 In testing with emacs -Q and an org file with just the following in
 it:
 
 * INBOX test item
 
 I didn't see this problem, but adding my usual org-todo-keywords:
 
 (setq org-todo-keywords
   '((sequence INBOX(i) TICKLER(t!) | FILE(f@)
 CANCELED(k@)) (sequence TODO WAITING VERIFY | DONE
 REASSIGNED) (sequence DAILY(d) | DONEDLY UNSCHEDDLY(D@))
 (sequence WEEKLY(e) | DONEWKLY UNSCHEDWKLY(E@))
 (sequence MONTHLY(m) | DONEMNTHLY UNSCHEDMNTHLY(M@))
 (sequence APPT RESCHEDULE(s@) | APPTPAST
 APPTCANCELED(n@)) (sequence REQUEST(r!) REQWAITING(w@/!)
 REQVERIFY(v) | REQCLOSED(c!) REQREASSIGNED(a@))
 (sequence PROJECT(P!) PROJWAITING(W@/!) PROJVERIFY(V)
 | PROJCLOSED(C!) PROJREASSIGNED(A@))
 ))
 
 ...it changes to the behavior I described above.


-- 
Mike


___
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] POLL: the 40 variables project

2009-02-04 Thread Mike Newman
Please find below my org related customisation (if it is still of
interest).  I have to admit that I can't remember what some of it does
or why I put it that way.

A few comments might be useful:

  This is my work configuration on Windows XP, using a recent emacs 23
  from emacs w32.  I am set up to use cygwin.  I use a fairly recent
  version of org-mode (never more than about 10 versions behind
  Carsten!)

  I use org-mode with visual line mode and abbreviation mode.
  Formerly, I used it with flyspell mode, but there seemed to be a
  problem with w32 emacs so I have disabled it.

  I have one agenda file per project scattered across a windows file
  system, to accompany the corresponding project.  The larger files
  contain thousands of lines of text - I haven't found a need to
  archive yet.

  I log the date at which I complete tasks, but have no need of the
  time.

  I generally use the global todo list, rather than other agenda
  views, and tend not to schedule tasks explicitly.  To keep this view
  neatly aligned, I use 4 letter words for todo states.

  My company has its own week numbering system (not ISO).  I
  approximate this with (org-agenda-start-on-weekday 6) but it would
  be nice to be able to be able to choose a more general week
  numbering scheme.
  
  All my org files have a .txt extension and set the mode by their
  first line.

  I use 4 levels of priority (going down to D for tasks that I will
  probably never get to).

  I sometimes use html export, primarily as a route to importing into
  a word processor (cut and paste from the browser), but generally
  only on a small part of the org file.

* Customisation

 '(desktop-modes-not-to-save (quote (tags-table-mode org-mode)))
 '(org-agenda-files (quote (LIST OF 8 FILES))
 '(org-agenda-sorting-strategy (quote (time-up priority-down category-keep)))
 '(org-agenda-start-on-weekday 6)
 '(org-empty-line-terminates-plain-lists t)
 '(org-export-default-language en-GB)
 '(org-export-with-drawers nil)
 '(org-footnote-define-inline t)
 '(org-log-done (quote time))
 '(org-log-done-with-time nil)
 '(org-lowest-priority 68)
 '(org-refile-targets (quote ((org-agenda-files :level . 1
 '(org-refile-use-outline-path (quote file))
 '(org-tags-column -75)
 '(safe-local-variable-values (quote ((org-export-html-style .
  style type=\text/css\
html {font-family: sans-serif;}
p {font-weight: normal;}
h1 {color: red;}
h2 {color: black; font-size: 20pt; font-weight: bold;}
h3 {color: black; font-size: 16pt; font-weight: bold; 
text-decoration: underline;}
h4 {color: black; font-size: 14pt;}
  /style

;; Enable org-cycle with outline
(add-hook 'outline-minor-mode-hook
  (lambda ()
(define-key outline-minor-mode-map [(control tab)] 'org-cycle)
(define-key outline-minor-mode-map [(shift tab)]
'org-global-cycle))) (add-hook 'outline-mode-hook
  (lambda ()
(define-key outline-mode-map [(tab)] 'org-cycle)
(define-key outline-mode-map [(shift tab)] 'org-global-cycle)))

;; Org-mode
;; The following lines are copied from the .info file
(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
(define-key global-map \C-cl 'org-store-link)
(define-key global-map \C-ca 'org-agenda)
(global-set-key \C-cb 'org-iswitchb)

;; Setting up remember
(org-remember-insinuate)
(setq org-default-notes-file ~/Documents/Journal/Notes.txt)
(define-key global-map \C-cr 'org-remember)

* Infile options

#+SEQ_TODO: TODO WAIT | DONE CANC
#+DRAWERS: DETAILS PROPERTIES
#+OPTIONS:   H:4 num:nil toc:nil \n:nil @:t ::t |:t ^:t f:t *:t TeX:t
LaTeX:nil skip:t
#+TITLE: Journal.txt
#+AUTHOR:Mike Newman
#+EMAIL: x...@xxx.com
#+LANGUAGE:  en-GB
#+TEXT: 

-- 
Mike


___
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] Changing variable defaults.

2009-02-04 Thread Mike Newman

On Wed, 4 Feb 2009 13:21:24 +0100
Carsten Dominik domi...@science.uva.nl wrote:

 Hi Mike,
 On Feb 3, 2009, at 12:20 AM, Mike Newman wrote:
 
 
  (setq org-tags-column -77)
 
  For the past few months, I have been using org-mode in conjunction  
  with
  Visual Line mode, a new feature of Emacs 23, and found they work
  together well.
 
 I am a bit surprised that you say this, as Org-mode does overrule
 the special beginning/end of line commands that visual line mode
 normally installs.  Have you not missed these?
 
 Have you been playing with org-special-ctrl-a/e, and
 org-special-ctrl-k, and what do you think should the
 behavior be in this case, if visual-line-mode is active?
 
 Thanks for pointing out that mode, it look interesting and seems
 to be a lot more usable with Org than longlines.el
 
 - Carsten
 

I had noticed the change in behaviour of C-a and C-e, but I hadn't
attempted to get round it (except by only using them to move to the
start and end of the paragraph).

In fact, with paragraph-oriented text, moving to the beginning or end
of the line is relatively unimportant, so I haven't really missed the
capability.

I'm not really clear on the details of their standard behaviour in
org-mode now, but I guess something that might make sense (to a user)
would be for them to behave in an org-specific way when they are
somewhere where this makes sense, but then to fall back to their
previous definition otherwise.

I'm unclear on exactly how fixed the behaviour of visual line mode is
- it hasn't yet appeared in an emacs release, so I guess it might
still change.

In the longer term, I imagine people will start wanting support for
variable width fonts (visual line mode at last makes these usable in
emacs)!!

Thanks again for all your efforts.

-- 
Mike


___
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] Changing variable defaults.

2009-02-02 Thread Mike Newman

 (setq org-tags-column -77)

For the past few months, I have been using org-mode in conjunction with
Visual Line mode, a new feature of Emacs 23, and found they work
together well. From the v23 NEWS file:

** Visual Line mode provides support for editing by visual lines.
It turns on word-wrapping in the current buffer, and rebinds C-a, C-e,
and C-k to commands that operate by visual lines instead of logical
lines.  This is a more reliable replacement for longlines-mode.
This can also be turned on using the menu bar, via
Options - Line Wrapping in this Buffer - Word Wrap

I think in the long-term many (most) org users will start enabling
this, and there will be requests for tweaks to make the two cooperate
a little better.

One customisation I would recommend for anyone using the two together
would be 

  (setq org-tags-column -75)

Trying to put the tags any further to the right will cause them to wrap
on to the next line.  Perhaps this is not too far from your suggestion
to make it the default in all cases?
-- 
Mike


___
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] footnote questions

2009-01-25 Thread Mike Newman
I suggest that each footnote is placed in a div with class footnote,
with all footnotes nested inside a div with class footnotes.

-- 
Mike


On Sun, 25 Jan 2009 08:46:02 +0100
Carsten Dominik domi...@science.uva.nl wrote:

 
 On Jan 24, 2009, at 6:38 AM, Samuel Wales wrote:
 
  Minor questions:
 
  Is there a way to have footnotes that have more than one paragraph?
  For me, they are not recognized as footnotes.
 
 How would I format a multi-paragraph footnote in HTML?
 
 Right now we have:
 
 (div id=footnotes
 h2 class=footnotesFootnotes: /h2
 div id=footnotes-text
 p class=footnote
 supa class=footnum name=fn.1 href=#fnr.11/a/sup
 Footnote text here
 /p
 /div
 /div
 
 
 I guess if someone had CSS to style footnote paragraphs specially,
 inserting /pp somewhere inside the footnote text would
 not do the right thing.
 
 Sebastian, do you have an idea here?
 
 - Carsten
 
 
 
 
  Also, is there a way to make footnote references work when they
  start in column 0?  Reformatting a paragraph sometimes puts them
  there for me.
 
  Latest org release with (setf org-footnote-section nil).
 
  Thanks.
 
  -- 
  For personal and corporate gain, myalgic encephalomyelitis
  denialists are knowingly causing massive suffering and
  25-years-early death by grossly corrupting science.
  http://www.meactionuk.org.uk/What_Is_ME_What_Is_CFS.htm
 
 
  ___
  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


Re: [Orgmode] Windows and emacs

2009-01-08 Thread Mike Newman
On Thu, 08 Jan 2009 22:41:36 +0100
Raimund Kohl-Füchsle m...@rk-f.me wrote:

 Hi guys,
 
 it may happen that I have to switch to Windows XP and since I have no
 idea how XP works (up to this point in time I only ran Linux
 machines) I thought to ask since I want to stick with org-mode: How
 do I get org-mode and emacs run best with XP?  As far as I know there
 are at least two ways to get emacs running; one is to simply download
 emacs, two is downloading cygwin; if it is cygwin that I have to go
 with then which emacs?  If I saw it right there are several
 choices ... ummm ... any hints on that?
 
 Thanx in advance
 
 ray
 
 
 ___
 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

What I use is the EmacsW32
(http://ourcomments.org/Emacs/EmacsW32.html).  This gives you recent
snapshot of Emacs 23 (I use the patched version).

I also recommend installing cygwin, and doing a little bit of work in
getting emacs to use it (not difficult, but I can't remember the
details).  If you know linux, you are sure to find it useful.  I don't
suggest using a cygwin build of emacs (I think the native build will be
easier to use).

One advantage of having cygwin installed is that you can then use make
to build you a new version of org.

Hope this is helpful.
-- 
Mike


___
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] A few new user questions, Custom agenda views, calendar in frame, and Hyperlinks on win32

2008-11-20 Thread Mike Newman
On Wed, 19 Nov 2008 22:06:51 -0500
Jonathan Arkell [EMAIL PROTECTED] wrote:

 Finally, I am having a problem with some external links, whenever I
 try to visit a file like \\AWindowsServer\path\to\file  I get the
 error message “eval: ShellExecute failed: The system cannot find the
 file specified. ^M”  Is it easy to fix this?  What is going on?

Does using // rather than \\ work better?

-- 
Mike


___
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] how to wrap headings

2008-10-22 Thread Mike Newman
On Wed, 22 Oct 2008 23:23:54 +0200
Rich E [EMAIL PROTECTED] wrote:

 Hi,
 
 I just have a simple question:  how can I wrap the headings so they
 don't go off the visual window?
 
 Thanks,
 Rich
 
 
 ___
 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
 
A simple approach that will work for all lines is
'toggle-truncate-lines'.

If you are using a recent development version of Emacs, you can try
'visual-line-mode', which will also affect all lines in the file.

-- 
Mike


___
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] File extensions

2008-07-28 Thread Mike Newman
I have successfully used Org mode for about 2 years, all ways using .txt
as a file extension (in part, so that my colleagues would not be
frightened from looking at what are essentially plain text files).

This has caused very few problems.  However, I note that in
org-iswitchb the list of buffers presented is based on the file
extension .org.  Would it make sense (or be possible) to list those
buffers that are in org-mode (regardless of file extension)?

-- 
Mike Newman


___
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] update org mode on aquamacs

2008-07-21 Thread Mike Newman
On Mon, 21 Jul 2008 13:14:24 -0500
charles snyder [EMAIL PROTECTED] wrote:

 Hi
 
 I am a relatively new emacs user, and have been using org mode on
 aquamacs (10.5 OSX). Even the 'latest' aquamacs has an old 4.x
 version of org mode. I downloaded the latest org mode zip as well as
 the install shell script, but can't figure out where the old org mode
 files are in aquamacs (after exploring the entire aquamacs package
 directory), and therefore can't install the latest org mode version.
 
 Anyone have 'unbelievably_basic-mode' instructions on how to
 accomplish this?
 
 TIA
 
 clsnyder

I know very little about Macs, but hope the following helps:

C-h f org-mode (gets you function help for org-mode)
then click on the highlighted org link to open org.el.

You file that this buffer is visiting e.g. by C-x C-b

-- 
Mike


___
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] Bug in html-export: unclosed div

2007-10-27 Thread Mike Newman
On Fri, 26 Oct 2007 23:44:21 +0200
Carsten Dominik [EMAIL PROTECTED] wrote:

 Hopefully fixed in 5.13h, please check again.
 
 - Carsten
 
Seems to work now.  Thanks.

-- 
Mike


___
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-mode version 5.13

2007-10-26 Thread Mike Newman
On Thu, 25 Oct 2007 16:12:36 +0500
Dmitri Minaev [EMAIL PROTECTED] wrote:


 Wouldn't classes make formatting more flexible? If I understand
 correctly, Mike Newman's proposal will require all formatting to be
 hardcoded into org.el? I'd rather keep it in a separate .css file, one
 for the whole site...
 
 
That is certainly not my intention.  I think keeping style information
in a separate file is a good idea.

-- 
Mike


___
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] Bug in html-export: unclosed div

2007-10-26 Thread Mike Newman
In Org-mode 5.13d, not all the div elements get closed.  See
the attached .org and .html.

-- 
Mike
Title: testdiv



testdiv

Table of Contents

1 H1

1.1 H1.1
1.2 H1.2


2 H2




1 H1



1.1 H1.1



1.2 H1.2




2 H2


 Author: 
mike

 Date: 2007/10/26 06:56:31 PM




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


[Orgmode] Non-existent file in agenda

2007-10-26 Thread Mike Newman
If a file in the agenda list is *temporarily* unavailable, I would like
to be able to ignore this one file and proceed with the other files.
At present, the options are Abort or Remove from the agenda list.

-- 
Mike


___
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-mode version 5.13

2007-10-22 Thread Mike Newman
On Sat, 20 Oct 2007 11:30:29 +0100
Bastien [EMAIL PROTECTED] wrote:

 Hello all,
 
 Carsten Dominik [EMAIL PROTECTED] writes:
 
  - The table of context is wrapped into a div with a class
table-of-contents.
 
 This should be id, not class, since there is only one instance of
 the table of contents - fixed in the proposed patch.

I think that class is the right thing here.  We are saying that this is
a table-of-contents rather than this is the table-of-contents.  I
believe at present there is no mechanism to give more than one table of
contents, but someone, sometime might want tables of contents for
individual sections of a document.

 
  - The outline structure is embedded in div elements with
classes outline-1, outline-2 etc.
 
 Classes are ok here.
 

This appears to be logical, but is in fact (I think) redundant.  We can
specify the style to applied at different levels without using
class attributes.  For example:

   div { background-color: lightgray}
   div  div { background-color: peachpuff}
   div  div  div { background-color: green}
   
shows how different styling can be applied to level 1, level 2 and
level 3 (and above).

I think this has advantages (e.g. inheritance of unspecified
characteristics from higher levels) and leaves the class attribute free
to represent styling that is independent of the structure.

-- 
Mike


___
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] Html export suggestion (use of div)

2007-10-15 Thread Mike Newman
Here is a more refined suggestion, with links to examples

Mike

  Div in HTML Export
  


Table of Contents
=
1 Proposal
2 Implementation
3 Motivation
3.1 Applying styles via CSS
3.2 Applying transformations via XSLT
4 Drawbacks
5 Additional suggestion
6 Options
7 Examples
8 Acknowledgements

1 Proposal
~~
I propose that on html export, sections of the document should be
wrapped in div /div markers, to reflect the outline structure
given by org mode.

2 Implementation

I think this should be quite simple to implement.  Prior to each
heading, open /div elements would be closed (if the heading level
was higher than the previous heading level), and a new div element
would be opened.

3 Motivation

There are at least two reasons why this might be useful:

3.1 Applying styles via CSS
===
This allows, for example:

  - Styles to be applied in a way that makes it clear how the sections
are nested, e.g. by indentation, drawing a border or setting a
background

  - Styles could be used to display content in a way that is not
possible without them.  Links to examples are given below.

I imagine that in time, a variety of style sheets for displaying the
resulting html could be shared, saving users the trouble of developing
their own.

3.2 Applying transformations via XSLT
=
Selecting  sections or subsections of a file should be much easier if
they correspond to a single XML element.

4 Drawbacks
~~~
- Increased file size (but only very slightly)
- Possibly increased time for browser to render page?  I am not aware
  of a problem

5 Additional suggestion
~~~
It would also be useful to wrap the Table of Contents  and the final
part of the HTML file (Author's name and date) in their own div.

6 Options
~
Attributes can be added to a div, most importantly class and
id.  Adding the class attribute (as suggested by Cezar) would allow
different sections of the file to be formatted in different ways.

As a first step, I would suggest adding the div without a class or
id.

It was suggested that adding div to exported HTML should be
controlled by an option.  I would see it as fairly harmless, even to
those who would not use the feature, so in my opinion the option would
be an unnecessary complication.

7 Examples
~~
I have added div elements as proposed here to an HTML file.  This
can be viewed, rendered with different style sheets at:
 - [http://www.newmanfamily.me.uk/orgmode/Example-defaultstyle.html]
 - [http://www.newmanfamily.me.uk/orgmode/Example-sectioned.html]
 - [http://www.newmanfamily.me.uk/orgmode/Example-floated.html]

It should be interesting to see how they behave as the width of the
browser window changes - particularly with the last example. (Only
tested in Firefox).

8 Acknowledgements
~~
I would like to thank Cezar and William Henney for their suggestions.
(And Carsten, of course).


___
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: Html export suggestion (use of div)

2007-10-08 Thread Mike Newman
On Sat, 06 Oct 2007 11:25:00 +0300
[EMAIL PROTECTED] wrote:

 I have not yet used this feature, but I am working with html/css all
 day, so here is my opinion:
 
 1. You shouldn't use more divs than you need to, and you don't need
 them.
 
Why (I'm sure there's a good reason)?

 2. You shouldn't use divs for presentation's sake. Why not make each
 subsection a different class or sumthin.
 
Why?

 3. I think the way it's handled right now is better than your example.
 
 Cheers,
 Cezar
 
 
 
 ___
 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
 


-- 
Mike


___
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 to PDF webpage

2007-08-16 Thread Mike Newman
On Thu, 16 Aug 2007 19:41:33 +0200
Bastien [EMAIL PROTECTED] wrote:

 Hi folks,
 
 i just set up a webpage that let you upload an Org file and receive a
 nice PDF document back.  It is based on Org 5.04 and org-export-latex
 0.22 (and pdflatex).
 
 I guess nobody needs this in this list, but maybe you can tell your
 non-LaTeX friends. A good occasion to learn LaTeX. Or Org. Or Emacs :)
 
   http://www.legito.net/org-to-pdf.py
 
 Enjoy,
 
Worked well for me, but for some reason came back with the name Bastien
Guerry under the title.

-- 
Mike


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Feature in org-move-item-down

2007-03-18 Thread Mike Newman
The manual (section 2.8) says

Indentation also determines the end of a list item.  It ends before the next 
line that is indented like the bullet/number, or less.

I think that a blank line has 0 indentation, therefore (by this logic)
it should end a list item.  Clearly a blank line cannot start a list
item, so it must end a list.

I think the question is whether list items can contain blank lines. 
This may be established practice, but it was not what I was expecting.

Thanks

Mike

On Sun, 18 Mar 2007 08:11:08 +0100
Carsten Dominik [EMAIL PROTECTED] wrote:

 
 On Mar 17, 2007, at 4:15, Mike Newman wrote:
 
  It appears org-move-item-down treats blank lines as part of the
  preceding list item (whereas I use them to separate a list from
  subsequent text).
 
  So given
 
  - a test
  - b test
  - c test
 
  test
 
  with point on line b, M-x org-move-item-down gives
  - a test
  - c test
 
  - b test
  test
 
 
 The problem with is this is following.  Suppose I made the item end 
 before the
 empty line, as you suggest.  Then consider the following case:
 
 - a test
 
 - b test
 
 - c test
 
 If I now move b up, I get
 
 - b test
 - a test
 
 
 - c test
 
 I don't think there is a good solution to this problem - if you
 know one, I would be interested.
 
 - Carsten
 


-- 
Mike


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Feature in org-move-item-down

2007-03-16 Thread Mike Newman
It appears org-move-item-down treats blank lines as part of the
preceding list item (whereas I use them to separate a list from
subsequent text).

So given

- a test
- b test
- c test

test

with point on line b, M-x org-move-item-down gives
- a test
- c test

- b test
test

Thanks
-- 
Mike


___
Emacs-orgmode mailing list
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode