[Orgmode] org-indent-mode and visual-line-mode

2009-11-18 Thread Matt Price
Are these two incompatible, or is there something wrong with my setup?
Using org-mode 6.33c and a recent emacs snapshot (20090909), turning
org-indent-mode on stops visual-line-mode from indenting properly.  As
soon as I turn org's intentation off, vusial-line-mode starts working
normally again.  I would *love* to have both of htese working properly
-- is there anything I can do?  

Thanks very much,

Matt

-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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-indent-mode and visual-line-mode

2009-11-19 Thread Matt Price
On Thu, 2009-11-19 at 14:17 +0100, Carsten Dominik wrote:
 On Nov 18, 2009, at 9:07 PM, Matt Price wrote:
 
  Are these two incompatible, or is there something wrong with my setup?
  Using org-mode 6.33c and a recent emacs snapshot (20090909), turning
  org-indent-mode on stops visual-line-mode from indenting properly.  As
  soon as I turn org's intentation off, vusial-line-mode starts working
  normally again.  I would *love* to have both of htese working properly
  -- is there anything I can do?   
 
 I am not sure what you mean by visual-mode indents properly.  I am  
 not using visual-line mode.  So you you describe better what visual  
 line mode does and what features of it exactly disappear when you turn  
 on org-mode?
 
sorry carsten.  also I think I should have said wraps rather than
indents.
Visual-line-mode is a replacement for longlines-mode; it soft-wraps text
at the screen boundary, and does a much better job than longlines-mode
did.  When I'm writing anything that's not code I rely on it entirely.
But I also *love* the new indent mode in org -- it's much easier for me
to see hierarchical relationships than it was in earlier versions
(thanks _very_ much for the new feature).  So I'd like to use them
together; but when org-indent-mode is turned on, visual-line-mode no
longer soft-wraps at all.  you can try it out with M-x visual-line-mode,
and the manual description is here:
http://www.gnu.org/software/emacs/manual/html_node/emacs/Visual-Line-Mode.html 

Is that what you needed?  I'm not sure where the code for
visual-line-mode lives -- there isn't a visual-line.el anywhere that i
can find on my system.  Thanks much,

matt



 - Carsten
 
 
  Thanks very much,
 
  Matt
 
  -- 
  Matt Price
  matt.pr...@utoronto.ca
  ___
  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
 
 - Carsten
 
 
 


-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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] PROJ category from the org-mode front page?

2009-11-19 Thread Matt Price
Hi everyone,

I've just been looking at this picture from the org-mode home page:
http://orgmode.org/img/tasks.png 
I like the line :
* PROJ Organize the interstellar dust meeting 

Is PROJ a custom TODO 'type' keyword?  I have to say I quite like
it... but would it be possible to have combine types with more complex
(non-DONE) states, so that e.g. the heading displays:
* PROJ INPROGRESS Organize the interstellar dust meeting
or
* PROJ DONE Organize the interstellar dust meeting
?  
Just wondering.  Thanks,
Matt

-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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: org-indent-mode and visual-line-mode

2009-11-20 Thread Matt Price
On Fri, 2009-11-20 at 08:28 +0100, Carsten Dominik wrote:

 Hi Matt,
 
 personally, I never use visual-line-mode, mainly because cursor motion  
 becomes unpredictable to me (down doe not get me into the next line,  
 so for example keyboard macros are much harder to make to consistently).
 
 That said, I would expect that what you are describing should work,  
 and my memory is also that it used to work - after all, I implemented  
 not only line-prefix, but also wrap-prefix in org-indent-mode.  I am  
 quite sure that this used to work.
 
 I am not sure how to proceed.  Someone would have to bisect Emacs to  
 find which commit changed this behavior.   Or maybe at lease someone  
 can try with a vanilla 23.1 Emacs? If it works there, we might have  
 enough to file a bug report.
 

I just tried it on the ubuntu karmic emacs23 packages.  I get the same
behaviour i was seeing before.  In case my description is misleading, i
just made a couple of screenshots and posted them here: 
http://www.derailleur.org/screenshots/ 
one shows some quick text when indent-mode is enabled, the other shows
it with indent-mode disabled. 

anyway if you have any ideas how i might help that'd be great --
bisecting the code is probably beyond what i can easily do but i could
try to dig around a bit somehow.  

thanks - i appreciate how much effort you put into this carsten! - 


matt


-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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: org-indent-mode and visual-line-mode

2009-11-20 Thread Matt Price
On Fri, 2009-11-20 at 14:54 +0100, Carsten Dominik wrote:
 +  (aset org-indent-strings 0 nil)
 +  (aset org-indent-stars 0 nil)
   
That did it!  I was in the middle of writing an apologetic email
explaining that it hadn't worked in either snapshot or 23.1, but then
remembered I had to run 'make' to get the changes to apply.  glad I
caught myself in time!

This is so great for me, Carsten, I'm so grateful!  thanks so much,

matt

-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
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] [OT] Emacs for email?

2009-12-02 Thread Matt Price
On Tue, 2009-12-01 at 20:57 -0300, Darlan Cavalcante Moreira wrote:
 I use wanderlust for email (including this list) and it works really well with
 imap. I was somewhat hard to configure, but now that everything is working I
 don't feel like going back to my previous e-mail client (evolution).
 

darlan, would you be willing to share your config for wl?  i can't seem
to make any headway with it at all.  i'm just looking for a light
emacs-based mail reader/imap client on my aging laptop, which is mostly
an emacs machine now.  GNUS can see my mail, but it's just so heavy for
what i'm looking for, and also doesn't seem to want to honor the imap
conventions in terms of hiding deleted messages, which is sort of
essential for me as things stand.

My main machine at home runs evolution, and for now, i'm not ready to to
move away entirely -- I hate evolution, but i'm used to it, and don't
want to break my work habits till i've figured something else out.  

Anyway thanks much in advance!

matt


 - Darlan Cavalcante
   
 At Tue, 1 Dec 2009 15:34:24 -0600,
 Keith Lancaster klancaster1...@acm.org wrote:
  
  I apologize for the WAY off topic question, but since you folk are emacs 
  expertsdo you use emacs for email, and if so, what do you use? Org-mode 
  caused me to switch to emacs after programming for 30 years in other 
  editors, and so like many emacs converts, I'm not wanting to exit the app 
  :-).
  
  TIA,
  Keith Lancaster
  klancaster1...@acm.org
  
  
  
  
  ___
  Emacs-orgmode mailing list
  Please use `Reply All' to send replies to the list.
  Emacs-orgmode@gnu.org
  http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 
 
 ___
 Emacs-orgmode mailing list
 Please use `Reply All' to send replies to the list.
 Emacs-orgmode@gnu.org
 http://lists.gnu.org/mailman/listinfo/emacs-orgmode


-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] [OT] Emacs for email?

2009-12-03 Thread Matt Price
On Wed, 2009-12-02 at 22:04 +0100, David Maus wrote:
 At Wed, 02 Dec 2009 08:43:51 -0500,
 Matt Price wrote:
  
  [1  multipart/signed (7bit)]
  [1.1  text/plain; UTF-8 (quoted-printable)]
  On Tue, 2009-12-01 at 20:57 -0300, Darlan Cavalcante Moreira wrote:
   I use wanderlust for email (including this list) and it works really well 
   with
   imap. I was somewhat hard to configure, but now that everything is 
   working I
   don't feel like going back to my previous e-mail client (evolution).
   
  
  darlan, would you be willing to share your config for wl?  i can't seem
  to make any headway with it at all.  i'm just looking for a light
  emacs-based mail reader/imap client on my aging laptop, which is mostly
  an emacs machine now.  GNUS can see my mail, but it's just so heavy for
  what i'm looking for, and also doesn't seem to want to honor the imap
  conventions in terms of hiding deleted messages, which is sort of
  essential for me as things stand.
 
 Just pushed my Wanderlust configuration to github:
 
 http://github.com/dmj/dotfiles/blob/master/.wl
 
 A simple configuration: I use a local imap server to access my mails
 and gmail to send. What helped me to get in touch with Wanderlust
 after an unsuccessful attempt was this blog posting:
 
 http://emacs-fu.blogspot.com/2009/06/e-mail-with-wanderlust.html
 
  - describing a setup with a local maildir storage.
 

thanks david, and also to eric, who sent me his.  With both your help I
have wanderlust up and running, though still with some confusions (how
do I hide read or deleted messages?  why won't wl actually send any
mail?  etc.).  I'm sure i'll be able to clear those up soon, though.  

Anyway, thanks.

matt

 Regards,
 
   -- David
 


-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] interacting with word processors (opeonffice, word)

2010-02-02 Thread Matt Price
Hi,

I;m getting more and more used to using org for my own writing purposes,
and love it.  But I still find it pretty difficult to work with
word-processor users whoexpect to get a doument in .doc or .odt formats.
I've just found odt2org (http://mantiel.wikidot.com/os:odt2org) which
looks great for importing odt files into org; but my main concern right
now is getting things from org-mode out into odt or doc.  May i ask what
other people tend to do in this situation?  I I guess I could export to
html, then import in Openoffice, then edit  save as odf, but this seems
a little cumbersome.  If someone has a better solution I'd love to hear
it.  

Thanks much,

Matt

-- 
Matt Price
matt.pr...@utoronto.ca


signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: interacting with word processors (opeonffice, word)

2010-02-04 Thread Matt Price
On Tue, 2010-02-02 at 22:00 +, Shelagh Manton wrote:
 On Tue, 02 Feb 2010 21:40:49 +0200, Rainer M Krug wrote:
 
  On Tue, Feb 2, 2010 at 8:34 PM, Matt Price matt.pr...@utoronto.ca
  wrote:
  
  Hi,
 
  I;m getting more and more used to using org for my own writing
  purposes, and love it.  But I still find it pretty difficult to work
  with word-processor users whoexpect to get a doument in .doc or .odt
  formats. I've just found odt2org
  (http://mantiel.wikidot.com/os:odt2org) which looks great for importing
  odt files into org; but my main concern right now is getting things
  from org-mode out into odt or doc.  May i ask what other people tend to
  do in this situation?  I I guess I could export to html, then import in
  Openoffice, then edit  save as odf, but this seems a little
  cumbersome.  If someone has a better solution I'd love to hear it.
 
 
  Oh - and ther is also:
  
  mk4ht oolatex
  
  which converts LaTeX to odt.
  
  Cheers,
  
  Rainer
  
 Wouldn't the org-docbook package be suitable as there are docbook to odt 
 transformers (which makes sense as odt is a type of xml like docbook) 
 
 http://open.comsultia.com/docbook2odf/ might be helpful.
 
 Shelagh
  

thanks to everyone for their advice -- I'm going to try these all out 
if I have any constructive commetns I'll report them back.  It's a
little duanting for me, as a non-latex user, to try to figure out how to
get documentsl ooking about how I want them to -- the default output of
the latex export has way too much whitespace for my tastes -- but I
guess I hsould be able to figure those issues out somehow.  thanks
again!
matt



signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: interacting with word processors (opeonffice, word)

2010-02-05 Thread Matt Price
On Fri, 2010-02-05 at 01:44 +, Shelagh Manton wrote:
 On Thu, 04 Feb 2010 15:10:51 +, Eric S Fraga wrote:
 
  At Thu, 04 Feb 2010 09:43:31 -0500,
  Matt Price wrote:
  
  [...]
  
  get documentsl ooking about how I want them to -- the default output of
  the latex export has way too much whitespace for my tastes -- but I
  guess I hsould be able to figure those issues out somehow.  thanks
  again!
  matt
  
  
  If it's the margins giving you too much white space (a common complaint
  from people moving to latex from other types of word or document
  procssors), you could try something along these lines:
  
  --8---cut here---start-8---
  #+latex_header: \usepackage[letterpaper]{geometry} #+latex-header:
  \geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm}
  --8---cut here---end---8---
  
  untested.  change letterpaper to your actual paper size, of course.
  
  HTH,
  eric
  
 Also the fullpage.sty package will do this for you too. Of course you 
 need to name the size of your paper in the documentclass.
 
 \usepackage[options](fullpage)

thanks for this.  i'll give it a go -- and can i set this permanently
somewhere in my org conf file -- is it something like:

(setq latex_header (\usepackage[letterpaper]{geometry},
\geometry{verbose,tmargin=3cm,bmargin=3cm,lmargin=3cm,rmargin=3cm} ))
anyway thanks so much for all your help thus far!

matt



signature.asc
Description: This is a digitally signed message part
___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[O] odt export bug, I think.

2011-08-16 Thread Matt Price
Hi,

I think I've found an odt export bug.  Certain complex URL's stored within
links can end up being rendered with forbidden characters, e.g. '' and
''.  so, e.g., a link to this URL:

http://www.jstor.org.myaccess.library.utoronto.ca/sici?origin=sfx%253Asfxsici=1363-3554%25281995%252939%253C182%253E1.0.CO%253B2-L;

was rendered in content.xml like this:
xlink:href=
http://www.jstor.org/sici?origin=sfx:sfxamp;sici=1363-3554(1995)39182
1.0.CO;2-Lamp;

resulting in a syntax error when libreoffice tries to load it.  I've
attached a minimal test file that reproduces the bug.

This is happening under a recent git snapshot of org-mode, using an emacs
snapshot from 2011-04.  Not sure if there are other xml-related packages
whose versions I should be tracking.

Thanks as always, and let me know what I can do to help with this.

Matt


test.odt
Description: application/vnd.oasis.opendocument.text


test.org
Description: Binary data


[O] formulas in spreadsheet to increase date

2011-08-16 Thread Matt Price
Hi,

It's htat time of year again and I'm putting together course syllabi.  I
would really love to be able to dynamically calculate dates in a
spreadsheet, e.g.:

|Topic 1|Date1|Description1|
|Topic2|Above Date + 7| Description2|
|Topic3|Above Date + 7| Description3|

Is there a way for me to do that?  Even better would be to be able to do the
same thing in headlines, e.g.:
** 0. 2011-09-13 Tue[[file:./syllabus/what-is-history-for][What is History
For?]]
** 1.  Last Date Plus 7
[[file:Syllabus/history-and-the-public-sphere][History and the Public
Sphere]]

but there I'm in deeper water, I think.

Thanks as always,
matt


Re: [O] formulas in spreadsheet to increase date

