[Orgmode] Re: Link not followed in first line of file

2009-09-25 Thread PT
Carsten Dominik  gmail.com> writes:
> 
> That is a feature.  How else would you insert an empty line before the  
> link.
> 

C-q C-j, of course. 

It may not be too newbie friendly, I admit. :)





___
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] Link not followed in first line of file

2009-09-25 Thread Carsten Dominik


On Sep 26, 2009, at 6:35 AM, PT wrote:

If there is a link at the very beginning of the org file and cursor  
is on
the very first character of the link (and, consequently, of the  
file) then

Enter doesn't follow the link, it inserts a literal newline instead.


That is a feature.  How else would you insert an empty line before the  
link.


- Carsten



Bug or feature? :)




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




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


[Orgmode] suggestion: options for chronological agenda

2009-09-25 Thread Ilya Shlyakhter
I often need to find recently modified entries.   I try to timestamp
entries I work on with the active timestamps
(in angular brackets), and use the C-x a L command.   This mostly
works, but is imperfect:
- when i use time logging, it inserts "inactive" timestamps that
are not found this way.   so, i can't use this to find
"recently worked on" entries.
- it looks at the _first_ timestamp in an entry, rather than the
_last_ timestamp
- it is limited to one file .   would be much better if it could
be made to work across the entire agenda.
- it would be fine to have the option to limit it to entries
within the last, say, week, if that would speed it up.

The suggestion is to enhance the timeline agenda with options to:
   - recognize "inactive" timestamps ([in square brackets])
   - use last, rather than first, timestamp in an entry
   - search the entire agenda, rather than just the current file
   - limit the agenda to entries within the last (say) week.

The timeview agenda was of course originally designed for another use
case -- as a personal calendar/diary.
But I'm finding myself repeatedly using it this way: organize the
entries by hierarchical subject, and use the timeline
agenda to generate a chronological listing.

It would also be _really_ great if the chronological listing could be
filtered to contain only entries matching a certain
tag/property query.   Then you could e.g. get a chronological list of
"important" entries, or entries on a certain
subject.

ilya


___
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] Question on spreadsheet formula

2009-09-25 Thread Andreas Burtzlaff
Hi,

you could rewrite the formula using vertical sums:

|-+--+--+---|
| No. |P |E | B |
|-+--+--+---|
|   1 | 5000 | 2000 |  3000 |
|   2 | 7000 | 1000 |  9000 |
|   3 | 5000 | 1000 | 13000 |
#+TBLFM: $4=vsum(@-i$...@0$2)-vsum(@-i$...@0$3)

HTH

Andreas


On Sat, 26 Sep 2009 03:08:11 + (UTC)
RC  wrote:

> Hi,
> On applying the column formula on the table shown below:
>   |-+--+--+--|
>   | No. |P |E | B|
>   |-+--+--+--|
>   | |  |  | 0|
>   |   1 | 5000 | 2000 |  |
>   |   2 | 7000 | 1000 |  |
>   |   3 | 5000 | 1000 |  |
> #+TBLFM: $...@-1$4+$2-$3
> 
> I get:
>   |-+--+--+---|
>   | No. |P |E | B |
>   |-+--+--+---|
>   | |  |  | B |
>   |   1 | 5000 | 2000 | B + 3000  |
>   |   2 | 7000 | 1000 | B + 9000  |
>   |   3 | 5000 | 1000 | B + 13000 |
> #+TBLFM: $...@-1$4+$2-$3
> 
> When what I would like is:
>   |-+--+--+---|
>   | No. |P |E | B |
>   |-+--+--+---|
>   | |  |  | 0 |
>   |   1 | 5000 | 1000 | 3000  |
>   |   2 | 5000 | 1000 | 9000  |
>   |   3 | 5000 | 1000 | 13000 |
> #+TBLFM: $...@-1$4+$2-$3
> 
> Is there a way I can restrict application of the column formula to below the
> horizontal line.
> Thanks,
> RC
> 
> 
> 
> 
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] Re: Question on spreadsheet formula

2009-09-25 Thread Benjamin Andresen
Hey RC,

If you set the value of D2 to 0 what you want will be achieved.

The table would look like this:

|-+--+--+---|
| No. |P |E | B |
|-+--+--+---|
| |  |  | 0 |
|   1 | 5000 | 2000 |  3000 |
|   2 | 7000 | 1000 |  9000 |
|   3 | 5000 | 1000 | 13000 |
#+TBLFM: $...@-1$4+$2-$3::@2$4=0
 
 That's the interesting part


> Is there a way I can restrict application of the column formula to below the
> horizontal line.

No idea.

> Thanks,
> RC

br,
benny


___
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] Question on spreadsheet formula

2009-09-25 Thread RC
Hi,
On applying the column formula on the table shown below:
  |-+--+--+--|
  | No. |P |E | B|
  |-+--+--+--|
  | |  |  | 0|
  |   1 | 5000 | 2000 |  |
  |   2 | 7000 | 1000 |  |
  |   3 | 5000 | 1000 |  |
#+TBLFM: $...@-1$4+$2-$3

I get:
  |-+--+--+---|
  | No. |P |E | B |
  |-+--+--+---|
  | |  |  | B |
  |   1 | 5000 | 2000 | B + 3000  |
  |   2 | 7000 | 1000 | B + 9000  |
  |   3 | 5000 | 1000 | B + 13000 |