2011-08-17 Thread Matt Price
On Wed, Aug 17, 2011 at 3:35 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Matt Price mopto...@gmail.com wrote:

  Hi,
 
  It's htat time of year again and I'm putting together course syllabi.  I
 would really love to be able
  to dynamically calculate dates in a spreadsheet, e.g.:
 
  |Topic 1|Date1|Description1|
  |Topic2|Above Date + 7| Description2|
  |Topic3|Above Date + 7| Description3|
 
  Is there a way for me to do that?

 As usual in situations like this, you have to start things off with
 a field formula for the first date. The column formula then can be
 used to calculate all the *other* rows (field formulas override column
 formulas - see section 3.5.6, Column formulas, in the org manual
 or evaluate (info (org) Column formulas) to get there directly).

 | Topic 1 | 2011-08-17 Wed | Description1 |
 | Topic2  | 2011-08-24 Wed | Description2 |
 | Topic3  | 2011-08-31 Wed | Description3 |
 #+TBLFM: @1$2=2011-08-17 :: $2 = @-1$2 + 7

 The column formula says: get the field from the row above and the same
 column (@-1$2), interpret it as a date (..) and add 7 (days) to it.
 The column formula can be simplified to $2 = @-1 + 7.

 If you want to increment by e.g. 10 mins, the increment has to be
 calculated as a fraction of a day:

 | Topic 1 | 2011-09-18 Sun 10:20 | Description1 |
 | Topic2  | 2011-09-18 Sun 10:30 | Description2 |
 | Topic3  | 2011-09-18 Sun 10:40 | Description3 |
 #+TBLFM: @1$2=2011-09-18 10:20 :: $2 = @-1 + 10*(1/24*60))


 ah, supercool.  thank you!!

matt


Re: [O] odt export bug, I think.

2011-08-17 Thread Matt Price
Hi Jambunathan,

This is a little hard to do in gmail, which auto-encodes everything!
unfortunately wanderlust has been broken for me for some time...

I've attached a text file that I think answers all you questions
appropriately.  Unfortunately my original file file is a year old, so I'm
not entirely sure of the answer to question 3 (see below).

On Wed, Aug 17, 2011 at 7:47 PM, Jambunathan K kjambunat...@gmail.comwrote:


 Hello Matt

  Hi,
 
  I think I've found an odt export bug.  Certain complex URL's stored
  within links can end up being rendered with forbidden characters,
  e.g. '' and ''.  so, e.g., a link to this URL:
 
  http://www.jstor.org.myaccess.library.utoronto.ca/sici?origin=
  sfx%253Asfxsici=1363-3554%25281995%252939%253C182%253E1.0.CO%253B2-L
  
 
  was rendered in content.xml like this:
  xlink:href=http://www.jstor.org/sici?origin=sfx:sfxamp;sici=
  1363-3554(1995)391821.0.CO;2-Lamp;


 I have some understanding of what the issue is. I would like to
 know/confirm a few things before proceeding ahead:

 1. How does the original URL look like?

in my browser window, this is the way the link looks (pasted directly):
http://www.jstor.org.myaccess.library.utoronto.ca/sici?origin=sfx%25g3Asfxsici=1363-3554%281995%2939%3C182%3E1.0.CO%3B2-L;

in the browser location bar, though, you can see the angle brackets (so, the
final segment of the url reads: 1363-3554(1995)391821.0.CO;2-L ).   For
reasons I don't understand neither parentheses nor angle brackets can be
pasted into emacs or any other editor (this on Ubuntu Maverick, running
Gnome 2.something).

2. Where does the URL come from? Is it generated by an application or is
   it hand copied by you from your browser.

I'm *pretty* sure I got it using org-capture or (possibly!) org-remember. In
those days I used org-protocol to capture links; I don't really do that
anymore, though not for any particular reason.

 3. How do you enter the URL in to the org file. Specifically do you

   - Simply type it. ie type the open brackets, paste the link, paste
 the description, close  the brackets etc.

  Or

   - You use C-c l to store the link in Org file.

 I am fairly certain I used org-protocol to capture the links. but note that
the error seems to persist even if I simply cut and paste directly from my
browser window.


  Note that question 3 is very crucial because. This is because for the
  URL that you have provided what you see with C-c l on the link is
  different from what is actually stored in the Org file. (You can see
  how actually Org stores the link by backspacing from beyond the link
  or by toggling descriptive/literal links in the menu bar)

 Please respond to Question 1 keeping behaviour in 3 mind. I am
 specifically interested in seeing whether the app/database (if there is
 one) actually provides a hexified link or not. I also see the
 possibility that one could have handcrafted the URL in an one-off sense
 by concatenating key/val pairs and forming the query string oneself. In
 this case (a novice) user may not have hexified the URL to begin with.

 ps: If my understanding is correct you are also having similar problems
 with the html export (M-x org-export-as-html) as well. Either html file
 is malformed or the link in the html export file simply doesn't
 work.


this is precisely correct.


 (TIP: odt exporter is derived from the html exporter. So it is
 always a good idea to check the status of html export whenever one runs
 in to issues with odt exporter)


thanks for this.


 I anticipate that fix for this issue might need some discussions with
 Bastien, David Maus and may be others.

 If the issue originates in the manner in which the initial URL was enteredi
nto org/emacs, then this might not be worth too much of everyone's time. I
think , in all likelihood, I used an outmoded manner of exchange between org
and firefox (using org 6.x!), which even I don't use anymore.  And it turns
out htere is a simpler, permanent URL for the same resource so even that
particular issue no longer matters much for me. If you think it's a
significant issue, though, I will certainly do what I can to track it down.


thanks again, so much,
Matt


testingurls.org
Description: Binary data


Re: [O] org-odt numbering (Applying custom templates)

2011-08-23 Thread Matt Price
sort of hijacking this thread with a quick note:

In order to remove numbering from the headings produced by org-odt,
simply export a file, go to Tools - Outline Numbering in
libreoffice/openoffice, and turn numbering off for levels 1-10
(probalby you only need about 4 levels anyway).  Then save the
resulting file somewhere safe, customize the variable
org-export-odt-styles-file to the path to that file, and you're done.

I only write this because I had a little trouble figuring out how
outline numbering works in openoffice. It would be pretty cool if the
org option num: had an effect here, but I think that would require
some work to implement (you'd have to have org override settings in
styles.xml, presumably introducing the possibility of various errors).



Re: [O] Not merging org-lparse, org-xhtml org-odt to the core

2011-08-24 Thread Matt Price
On Wed, Aug 24, 2011 at 9:00 AM, Christian Moe m...@christianmoe.com wrote:
 Hi all,

 I probably shouldn't butt into this, and I understand the technical issues
 too poorly to offer suggestions on merging. But as a grateful user, and and
 a semi-active participant on this list, I'd like to voice three concerns.

 1. Org-mode maintained by someone able and happy to do it.

 We are fortunate that Bastien stepped up to take over from Carsten as
 maintainer. Serving the Org-mode community as maintainer on a voluntary
 basis is a major personal commitment, and requires community support,
 including emotional backing and /helpful/ feedback. Jambunathan, please keep
 criticism of how Bastien has handled your work constructive and to the
 point.

 2. Jambunathan's excellent org-odt maintained as an integral part of
 Org-mode.

 Org-odt opens up Org-mode as an all-round authoring environment for users
 like me who are expected to deliver their work in wp formats. Bastien, and
 other core developers who may be involved, please go an extra mile if
 necessary to make sure it will end up actively maintained as core Org.

 3. The friendly atmosphere of this mailing list preserved.

 I think Bastien's replies around noon today are exemplary in this regard.

 Yours,
 Christian




just +1ing this -- I think when people work really hard on these
voluntary contributions it's not at all unusual for them to feel
frustrated when the process doesn't move as smoothly as it could.  But
I truly believe both Bastien and Jambunathan are doing the very best
they can and making fantastic contributions to the tool we all love.
And I am very thankful to people like Christian for making it a
priority to keep this list a friendly and enormously helpful resource
for developers and users both.

Matt



[O] HTML5 presentations

2011-08-24 Thread Matt Price
On Wed, Aug 24, 2011 at 8:14 AM, zwz zhangwe...@gmail.com wrote:
 Those days I came across two tools which I thought interesting and
 helpful if could be combined with org-export in some way.

 1. Deck.js: a js lib for making modern html presentation. See
 http://imakewebthings.github.com/deck.js/#intro for more info.

I would really like to see an exporter for this, in part because
Drupal integration for deck.js is underway.  We already have several
html5 presentation modes described on worg:
http://orgmode.org/worg/org-tutorials/non-beamer-presentations.html

but there are lots of html5 methods out there; here are some resources:
http://slides.html5rocks.com/#landing-slide
http://usepow.com/about/#
http://code.google.com/p/html5slides/
http://code.google.com/p/sfeir/source/browse/trunk/html5-slides/

so here are a couple of questions:

- is one of these frameworks better than/easier to work with than the
others? Can any of them be shared on slideshare or another archiving
service?
- can we standardize on a feature-rich exporter and start building a
useful interface to it (e.g., on e that allows users to specify
transitions  so forth in a property)?
- what would be the best starting point for a new exporter?
Jambunathan has the generic html exporter, surely that could be a
starting point? But the simple html5presentation exporter (see link
above) produces pretty good presentations already.

Anyway, I'm very glad to see these possibilities emerging in recent
months. I'm  looking forward to the end of powerpoint! If I never have
to use OOo Present again it'll be too soon...

Matt



[O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Matt Price
The attached test file shows  an org file with tables whose columns
include substantial amounts of text.  The default export to odt is
pretty ugly in this case, and even in html (where things work to some
extent) I would rather be able to control to some extent the way that
long fields wrap.  is there a recommended way to do set values like
table and column width for these two exports? I guess I am
particularly concerned with the odt export -- can I e.g. adjust a
default value somewhere in the styles.xml file? I doubt the problem
will be easily solved but if someone can point me in the right
direction I'd really appreciate it.

thanks,
Matt



Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-25 Thread Matt Price
this time I've actually attached the file...

On Thu, Aug 25, 2011 at 11:12 AM, Matt Price mopto...@gmail.com wrote:
 The attached test file shows  an org file with tables whose columns
 include substantial amounts of text.  The default export to odt is
 pretty ugly in this case, and even in html (where things work to some
 extent) I would rather be able to control to some extent the way that
 long fields wrap.  is there a recommended way to do set values like
 table and column width for these two exports? I guess I am
 particularly concerned with the odt export -- can I e.g. adjust a
 default value somewhere in the styles.xml file? I doubt the problem
 will be easily solved but if someone can point me in the right
 direction I'd really appreciate it.

 thanks,
 Matt



test.org
Description: Binary data


[O] collapsing some headings on html export?

2011-08-25 Thread Matt Price
does anyone have any advice on the following: I'm thinking I would
like to collapse certain segments of a document when exporting to
HTML, so e.g., if it looks like this:

* Outline: Semester 1
** 1.2011-09-15 Thu [[file:./syllabus/what-is-history-for][What is
History For?]]
Why we should write history, why everyone should do it, and why that
means we need the Web.  Hacker cultures, collaborative learning,
knowledge sharing, non-expert culture.
Background: 
[[http://www.journalofamericanhistory.org/issues/952/interchange/index.html][JAH
- The Promise of Digital History]]
*** Lab:  Introduction to Wordpress  the course site.  Blogging 
social media review. Preliminary listing of potential NGO partners.

I'd like to display just this by default:

Outline: Semester 1
1. Sept. 15, 2011 What is History For

but permit viewers to click on the headline or a '+' box to see the
details. Is it possible to do this somehow, e.g. by embedding some
javascript code somewhere or something?

Really just wondering...
Thanks,
Matt



Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-26 Thread Matt Price
On Thu, Aug 25, 2011 at 6:01 PM, Jambunathan K kjambunat...@gmail.com wrote:
 Matt Price mopto...@gmail.com writes:

 The attached test file shows  an org file with tables whose columns
 include substantial amounts of text.  The default export to odt is
 pretty ugly in this case, and even in html (where things work to some
 extent) I would rather be able to control to some extent the way that
 long fields wrap.  is there a recommended way to do set values like
 table and column width for these two exports? I guess I am
 particularly concerned with the odt export -- can I e.g. adjust a
 default value somewhere in the styles.xml file? I doubt the problem
 will be easily solved but if someone can point me in the right
 direction I'd really appreciate it.

 If you are creating big tables a better alternative would be to create
 ods/xls spreadsheets from Orgmode tables. So

 1. Export the table to csv format using M-x org-table-export RET etc etc
 2. C-x C-f test.csv
 3. C-u M-x org-lparse-convert RET

 4. When prompted for output format use TAB for completion to see the
   available formats. Pick ods or xls. (Hint: For a superior completion
   experience enable ido mode)

 5. You will see the ods file opening up automagically under writer. (If
   you have not used C-u in step 4, only conversion will happen. The
   resulting file will not be opened)

that's great, thanks J.
Matt



Re: [O] org-odt/html table export: adjusting default behaviour?

2011-08-26 Thread Matt Price
On Thu, Aug 25, 2011 at 5:40 PM, Jambunathan K kjambunat...@gmail.com
wrote:
 Matt Price mopto...@gmail.com writes:

 The attached test file shows  an org file with tables whose columns
 include substantial amounts of text.  The default export to odt is
 pretty ugly in this case, and even in html (where things work to some
 extent) I would rather be able to control to some extent the way that
 long fields wrap.  is there a recommended way to do set values like
 table and column width for these two exports? I guess I am
 particularly concerned with the odt export -- can I e.g. adjust a
 default value somewhere in the styles.xml file? I doubt the problem
 will be easily solved but if someone can point me in the right
 direction I'd really appreciate it.

 The issue is not that fields don't wrap well but that the table is big
 for the width of the paper and columns are as a result getting
 congested.

yes, that's a better description.


 I have pushed a fix whereby tables now occupy bigger space [1].

 I also noticed that columns are unevenly spaced. Now I have updated the
 styles so that columns are equally spaced [2].

 Orgmode exporters can never be layout engines. They are also typically
 useful for personal (as opposed to professional) production. In some
 sense they are good for handouts, pamphlets and drafts etc. So some
 amount of hand fixing and finer adjustments would always be required.
That makes sense, of course. My issue in this case is that I update this
particular file quite frequently  store it online in a repository. It would
be nice if I could code the table formatting into the org file so that I
don't have to hand-fix the formatting on each iteration.  But on the other
hand, maybe a table isn't really the right tool in such a case -- as you
suggest, a spreadsheet (or perhaps a structured outline, which org excels
at) might be better.


 You choose a smaller font for text in the table with:

 F11-Paragraph Styles-OrgTableContents-Choose a smaller (say 10 pt)
   font.
that's helpful, and I can presumably save this change to my styles.xml file
for future use.

 This will affect the text in all the tables.

 For the sake of documentation,

 Vertical and horizontal grid lines in the exported table correspond to
 colgroups (specified in table cookie lines) and by horizontal rulers in
 the org table [3]. You can use these grid lines in the Org file and
 automatically the exporter will create the grid lines for you.

 If you need really prettier tables you can rely on Table-Autoformat.

 Footnotes:
 [1] So there is now a reverse problem of tables with less number of
 columns and not having copious text looking too big. But big is better
 even if it is ugly.

 The workaround is to rely on Table Properties-Table-Width

 [2] Pre-processor in org-exp.el groks l, r, c cookies but ignores the
 colwidth directives. With some changes these colwidth directives could
 be used for controlling the relative width of columns on a per-table
 basis. This has to wait. If there is sufficient demand I can consider
 adding this support.

 The workaround is to rely on Table Properties-Columns-Column Width

 [3] The exporter wouldn't still create vertical lines on the extreme
 ends. I believe the default style of tables is so selected based on some
 standard styling manual.

In my view the problem here is that Openoffie is difficult to work with for
some of these formatting tasks -- so really this is an issue that's hard for
you to fix.  But for instance, I have had a lot of difficulty trying to
change the colour of the timestamps -- in fact for now I've given up! But I
think the issue might just be that LibreOffice/Openoffice doesn't redraw the
document properly after certain style changes, so I can't actually tell
whether my style changes (to OrgTimestamp and ORgTimestampWrapper character
styles in the style manager, F11) have been effective.

sorry that was a digression.  Thanks so much for your help on this issue.
matt


Re: [O] collapsing some headings on html export?

2011-08-26 Thread Matt Price
On Fri, Aug 26, 2011 at 12:04 PM, Daniel Clemente n142...@gmail.com wrote:

 El Fri, 26 Aug 2011 09:41:38 -0400 Matt Price va escriure:
 
  On Fri, Aug 26, 2011 at 4:58 AM, Daniel Clemente n142...@gmail.com
 wrote:
I did it with this code:
   http://www.danielclemente.com/pagina/esquemadorg.js
   http://www.danielclemente.com/pagina/esquemadorg.css
  
   Demo: http://www.danielclemente.com/hacer/emacs.html
 
  ah, that's pretty cool,daniel.  any suggestions for how I might
  implement this selectively, only for certain headings or heading
  levels?  My javascript is I think even worse than my elisp...

 You should start by adding jQuery to your page. Then take this code
 fragment:

// handle the click event for each header
for(var i=2;i=7;++i) {
$(h+i).each(
function(){
$(this).css({cursor: pointer});
$(this).bind('click', function(){
 toggleForOrg_whenclicked( $(this).parent().children(div).eq(0) ); });
});
}

 It searches all h2, h3, h4, h5, h6, h7 elements. You can remove the loop
 and use another jQuery selector which finds the headers you want. They are
 like CSS selectors. For instance this should work: $(h2.myclass) or $(h2,
 h4)

 For that code to work, you should copy at least these functions from
 esquemadorg.js: toggleForOrg_whenclicked, hideForOrg_whenclicked,
 showForOrg_whenclicked. Then add some CSS and custom behaviours.


 fantastic, daniel.  thanks so much for this.
matt


[O] exporting customized timestamps

2011-08-29 Thread Matt Price
Hi everyone,

I'm trying to understand timestamps a bit better.  I'm exporting my
syllabus to html, using org2blog for my wordpress course site. The
syllabus includes a timestamp at the beginning of each week of the
description.  org-time-stamp-custom-formats is set to:

(%m/%d/%Y . %m/%d/%y %a %H:%M)

which is sort of the American standard (sidenote: how do I toggle
between these custom values? I only seem to be able to toggle between
overlaid and not overlaid).

In Emacs, when I look at my org file, thetimestamp displays just as I
want it to.  But on export to HTML, the timestamp returns to the ISO
format (2011-10-06 Thu).  Is this an inevitable behaviour?  if not,
how do I get around it?  I can more or less live with this output, but
it's a bit awkward for my students to read.

Thanks very much!
matt



Re: [O] [odt/xhtml] Export lists as tables (list-tables)

2011-09-01 Thread Matt Price
On Thu, Sep 1, 2011 at 7:12 PM, suvayu ali fatkasuvayu+li...@gmail.com wrote:
 Hi Jambunathan,

 On Thu, Sep 1, 2011 at 9:31 PM, Jambunathan K kjambunat...@gmail.com wrote:
 I am pleased to announce support for list-tables in the odt/xhtml
 exporters. See below for some introductary note. Also refer to the
 attached org/odt/html files.

 Thanks for your past and future inputs.
 Jambunathan K.


 Absolutely blown away by the features you keep on adding to org and
 org-odt! I can confidently say everyone on the list will agree your
 contributions have been invaluable. :)

 On a more serious note, I'll try to find time this weekend to test things out.

 --
 Suvayu

 Open source is the future. It sets us free.


this looks awesome. not sure when I can test drive it properly but it
really makes a lot of sense for people like me, who sometimes use
tables merely as a formatting convention and not e.g. as a spreadsheet
or similar.  thanks once gain J!
m



Re: [O] [odt/xhtml] Export lists as tables (list-tables)

2011-09-02 Thread Matt Price
hi Nicolas

On Fri, Sep 2, 2011 at 1:23 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 Hence, I would suggest to use a line like:

                         #+attr_odt: list-table

 just above the list instead of the current choice of syntax.

 Now, as this file is meant to reach Org core, I really wish we can come
 up with a more general solution that will benefit to every other
 official export backend. Indeed, while developing one specific exporter
 is very useful, I personally think that, on the other hand, we must aim
 at providing users a consistent experience with any of them[2].

I think J's code handles both  xhtml   odt exports; remember his
xhtml was originally developed as a possible basis for a new 'generic'
exporter. Given the goal of a general solution, why not just:

#+attr: list-table

with all the exporters aiming to support this feature if it ends up
being welcomed by the community as a whole.

 [2] I will probably submit code soon that should help greatly in that
 mission.

that sounds great, I really look forward to it and am glad to see so
many people working on the task of simplifying the creation and
management of the exporters!

Matt



[O] embed an iframe in html export (html5 presentation)?

2011-09-13 Thread Matt Price
Does anyone know whether I can embed an iframe pointing to another web
page (e.g. a google map) in an org-mode export (preferably a
presentation)?  If so, I'll use it in the future...

Thanks,

Matt



Re: [O] embed an iframe in html export (html5 presentation)?

2011-09-13 Thread Matt Price
ah, so sweet.  that's great, thanks Christian!

On Tue, Sep 13, 2011 at 2:17 PM, Christian Moe m...@christianmoe.com wrote:
 No problem:

 #+begin_html
 iframe src=http://www.foo.org/bar.html;/iframe
 #+end_html

 For Google maps, use the code they provide (click the link button).

 hth,
 Christian

 On 9/13/11 3:32 PM, Matt Price wrote:

 Does anyone know whether I can embed an iframe pointing to another web
 page (e.g. a google map) in an org-mode export (preferably a
 presentation)?  If so, I'll use it in the future...

 Thanks,

 Matt







[O] slides precess in html5presentation

2011-09-20 Thread Matt Price
Hi folks,

I think someone else mentioned this in an earlierthread but I can't
find the solution anywhere.  I am using this html5 presentation
exporter:
https://gist.github.com/509761

and it for the most part works really great, except that the slides
'precess' ovr time - -that is, the slides slowly slide ot the left,
until eventually (after about 20 slides) the left side of a slide will
become invisible.  Has anyone else encountered this, and if so, have
you found a solution? I tried using s5 but it appeared not to be
working well with my file; so if there's a solution that uses
html5presentation.el that'd be gret (or if someone has rigged up a
deck.js ocnverter, i'd love to try that , too).

thanks as always,
matt



Re: [O] slides precess in html5presentation

2011-09-21 Thread Matt Price
On Tue, Sep 20, 2011 at 7:17 PM, Derek Thomas derekctho...@gmail.com wrote:
 On Tue, Sep 20, 2011 at 11:46 AM, Matt Price mopto...@gmail.com wrote:
 and it for the most part works really great, except that the slides
 'precess' ovr time - -that is, the slides slowly slide ot the left,
 until eventually (after about 20 slides) the left side of a slide will
 become invisible.  Has anyone else encountered this, and if so, have
 you found a solution?

 I find that this happens when I use firefox (5.0).  It doesn't happen
 when I use chrome.