#+TBLFM: $...@-1$4+$2-$3

When what I would like is:
  |-+--+--+---|
  | No. |P |E | B |
  |-+--+--+---|
  | |  |  | 0 |
  |   1 | 5000 | 1000 | 3000  |
  |   2 | 5000 | 1000 | 9000  |
  |   3 | 5000 | 1000 | 13000 |
#+TBLFM: $...@-1$4+$2-$3

Is there a way I can restrict application of the column formula to below the
horizontal line.
Thanks,
RC




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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Darlan Cavalcante Moreira
At Fri, 25 Sep 2009 11:58:01 -0400,
Paul Burkander wrote:
> 
> It doesn't seem nice that my thread was hijacked.
> 
> Anyway, I solved my original problem, which as you might recall was
> that I got an empty box when I tried to preview.
> 
> I installed texlive-latex-extras.  It has since worked.  If that
> package is needed, it would be helpful to have it noted in the
> documentation.
> 
> On Fri, Sep 25, 2009 at 11:52 AM, Nick Dokos  wrote:
> > Darlan Cavalcante Moreira  wrote:
> >
> >> How could I miss that?
> >>
> >> I used the command customize-variable and I was trying to auto-complete 
> >> with TAB
> >> something similar to "org-preview" or "org--preview".  Now I see that the
> >> options are in the group Org Latex.
> >>
> >> May I suggest that these two variables are mentioned in the documentation 
> >> of the
> >> org-preview-latex-fragment function?
> >>
> >
> > This is the second time in the last couple of weeks that somebody looked
> > for this and did not find it. Nicolas Goaziou had a very similar
> > reaction (see http://article.gmane.org/gmane.emacs.orgmode/17544 for
> > more). So it seems that the option is indeed well hidden :-) I'd second
> > the motion to add a mention of org-format-latex-options in the function
> > doc and perhaps add a more extended mention in section 11.4 of the
> > manual ("Processing LaTeX fragments") as well. Here is some suggested
> > text:
> >
> > ,
> > | ...
> > | `C-c C-c'
> > |      Remove the overlay preview images.
> > |
> > |    You can customize the variable `org-format-latex-options' to
> > | influence some aspects of the preview. In particular, the :scale (and
> > | for HTML export, :html-scale) property can be used to adjust the
> > | size of the preview images.
> > |
> > |    During HTML export (*note HTML export::), all LaTeX fragments are
> > | ...
> > `
> >
> > Thanks,
> > Nick
> >
> >
> >
> >
> >
> >

I guess I'm the one to blame. Sorry about that Paul. Since it was something
related to dvipng I simply "ansered the E-Mail" with my question instead of
creating another thread.
-- 
Darlan Cavalcante Moreira
darc...@gmail.com


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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Paul Burkander
It doesn't seem nice that my thread was hijacked.

Anyway, I solved my original problem, which as you might recall was
that I got an empty box when I tried to preview.

I installed texlive-latex-extras.  It has since worked.  If that
package is needed, it would be helpful to have it noted in the
documentation.

On Fri, Sep 25, 2009 at 11:52 AM, Nick Dokos  wrote:
> Darlan Cavalcante Moreira  wrote:
>
>> How could I miss that?
>>
>> I used the command customize-variable and I was trying to auto-complete with 
>> TAB
>> something similar to "org-preview" or "org--preview".  Now I see that the
>> options are in the group Org Latex.
>>
>> May I suggest that these two variables are mentioned in the documentation of 
>> the
>> org-preview-latex-fragment function?
>>
>
> This is the second time in the last couple of weeks that somebody looked
> for this and did not find it. Nicolas Goaziou had a very similar
> reaction (see http://article.gmane.org/gmane.emacs.orgmode/17544 for
> more). So it seems that the option is indeed well hidden :-) I'd second
> the motion to add a mention of org-format-latex-options in the function
> doc and perhaps add a more extended mention in section 11.4 of the
> manual ("Processing LaTeX fragments") as well. Here is some suggested
> text:
>
> ,
> | ...
> | `C-c C-c'
> |      Remove the overlay preview images.
> |
> |    You can customize the variable `org-format-latex-options' to
> | influence some aspects of the preview. In particular, the :scale (and
> | for HTML export, :html-scale) property can be used to adjust the
> | size of the preview images.
> |
> |    During HTML export (*note HTML export::), all LaTeX fragments are
> | ...
> `
>
> Thanks,
> Nick
>
>
>
>
>
>


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


[Orgmode] Re: org-babel: interactive terminal support

2009-09-25 Thread Benjamin Andresen
Hey Dan,

Dan Davison  writes:

> Hi Benny,
>
> This looks very interesting and I think it's extremely likely that we'll
> want to include your code -- thanks very much. Having said that, I'm
> being a bit dense: would you mind expanding a bit on what this currently
> does, and what it has the potential to do?

All it currently does it show you a terminal which gets the source
code block send to. Just like an inferior process.

I've made a gif of the channels.org example from my first mail:
http://github.com/bandresen/org-babel-screen/blob/master/channels.anim.gif

The way I currently see it, it somehow works as an interactive makefile.

An example of a use that I have is that want to extract several frames
out of a video file and convert them to a gif animation.

It's a commented org file with several steps such as:

* find the part you want to extract
#+begin_src screen :session create-gif
  mplayer -ao null -osdlevel 3 /tmp/videofile.avi 
#+end_src
[...snip...]
* convert selected frames to gif
#+begin_src screen :session create-gif
  convert -delay 100 -loop 0 .qiv-select/* animation.gif
#+end_src

I don't know how useful it is to other people, but because it basically
gives you the power over a terminal emulator you could do anything in it
that you can do in a normal terminal. Except better controlled and
documented.

Or one could use a standardized notation for keypresses and let screen
translate them for you. Example:

#+begin_src screen :session vimtutorial
  vimtutor
  85G
  fcx
  EEx
  llx
  ^Vlllx
#+end_src

Which might be useful in some way.

Another thing that might be possible is to simulate an 'expect' like
behavior by using screen's capability to dump the output of commands.
It's certainly possible, but replacing an app like 'expect' is no small
task. :-)

br,
benny


___
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-babel: interactive terminal support

2009-09-25 Thread Dan Davison
Benjamin Andresen  writes:

> Hello,
>
> after seeing org-babel I immediately thought of the eev project by
> Eduardo Ochs (http://angg.twu.net/)
>
> Basically I wanted to do what he does in this video:
> http://angg.twu.net/eev-current/anim/channels.anim.html
>
> So I wrote a small org-babel gnu screen interface.
> Eev does the same with "expect" but is very line-centric. And GNU Screen
> can slurp in whole files. (I guess one could support several backends if
> this proves useful)

Hi Benny,

This looks very interesting and I think it's extremely likely that we'll
want to include your code -- thanks very much. Having said that, I'm
being a bit dense: would you mind expanding a bit on what this currently
does, and what it has the potential to do?

Dan

>
> The translated org-babel syntax looks like this:
>
> * Listen on port 1234
>   #+begin_src screen :session receiver :results silent
> netcat -l -p 1234
>   #+end_src
>
> * Send things to port 1234
>   #+begin_src screen :session sender :results silent
> {   
>  echo hi
>  sleep 1
>  echo bye 
>  sleep 1
> } | netcat -c localhost 1234
>   #+end_src
>
> I've put the code on github if anyone is interested in this:
> http://github.com/bandresen/org-babel-screen
>
> A few things are still hardcoded, like the use of /bin/zsh. If you guys
> think this is a worthwhile addition to org-babel, let me know what the
> right parameter would be.
>
> HTH,
> benny
>
>
>
> ___
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


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


[Orgmode] Table formula referencing cells with HH:MM time strings, incorrect result

2009-09-25 Thread Jeff Kowalczyk
I am trying to use HH:MM time strings from clocktables in a table formula. First
time I've used table formulas, BTW.

When fetching the cells as remote(), I got strange results. The behavior is the
same for regular references, so here's a regular-reference test case:

| 17:36 | 17:36 |
| 19:45 | 19:45 |
| 24:53 | 24:53 |
| 40:57 | 40:57 |
| 43:02 |  43:2 |
| 45:14 | 45:14 |
| 46:09 |  46:9 |
| 48:56 |   6:7 |
| 49:28 |   7:4 |
| 55:18 | 55:18 |
| 80:10 | 8 |
| 88:14 |  44:7 |
#+TBLFM: $2=$1

The objective is to multiply time (decimal) by a constant, so if anyone has a
tip for parsing HH:MM using a function instead of reinventing, thanks in 
advance.

Thanks,
Jeff



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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Nick Dokos
Nick Dokos  wrote:

> Paul Burkander  wrote:
> 
> > ... 
> > Anyway, I solved my original problem, which as you might recall was
> > that I got an empty box when I tried to preview.
> > 
> > I installed texlive-latex-extras.  It has since worked.  If that
> > package is needed, it would be helpful to have it noted in the
> > documentation.
> > 
> 
> Do you know what in texlive-latex-extra fixes the problem? It might
> merit a mention in the org docs, but not everybody uses Debian/Ubuntu, so
> a more specific reference might be more useful.
> 

Looks like the culprit is fullpage.sty - seems to be required by the LaTeX
code that org-preview-latex-fragment generates.

Nick








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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Nick Dokos
Paul Burkander  wrote:

> It doesn't seem nice that my thread was hijacked.

Sorry - that's indeed annoying when you are left to fend for yourself,
while we all go in a different direction.

> 
> Anyway, I solved my original problem, which as you might recall was
> that I got an empty box when I tried to preview.
> 
> I installed texlive-latex-extras.  It has since worked.  If that
> package is needed, it would be helpful to have it noted in the
> documentation.
> 

Do you know what in texlive-latex-extra fixes the problem? It might
merit a mention in the org docs, but not everybody uses Debian/Ubuntu, so
a more specific reference might be more useful.

Thanks,
Nick


___
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] Must less available colors under text-mode

2009-09-25 Thread Suresh Kumar
At Thu, 24 Sep 2009 17:43:08 -0400,
Jing Su @ Gmail wrote:
> 
> [1  ]
> Dear all,
> 
> I realized that under text-mode only 8 colors are available for 
> org-faces, in contrast that all colors defined in rgb.txt are available 
> in graphic mode.
What does M-x list-colors-display say?


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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Nick Dokos
Darlan Cavalcante Moreira  wrote:

> How could I miss that?
> 
> I used the command customize-variable and I was trying to auto-complete with 
> TAB
> something similar to "org-preview" or "org--preview".  Now I see that the
> options are in the group Org Latex.
> 
> May I suggest that these two variables are mentioned in the documentation of 
> the
> org-preview-latex-fragment function?
> 

This is the second time in the last couple of weeks that somebody looked
for this and did not find it. Nicolas Goaziou had a very similar
reaction (see http://article.gmane.org/gmane.emacs.orgmode/17544 for
more). So it seems that the option is indeed well hidden :-) I'd second
the motion to add a mention of org-format-latex-options in the function
doc and perhaps add a more extended mention in section 11.4 of the
manual ("Processing LaTeX fragments") as well. Here is some suggested
text:

,
| ...
| `C-c C-c'
|  Remove the overlay preview images.
| 
|You can customize the variable `org-format-latex-options' to
| influence some aspects of the preview. In particular, the :scale (and
| for HTML export, :html-scale) property can be used to adjust the
| size of the preview images.
| 
|During HTML export (*note HTML export::), all LaTeX fragments are
| ...
`

Thanks,
Nick







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


[Orgmode] Re: Export bug: _{ chars in enough headlines, pdflatex export fails

2009-09-25 Thread Jeff Kowalczyk
Nick Dokos  hp.com> writes:
> I don't understand why you need open braces in your headlines
> at all - can't you just get rid of them?

Hi Nick. I'm all set, I did remove brackets and underscores from headlines in
this one large document. Now that I know about it, I won't use the characters in
future things that might become headlines, like git commit messages.

FWIW, A double-underscore could reasonably be encountered by users writing
headlines about programs. This thread is helpful documentation for that 
scenario.

Thanks,
Jeff



___
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] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-25 Thread Nick Dokos
Jeff Kowalczyk  wrote:

> Export to pdflatex fails if underscore or unclosed bracket characters are in 
> enough headlines.
> 
> Thanks,
> Jeff
> 

Open braces without the corresponding closing brace on the same line
caused errors before: Carsten fixed one (in an ATTR_LaTeX header iirc),
but I have run into at least one more. In my case, the open braces were
part of LaTeX constructs, so I could work around the problem by fooling
the org latex exporter like so:

#+BEGIN_LaTeX
\someconstruct{ %} dummy closing brace in comment
#+END_LaTeX
foo bar
#+BEGIN_LaTeX
}   % the real closing brace
#+END_LaTeX

(One could also use \begin{env}/\end{end} in most cases, but there are
still some cases where that option is not available, afaik).

That will not work as well for you. But I don't understand why you need
open braces in your headlines at all - can't you just get rid of them?

Thanks,
Nick



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


[Orgmode] Re: scripting challenge

2009-09-25 Thread Bernt Hansen
Carsten Dominik  writes:

> good catch, no, it does not.  This will:
>
> perl -ap -e 's/]*>|<\/div>//g' orgoutput.html > simple.html

This works too

perl -ap -e 's@]*>@@g' org-mode.html >/tmp/simple.html

-Bernt


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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Darlan Cavalcante Moreira
How could I miss that?

I used the command customize-variable and I was trying to auto-complete with TAB
something similar to "org-preview" or "org--preview".  Now I see that the
options are in the group Org Latex.

May I suggest that these two variables are mentioned in the documentation of the
org-preview-latex-fragment function?

Thanks Carsten!

-- 
Darlan Cavalcante Moreira
darc...@gmail.com


___
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: scripting challenge (was: Re: [Orgmode] HTML export without all tags)

2009-09-25 Thread Carsten Dominik

Hi Giovanni,

good catch, no, it does not.  This will:

perl -ap -e 's/]*>|<\/div>//g' orgoutput.html > simple.html

Many divs may be in the same ling because of the /g switch on the  
substitution command.  It causes the rest of the line after the match  
to be parsed again.


- Carsten

On Sep 25, 2009, at 3:15 PM, Giovanni Ridolfi wrote:


If I could get org-mode to export pure html without

all the  tags I think I am done.
I guess the easiest would be to just post-process the html
file
produced by Org.  For example with perl (untested):

perl -ap -e 's/]*>//g' orgoutput.html >
simple.html



[OT] comp.perl.group ;-)

Carsten,

I'curious (and also a bit provocative ;-),
does your command work also for  tags ?

Is there a way to remove both  and 
in the same line?

cheers,
Giovanni






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




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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Carsten Dominik


On Sep 25, 2009, at 3:06 PM, Darlan Cavalcante Moreira wrote:

Is there a variable where one can customize the options passed to  
dvipng?
I use a high resolution and the generated image is small in the  
Emacs buffer and hard to read.


Yes there is.  Take a look at org-format-latex-options and change  
the :scale and :html-scale options


- Carsten



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


scripting challenge (was: Re: [Orgmode] HTML export without all tags)

2009-09-25 Thread Giovanni Ridolfi
> > If I could get org-mode to export pure html without
> all the  tags I think I am done. 
> I guess the easiest would be to just post-process the html
> file
> produced by Org.  For example with perl (untested):
> 
> perl -ap -e 's/]*>//g' orgoutput.html >
> simple.html
> 

[OT] comp.perl.group ;-)

Carsten,  

I'curious (and also a bit provocative ;-), 
does your command work also for  tags ?

Is there a way to remove both  and  
in the same line?

cheers,
Giovanni






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


[Orgmode] Re: HTML export without all tags

2009-09-25 Thread Matt Lundin
Carsten Dominik  writes:

> On Sep 25, 2009, at 2:00 PM, Detlef Steuer wrote:
>
>> Is there a way to get rid of all div tags in exported html?
>
> I guess the easiest would be to just post-process the html file
> produced by Org.  For example with perl (untested):
>
> perl -ap -e 's/]*>//g' orgoutput.html > simple.html

So simple and elegant. It's amazing how many simple tricks you learn by
hanging around this list. :)

- Matt


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


Re: [Orgmode] Problem with LaTeX snippets preview

2009-09-25 Thread Darlan Cavalcante Moreira
Is there a variable where one can customize the options passed to dvipng?
I use a high resolution and the generated image is small in the Emacs buffer 
and hard to read.
-- 
Darlan Cavalcante Moreira
darc...@gmail.com


___
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


R: [Orgmode] Re: HTML export without all tags

2009-09-25 Thread Giovanni Ridolfi
-- Ven 25/9/09, Matt Lundin  ha scritto:
> Detlef Steuer 
> writes:
> 
> > If I could get org-mode to export pure html without
> > all the  tags
> 
> AFAIK, the  tags are hard-coded into
> org-export-as-html. 
> 
> You might try org-export-generic in the contrib directory
> of the git repository. 
> 
> Another (more complex) solution: export to LaTeX and then
> use a
> converter such as hevea or tex4ht to create a basic html
> file.
> 

Another solution: 
1. write a function to remove  and  tags
2. call that function in a post-processing hook. 
   I'm pretty sure there's a post processing hook 
   for html-export.

cheers,
Giovanni







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


Re: [Orgmode] HTML export without all tags

2009-09-25 Thread Carsten Dominik


On Sep 25, 2009, at 2:00 PM, Detlef Steuer wrote:


Hi!

I'm in the process of adapting cmsimple (www.cmsimple.dk) to use our  
university's corporate design. Cmsimple in its core is a php script,  
which takes _one_
html file and creates the complete layout of a site on the fly while  
splitting the file apart at h[123] levels.


Now I want to create that one html file with org-mode. What else?

If I could get org-mode to export pure html without all the   
tags I think I am done. But how to explain to orgmode to be dumb?


The variable Org-Export-Html-Style-Include-Default ist set to nil,  
so no definitions included. Nevertheless the way divs are grouped  
around headlines seems to disturb cmsimple and its layout.

At least, if I remove all divs the layout is just fine.

Is there a way to get rid of all div tags in exported html?


I guess the easiest would be to just post-process the html file
produced by Org.  For example with perl (untested):

perl -ap -e 's/]*>//g' orgoutput.html > simple.html

HTH

- Carsten


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


[Orgmode] Re: HTML export without all tags

2009-09-25 Thread Matt Lundin
Detlef Steuer  writes:

> I'm in the process of adapting cmsimple (www.cmsimple.dk) to use our
> university's corporate design. Cmsimple in its core is a php script,
> which takes _one_ html file and creates the complete layout of a site
> on the fly while splitting the file apart at h[123] levels.
>
> Now I want to create that one html file with org-mode. What else?
>
> If I could get org-mode to export pure html without all the  tags
> I think I am done. But how to explain to orgmode to be dumb?

AFAIK, the  tags are hard-coded into org-export-as-html. 

You might try org-export-generic in the contrib directory of the git
repository. 

Another (more complex) solution: export to LaTeX and then use a
converter such as hevea or tex4ht to create a basic html file.

Too bad cmsimple doesn't parse org source files instead of html! ;)

- Matt


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


[Orgmode] HTML export without all tags

2009-09-25 Thread Detlef Steuer
Hi!

I'm in the process of adapting cmsimple (www.cmsimple.dk) to use our 
university's corporate design. Cmsimple in its core is a php script, which 
takes _one_
html file and creates the complete layout of a site on the fly while splitting 
the file apart at h[123] levels.

Now I want to create that one html file with org-mode. What else? 

If I could get org-mode to export pure html without all the  tags I think 
I am done. But how to explain to orgmode to be dumb?

The variable Org-Export-Html-Style-Include-Default ist set to nil, so no 
definitions included. Nevertheless the way divs are grouped around headlines 
seems to disturb cmsimple and its layout. 
At least, if I remove all divs the layout is just fine.

Is there a way to get rid of all div tags in exported html?

Thx
Detlef 



___
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] Export bug: _ { chars in enough headlines, pdflatex export fails

2009-09-25 Thread Jeff Kowalczyk
Carsten Dominik  gmail.com> writes:
> 
> Hi Jeff,
> 
> may I ask what the practical use case of _{ is?
> 
> - Carsten

Hi Carsten,

There's no practical use case ;) 

I reported with a test case because it could be that _ and { are not escaped in 
clocktable summary in the same way that they are in headlines and body text. I 
updated the test case to fail with __foo, which could occur in a large python 
documentation project, for example.

These were accidental occurrences, which I can fix in my document. I truncated 
first lines of a git repository commit messages. The original text read:

   "... import acme.foo_{inv,det,pay} from CSV ..."

The truncate point happened to fall between the brackets in about 250 
headlines. Given a sufficiently large file, export triggered enough errors that 
LaTeX gave up.

I simplified the test case file below. Export fails with the "that's 100 
errors" message. The behavior manifests for two adjacent characters _{, __, or 
{{. Export succeeds if the clocktable summary is removed.

Thanks,
Jeff

---

#+OPTIONS: toc:nil ^:nil
* Headline
#+BEGIN: clocktable :maxlevel 2 :scope subtree
Clock summary at [2009-09-25 Fri 05:04]

| L | Headline   | Time   |  |
|---+++--|
|   | *Total time*   | *2:01* |  |
|---+++--|
| 1 | Headline   | 2:01   |  |
| 2 | Headline __foo 0   || 0:01 |
| 2 | Headline __foo 1   || 0:01 |
| 2 | Headline __foo 2   || 0:01 |
| 2 | Headline __foo 3   || 0:01 |
| 2 | Headline __foo 4   || 0:01 |
| 2 | Headline __foo 5   || 0:01 |
| 2 | Headline __foo 6   || 0:01 |
| 2 | Headline __foo 7   || 0:01 |
| 2 | Headline __foo 8   || 0:01 |
| 2 | Headline __foo 9   || 0:01 |
| 2 | Headline __foo 10  || 0:01 |
| 2 | Headline __foo 11  || 0:01 |
| 2 | Headline __foo 12  || 0:01 |
| 2 | Headline __foo 13  || 0:01 |
| 2 | Headline __foo 14  || 0:01 |
| 2 | Headline __foo 15  || 0:01 |
| 2 | Headline __foo 16  || 0:01 |
| 2 | Headline __foo 17  || 0:01 |
| 2 | Headline __foo 18  || 0:01 |
| 2 | Headline __foo 19  || 0:01 |
| 2 | Headline __foo 20  || 0:01 |
| 2 | Headline __foo 21  || 0:01 |
| 2 | Headline __foo 22  || 0:01 |
| 2 | Headline __foo 23  || 0:01 |
| 2 | Headline __foo 24  || 0:01 |
| 2 | Headline __foo 25  || 0:01 |
| 2 | Headline __foo 26  || 0:01 |
| 2 | Headline __foo 27  || 0:01 |
| 2 | Headline __foo 28  || 0:01 |
| 2 | Headline __foo 29  || 0:01 |
| 2 | Headline __foo 30  || 0:01 |
| 2 | Headline __foo 31  || 0:01 |
| 2 | Headline __foo 32  || 0:01 |
| 2 | Headline __foo 33  || 0:01 |
| 2 | Headline __foo 34  || 0:01 |
| 2 | Headline __foo 35  || 0:01 |
| 2 | Headline __foo 36  || 0:01 |
| 2 | Headline __foo 37  || 0:01 |
| 2 | Headline __foo 38  || 0:01 |
| 2 | Headline __foo 39  || 0:01 |
| 2 | Headline __foo 40  || 0:01 |
| 2 | Headline __foo 41  || 0:01 |
| 2 | Headline __foo 42  || 0:01 |
| 2 | Headline __foo 43  || 0:01 |
| 2 | Headline __foo 44  || 0:01 |
| 2 | Headline __foo 45  || 0:01 |
| 2 | Headline __foo 46  || 0:01 |
| 2 | Headline __foo 47  || 0:01 |
| 2 | Headline __foo 48  || 0:01 |
| 2 | Headline __foo 49  || 0:01 |
| 2 | Headline __foo 50  || 0:01 |
| 2 | Headline __foo 51  || 0:01 |
| 2 | Headline __foo 52  || 0:01 |
| 2 | Headline __foo 53  || 0:01 |
| 2 | Headline __foo 54  || 0:01 |
| 2 | Headline __foo 55  || 0:01 |
| 2 | Headline __foo 56  || 0:01 |
| 2 | Headline __foo 57  || 0:01 |
| 2 | Headline __foo 58  || 0:01 |
| 2 | Headline __foo 59  || 0:01 |
| 2 | Headline __foo 60  || 0:01 |
| 2 | Headline __foo 61  || 0:01 |
| 2 | Headline __foo 62  || 0:01 |
| 2 | Headline __foo 63  || 0:01 |
| 2 | Headline __foo 64  || 0:01 |
| 2 | Headline __foo 65  || 0:01 |
| 2 | Headline __foo 66  || 0:01 |
| 2 | Headline __foo 67  || 0:01 |
| 2 | Headline __foo 68  || 0:01 |
| 2 | Headline __foo 69  || 0:01 |
| 2 | Headline __foo 70  || 0:01 |
| 2 | Headline __foo 71  || 0:01 |
| 2 | Headline __foo 72  || 0:01 |
| 2 | Headline __foo 73  || 0:01 |
| 2 | Headline __foo 74  || 0:01 |
| 2 | Headline __foo 75  || 0:01 |
| 2 | Headline __foo 76  || 0:01 |
| 2 | Headline __foo 77  || 0:01 |
| 2 | Headline __foo 78  || 0:01 |
| 2 | Headline __foo 79  || 0:01 |
| 2 | Headline __foo 80  || 0:01 |
| 2 | Headline __foo 81  || 0:01 |
| 2 | Headline __foo 82  || 0:01 |
| 2 | Headline __foo 83  || 0:01

Re: [Orgmode] Export bug: LaTeX TOC headline numbers above 100 overlap headline

2009-09-25 Thread Tim Burt
Carsten Dominik writes:
 > On Sep 25, 2009, at 2:10 AM, Jeff Kowalczyk wrote:
 > 
 > > When the headline count for a pdftolatex export gets to be more than  
 > > 100 lines, the TOC renders with the headline number directly  
 > > touching the headline text. More than 1,000, and it starts to overlap.
 > 
 > This is a LaTeX issue, which I do not know how to fix.
 > 
 > - Carsten
 > 
 > >
 > > It would seem that LaTeX calculates the space to allocate for the  
 > > headline number based on too few initial entries.
 > >
 > > I have included a simple test case below.

* Executive Summary

Add the following two lines to the org file (after ensuring you have
the tocloft.sty package installed and visible to LaTeX).
 #+LaTeX_HEADER: \usepackage{tocloft}
 #+LaTeX_HEADER: \setlength{\cftsecnumwidth}{3em}

* Supporting Jabber

The formatting for Table of Contents (and its kin) is set deep in the
class definitions.  The tocloft package provides user-level commands
to modify those internals which the tocloft documentation describes
quite well, including a figure that shows a value called 'numwidth' is
the length of the box in which the number is set.  This value can be
different for each sectioning level (e.g. chapter, section,
subsection).  In the test case below, the first org level[1] is being
exported as a \section{}.  The box length for section can be set by
the value of \cftsecnumwidth using the \setlength command, as in
 \setlength{\cftsecnumwidth}{3em}
The second argument must have a unit of length which in this example
is 'em' (the width of a capital M).  This allows the width of the box
to scale with font changes, but other units are certainly permissible
(e.g. cm, mm, in).


Good morning,
Tim


[1] Note: This test case was run using the default org export
variables for LaTeX which means the article class was used.  If
another class is used (e.g. report) then the first org level should be
exported as a \chapter{}.  In this case, replace \cftsecnumwidth with
\cftchapnumwidth. 
 > >
 > > Thanks,
 > > Jeff
 > >
 > > * Headline 0
 > > * Headline 1
 > > * Headline 2
 > > * Headline 3
 > > * Headline 4
 > > * Headline 5
 > > * Headline 6
 > > * Headline 7
 > > * Headline 8
 > > * Headline 9
 > > * Headline 10
 > > * Headline 11
 > > * Headline 12
 > > * Headline 13
 > > * Headline 14
 > > * Headline 15
 > > * Headline 16
 > > * Headline 17
 > > * Headline 18
 > > * Headline 19
 > > * Headline 20
 > > * Headline 21
 > > * Headline 22
 > > * Headline 23
 > > * Headline 24
 > > * Headline 25
 > > * Headline 26
 > > * Headline 27
 > > * Headline 28
 > > * Headline 29
 > > * Headline 30
 > > * Headline 31
 > > * Headline 32
 > > * Headline 33
 > > * Headline 34
 > > * Headline 35
 > > * Headline 36
 > > * Headline 37
 > > * Headline 38
 > > * Headline 39
 > > * Headline 40
 > > * Headline 41
 > > * Headline 42
 > > * Headline 43
 > > * Headline 44
 > > * Headline 45
 > > * Headline 46
 > > * Headline 47
 > > * Headline 48
 > > * Headline 49
 > > * Headline 50
 > > * Headline 51
 > > * Headline 52
 > > * Headline 53
 > > * Headline 54
 > > * Headline 55
 > > * Headline 56
 > > * Headline 57
 > > * Headline 58
 > > * Headline 59
 > > * Headline 60
 > > * Headline 61
 > > * Headline 62
 > > * Headline 63
 > > * Headline 64
 > > * Headline 65
 > > * Headline 66
 > > * Headline 67
 > > * Headline 68
 > > * Headline 69
 > > * Headline 70
 > > * Headline 71
 > > * Headline 72
 > > * Headline 73
 > > * Headline 74
 > > * Headline 75
 > > * Headline 76
 > > * Headline 77
 > > * Headline 78
 > > * Headline 79
 > > * Headline 80
 > > * Headline 81
 > > * Headline 82
 > > * Headline 83
 > > * Headline 84
 > > * Headline 85
 > > * Headline 86
 > > * Headline 87
 > > * Headline 88
 > > * Headline 89
 > > * Headline 90
 > > * Headline 91
 > > * Headline 92
 > > * Headline 93
 > > * Headline 94
 > > * Headline 95
 > > * Headline 96
 > > * Headline 97
 > > * Headline 98
 > > * Headline 99
 > > * Headline 100
 > > * Headline 101
 > > * Headline 102
 > > * Headline 103
 > > * Headline 104
 > > * Headline 105
 > > * Headline 106
 > > * Headline 107
 > > * Headline 108
 > > * Headline 109
 > > * Headline 110
 > > * Headline 111
 > > * Headline 112
 > > * Headline 113
 > > * Headline 114
 > > * Headline 115
 > > * Headline 116
 > > * Headline 117
 > > * Headline 118
 > > * Headline 119
 > > * Headline 120
 > >
 > >
 > >
 > >
 > >
 > >
 > >
 > >
 > > ___
 > > Emacs-orgmode mailing list
 > > Remember: use `Reply All' to send replies to the list.
 > > Emacs-orgmode@gnu.org
 > > http://lists.gnu.org/mailman/listinfo/emacs-orgmode
 > 
 > 
 > 
 > ___
 > Emacs-orgmode mailing list
 > Remember: use `Reply All' to send replies to the list.
 > Emacs-orgmode@gnu.org
 > http://lists.gnu.org/mailman/listinfo/emacs-orgmode


___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmod

Re: [Orgmode] Re: How to add comments in a plain list

2009-09-25 Thread Eric S Fraga
At Thu, 24 Sep 2009 10:27:57 +0100, Carsten Dominik wrote:
> On Sep 22, 2009, at 7:30 PM, René wrote:
> > Unfortunately, in this case Emacs doesn't fontify those lines as if
> > they were comments.
> 
> It does now.
> 
> - Carsten

Carsten, thanks for this.  It works perfectly.

But this leads to me a more general question for all of you emacs
experts: comments in my org files typically consist of /less
important/ text and so I like to de-emphasise the text by changing the
face used (to a light gray, in my case, compared with the default of
firebrick).  However, for programming, I prefer the default.  Can
somebody suggest how I can have a different font-lock-comment-face for
org-mode files without making a global change?  Should I put something
in the org-mode hook?

Or even on a per-file basis?  I've tried using Emacs local variables
but haven't found the right incantation... :(

Any suggestions more than welcome!

Thanks,
eric


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


Re: [Orgmode] bug?: C-e passes ellipses if no tags are present

2009-09-25 Thread Alan E. Davis
Thank you for fixing this.

On Fri, Sep 25, 2009 at 5:00 PM, Carsten Dominik
wrote:

>
> Yes, this counts as a bug.  However, I don't know why you put this in
> context with remember.  It has nothing to do with that.
>


Perhaps it recalls remember to my mind because I lean heavily on remember
for one of my most typical uses of org-mode: posting miscellaneous notes of
all kinds in a number of specific *.org files.  And I have fallen into the
habit of committing the notes to their targets as soon as I've typed the
headline, and immediately going to work on that in the target file.  I don't
often type tags immediately, which leads to this problem.

It works for me.

Alan
___
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] Possible Bug with :html-extension in HTML Exporter

2009-09-25 Thread Ian Barton

Ian Barton wrote:
I am trying to export a project as php files. I realize that this an 
offence against the XHTML Gods, which is probably why I am having a 
problem.


The relevant bit of my org-publish-project-alist looks like:

 ("org-mobile"
  :base-directory "~/nfs/firewall/Documents/org/"
  :base-extension "org"
  :publishing-directory "~/nfs/firewall/public_html/org-mobile/"
  :recursive t
  :publishing-function org-publish-org-to-html
  :headline-levels 4 ; Just the default for this 
project.

  :auto-preamble t
  :auto-index t
  :html-extension php
  :index-filename "sitemap.org"
  :index-title "Sitemap"
  )

I have tried both php and "php". However, the exporter insists on the 
"One True Path" of exporting everything with a .html extension.


I am using df3fca503e9136edea8a1defe54926c3d3c03b63 
refs/remotes/origin/HEAD.


It's working correctly now after quitting and re-starting emacs. Sorry 
for the noise.


Ian.


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


Re: [Orgmode] bug?: C-e passes ellipses if no tags are present

2009-09-25 Thread Carsten Dominik


On Sep 24, 2009, at 11:26 PM, Darlan Cavalcante Moreira wrote:


At Fri, 25 Sep 2009 07:08:31 +1000,
Alan E. Davis wrote:


This may not be a bug, but it bugs me alot.  When using remember to  
store a

note, C-e passes the ellipses.  I am using an alternate font for the
ellipses.  I live in utter terror of deleting ellipses, so I am  
keenly aware

anymore when something is out of the ordinary.

It doesn't feel right to me to pass the ellipses.  When a tag is  
added, C-e

goes to the end of the headline, and I am able to proceed normally.

The ideal outcome for me, would be if C-e always moved before the  
ellipses.

Is this contrary to expectations?

Thank you,

Alan Davis


In addition to this, is is possible to map the Home and End keys to  
the same
functions of C-a and C-e, respectively?  I prefer the Home and End  
keys instead
of C-a and C-e and, although this can be easily accomplished with  
some lines in

the dotemacs file, it's good to have it as a default, IMHO.


I d think this makes sense, in particular because the default setting is
org-special-ctrl-a/e set to nil.

I fixed this.

- Carsten



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


Re: [Orgmode] bug?: C-e passes ellipses if no tags are present

2009-09-25 Thread Carsten Dominik


On Sep 24, 2009, at 10:08 PM, Alan E. Davis wrote:


This may not be a bug, but it bugs me alot.



Yes, this counts as a bug.  However, I don't know why you put this in
context with remember.  It has nothing to do with that.

The bug is fixed.

- Carsten

  When using remember to store a note, C-e passes the ellipses.  I  
am using an alternate font for the ellipses.  I live in utter terror  
of deleting ellipses, so I am keenly aware anymore when something is  
out of the ordinary.


It doesn't feel right to me to pass the ellipses.  When a tag is  
added, C-e goes to the end of the headline, and I am able to proceed  
normally.


The ideal outcome for me, would be if C-e always moved before the  
ellipses.  Is this contrary to expectations?


Thank you,

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




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