ah, thanks derek.  switching from firefox (7.0b to chrome fixes the
issue for me, too.  whew.  my students will be grateful.



[O] embed an iframe behind a presentation?

2011-10-04 Thread Matt Price
Hi everyone,

I don't think this is really an org question, but, well, here I am and
I hope someone can help.

I use org-html5presentation.el (this one, I'm pretty sure:
https://github.com/twada/org-html5presentation.el) to generate html5
presentations from org outlines; I do this for my lecture notes, and
the exported files look like this:

http://www.mercey.org/03-public-sphere.html

I thought it might be fun to embed a twitter feed in the slide
background, so students can ask questions or have conversations about
what we're doing while I talk. I had thought I'd just insert an iframe
containing a twitter widget into the background somewhere.
Unfortunately, I actually don't understand how these presentations are
really produced, or how I would insert code into the background.  Most
of the formatting seems to be done in css, and the dynamic movements
of the slides is triggered I guess somehow by javascript; but this is
all html5 black magic to me.  I'm not sure how I would, effectively,
change the 'template' for the presentation to one that includes the
appropriate iframe.

Like I say, I'm not entirely sure this is an org question, but I'd
still love some guidance if folks cna provide it.  Thanks as always,
Matt



Re: [O] org-odt: specifying fonts

2011-10-19 Thread Matt Price
On Tue, Oct 18, 2011 at 5:15 PM, Mehul Sanghvi mehul.sang...@gmail.comwrote:

 Christian,

  Thanks for the stopgap measure.  As for fonts, like styles, it
 would be easier, simpler and more elegant
 to be able to do that without having to edit styles.odt every time.
 This is not specific to org-odt.  It should be,
 at least I think so for now, to do this with any exporting backend.

 If you send me a styles.odt, and I do not like the fonts you are
 using, it becomes cumbersome to be editing the styles.odt
 for each font and making sure to change it in all possible places
 until I settle on a proper font I want to use.

 If I could instead specify the font in org file itself, it would be a
 matter of changing the header and re-generating the file.

 The ODT_STYLE is certainly a good enhancement.

 I think the problem here, Mehul, is that odt export works with styles, not
fonts.  So to do what you want, the exporter would need to be able to tweak
the styles manually(so, I guess, first run some kind of xml transform on the
stylesheet, then apply the stylesheet itself).  If there are hidden
inconsistencies in the original stylesheet, you may end up with
difficult-to-diagnose breakage. I'd definitely suggest just modifying hte
stylesheet and saving it somewhere safe.
m


[O] zotero plain, org-odt, and citations in general

2011-11-08 Thread Matt Price
Hi everyone,

I am about to start experimenting with Erik Hetzner's zotero-plain, which
allows the use of zotero as a bibliographic manager in emacs  especially
org-mode (https://bitbucket.org/egh/zotero-plain as well as a couple of
threads on this list, I think).  I'm wonderinghow other people have used
it, and in particular whether there's any way to preserve the zotero markup
across exports to odt especially. That is, I'd like to keep the original
citations embedded in the final odt, so that I can continue to use zotero
in an odt or doc file after it's been exported from org.

This would take me very , very close to a complete org-centric workflow
that still lets me produce documents for consumption by my MS-using
colleagues.  I really hope it's possible to do! If anyone has done it, I
would really love to hear about it.

Thanks,
Matt


Re: [O] zotero plain, org-odt, and citations in general

2011-11-09 Thread Matt Price
attached is a sample odt file with Zotero citations included. It's very
simple, actually, because I think the key to making something like this
work would be to offload as much work as possible to zotero itself -- Erik,
correct me if I'm wrong (quite likely).

Both Erik and Jambunathan have raised questions which I'm not al lthat
competent to answer, but doing my best (and sorry for the lack of quotation
markup, not sure how to paste-as-quote in gmail):


1. Zotero supports many citation stlyes. So Org/Zotero integration could
   choose one citation style that is widely agreeable for one-off
   colloboration needs.


If that's easier, then sure. Since the Openoffice plugin allows you to
reformat citations easily, then if the import result in active zotero
fields that zotero can work with, it shouldn't be hard for the user to
change the citation format easily.

2. I don't know if importing Zotero stylenames verbatim in to org-odt's
   style file would pollute it - thereby preventing org-odt from
   getting in to Emacs proper.


I think what really matters is getting the zotero id's into the ODT in a
way that allows Zotero to see them later on.  Then the user can reformat in
whatever manner she needs to.

  I am not competent to judge what the copyright and license terms of
  the stylenames used by zotero plugin are. I am seeing that zotero
  itself is AGPL so I believe it is Free as in Free Software.


I think so -- shouldn't be a license problem w/ emacs.

3. Even if zotero's ODT style cannot be used by the ODT exporter due
   (2), I can cook up Org's own stlyenames for various citation fields
   and allow the user to remap Org* stlyenames to say Zotero* stlynames.

 I see Org already has some(?) support for bibtex. Can anyone comment on
 bibtex vs zotero? They seem to serve same purpose - citation
 management. Can bibtex be used instead of zotero.


For me that wouldn't work, becaue bibtex isn't widely used by humanities
scholars and social scientists. Zotero is, right now, by far the best tool
for us.  Also bibtex has, or at least used to have, significant limitations
on styles that make (made?) it unsuitable for humanities scholars.

I wish I could provide an example org-mode file with zotero references in
it -- erik, I'm having trouble making contact with mozrepl from emacs.
given recent developments in Zotero, it would probably be better to have
zotero.el speak directly to the Zotero server instead of working through
firefox -- do you agree, Erik? But I imagine that is a significant
undertaking.

thanks everyone,
Matt


zotero-demo-file.odt
Description: application/vnd.oasis.opendocument.text


Re: [O] zotero plain, org-odt, and citations in general

2011-11-11 Thread Matt Price
On Wed, Nov 9, 2011 at 2:39 PM, Christian Moe m...@christianmoe.com wrote:

 Hi,

 Is zotero-plain working for others?

 I test drove zotero-plain back when it was just developed. Looked
 promising, but I had uneven success with the MozRepl communication,
 possibly something to do with being on an older and slower machine.

 Trying it again today (with the most recent zotero-plain, MozRepl and
 moz.el I could find), I press `C-c z i' to insert a citation and nothing
 happens. Well, the Org buffer hangs until I press C-g, and except that the
 *MozRepl* buffer says Process MozRepl deleted.

 Similar for me -- the Org buffer hangs, and MozRepl looks like it's just
been sitting there idly.

also on the most recent MozRepl, emacs 24, fairly recent org-mode, firefox
8, ubuntu 10.10.


Re: [O] zotero plain, org-odt, and citations in general

2011-11-11 Thread Matt Price
Responding to just a few of the excellent points raised by J 7 E

On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner e...@e6h.org wrote:

 At Thu, 10 Nov 2011 20:47:30 +0530,
 Jambunathan K wrote:
 
 
 I should note that while the org/zotero integration in zotero-plain
 “works for me”, I would welcome changes to make it more robust and
 feature-full. But I use org for notes and todo lists, not for document
 production.

I'm trying to switch to using org for most of my writing; among other
things, I now use it for posting to wordpress and (hopefully soon) drupal,
where most of my teaching work takes place. So I htink there's a case to
make for org as a person's main workspace.


  Instead of working with JS libraries, I think the right starting point
  would be to work with the underlying zotero.sqlite database itself. It
  is not difficult to get a key of the selected item in Zotero
  pane[3]. Once this is done the underlying zotero.sqlite database could
  be queried for the item properties[4].


Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service*
that runs on port 50001 when Zotero is running?  Aren't there some
higher-level tools for working through that interface -- e.g., erik, your
rst tool uses a python library, does it talk to Zotero that way?


 
  Fortunately there is already a GUI/Command line tool - Gnotero[5] -for
  accessing the sqlite database.

 This would certainly work. However, one problem would be that gnotero
 cannot generate formatted citations from a reference, that is, it
 cannot use CSL [2] style rules to generate arbitrary citation
 formats. This might be fine; some simple c

  As for exploiting the power of using zotero within libreoffice - which
  is to have the same citation presented in different citation styles -
  one need to look at how the reference marks are produced within
  OpenDocument XML.

 Not only that, but how the LibreOffice plugin communicates with
 Zotero, specifically the citeproc-js [1] part of Zotero, to generate
 in-text citations, bibliographies, etc.


so, couldn't one think of the problem as having three parts:
(1) get emacs to talk to the zotero server; and
(2) figure out how org/emacs should interact with citeproc
(3) translate the org zotero links into a syntax that LibreOffice
recognizes and can successfully manipulate

and am I further right that, as an interim measure, solving (1) and (3)
properly and throwing together a quick hack for (2)  -- in which org
supports exactly one, very simple citation style -- would make a workflow
possible in which a person could compose in Org, and translate to ODT for
the final processing of a document, and/or export to HTML using only the
one citaqtion style that is supported by the aforementioned hack?

thanks again for all the help, folks,
matt


Re: [O] zotero plain, org-odt, and citations in general

2011-11-11 Thread Matt Price
On Fri, Nov 11, 2011 at 12:51 PM, Erik Hetzner e...@e6h.org wrote:

 At Fri, 11 Nov 2011 10:37:03 -0500,
 Matt Price wrote:
 
  Similar for me -- the Org buffer hangs, and MozRepl looks like it's
  just been sitting there idly.
 
  also on the most recent MozRepl, emacs 24, fairly recent org-mode,
 firefox
  8, ubuntu 10.10.

 I was going to suggest this sounds like a problem with Emacs 24, but I
 installed Emacs 24  it works for me. I am using Firefox 7, but I
 doubt that is much of an issue.

 I assume that you have started MozRepl and selected an item to insert
 in Zotero?

 best, Erik


yes, I had done those two things (htough not hte first time round!).  If
MozRepl isn't started I get a diferent, quite helpful error message; in
this case there is just (as for Christian) a message Process MozRepl
deleted which shows up before I press C-g to end the hang.  I imagine htis
is a bug in MozRepl


Re: [O] zotero plain, org-odt, and citations in general

2011-11-11 Thread Matt Price
On Fri, Nov 11, 2011 at 11:12 AM, Erik Hetzner e...@e6h.org wrote:

 At Fri, 11 Nov 2011 10:51:22 -0500,
 Matt Price wrote:
 
  Responding to just a few of the excellent points raised by J 7 E
 
  On Thu, Nov 10, 2011 at 12:48 PM, Erik Hetzner e...@e6h.org wrote:
 
   At Thu, 10 Nov 2011 20:47:30 +0530,
   Jambunathan K wrote:
   
   
   I should note that while the org/zotero integration in zotero-plain
   “works for me”, I would welcome changes to make it more robust and
   feature-full. But I use org for notes and todo lists, not for document
   production.

 This is me you are quoting, for the record.

 yes sorry, bad formatting on my part!


  Wouldn't the rigt target be, not the sqlite db, but the Zoteor *service*
  that runs on port 50001 when Zotero is running?  Aren't there some
  higher-level tools for working through that interface -- e.g., erik, your
  rst tool uses a python library, does it talk to Zotero that way?

 the server that runs on port 50001 is undocumented, last I
 checked. And there are no tools to connect to it. Frank Bennett put
 together a hack of the jsbridge Firefox extension which works quite
 well. [1] But that is python only, as far as I can tell.


sorry to hear about the lack of documentation.  that's a bummer actually.


  […]
 
  so, couldn't one think of the problem as having three parts:
  (1) get emacs to talk to the zotero server; and
  (2) figure out how org/emacs should interact with citeproc
  (3) translate the org zotero links into a syntax that LibreOffice
  recognizes and can successfully manipulate

 I think that is a good summary of what needs to be done. (3) is what
 zot4rst does not bother to do.

 The task of weaving together the HTML output from citeproc and your
 export document can be tricky.

if tricky for you, then likely unmanageable for me.   but I wonder if
Zotero themselves would be interested in helping a little bit with some of
this work?  Seems sort of strange to build this great tool and then limit
its usefulness to two hulking word processors, when really the goal of
portable, reformattable citations applies just as much to text and html as
to word processing documents.

best,
matt


Re: [O] zotero plain, org-odt, and citations in general

2011-11-12 Thread Matt Price
On Sat, Nov 12, 2011 at 2:21 AM, Christian Moe m...@christianmoe.comwrote:

 On 11/11/11 10:13 PM, Jambunathan K wrote:

 I wonder whether the issue is related to we - Matt(?), Christian(?) and
 I - using Windows.

  not me either -- ubuntu for me.


Re: [O] zotero plain, org-odt, and citations in general

2011-11-14 Thread Matt Price
On Sun, Nov 13, 2011 at 5:47 PM, Christian Moe m...@christianmoe.comwrote:

 * Towards a solution for Zotero - Org - ODT


 I think I have a way to get Zotero references from Org links into ODT as
 working reference marks. Interested parties, please
 test if this works for you at all.

 In a busy patch right now but this looks AWESOME.  Hope to test it out in
a couple of days, sorry to keep you waiting b/c I'm very excited about
this, even if a full-fledged Zotero service interface would, of course, be
cooler...

Matt


Re: [O] zotero-cite (A Proposal)

2011-11-14 Thread Matt Price
just quickly saying thank you, this looks pretty neat, am hoping to try all
of htis code out in a couple of days.


Re: [O] New feature branch: org-xhtml-and-org-odt

2011-11-14 Thread Matt Price
On Mon, Nov 14, 2011 at 3:13 AM, Jambunathan K kjambunat...@gmail.comwrote:

 Bastien

 I have created a new feature branch named org-xhtml-and-org-odt.

 hmm, what are the pul instructions for this? sorry, my git-fu is pretty
basic: I tried
git pull origin/org-xhtml-and-org-odt
and
git pull org-xhtml-and-org-odt

but clearly those aren't the syntax I'm looking for...
thanks,
matt


[O] serious calendar integration bug

2011-04-28 Thread Matt Price
forgot to reply  to the list..

-- Forwarded message --
From: Matt Price mopto...@gmail.com
Date: Wed, Apr 27, 2011 at 6:11 PM
Subject: Re: [O] serious calendar integration bug
To: David Maus dm...@ictsoc.de




On Wed, Apr 27, 2011 at 3:11 PM, David Maus dm...@ictsoc.de wrote:

 At Wed, 27 Apr 2011 11:06:38 -0400,
 Matt Price wrote:
 
  [1  text/plain; ISO-8859-1 (7bit)]
 
  [2  text/html; ISO-8859-1 (quoted-printable)]
  Hi folks,
 
  Using a recent git version of org-mode (release_7.5.209.g1a687) with a
 fairly recent emacs-snapshot (20110408-1, a package from the debian
 emacs-snapshot ppa, but running under ubuntu maverick), I'm having a
  really terrible calendar bug -- not sure if it comes from org or from
 emacs, but reporting here in case anyone else has seen it.  Attempts to
 insert a timestamped schedule or deadline using C-c C-s or C-c C-d
  bring up an EMPTY buffer called Calendar, while REPLACING THE CONTENTS of
 the active buffer with the text of a calendar.  I had a near-catastrophic
 moment where I killed what I thought was a calendar buffer,
  but then ended up erasing my main reference file for all my org notes.
 Has anyone seen this behaviour?  And do you think it comes form org or
 calendar?

 I can't reproduce this with

 GNU Emacs 24.0.50.1 (i486-pc-linux-gnu, GTK+ Version 2.24.3) of
  2011-04-08 on cigue, modified by Debian

 Org-mode version 7.5 (release_7.5.211.gb0094)

 I also tried with release_7.5.209.g1a687 but no luck: I created a new
 Org buffer, entered a new headling and scheduling/deadlining with C-c
 C-s and C-c C-d worked as expected.


hmm.  There's definitely something funny going on, I presume with emacs
rather than org, and (again presumably) something to do with my configs or
installed packages. The function that's failing is org-eval-in-calendar:

 debug(error (wrong-type-argument window-live-p nil))
  select-window(nil)
  org-eval-in-calendar(nil t)

If we look at the defun:

(defun org-eval-in-calendar (form optional keepdate)
  Eval FORM in the calendar window and return to current window.
Also, store the cursor date in variable org-ans2.
  (let ((sf (selected-frame))
(sw (selected-window)))
(select-window (get-buffer-window *Calendar* t))
(eval form)
(when (and (not keepdate) (calendar-cursor-to-date))
  (let* ((date (calendar-cursor-to-date))
 (time (encode-time 0 0 0 (nth 1 date) (nth 0 date) (nth 2 date
(setq org-ans2 (format-time-string %Y-%m-%d time
(move-overlay org-date-ovl (1- (point)) (1+ (point)) (current-buffer))
(select-window sw)
(org-select-frame-set-input-focus sf)))

---
I think emacs is having trouble finding the buffer '*Calendar*' -- even
though it clearly exists and can be manually selected using C-x b.  I could
verify this by just eval-defun'ing this line:
(select-window (get-buffer-window *Calendar* t))

from the scratch buffer -- this produces the same backtrace.  However,
oddly, after experiencing the same issue about 6 times in a row, the problem
mysteriously disappeared just now, and the procedure is working fine.  I
have no idea what the issue is there -- I'll report when I find it again.
Maybe someone on the list can give me suggestions for debugging if it shows
up again?  Thanks,

Matt

Best,
  -- David

 --
 OpenPGP... 0x99ADB83B5A4478E6
 Jabber dmj...@jabber.org
 Email. dm...@ictsoc.de



Re: [O] serious calendar integration bug

2011-04-28 Thread Matt Price
On Thu, Apr 28, 2011 at 8:43 AM, Nick Dokos nicholas.do...@hp.com wrote:

 Matt Price mopto...@gmail.com wrote:


 One thing is to make sure that it is the first select-window which is
 failing:
 there is a second one in there as well. Toggling debug-on-error and getting
 a full backtrace (assuming you are loading .el files and not .elc files)
 would
 take care of that.

 If there were any concurrency, I'd suspect a race: you try to select a
 window
 that somebody else killed in the meantime. But I don't think there is
 anything
 like that going in emacs - but I don't know for sure.


I think I'm loading .el files, from the git repository.  And I think it must
be the first select-window failing, because  (get-buffer-window
*Calendar*) evaluates to nil, while (selected-window) evaluates to a
numbered window.  *scratch* also works properly, so there's so mething
very odd about the *Calendar* window.  There must be something strange
happening with the calendar functions -- that's part of the emacs core,
right?  Or should I be worrying about my other packages?

Again, many thanks,
Matt


 Nick



[O] [semi-OT] issue trackers?

2011-05-05 Thread Matt Price
Hi everyone,

I'm collaborating on a project where I'm starting to feel the need for a
shared issue tracker.  Anyone have any suggestions? I have my own server
(running ubuntu maverick, so pretty up-to-date), and can install pretty well
whatever I want there.  I'd love something that integrates with org-mode
somehow, but my collaborators are definitively NOT emacs users.  I just
started a project on google code, but that doesn't seem quite right -- for
one thing, we're not _really_ doing much coding, and for another ,some of
the issues should contain private notes -- e.g. phone numbers and emails of
people we need to ask for help or information.  It wasn't immediately
apparent to me that privacy fetures like that exist on google code.

Anyway, thanks!
Matt


[O] pinpoint presentation software?

2011-05-23 Thread Matt Price
Has anyone out there tried the pinpoint presentation software from gnome (
http://live.gnome.org/Pinpoint)?  I wonder if it would be a good export
target for org. I can't compile it right now because of dependency issues,
but I'd be very interested to hear of everyone else's experience.  Thanks!
Matt


[O] org-odt/org-export errors/paths

2011-07-07 Thread Matt Price
Hi folks,

recently updated to 7.6 (via git) and am trying to follow the directions to
enable org-odt.  I'm having trouble with the exporter, and suspect something
is messed up in my .emacs somewhere, am hoping you guys can help.

My current problem: org-odt export fails with this error (apologies for
gmail's HTMLization of this message):
--
Exporting to ODT using org-lparse...
Using vacuous schema [3 times]
File /tmp/odt-10243EXp/content.xml no longer exists!
let*: Wrong number of arguments: #[nil ƉŠŒ~ˆebˆÇ
ÆÈ#ƒ)


I seem to have something messed up in my org path, because when I first
tried to enable org-odt, evaluation of org-odt.el failed with a
void-variable error which I fixed by manually loading org-exp.el.  Here are
what I believe to be the relevant parts of my org setup:

;; get current docs
(setq Info-default-directory-list (cons /home/matt/src/org-mode/doc
Info-default-directory-list))
;; new load paths
(setq load-path (cons /home/matt/src/org-mode/contrib/lisp/ load-path))
(setq load-path (cons /home/matt/src/org-mode/lisp/ load-path))

(require 'org-exp)
(require 'org-odt)

and here are the few org customizations I've made, beside the somewhat
lengthy capture templates:

 '(org-default-notes-file ~/Dropbox/GTD/Collect.org)
 '(org-directory ~/Dropbox/GTD/)
 '(org-modules (quote (org-bbdb org-bibtex org-docview org-gnus org-info
org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-exp org-w3m org-odt
\.\.\.)))
 '(org-startup-folded (quote content))
 '(org-startup-indented t)

Thanks as always guys!
Matt


Re: [O] org-odt/org-export errors/paths

2011-07-07 Thread Matt Price
Hi Jambunathan,

I tried emacs -Q -L /home/matt/src/org-mode/lisp -L
/home/matt/src/org-mode/contrib/lisp/
but the exporter still isn't working for me.  The debug log is attached -- I
wanted to leave the escaped characters intact.  C-h v shows that
org-export-backends is in fact defined:

org-export-backends is a variable defined in `org-exp.el'.
Its value is (odt docbook html beamer ascii latex)

but the backtrace looks to me like org doesn't quite understand that.

thanks Jambunathan.
matt

On Thu, Jul 7, 2011 at 1:26 PM, Jambunathan K kjambunat...@gmail.comwrote:


 Matt

 Happy to hear from you.

 IIRC, You were the first ever user of org-odt. You were having setup
 issues last time as well :-).

 [http://www.mail-archive.com/emacs-orgmode@gnu.org/msg33276.html]

  Hi folks,
 
  recently updated to 7.6 (via git) and am trying to follow t
  directions to enable org-odt.  I'm having trouble with the exporter,
  and suspect something is messed up in my .emacs somewhere, am hoping
  you guys can help.
 
  My current problem: org-odt export fails with this error (apologies
  for gmail's HTMLization of this message):
  --
  Exporting to ODT using org-lparse...
  Using vacuous schema [3 times]
  File /tmp/odt-10243EXp/content.xml no longer exists!
  let*: Wrong number of arguments: #[nil Ɖ ŠŒ~ˆebˆÇ
  ÆÈ#ƒ)
  

 Please recreate the crash after doing `M-x toggle-debug-on-error'. It is
 easy to debug the crash report if the files are not byte-compiled.

 May be you should try loading minimal emacs with:
 emacs -Q -L lispdir of Org -L contriblispdir of Org

 and then try exporting.

 Jambunathan K.

 
  I seem to have something messed up in my org path, because when I
  first tried to enable org-odt, evaluation of org-odt.el failed with a
  void-variable error which I fixed by manually loading org-exp.el.
  Here are what I believe to be the relevant parts of my org setup:
 
  ;; get current docs
  (setq Info-default-directory-list (cons /home/matt/src/org-mode/doc
  Info-default-directory-list))
  ;; new load paths
  (setq load-path (cons /home/matt/src/org-mode/contrib/lisp/
  load-path))
  (setq load-path (cons /home/matt/src/org-mode/lisp/ load-path))
 
  (require 'org-exp)
  (require 'org-odt)
 
  and here are the few org customizations I've made, beside the
  somewhat lengthy capture templates:
 
   '(org-default-notes-file ~/Dropbox/GTD/Collect.org)
   '(org-directory ~/Dropbox/GTD/)
   '(org-modules (quote (org-bbdb org-bibtex org-docview org-gnus
  org-info org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-exp
  org-w3m org-odt \.\.\.)))
   '(org-startup-folded (quote content))
   '(org-startup-indented t)
 
  Thanks as always guys!
  Matt
 
 

 --



org_to_odt.debug
Description: Binary data


Re: [O] org-odt/org-export errors/paths

2011-07-07 Thread Matt Price
On Thu, Jul 7, 2011 at 4:46 PM, Nick Dokos nicholas.do...@hp.com wrote:

 Matt Price mopto...@gmail.com wrote:

 The fault seems to be with org-footnote, not with org-odt, but it's hard
 to see where things go wrong because you've loaded compiled code for
 that. Can you try again with uncompiled code not only for org-odt but
 for everything else as well?

 oh.  oops.  It appears that there were some old .elc files lying around in
my repository.  deleting those got rid of the error.  This will probably
also fix some other small issues I was having...  Thanks everyone!  sorry
for the stupidity.
Matt


Re: [O] org-odt and bibliography

2011-07-07 Thread Matt Price
On Thu, Jul 7, 2011 at 7:27 PM, Henri-Paul Indiogine
hindiog...@gmail.comwrote:

 Hi Torsten!

 2011/7/7 Torsten Anders torsten.and...@beds.ac.uk:
  For bibliographies in MS Word and/or OpenOffice you may wan to check out
 Zotero (http://www.zotero.org/) and its extensions for these platforms.

 Yes, good idea.  I installed Zotero.  Too bad there is no extension
 for Chrome, but using Firefox is still much, much better than using
 IE.  Which I could not because I run Ubuntu Linux.


The zotero Standalone Alpha has a Chrome extension.  I think using Zotero is
a much better bet than trying to use the native OOo bibliographic features
which were always very primitive, never really expanded as they were
supposed to be, and have, I believe, more or less rotted in the last several
years.   there have been threads on this list about using zotero with
org-mode; now that org-odt as been incorporated into the org relase (yay!)
maybe someone will figure out how to translate zotero ids into odt documents
using the command-line version of OOo or something.


[O] Zotero: import HTML -- org syntax?

2014-03-28 Thread Matt Price
Hi,

so, in my ponderously slow efforts to figure out a decent citation
workflow for Org, I am trying for some modest integration with Zotero,
which is the tool my humanities colleagues are most likely to use.

I keep all of the references for my courses in a Zotero database.
When generating a syllabus, I select a set of references, then copy
them over to my org file.  However, then I have to edit each reference
to give the appropriate italicization; in one of my courses we use APA
citation formats, which I don't really know very well, and sometimes I
make mistakes.

I can set up Zotero so that citations are copied in HTML.  That
preserves the markup I want to keep, but in a format that doesn't work
so well in an org document!  I would like to figure out a way to add
the citations with a single command that converts the HTML to org
markup.

so,

(1) is there already an HTML import function that I just don't know about?

(2) is anyone actually using Zotero for citations in org?  or have
people mostly given up and gone over to Bibtex instead?

Thanks very much,

Matt



[O] open in browser after html export?

2014-04-10 Thread Matt Price
As I understand the manual, when I export to HTMl with C-c C-e h o,
the .html file thus created should open up in my default browser,
right?  Instead, it get is being opened in a new window inside Emacs,
and does not appear in a browser.  i imagine I have some variable set
to a bad value somewhere -- but what variable should it be? I have
checked that browse-url and browse-url-firefox both work well on
in-text url's.  Anyone know how org decides how to open an html file?

thanks,

Matt



[O] possible bug in ox-odt.el?

2014-05-25 Thread Matt Price
Hello,

for some time I've noticed that the export to odt options were not
being offered in the export menu options (C-c E-c), even though I have
(require ox-odt) in my startup file.  Attempts to evaluate ox-odt
manually failed with this error:

defconst: Wrong type argument: stringp, nil

I've tracked the problem down to org-odt-lib-dir:

(defconst org-odt-lib-dir
  (file-name-directory load-file-name)
  Location of ODT exporter.
Use this to infer values of `org-odt-styles-dir' and
`org-odt-schema-dir'.)


from what I can tell, 'load-file-name' appears to be nil.  Replacing

  (file-name-directory load-file-name)

with a string like:

  /home/matt/src/org-mode/lisp/ox-odt.el

fixes the problem for me, but that doesn't seem like a very robust
solution.  I don't understand emacs internals very well, but is this
possibly a bug in ox-odt.el, or more likely something in my own
(poorly maintained) setup files?

Thanks,

Matt



[O] Manipulating Dates Automatically in a Headline

2014-08-11 Thread Matt Price
Hi Everyone,

I've asked this before, but that was a year or two ago and am hoping
someone has an idea now, perhaps involving babel or something.

every year at this time I rewrite a set of syllabi. I do a lot of
moving htings around while i'm oding it, and at the end I have to
enter a whole bunch of dates somewhat laboriously.  I have headlines
that look about like either like this:

-
* Outline
** Week 1: Topic Title (2013-09-10)
Longish Description
*** Reading
- Article 1
- Article 2
*** Lab
*** Notes
---

or like this:
--
* Outline
** Week 1: 2013-09-09
*** Seminar: Technology and Society  (2013-09-10)
*** Reading
- Article 1
- Article 2
*** Plenary: Global Citizenship (2013-09-13)


I would like to replace the timestamps with code that dynamically
generates timestamps based on the value either in the last sibling
headline, or the parent headline.  It seems to me this ought to be
possible, but I'm not at all sure how to do it.  i would really
appreciate any guidance.  thanks!

Matt



Re: [O] Manipulating Dates Automatically in a Headline

2014-08-13 Thread Matt Price
It's been a couple of days so I'll try restate this question more
clearly.  I'm hoping it's possible to do something like this:

* Week one (2014-09-09)
* Week two (EVALUATE A LISP EXPRESSION THAT INSERTS A TIMESTAMP ONE
WEEK LATER THAN LAST TIMESTAMP FOUND IN BUFFER)

I don't have much experience with babel so I'm not sure how to do
this, but if it's possible I would love some hints.  Thanks as always,

Matt


On Mon, Aug 11, 2014 at 2:20 PM, Matt Price mopto...@gmail.com wrote:
 Hi Everyone,

 I've asked this before, but that was a year or two ago and am hoping
 someone has an idea now, perhaps involving babel or something.

 every year at this time I rewrite a set of syllabi. I do a lot of
 moving htings around while i'm oding it, and at the end I have to
 enter a whole bunch of dates somewhat laboriously.  I have headlines
 that look about like either like this:

 -
 * Outline
 ** Week 1: Topic Title (2013-09-10)
 Longish Description
 *** Reading
 - Article 1
 - Article 2
 *** Lab
 *** Notes
 ---

 or like this:
 --
 * Outline
 ** Week 1: 2013-09-09
 *** Seminar: Technology and Society  (2013-09-10)
 *** Reading
 - Article 1
 - Article 2
 *** Plenary: Global Citizenship (2013-09-13)
 

 I would like to replace the timestamps with code that dynamically
 generates timestamps based on the value either in the last sibling
 headline, or the parent headline.  It seems to me this ought to be
 possible, but I'm not at all sure how to do it.  i would really
 appreciate any guidance.  thanks!

 Matt



[O] help tracking down bad setting?

2014-09-18 Thread Matt Price
Hi everyone,

When I load org-mode I get the following error:

local-set-key: Key sequence C-c SPC C-r starts with non-prefix key C-c SPC

I am pretty sure I set something to this value somewhere at some time,
but I have no idea what, where, or when.  I have grepped through

.emacs
.emacs.d/*

for local-set-key, C-c SPC C-r and SPC and I haven't found anything.

org still seems to run, but some process is interrupted, I think ,as
any function which calls (org-mode) will not run any code after that
call.

What do you think -- where should I look, and what should I search for?

Thanks a lot,

Matt



Re: [O] help tracking down bad setting?

2014-09-18 Thread Matt Price
On Thu, Sep 18, 2014 at 3:46 PM, Matt Price mopto...@gmail.com wrote:
 Hi everyone,

 When I load org-mode I get the following error:

 local-set-key: Key sequence C-c SPC C-r starts with non-prefix key C-c SPC

 I am pretty sure I set something to this value somewhere at some time,
 but I have no idea what, where, or when.  I have grepped through

 .emacs
 .emacs.d/*

 for local-set-key, C-c SPC C-r and SPC and I haven't found anything.


OK, I found it here:

  (local-set-key \C-c  \C-r 'org-decrypt-entry)

Removing the space between \C-c and \C-r worked.  I guess I really
don't understand the syntax for setting keybindings in emacs -- every
time I do it it's trial and error!

Matt



Re: [O] help tracking down bad setting?

2014-09-18 Thread Matt Price
I meant to add: found the culprit by checking the value of org-mode-hook.
And also, thanks Thorsten!


[O] quickly toggling properties

2013-04-09 Thread Matt Price
Hi everyone,

I just updated to the latest git to try out the ox-deck exporter --
wow it's great, thank you Rick!

The exporter makes use of two properties to control the display of
slide fragments -- STEP and HTML_CONTAINER_CLASS.  I think I'm going
to be using these a lot, so I'm wondering what the quickest way is to
toggle a property. It's easy enough to define a quick key I guess, by
adding this line to org-structure-templates-alist:

(s :Properties\n:STEP: t\n:END:\n)

But I would like to bind a function to a siple keystroke, whic hI can
use to toggle the STEP or HTM_CONTAINER_CASS properties without
thinking too hard.  Any suggestions?  Thanks!

matt



[O] ctrl-enter and alt-enter behaviour in current org

2013-04-09 Thread Matt Price
Hi again,

after updating to the current git version yesterday, I'm noticing a
change in keybindings.  Previously, if I wasi n a ist inside a
headline:

* Heading
- list item
- list item 2

Alt-Enter would create a new list item, while
Ctrl-Enter would create a new headline.

Now, I'm finding that both keys are creating new ist items.  Is this
the intended behaviour? Can I customize it somehow/somewhere?  I'd
like to go back to the old bindings, they seemed more flexible.

Thanks a lot!

Matt



[O] reveal.js?

2013-04-09 Thread Matt Price
...  and one more thing:  Now that deck.js export seems to work
PERFECTLY(!), I find myself wishing for a reveal.js presentation
exporter.  Has anyone started one already?  Thanks!!

Matt



Re: [O] New maintainer

2013-04-22 Thread Matt Price
Just echoing what everyone else has said:  Bastien, your tenure at the
helm has just been fabulous.  8.0 is just an amazing release and org
already just amazingly great has become even better.  Carsten, it's so
generous for you to come back to this project to which you have
already devoted so much energy.  No other tool I use has had such a
great pair of lead developers or such an open and helpful community.
thank you both!

Matt



Re: [O] Let's discuss citation and Org syntax

2013-05-22 Thread Matt Price
On Wed, May 22, 2013 at 5:02 AM, Christian Moe m...@christianmoe.com wrote:

 I have a rough, working example of this enabling Zotero cites for ODT
 export (attached). I've been meaning to polish it up as a contributed
 module for Zotero users, but if there's interest in a unified citation
 syntax along these lines, I could rewrite it to work for Bibtex as well.

Hi Christian,

I'm really interested in this, as I use Zotero not only for writing
but for group bibliographies in my  courses.  The broader conversation
about the appropriate syntax is a bit beyond me, but I do have a
couple of questions about your work with Zotero:

(1) How do you get the Zotero cite keys right now, and what method do
you think would ultimately be the best to try for?  Since zotero now
operates as a service, I would think it should be possible to write an
emacs plugin that communicates directly to Zotero the way that the
word/libreoffice plugin does (though I don't know how to do that stuff
myself).

(2) How might you generalize the export to other formats, esp. HTML?
I imagine the best thing to do would be to use citeproc.js  set the
citation format using a variable, e.g.

#+ ZOTERO-FORMAT: Chicago

The option to do this would be great e.g. for people (like me) who use
org to compose blog posts, then process through the html export (in my
case via org2blog).

(3) Have you seen Erik Hetzner's zotero-plain,
https://bitbucket.org/egh/zotero-plain ?  Would it be useful to your
work? I see Erik is already involved in this thread, do you have any
comments Erik?

Thank you for this!

Matt

 Yours,
 Christian Moe




Re: [O] org-blog 0.9 release

2013-05-23 Thread Matt Price
On Wed, May 1, 2013 at 7:04 AM, Puneeth Chaganti puncha...@gmail.com wrote:
 Mike,

 On Wed, May 1, 2013 at 4:18 PM, Michael Alan Dorman
 mdor...@ironicdesign.com wrote:
 Puneeth Chaganti puncha...@gmail.com writes:
 Or, if it seems reasonable, we could club the two projects into a
 single one to give the users something that's better than a sum of the
 parts!
 [..]
 If you don't mind, I will start looking at the org2blog code and seeing
 how cleanly I can implement these additional capabilities as handlers or
 filters for the exporter---and then maybe we could look for that
 back-end to live in contrib, and both our codebases could take advantage
 of it?

 That seems like a good plan.  I've been meaning to get this going for
 some time, but have been quite busy off-late.  I'll try to make some
 time for it, soon.


Hi guys!

Was there ever any progress on this?  I code so slowly I'd not likely
be much help with the actual implementation but would be happy to pull
from git and do some testing if that's of any use.


Thanks!
Matt



 Thanks!
 Puneeth




[O] using a simple numerical variable in an org text ocument

2013-07-25 Thread Matt Price
Hi,

I'm making a very simple org-document -- a packing list for a trip.
It has entries like

- 4 mugs
- for sleeping bags
- 4 thermarest pads


I'd like to replace the numbers there by a variable -- so if I make a
list for 4 people, the number displayed will be '4'; but if the list
is for 2 people, the number displayed will be 2.  Better would be if I
could also do simple arithmetic manipulations (x * 6 dinners for a
week...).  I there a really simple way to do this? if it's not really
easy, it won't really seem worth it, but if it is really easy, I will
use it a lot...

Thanks guys!
Matt



[O] don't show author and date on odt export?

2013-08-26 Thread Matt Price
Hi,

I'm trying to figure out how best to tell org not to display my name
and the date at the top of the page when it exports document.
Currently, it seems I can do htis by setting

#+OPTIONS: author:nil date:nil

However, this also removes the relevant info from the file metadata.
I would prefer to somehow change the export template so that these
lines aren't produced.  Anyone know if that's possible? Would I have
to modify ox-odt.el directly -- and is that hard to do?  It looks like
the relevant lines in that file are around 1488-1541.  I'm a little
loathe to modify the code directly though, as I like to just git pull
from the master branch...

Thanks!
Matt



Re: [O] don't show author and date on odt export?

2013-08-26 Thread Matt Price
On Mon, Aug 26, 2013 at 2:49 PM, Matt Price mopto...@gmail.com wrote:

 I'm trying to figure out how best to tell org not to display my name
 and the date at the top of the page when it exports document.
 Currently, it seems I can do htis by setting

 #+OPTIONS: author:nil date:nil

 However, this also removes the relevant info from the file metadata.
 I would prefer to somehow change the export template so that these
 lines aren't produced.  Anyone know if that's possible? Would I have
 to modify ox-odt.el directly -- and is that hard to do?  It looks like
 the relevant lines in that file are around 1488-1541.  I'm a little
 loathe to modify the code directly though, as I like to just git pull
 from the master branch...

I realize I also don't quite understand how to preformat the header
and footer of each page.  I feel like this should be possible, as at
least some footer info is generated by default (page number in centre
of footer).  But despite some inspection of both ox-odt.el and the
styles.xml and content.xml of my exported document, I can't figure out
how the content of the footer is determined.

Thanks again!
Matt



Re: [O] [PATH] [NEW EXPORTER] two slide backends for contrib

2013-08-26 Thread Matt Price
I just came across this, having missed it in February.  Rick, I was
wondering if you had thought about enabling some of deck.js's snazzier
features -- transitions for text elements, for instance, like we see
in the intro deck here: http://imakewebthings.com/deck.js/#intro

I'm mostly asking because I'd like to try and copy your work to make
an exporter for impress.js (https://github.com/bartaz/impress.js).
Kinjo has written one, but it uses the old exporter and no longer
works with current versions of org, so I thought I would start with
your deck.js work.

I know that's not very specific, but if you've thought about these
issues I would love to learn wat you've figured out.  Thanks!
Matt


On Wed, Feb 20, 2013 at 10:34 AM, Bastien b...@altern.org wrote:
 Hi Rick,

 Rick Frankel r...@rickster.com writes:

 Attached are:

- ox-deck.el
- ox-s5.el

 Which, respectively, provide deck.js and s5 backends for the new
 exporter. I would be happy for these to be included in contrib. Note
 that I have already signed the FSF assignment documents, so they can
 be safely included in the core if so desired.

 Added to contrib/, thanks a lot!

 I modified the Copyright line to tell that the copyright is your own,
 you don't need to assign copyright to the FSF for code in contrib/.

 If you have time, please mention those packages in Worg:
   http://orgmode.org/worg/org-contrib/

 (Just send me your public key to get push access to Worg.)

 All best,

 --
  Bastien




Re: [O] [PATH] [NEW EXPORTER] two slide backends for contrib

2013-08-27 Thread Matt Price
On Tue, Aug 27, 2013 at 10:12 AM, Rick Frankel r...@rickster.com wrote:
 On 2013-08-27 00:41, Matt Price wrote:

 I just came across this, having missed it in February.  Rick, I was
 wondering if you had thought about enabling some of deck.js's snazzier
 features -- transitions for text elements, for instance, like we see
 in the intro deck here: http://imakewebthings.com/deck.js/#intro

 I'm mostly asking because I'd like to try and copy your work to make
 an exporter for impress.js (https://github.com/bartaz/impress.js).
 Kinjo has written one, but it uses the old exporter and no longer
 works with current versions of org, so I thought I would start with
 your deck.js work.

 I know that's not very specific, but if you've thought about these
 issues I would love to learn wat you've figured out.  Thanks!


 All the fancy transitions and builds in the deck.js intro are handled
 via CSS. So, the exporter will handle them easily.

 If you look at the source for the intro, you will see that all the
 builds and transitions are defined in home.css, and applied based on
 slide id and/or class.

ah, I wish I understood css transforms better!  But yes, I can see
that they are being defined in home.css and attached to individual
classes/ids for slides.  That's very helpful.


 If you look at the documentation for ox-deck
 @https://github.com/cybercode/org-slides, you will see that you can
 specify per-slide classes via the HTML_CONTAINER_CLASS property on the
 headline (and any headline can be build by setting the slide class
 on the headline).

ah, I get it now.  Thank you.


 Taking a quick look @ the impress.js docs, i noticed that there is an
 S9 template for impress.js
 (http://slideshow-s9.github.io/slideshow-impress.js), and that
 everything is specified w/ slide properties (x, y, z, scale and
 rotate), so I would use headline PROPERTIES ( :IMPRESS_X, etc) to
 define the slideshow.

I'll give that a try, if I end up having time (argh).  I'm actually
liking deck, though.  Am wondering if it would be very hard to add
support for the codemirror extension to your deck code.  Maybe I'll
try that first...


 Also note that it might be easier to inherit from  ox-s5 instead of
 ox-deck as it is more generic (and add a wrapper around
 `org-s5-headline') to process the additional properties.

Thanks again, very very helpful.

Matt


 rick



[O] angle brackets around timestamps in html export

2013-08-30 Thread Matt Price
Hello again,

I'm trying to get rid of angle brackets in HTML export.  I've set
org-export-date-timestamp-format to %a, %b %d.  I also have
timestamp overlays turned on, and the displayed custom format set to
%a, %b %d (that seems unlikely to be relevant, but I've changed it
just in case).

Sorry I can't find the answer in the docs, I'm sure it's there
somewhere but I'm missing it somehow!

Matt



Re: [O] angle brackets around timestamps in html export

2013-09-03 Thread Matt Price
On Tue, Sep 3, 2013 at 9:01 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Matt Price mopto...@gmail.com writes:

 I'm trying to get rid of angle brackets in HTML export.  I've set
 org-export-date-timestamp-format to %a, %b %d.

 This variable only applies to a timestamp specified in DATE keyword.

 I also have timestamp overlays turned on, and the displayed custom
 format set to %a, %b %d (that seems unlikely to be relevant, but
 I've changed it just in case).

 This should work with:

   - `org-display-custom-times' set to t
   - `org-time-stamp-custom-formats' set to a cons cell with values
 without angle brackets.

 These variables can be buffer-local.


Hmm.  I have org-diplay-custom-times set to t.
org-time-stamp-custom-formats is customized:
--
org-time-stamp-custom-formats is a variable defined in `org.el'.
Its value is ( %a, %b. %d  . %m/%d/%y %a %H:%M)
Original value was
(%m/%d/%y %a . %m/%d/%y %a %H:%M)
---

On html export, the following is generated:
-
span class=timestamp-wrapperspan class=timestamplt;Tue, Sep.
10gt;/span/span
-

so it looks like it's difficult to remove the brackets with those two
variables.

 Sorry I can't find the answer in the docs, I'm sure it's there
 somewhere but I'm missing it somehow!

 You can also use a filter on every timestamp exported and make sure any
 angle bracket is removed.

I was able to add this bit of javascript to my wordpress site to
remove the brackets:
---
 var elements = document.getElementsByClassName(timestamp);
for (var i = 0; i  elements.length; ++i) {
console.log(removing timestamp);
  elements[i].innerHTML =
elements[i].innerHTML.replace(/(lt;|gt;|\[|\])/g,'');
}
-
Is that what you mean by a filter, or should I be doing something in emacs.

thank you Nicolas!
Matt


 Regards,

 --
 Nicolas Goaziou



Re: [O] angle brackets around timestamps in html export

2013-09-03 Thread Matt Price
On Tue, Sep 3, 2013 at 9:50 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Matt Price mopto...@gmail.com writes:

 You can also use a filter on every timestamp exported and make sure any
 angle bracket is removed.

 I was able to add this bit of javascript to my wordpress site to
 remove the brackets:
 ---
  var elements = document.getElementsByClassName(timestamp);
 for (var i = 0; i  elements.length; ++i) {
 console.log(removing timestamp);
   elements[i].innerHTML =
 elements[i].innerHTML.replace(/(lt;|gt;|\[|\])/g,'');
 }
 -
 Is that what you mean by a filter, or should I be doing something in
 emacs.

 I basically meant the Elisp counterpart of this.  See
 `org-export-filter-timestamp-functions' and 12.13 Advanced
 configuration in Org manual.

thanks nicolas.  If you happen to have a moment, I'm having trouble
reproducing this regexp in elisp.  I would think that, even if I can't
figure out how to construct a single regex that matches all the
characters I want to remove, omething like this ought to work:
---
(defun matt-org-export-filter-timestamp-function (timestamp backend info)
  removes relevant brackets from a timestamp
  (when (org-export-derived-backend-p backend 'html)
;; unfortunatley I can't make emacs regexps work yet.  sigh.
(replace-regexp-in-string [][]  timestamp)
;; (replace-regexp-in-string lt;  timestamp)
))
--
but the second (commented-out) regexp seems to break my export.

Again, many thanks.
matt




 Regards,

 --
 Nicolas Goaziou



[O] syntax for blocks that the exporter should not render?

2013-09-03 Thread Matt Price
Hi,

certain lines are not rendered by the org exporter, but are instead
interpreted as instructions, e.g.:

#+AUTHOR: Matt Price

I'm using org2blog/wp, which is only partially converted to the new
exporter.  It works pretty well, but not perfectly.  It has the neat
feature that, when I insert a link to a local image, it will upload
that image to wordpress and link to the uploaded file.  TO keep track
of the location of those images, it writes lines like this to the org
file:

#+/home/matt/Matt_headshots/Matt Price/IMG_9367_.jpg
http://2013.hackinghistory.ca/wp-content/uploads/2013/08/wpid-IMG_9367_2.jpg

Recently I've noticed that these lines are actually being rendered by
the underlying html exporter before export.  I can (sort of) fix this
by adding a filter to the exporter (thanks again Nicolas!):

-
(add-to-list 'org-export-filter-paragraph-functions
'matt-org-export-filter-paragraph-function)
(defun matt-org-export-filter-paragraph-function (paragraph backend info)
  removes comments from export
  (when (org-export-derived-backend-p backend 'html)
(replace-regexp-in-string ^#\+.*$  paragraph)
))

but it would be better if I could get the underlying exporter to just
ignore these lines. I thought that the leading #+ was enough to get
org to treat these lines as non-text -- but I guess I'm wrong!  Anyone
know a solution?

Thanks!
Matt



[O] set minor mode based on first line of a buffer?

2013-09-03 Thread Matt Price
Last question for a while I hope!

I have a whole bunch of org files that I am reposting to my website at
the beginning of the school year.  These are files generated with
org2blog/wp, and htey all have afirst line like:
#+POSTID: 1797

I would really like to tell org-mode that files that start this way
should be started with org2blog-mode (a minor mode) switched on? I
guess I need to write a hook that parses reads that first line
somehow?

thanks again,
matt



Re: [O] angle brackets around timestamps in html export

2013-09-03 Thread Matt Price
On Tue, Sep 3, 2013 at 10:34 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Matt Price mopto...@gmail.com writes:

 The following should work:

   (defun matt-org-export-filter-timestamp-function (timestamp backend info)
 removes relevant brackets from a timestamp
 (when (org-export-derived-backend-p backend 'html)
   (replace-regexp-in-string [lg]t;\\|[][]  timestamp)))

   (add-to-list 'org-export-filter-timestamp-functions
'matt-org-export-filter-timestamp-function)

that did it!  Thanks Nicolas.



Re: [O] syntax for blocks that the exporter should not render?

2013-09-05 Thread Matt Price
On Thu, Sep 5, 2013 at 6:09 AM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Carsten Dominik carsten.domi...@gmail.com writes:

 On 3.9.2013, at 17:32, Matt Price mopto...@gmail.com wrote:

 Hi,

 certain lines are not rendered by the org exporter, but are instead
 interpreted as instructions, e.g.:

 #+AUTHOR: Matt Price

 I'm using org2blog/wp, which is only partially converted to the new
 exporter.  It works pretty well, but not perfectly.  It has the neat
 feature that, when I insert a link to a local image, it will upload
 that image to wordpress and link to the uploaded file.  TO keep track
 of the location of those images, it writes lines like this to the org
 file:

 #+/home/matt/Matt_headshots/Matt Price/IMG_9367_.jpg
 http://2013.hackinghistory.ca/wp-content/uploads/2013/08/wpid-IMG_9367_2.jpg

 Recently I've noticed that these lines are actually being rendered by
 the underlying html exporter before export.

 I don't think this is the right behavior, such lines should not be rendered.
 Suvayu is right, with a space after the # they are treated as commendt, but 
 I think
 they should also be ignored with the plus.

 Nicolas, what is the reasoning behind rendering them?

 Because this isn't valid Org syntax, so it is treated as regular text
 (i.e. a paragraph). Something similar happens for unbalanced blocks:

   * H

   #+begin_example

   * H2

 In the example above, #+begin_example is treated as a paragraph.

 In both cases, silently ignoring them could cause more trouble that it
 would solve.

Nicolas, can you help clarify under what conditions it's appropriate
to use the #+ syntax, and when to use '#' on its own?  I think
org2blog/wp uses #+ precisely in order to mark those comments as
org-related.  If you cna just tell me what the appropriate behaviour
is I will submit a patch to puneeth.

m




 Regards,

 --
 Nicolas Goaziou



Re: [O] syntax for blocks that the exporter should not render?

2013-09-05 Thread Matt Price
On Thu, Sep 5, 2013 at 7:57 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Sep 5, 2013, at 1:43 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:

 Hi Carsten,

 On Thu, Sep 05, 2013 at 01:27:57PM +0200, Carsten Dominik wrote:

 On Sep 5, 2013, at 12:09 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:

 #+/home/matt/Matt_headshots/Matt Price/IMG_9367_.jpg
 http://2013.hackinghistory.ca/wp-content/uploads/2013/08/wpid-IMG_9367_2.jpg

 I don't think this is the right behavior, such lines should not be 
 rendered.
 Suvayu is right, with a space after the # they are treated as commendt, 
 but I think
 they should also be ignored with the plus.

 Nicolas, what is the reasoning behind rendering them?

 Because this isn't valid Org syntax, so it is treated as regular text
 (i.e. a paragraph). Something similar happens for unbalanced blocks:

 So in a way this is a syntax error message. :)

 OK, I get that point.  Is that behaviour documented?

 I think it is more of a I don't recognise this as special syntax; it
 must be text.  In that case, I'm not sure what can be documented, one
 can have infinitely many text blurbs which look very similar to valid
 Org syntax but isn't.

 I have noticed quite a few posts on the list with this kind of
 misunderstanding.  I think the confusion arises from thinking of special
 keywords like #+options:, #+attr_latex:, etc as comments.  AFAIU,
 they are not.  Lines starting with #+ are possible keywords, whereas
 lines starting with #  are comments.

(sorry, posted my last msg before I saw the more recent contributions)
So how would you suggest org2blog keep track of the relationship
between local and uploaded files?
Should it define a new keyword (perhaps #+remote: )?  And if so how
is that best done? Quickly looking at Export Options (12.2) in the
manual I don't see a built-in mechanism for defining backend-specific
options.  Something like #+ATTR_BLOG: remote might do the trick, but
adding multiple links to such a line would be cumbersome, wouldn't it?

Thanks again for your help clarifying this.



[O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
I'm trying to write my lectures entirely in org.  I would like to just
write them once, using the main org file for my notes, and an exported
deck.js presentation for slides.  However, I would like to include
quite a number of notes to myself for each slide.

One way to do this is to make a drawer.  Unfortunately, from what I
can tell, within a drawer it is not posible to use org structures like
lists.  This is too bad, as I have come to rely on such structures in
my notes!  Is there a way to either:

- have org elements ike lists in a drawer?
or- mark certain elements (like a list or subheading) as not-for-export?
Thanks as always!

Matt



Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
On Thu, Sep 12, 2013 at 1:26 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Hello,

 Matt Price mopto...@gmail.com writes:

 One way to do this is to make a drawer.  Unfortunately, from what I
 can tell, within a drawer it is not posible to use org structures like
 lists.

 Drawers can contain any structure but drawers and headlines.

inside a drawer, when I try to make a lit, org-meta-return doesn't
seem to create a new ist item, but instead just indents the next line
without also inserting a - .  Is this a bug? THanks,

Matt



Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
On Thu, Sep 12, 2013 at 1:16 PM, Thorsten Jolitz tjol...@gmail.com wrote:
 Matt Price mopto...@gmail.com writes:

 or- mark certain elements (like a list or subheading) as not-for-export?

 Maybe using the :noexport: tag on a heading?

yes, that works!  thank you! sorry I missed it in the manual.
Matt


 --
 cheers,
 Thorsten





[O] removing Figure x from a caption

2013-09-12 Thread Matt Price
sorry, another question whose answer I'm having trouble finding in the
manual: is it possible to remove the text Figure X:  from a caption
defined with

#+CAPTION:

? I'm just doing lecture slides, and the images are merely
illustrative, labelling them Figure 1 is a bit grandiose.  Thanks
again!



Re: [O] org structuresin a drawer? (or some other presentation soution)

2013-09-12 Thread Matt Price
Thanks Nicolas!  Works great.
Matt

On Thu, Sep 12, 2013 at 4:35 PM, Nicolas Goaziou n.goaz...@gmail.com wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 Hi Nicolas, this looks good to me, please apply it.

 Done (in master).


 Regards,

 --
 Nicolas Goaziou



Re: [O] removing Figure x from a caption

2013-09-13 Thread Matt Price
On Thu, Sep 12, 2013 at 4:15 PM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Matt Price mopto...@gmail.com writes:

 sorry, another question whose answer I'm having trouble finding in the
 manual: is it possible to remove the text Figure X:  from a caption
 defined with

 #+CAPTION:

 ? I'm just doing lecture slides, and the images are merely
 illustrative, labelling them Figure 1 is a bit grandiose.  Thanks
 again!

 I guess you are exporting to Beamer?  If so, the easiest way would be to
 redefine caption to something else.  The following seems to work but I'm
 sure there are prettier ways of doing this:

 --8---cut here---start-8---
 #+startup: beamer
 #+options: H:1
 #+latex_header: \newcommand{\mycaption}[1]{\newline \hfill #1 \hfill 
 \newline} \let\caption\mycaption

 * the slide
 #+caption: This is some very catchy caption
 #+attr_LaTeX: :width 0.5\textwidth
 [[file:~/test/myfig.jpg]]
 --8---cut here---end---8---

 hope this helps,
 eric


Unfortunatey, I'm exporting to HTML (deck.js) not Beamer.  I guess I
still on't understand how to use beamer -- I tried it just now and it
seemed to produce a very plain pdf, not a slideshow at all.  sigh.



Re: [O] removing Figure x from a caption

2013-09-13 Thread Matt Price
On Thu, Sep 12, 2013 at 2:18 PM, Rasmus ras...@gmx.us wrote:
 Matt Price mopto...@gmail.com writes:

 sorry, another question whose answer I'm having trouble finding in the
 manual: is it possible to remove the text Figure X:  from a caption
 defined with

 #+CAPTION:

 ? I'm just doing lecture slides, and the images are merely
 illustrative, labelling them Figure 1 is a bit grandiose.  Thanks
 again!

 Depending on the output format that should be possible.  If LaTeX it
 should be enough to set some variable defining the label name and
 disable the counter.

 If HTML you could probably do it with a filter removing [Ff]igure
 [1-9]+.

I'm not finding an org-export-filter-caption-function, and captions
aren't listed as a valid element type in section 12.13 of the manual.
I can just use CSS to hide the figure-number span that org generates,
but that seems a little clumsy (also interferes a bit with my pristine
install of deck.js... ).

Thanks,
Matt


 –Rasmus

 --
 Got mashed potatoes. Ain't got no T-Bone. No T-Bone





Re: [O] removing Figure x from a caption

2013-09-15 Thread Matt Price
On Sat, Sep 14, 2013 at 10:28 AM, Eric S Fraga e.fr...@ucl.ac.uk wrote:
 Matt Price mopto...@gmail.com writes:
 Unfortunatey, I'm exporting to HTML (deck.js) not Beamer.  I guess I
 still on't understand how to use beamer -- I tried it just now and it
 seemed to produce a very plain pdf, not a slideshow at all.  sigh.

 It may or may not have worked.  I cannot tell from your comment.  It
 depends on what you mean by plain PDF and slideshow.

 Beamer is a document style and a collection of macros for LaTeX.  The
 output of LaTeX will be a PDF file typically.  For a beamer document,
 the PDF output is a set of pages where each page corresponds to a single
 slide.  The slide show is the sequence of these PDF pages.  Whether
 this corresponds to your meaning of a slide show, I cannot tell.

 I hope that makes some sort of sense...

Yes, it does make sense, thank you Eric.  The PDF document produced
was not a one-heading-per-page slideshow, but a more ordinary PDF with
continuous flow from page to page.  I have no doubt there are numerous
errors in my setup -- I don't use LaTex at all so I haven't realy
investigated what woud be necesary to fix them.

Thanks!
Matt



 --
 : Eric S Fraga (0xFFFCF67D), Emacs 24.3.50.1, Org release_8.1.1-17-gf76e8c




Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file

2013-09-16 Thread Matt Price
On Tue, Sep 3, 2013 at 5:12 AM, Achim Gratz strom...@nexgo.de wrote:

 Or you could leave it in and see who complains.  The instances where
 xdg-open doesn't work or is not correctly configured will probably be in
 multi-user / corporate environments where it is unlikely that the newest Org
 or Emacs is installed anyway.

Hi,

I'm running today's org with a recent emacs-snapshot in a single-user
linux environment (ubuntu 13.04).

xdg-open xxx.html works fine when run from the command line, but from
inside org-mode it seems to fail to run  In particular, html, odt and
pdf documents no longer seem to open from the export menu, even though
the log in *Messages* reports that the relevant command
(xdg-open-my-org-file.html) has been run.

Can I help diagnose this?  toggle-debug-on-error doesn't give me any extra info.

Thanks!
Matt



Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file

2013-09-17 Thread Matt Price
On Tue, Sep 17, 2013 at 12:42 AM, Matt Price mopto...@gmail.com wrote:
 On Tue, Sep 3, 2013 at 5:12 AM, Achim Gratz strom...@nexgo.de wrote:

 Or you could leave it in and see who complains.  The instances where
 xdg-open doesn't work or is not correctly configured will probably be in
 multi-user / corporate environments where it is unlikely that the newest Org
 or Emacs is installed anyway.

 Hi,

 I'm running today's org with a recent emacs-snapshot in a single-user
 linux environment (ubuntu 13.04).

 xdg-open xxx.html works fine when run from the command line, but from
 inside org-mode it seems to fail to run  In particular, html, odt and
 pdf documents no longer seem to open from the export menu, even though
 the log in *Messages* reports that the relevant command
 (xdg-open-my-org-file.html) has been run.

 Can I help diagnose this?  toggle-debug-on-error doesn't give me any extra 
 info.



hmm, it looks like xdg-open isn't the culprit -- no matter what I set
in org-file-apps, the command doesn't seem to run.
 Thanks!
 Matt



Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file

2013-09-17 Thread Matt Price
 (xdg-open-my-org-file.html) has been run.
-- (xdg-open my-org-file.html) has been run.



[O] some movement on zotero!

2013-09-17 Thread Matt Price
hi,

Just found this:

http://zotero-odf-scan.github.io/zotero-odf-scan/

don't havetime to look thorugh it yet, but it looks like a way to
write in org-mode and still use a zotero bibliography.  It wil mean
that odt is the only really usable export, though.

I'd be interested to hear what other people think -- as I say, rushing
to get some work done right now!

Matt



Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file

2013-09-17 Thread Matt Price
On Tue, Sep 17, 2013 at 5:25 PM, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 Hi,

 On Tue, Sep 17, 2013 at 10:31:41PM +0200, Carsten Dominik wrote:

 On 17.9.2013, at 22:21, Suvayu Ali fatkasuvayu+li...@gmail.com wrote:
 
  I can consistently repeat this outside of Org.  I am trying with
  `dired-do-shell-command'.
 
  Steps:
  1) (dired-do-shell-command xdg-open nil '(file.pdf)), the script
runs and opens the pdf file.
  2) (dired-do-shell-command xdg-open  nil '(file.pdf)), this runs
the script too but the pdf is not opened.
 
  (I know the scripts run because I turned on debugging in the scripts)
 
  I'm assuming Org opens it asynchronously.  What lisp function does Org
  use?

 Org used start-process-shell-command, and this happens in
 org-open-file, which is called for links to a file in org-open-at-point.

 I need some feedback from users using different desktop environments.
 What DEs do you use, Matt, Glyn?

 I am on XFCE.  For me xdg-open calls the internal function (defined in
 the script), open_xfce.  Inside that function, exo-open is called.  This
 is XFCE specific.  When I replace exo-open with say, evince, and open a
 pdf file; start-process-shell-command works; with exo-open it doesn't.
 I can repeat this for html files with Firefox.

 I would like to know if other desktop environments has the same issue:
 kde-open (KDE) and gvfs-open (Gnome, Mate, etc).  So to test, just open
 a directory with pdf/odt/html files in dired and run either of them
 asynchronously with .


I'm running unity in Ubuntu 13.04, which still is sorta descended from
gnome.  Neither xdg-open nor gnome-open seems to work (if I'm doing
this right in dired: navigate to a pdf/html file, type , enter
xdg-open).

I have the feeling the problem is in emacs, org-open-file, or their
interaction.  It's definitely not in xdg-open/gnome-open themselves,
as they work fine from the command-line with M-! .

thanks guys,
Matt


 Cheers,

 --
 Suvayu

 Open source is the future. It sets us free.



Re: [O] bug#14605: Problem with export an .org file to .pdf does not open pdf file

2013-09-17 Thread Matt Price
On Tue, Sep 17, 2013 at 5:25 PM, Glyn Millington
glyn.milling...@gmail.com wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 On 17.9.2013, at 15:56, Suvayu Ali fatkasuvayu+li...@gmail.com
 wrote:

 On Tue, Sep 17, 2013 at 09:04:45AM +0100, Glyn Millington wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 On 17.9.2013, at 08:01, Matt Price mopto...@gmail.com wrote:

 On Tue, Sep 17, 2013 at 12:42 AM, Matt Price mopto...@gmail.com
 wrote:
 On Tue, Sep 3, 2013 at 5:12 AM, Achim Gratz strom...@nexgo.de
 wrote:
 Or you could leave it in and see who complains.  The instances
 where xdg-open doesn't work or is not correctly configured will
 probably be in multi-user / corporate environments where it is
 unlikely that the newest Org or Emacs is installed anyway.
 Hi,

 I'm running today's org with a recent emacs-snapshot in a
 single-user linux environment (ubuntu 13.04).

 xdg-open xxx.html works fine when run from the command line, but
 from inside org-mode it seems to fail to run In particular,
 html, odt and pdf documents no longer seem to open from the
 export menu, even though the log in *Messages* reports that the
 relevant command (xdg-open-my-org-file.html) has been run.
  Is there anyone else who has tried the xgd-open way to follow
 links with Org?

  Yes, I have the same symptoms as Matt.

 GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.8.2)
 Org-mode 8.1.1 (the latest ELPA package fails in the same way)

 xdg-open works on the command line but not through the org-export
 menu - pdfs and html files don't open automatically.  There are no
 error messages.
  I see the same problem.  But I think this might be an Emacs issue;
 I can't open a pdf from dired either (with  on a pdf file).
 However I can open it if I execute a shell command: M-! xdg-open
 file.pdf RET.

 Do I need to conclude that, for the time being, xdg-open has to be
 removed from the default value of org-file-apps?

 That did the trick - pdf files now open as before, as do html exports.


Glyn, can you just tell me what you set org-file-apps to? I wasn't
able to find a value that worked.  Thank you!

Matt



[O] applying html classes to the figure div on HTML export

2013-09-19 Thread Matt Price
Hi,

Is there a way to apply an HTML class to the the div class=figure
element which is generated around an image link on HTML export?  I am
making a presentation using org-- deck.js (ox-deck.el), and I want
most of my images to be centred, but in cases where I have more than
one image, I want them to display in rows using the float:left
property.  If I just float the images using

 #+ATTR_HTML: :style float:left

then their captions do not display consistently above or below them.
I can use CSS to addres every div.figure, but that forces ALL images
to be aligned to the left-hand side of the slide, which is not what I
want.  I think I could also write some javascript to add the class
dynamically when there's more than one div.figure in a div.slide,  but
I odn't understand deck well enough to be sure how to do that.  Any
suggestions?

Thanks!

Matt



Re: [O] applying html classes to the figure div on HTML export

2013-09-19 Thread Matt Price
On Thu, Sep 19, 2013 at 3:05 PM, Christian Moe m...@christianmoe.com wrote:

 Matt Price writes:

 Hi,

 Is there a way to apply an HTML class to the the div class=figure
 element which is generated around an image link on HTML export?

 I don't think there is...?

 What you /can/ do is wrap the image in a special block/custom div of your 
 own, e.g. as
 follows (the myfloat name is arbitrary):

   #+begin_myfloat
   [[./picture.png]]
   #+end_myfloat

 This results in:

   div class=myfloat

   div class=figure
   pimg src=./picture.png alt=picture.png /
   /p
   /div

   /div

 Then you style the div.myfloat class with CSS.

 If I understand your problem correctly, you can also wrap all the images
 that should go in a row in a single special block/custom div, e.g.

   #+begin_myfloat
   [[./picture1.png]]

   [[./picture2.png]]

   [[./picture3.png]]
   #+end_myfloat

 Then style the figure children of such divs with

   div.myfloat div.figure { ... }

 Does this work for you?

ah, that's cool.  I had just figured out another workaround, which was to add
:PROPERTIES:
 :HTML_CONTAINER_CLASS: multi-image
:END:

to the containing headline, and then add

.multi-image div.figure {float:left;}

to the CSS.  It seems to have worked for me so far.  But the syntax
you describe is easier and more flexible.  I'll try it out soon
thanks!

Matt



 Yours,
 Christian



[O] ODT export failed: wrong number of agruments

2013-09-19 Thread Matt Price
lots of questions lately!  Sorry.

I am trying to export an org-file to odt after having created a
deck.js presentation from the same file.  Exports to html work fine,
and exports of other files to odt also seem to work.  With this
image-heavy org-file I'm having trouble.  Export fails thus:

-
LaTeX to MathML converter not available.
Formatting LaTeX using verbatim
Embedding /home/matt/NewOne/Images/oxfam_gobal_citizenship.jpg as
Images/0001.jpg...
OpenDocument export failed: Wrong number of arguments: nil, 2
-

The relevant section of the org file is this:

--
* Global Citizenship?
:PROPERTIES:
:STEP: 1
:END:
#+CAPTION: Happy Children of the Global Village?
[[file:~/NewOne/Images/oxfam_gobal_citizenship.jpg]]
- What is Global Citizenship?
- Is it a concept worth supporting?
- What responsibilities does it entail?


Removing this image just generates the same error with the next image.

Any idea what's going on?  Could I be missing some kind of helper
appication or something?

I don't really need the images in the odt file.  Can I turn off inline
embedding of images in odt, just to make this problem go away?

Thanks a lot!!
Matt



Re: [O] ODT export failed: wrong number of agruments

2013-09-19 Thread Matt Price
On Thu, Sep 19, 2013 at 8:36 PM, Matt Price mopto...@gmail.com wrote:
 lots of questions lately!  Sorry.

 I am trying to export an org-file to odt after having created a
 deck.js presentation from the same file.  Exports to html work fine,
 and exports of other files to odt also seem to work.  With this
 image-heavy org-file I'm having trouble.  Export fails thus:

 -
 LaTeX to MathML converter not available.
 Formatting LaTeX using verbatim
 Embedding /home/matt/NewOne/Images/oxfam_gobal_citizenship.jpg as
 Images/0001.jpg...
 OpenDocument export failed: Wrong number of arguments: nil, 2
 -

 The relevant section of the org file is this:

 --
 * Global Citizenship?
 :PROPERTIES:
 :STEP: 1
 :END:
 #+CAPTION: Happy Children of the Global Village?
 [[file:~/NewOne/Images/oxfam_gobal_citizenship.jpg]]
 - What is Global Citizenship?
 - Is it a concept worth supporting?
 - What responsibilities does it entail?
 

 Removing this image just generates the same error with the next image.

 Any idea what's going on?  Could I be missing some kind of helper
 appication or something?

 I don't really need the images in the odt file.  Can I turn off inline
 embedding of images in odt, just to make this problem go away?

Hmm, the problem seems to lie in the CAPTION -- if those are removed,
the images seem (at least so far!) to be exported with no problem.  Is
there a known bug with the export of captioned images?  This is in an
uptodate org-mode, running on arecent emacs under Ubuntu 13.04 (unity
environment).

Thanks!
m

 Thanks a lot!!
 Matt



Re: [O] Org Tutorials need more structure

2013-09-29 Thread Matt Price
On Sun, Sep 29, 2013 at 4:44 AM, Eric Abrahamsen
e...@ericabrahamsen.net wrote:
 Carsten Dominik carsten.domi...@gmail.com writes:

 Hi everyone,

 today I looked at our tutorial page at

 http://orgmode.org/worg/org-tutorials/index.html

 and came away with the feeling that that this page has become
 somewhat useless for people who are really new to Org.  I think
 the page should start with a section of true recommendations
 for beginners, a path we tell every new users to take in order to
 learn about Org mode.

 Can we have a discussion here on how this path should look like?
 When you came to Org-mode as a newby, what were the three resources
 that really made an impression on by being accessible and
 providing feel and promise for digging deeper?

 - Carsten

 My feeling is, the tutorial structure might look like this:

 Start with the basics: outlining and structure editing, plus
 introductions to links and properties.

 Then four other tutorials, presented in no particular order:

 1. TODOs/agendas/task management (plus clocking)
 2. Exporting
 3. Babel
 4. Tables/spreadsheets

I would only add that exporting is closely linked to writing in
org whcih is what I mostly do.  This includes topics like footnotes,
which I haven't really figured out yet after 3 years of using org
(admittedly I haven't really tried either).

It might also be nice if these tutorials included some sample setup
code to get intermediate-to-advanced features working even before one
fully understands them.

Very busy the net 2 weeks but afte that I'd like to try to give back a
little bit to the org community, so I could take a crack at some of
these areas (not 3  4 though!).

Matt


 Those four areas seem pretty distinct and independent to me (except
 there's special cross-over between exporting and babel blocks). Any
 given prospective org user will probably immediately gravitate to one or
 more areas, leaving the others for later. Personally, I immediately
 jumped into task management, then went to exporting, and I've only ever
 dabbled in babel and spreadsheets. I think it would be good to keep
 these areas fairly self-contained.

 2 cents,
 Eric





Re: [O] multiple indirect buffers, and limiting to a drawer

2013-10-02 Thread Matt Price
On Tue, Oct 1, 2013 at 3:28 PM, Bob Newell bobnew...@bobnewell.net wrote:
 Aloha Matt,

 For some while I've been also working on my writer-mode for org-mode,
 and run into similar problems. (However, I don't think I ever intend
 writer-mode for general release; it will probably just remain something
 I use myself.)

 I ran into similar problems, trying to emulate Scrivener and others. I
 only seem to be able to figure out a thin nav panel on the left and a
 bigger text panel on the right. I didn't get around the problem with
 virtual buffers having the same modal properties as the main buffer. In
 particular, buffer-local key bindings carry over from the index buffer
 to the main buffer, which is A Royal Pain.

This in particular is something I wish could be solved.  Just reading
the documentation it looks as though using mike-indirect-buffer
instead of clone-indirect-buffer will permit one to set all the
modal properties of the new buffer independently, though it may be
frustrating to address the indirect bufffer in a function called from
the first buffer (maybe not, though?).  cf.
http://www.gnu.org/software/emacs/manual/html_node/elisp/Indirect-Buffers.html
and http://www.emacswiki.org/emacs/IndirectBuffers

 But perhaps I'm looking for different features than you are. Mainly, I
 wanted a template system for scenes, characters, etc. (easy enough), a
 lot of statistics, both global and per-story (not conceptually difficult
 but took much time), and a good darkroom mode (much more of a challenge
 than I expected, and seems to vary among environments/releases, etc.;
 that is to say, most of the published emacs darkroom code didn't work
 for me).

 I've also got some fluff such as typing sounds, word frequency analysis,
 a name generator, etc.

 It's nothing special but I use it every day. However, I'm more than
 willing to throw it over and use your code once it's developed! I'm sure
 you're coding it much, much better and with concepts that are better
 thought through.

That sounds pretty great, actually.  So, I would love to see what you have.


 A hui hou,

 --
 Bob Newell
 Honolulu, Hawai`i
lucky!



Re: [O] multiple indirect buffers, and limiting to a drawer

2013-10-02 Thread Matt Price
On Tue, Oct 1, 2013 at 5:37 PM, Myles English mylesengl...@gmail.com wrote:

 Hi Matt,

 mopto...@gmail.com writes:

 (3) in the right-hand panel, I'd like  to just show the properties
 drawer of the currently active heading.


 Can someone suggest the best way to create that third buffer (or more
 precisely, that second indirect buffer)?

 I can't, but your description of a windowed layout sounds like
 workgroups ( https://github.com/tlh/workgroups.el ), may be you can
 reuse some code?

that looks interesting and certainly more sophisticateed than what I
had put together, I'll check it out.

 Myles





Re: [O] multiple indirect buffers, and limiting to a drawer

2013-10-02 Thread Matt Price
On Tue, Oct 1, 2013 at 1:19 PM, Thorsten Jolitz tjol...@gmail.com wrote:
 Matt Price mopto...@gmail.com writes:

 Hi,

 (1) in a narrow window on the left, an outline of the whole org-file,
 which I take to represent a major writing project

 (2) in the main window, a heading element in an indirect buffer


 (3) in the right-hand panel, I'd like  to just show the properties
 drawer of the currently active heading.


 Can someone suggest the best way to create that third buffer (or more
 precisely, that second indirect buffer)?  I guess I don't know the
 best way to limit to a drawer, nor do I really understand how to make
 multiple indirect buffers ( from what I can see,
 org-tree-to-indirect-buffer will only permit one indirect buffer at a
 time to be crate, which is fine, but which takes away the only tool I
 sort of understand).


 Another question: does emacs allow indirect buffers to have different
 modes than their parents If so, I would like to write some trivial
 minor modes that remap keybindings in each of the three windows, and
 .e.g I would like to prohibit full unfolding of the outline in the
 left-hand window if that's possible.

 Much of this is possible with
 [[https://github.com/tj64/navi][navi-mode.el]] (see screencast on
 [[http://www.youtube.com/watch?v%3DII-xYw5VGFM:][youtube]]), although
 you won't have 3 buffers, just 2: the Org file and the associated
 *Navi-buffer*, but the latter is very flexibel: with one key commands
 you can switch rapidly between multiple views of your Org file, change
 the visibility of the Org buffer, and more 'remote-control' like stuff.

 Just to give you an example using Bernt Hansen org-mode.org tutorial:

 1. M-s n  - fire up navi buffer showing level 1 headlines:

 ,
 | 19 matches for ^\*  in buffer: org-mode.org
 |  39:* Getting Started
 | 411:* Tasks and States
 | 566:* Adding New Tasks Quickly with Org Capture
 | 712:* Refiling Tasks ...
 `

 2. move up and down with n an p, narrow and widen subtrees with r and w,
change visibility of headline at point (whole buffer) with TAB (BACKTAB).
use d to see the element at point in the Org-buffer, o (or s) to switch to
it. use M-s M-s to switch back from Org-buffer to the navi-buffer.

 3. type 2 or 3 to see headlines up to level 2 (3)

 ,--
 | 122 matches for ^\*\*?  in buffer: org-mode.org
 |  39:* Getting Started
 |  42:** Org-Mode Setup
 | 130:** Organizing Your Life Into Org Files
 | 184:** Agenda Setup
 | 233:** Org File Structure
 | 291:** Key bindings
 | 411:* Tasks and States
 | 425:** TODO keywords
 | 510:** Fast Todo Selection
 | 533:** TODO state triggers
 `--

 4. type h to see all (currently) possible keyword-searches (and q to quit the
help page)

 ,
 | [KEY] : [SEARCH]
 | 
 | b : srcblock
 | x : time
 | I : inline-srcblock
 | W : srcname-w-name
 | M : multilineheader
 | Y : priority
 | T : target
 | R : radiotarget
 | D : drawer
 | S : timestamp
 | N : srcname
 | U : result
 | Z : result-w-name
 | O : options
 | P : propertydrawer
 | A : deadline
 | H : scheduled-time-hour
 `

 5. play around with the keyword searches, e.g. type b

 ,-
 |  51:#+begin_src emacs-lisp :tangle no
 |  65:#+begin_src emacs-lisp :tangle yes :exports none
 |  86:#+begin_src emacs-lisp :tangle yes
 | 103:#+begin_src emacs-lisp :tangle yes
 | 190:#+begin_src emacs-lisp :tangle no
 `-

   type S

,
| 2130:  , SCHEDULED: 2009-05-18 Mon ++1w
| 3771:  ,   DEADLINE: 2009-07-01 Wed +1m -0d
| 3843:  ,  SCHEDULED: 2009-06-16 Tue +1w
| 4081:  ,  DEADLINE: 2009-07-01 Wed +1m -0d
| 4265:  ,   SCHEDULED: 2009-11-21 Sat .+7d/30d
`

   and - for your use case - type P:

 ,
 |  43::PROPERTIES:
 |::CUSTOM_ID: Setup
 |::END:
 | 131::PROPERTIES:
 |::CUSTOM_ID: OrgFiles
 |::END:
 | 185::PROPERTIES:
 |::CUSTOM_ID: AgendaSetup
 |::END:
 `

 6. finally, combine headline and keyword searches

[O] Setting org-insert-heading-hook while in a minor mode

2013-10-30 Thread Matt Price
Hi everyone,

I am trying to write a minor mode that will help me write a little
more efficiently.

While I'm in that mode, I want to insert a properties drawer every
time I create a new heading.  So I would like to temporarily change
org-insert-heading-hook when the minor mode is active.  It's not
obvious to me that there's a way to set a file-local variable while in
a minor-mode -- does anyone know if there is, and I'm just missing it?

Also, I would like if possible for the properties drawer to be
pre-populated with certain properties  Is that also possible?

Thanks,

Matt



  1   2   3   4   5   6   7   >