Re: [Orgmode] Bug: inline image display not working when org-indent-mode active, follow-up

2010-08-05 Thread Erik Iverson

On 08/05/2010 03:34 AM, Martin Pohlack wrote:

Hi,

On 05.08.2010 04:19, Erik Iverson wrote:

In the past few weeks, I found that the overlays of inline images in
my org-mode
files would flash quickly and then be deleted when using
org-indent-mode. This
also happened when re-running an org-babel source block that generates
graphical
output, even without org-indent-mode turned on.[1]

I believe I've tracked this down to the following patch,

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25738.html





If a functions want to elide trigger the modification hooks it should
bind: inhibit-modification-hooks.





Could you try to find out the path from where these modifications
occur, insert a relevant bind there, and see if this helps?


OK, seems like I got it!

Issue 1:

The overlays would disappear when org-indent-mode was turned on.

Solution:

Simply bind inhibit-modification-hooks in org-indent-refresh-section. Do other 
functions in org-indent.el need this?  Possibly, but it seems like this worked 
in my basic testing.


diff --git a/lisp/org-indent.el b/lisp/org-indent.el
index 45865d1..f6b0487 100644
--- a/lisp/org-indent.el
+++ b/lisp/org-indent.el
@@ -251,7 +251,7 @@ Assumes that BEG is at the beginning of a line."
 Point is assumed to be at the beginning of a headline."
   (interactive)
   (when org-indent-mode
-(let (beg end)
+(let ((beg end) (inhibit-modification-hooks t))
   (save-excursion
(when (ignore-errors (org-back-to-heading))
  (setq beg (point))


Issue 2:

The overlays would quickly appear, then disappear when running an org-babel 
source block that generates graphical output, say, in R.


This was actually tracked down to using pabbrev.el [2] in my org buffers.  Ugh. 
Since this isn't org related, there's nothing in org to fix, but on the very 
small chance someone else ever has their inline images disappearing in org-mode, 
and uses pabbrev mode, I fixed it by simply binding inhibit-modification-hooks 
in the let block in pabbrev-mark-add-word.


[2] http://homepages.cs.ncl.ac.uk/phillip.lord/download/emacs/pabbrev.el

___
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: How do you use call and lob in org-babel?

2010-08-05 Thread Eric Schulte
Dan Davison  writes:

> Hi I.S.,
>
> Inquisitive Scientist  writes:
>
>> Dear Experts,
>>
>> I am confused about how to use lob and call in org-babel. First I
>> define a simple function like square:
>> #+srcname: square(x)
>> #+begin_src python
>> return x*x
>> #+end_src
>>
>> A line like
>> : #+lob: square(x=2)
>> does not seem to produce any result either in the buffer or on export:
>> #+lob: square(x=2)
>>
>> The same seems to happen with call:
>> : #+call: square(x=2)
>> #+call: square(x=2)
>
> I'm not seeing this. The following works for me with C-c C-c on the
> lob/call lines. However, note that the #+call line will *appear* not to
> do anything as things stand, because it sees the existing results block
> created by the #+lob call.
>
> #+srcname: square(x)
> #+begin_src python
> return x*x
> #+end_src
>
> #+lob: square(x=2)
>
> #+results: square(x=2)
> : 4
>
> #+call: square(x=2)
>

An equivalent example with slightly more visible output

--8<---cut here---start->8---
#+source: time
#+begin_src emacs-lisp
  (current-time-string)
#+end_src

#+call: time()

#+results: time()
: Thu Aug  5 20:45:34 2010
--8<---cut here---end--->8---

Note, currently the parenthesis after "time" are required, which perhaps
shouldn't be the case -- Eric

>
>
> Is the above definitely not working for you? What version of org are you
> using?
>
> Dan
>
>>
>> Instead, to get things to work I need to do something like:
>> : | 4 |
>> : #+TBLFM: @1$1='(sbe "square" (x 2))
>> to get:
>> | 4 |
>> #+TBLFM: @1$1='(sbe "square" (x 2))
>>
>> Thanks,
>> -I.S.
>> ___
>> 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

___
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: question about chaining function calls in org-babel

2010-08-05 Thread Eric Schulte
Dan Davison  writes:

[...]
>
> | mean   |
> ||
> | #ERROR |
> #+TBLFM: @2$1='(sbe "python-mean" (x (sbe "tbl-example-data" (seed 4) (size 
> 16
>
> I *believe* that there is no expectation for this to work, because sbe
> is an elisp function (well, a macro), and not a source block. In other
> words, the first sbe is expecting a source block reference, whereas what
> it gets is this lisp form:
>
> (sbe "tbl-example-data" (seed 4) (size 16))
>
> My guess is that sbe does not undertake to evaluate a lisp form
> occurring in that context. But I admit that I still find these
> complicated macros more or less incomprehensible, so we could do with
> Eric's input here.
>

Dan is correct, the example above with nested calls to sbe will not
work, something like the following at least has the possibility of
working.

| mean   |
||
| #ERROR |
#+TBLFM: @2$1='(sbe "python-mean" (x "tbl-example-data(seed=4,size=6)"))

Unfortunately I don't have the time to test this right now.

Best -- Eric

___
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] persistent frame for agenda

2010-08-05 Thread Buck Brody
Does anyone have any ideas on how I could keep my agenda frame from moving
when new frames are opened?  For instance, when I tag something in my
agenda, it usually will alter the position of the current agenda frame.  It
restores after the tagging is completed, but I'd like the agenda to remain
undisturbed.

Thanks
___
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] Re: Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Dan Davison
Sebastian Rose  writes:

> Dan Davison  writes:
>> amscopub-m...@yahoo.com writes:
>>
>>> Is there a way to control the resolution of PNG LaTeX formulas when you 
>>> export to HTML?
>>>
>>> You can control the font size directly in the header but there doesn't seem 
>>> to be a way to use org-mode to control the resolution...
>>>
>>> BTW, I'm not exporting to LaTeX directly because I'm using PrinceXML to 
>>> convert the HTML file to a PDF.
>>
>> Hi Uriel,
>>
>> Could you tell us a bit about what the advantages of PrinceXML are? One
>> question I have is: is it possible to get vector graphics (ps, pdf)
>> incorporated into the resulting pdf? Is there an open source
>> alternative? (I've been doing this with "print to file" in the print
>> dialog box in a web browser in linux).
>
>
> htmldoc (see http://www.htmldoc.org/)
>
> It comes with a GUI and is free enough to be in Debian.

Thanks.

> Not sure if it is that perfect, but when ever I tried it it worked.
> Didn't use it for ages.  I use Org mode and LaTeX2e instead ;)

Can you point me to an example that shows how to make source code in
latex look (almost) as nice as html?



In case anyone has any enlightenment, a quick try suggests that htmldoc
doesn't work out-of-the-box on html produced by org-mode (error below).

/tmp> htmldoc --webpage -f x.pdf x.html
ERR011: Unable to parse HTML element on line 15!
PAGES: 1
BYTES: 39131
/tmp> sed -n 15p x.html 
 

[Orgmode] Re: MobileOrg for Android...issues

2010-08-05 Thread Holger Wenzel


> I do have my own WebDav server (Apache mod) but I'm a "security guy" so I
> only allow https.  Bad http, bad. :)

Even in your own private network? 

My setup was to have the webdav server only visible in my home wlan and
then sync the phone against that. 

Holger


___
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] Re: Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Sebastian Rose
Dan Davison  writes:
> Can you point me to an example that shows how to make source code in
> latex look (almost) as nice as html?


That is supposed to work with the `listings' package.  I havent tried
that yet.

I still use my old LaTeX headers and write verbatim LaTeX code.  I'd
like to switch though, since it's a lot to type.

Here is an example:

  \begin{codeblock}
  \keyword{public function}~\func{\_\_construct}~(\increaseindent[15]\doindent
  \variable{\$instance}~=~\konstante{MAP\_STANDARD\_JS\_INSTANCE},\doindent
  \variable{\$z}~=~\konstante{MAP\_STANDARD\_ZOOM},\doindent
  \variable{\$centerX}~=~-1,\doindent
  \variable{\$centerY}~=~-1,\doindent
  \variable{\$highlights}~=~\keyword{true},\doindent
  \variable{\$spots}~=~\keyword{false}\doindent
  )\resetindent
  \end{codeblock}


Looks horrible, does it?

You can find the "listings.pdf" documentation here:

   http://www.ctan.org/tex-archive/macros/latex/contrib/listings/






Best wishes

  Sebastian
___
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] text color + highlight

2010-08-05 Thread Vinh Nguyen
Dear list,

I was wondering if there is an easy way to markup the color of the
text for html output (and highlight as well).  When I prepare meeting
minutes I'd like to color some things and highlight certain things.
Right now, I am using emphasizing a major portion of the text.  It
would be great to have colors and highlights to draw attention to
certain items.

Thanks.
Vinh

___
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: Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Sebastian Rose
Dan Davison  writes:
> amscopub-m...@yahoo.com writes:
>
>> Is there a way to control the resolution of PNG LaTeX formulas when you 
>> export to HTML?
>>
>> You can control the font size directly in the header but there doesn't seem 
>> to be a way to use org-mode to control the resolution...
>>
>> BTW, I'm not exporting to LaTeX directly because I'm using PrinceXML to 
>> convert the HTML file to a PDF.
>
> Hi Uriel,
>
> Could you tell us a bit about what the advantages of PrinceXML are? One
> question I have is: is it possible to get vector graphics (ps, pdf)
> incorporated into the resulting pdf? Is there an open source
> alternative? (I've been doing this with "print to file" in the print
> dialog box in a web browser in linux).


htmldoc (see http://www.htmldoc.org/)

It comes with a GUI and is free enough to be in Debian.

Not sure if it is that perfect, but when ever I tried it it worked.
Didn't use it for ages.  I use Org mode and LaTeX2e instead ;)



  Sebastian




___
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] Re: Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Dan Davison
amscopub-m...@yahoo.com writes:

> Is there a way to control the resolution of PNG LaTeX formulas when you 
> export to HTML?
>
> You can control the font size directly in the header but there doesn't seem 
> to be a way to use org-mode to control the resolution...
>
> BTW, I'm not exporting to LaTeX directly because I'm using PrinceXML to 
> convert the HTML file to a PDF.

Hi Uriel,

Could you tell us a bit about what the advantages of PrinceXML are? One
question I have is: is it possible to get vector graphics (ps, pdf)
incorporated into the resulting pdf? Is there an open source
alternative? (I've been doing this with "print to file" in the print
dialog box in a web browser in linux).

Dan

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


[Orgmode] Re: Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Dan Davison
Bastien  writes:

> amscopub-m...@yahoo.com writes:
>
>> Is there a way to control the resolution of PNG LaTeX formulas when
>> you export to HTML?
>
> I've implemented this.
>
> You can define the :html-resolution in `org-format-latex-options'.
>
> Please test and report any problem.

Bastien --

Am I right in understanding that if we increase html-resolution the
resulting images will come out larger in a web browser; i.e that there
is no way to maintain the images the same size while making them appear
"sharper" in a web browser?

Dan

___
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] org-mode 7.01, error while scheduling item

2010-08-05 Thread Marcelo de Moraes Serpa
Hi Bastien, I've posted the backtrace, it should be in the thread, a
few messages earlier.

Thanks,

Marcelo.

On Sat, Jul 31, 2010 at 4:11 AM, Bastien  wrote:
> Hi Marcelo,
>
> Marcelo de Moraes Serpa  writes:
>
>> I updated to org-mode Org-mode version 7.01trans
>> (release_7.01g.20.gdd484), and when trying to schedule an item with
>> C-c s, I get the following error:
>>
>> org-eval-in-calendar: Wrong type argument: window-live-p, nil
>
> Do you still have this error?
> Can you send a backtrace?
>
> If you don't know how to produce a backtrace, please read this:
>
>  http://orgmode.org/manual/Feedback.html
>
> --
>  Bastien
>

___
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] Export: Using LaTeX "\timestamp" and or customising title header

2010-08-05 Thread 'Mash
Afternoon,

I have started experimenting with publishing outlines to PDF, and have been 
trying to sort out basic styling, mainly because the default export looks 
terrible.

I disabled the title header as I want my first outline to be the first thing at 
the top of the page. The problem is that I would like to either customise the 
real header i.e. not have it centred; or be able to use "\timestamp" under my 
first outline which would display the file timestamp.

Is this possible because I can't get it to generate a timestamp on export? I 
have tried enabling "timestamp:t" but this also has no affect. I use "#+TITLE:" 
to prevent the title header from being displayed.

-
#+LATEX_HEADER: \documentclass[10pt,a4paper]{article}
#+LATEX_HEADER: 
\usepackage[a4paper,left=2cm,top=1cm,right=3cm,nohead,nofoot]{geometry}
#+LATEX_HEADER: \usepackage{palatino}
#+OPTIONS: num:nil toc:nil timestamp:nil author:nil email:nil
#+TITLE:

* This is the title of my article
  \timestamp

** Subtitle
*** etc
-

Thanks

'Mash

--
'to life is doxolgy
http://toshine.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


Re: [Orgmode] Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Bastien
Nick Dokos  writes:

> amscopub-m...@yahoo.com wrote:
>
>> Thanks for the reply.
>> 
>> What version of org-mode is that defined in? I'm using 7.01g. 
>> 
>
> I presume it's not in any released version. You'll probably have
> to pull the latest from the git repository to get it.

Yes, indeed.  Sorry not to have mentionned it.

-- 
 Bastien

___
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] Re: Fixing slowness of following Gnus links to IMAP articles

2010-08-05 Thread Tassilo Horn
Sébastien Vauban 
writes:

Hi Sébastien,

> Just to give you feedback, here's a cite from the answer of my
> postmaster about the bad experiences with Courier:
>
>"Had a search and it appears that courier doesn't support this. The
>best solution would be to upgrade our mail server to use dovecot."

He is definitively right, and should go the way of the best solution.

For now, I didn't have time to work any further on that workaround, and
on Saturday I'll go on an offline holiday.  So don't hold your breath
for having that worked around quickly.  (On the sly, I hope that this
workaround won't be needed anymore when I come back. ;-))

Bye,
Tassilo


___
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] Re: How do you use call and lob in org-babel?

2010-08-05 Thread Dan Davison
Hi I.S.,

Inquisitive Scientist  writes:

> Dear Experts,
>
> I am confused about how to use lob and call in org-babel. First I
> define a simple function like square:
> #+srcname: square(x)
> #+begin_src python
> return x*x
> #+end_src
>
> A line like
> : #+lob: square(x=2)
> does not seem to produce any result either in the buffer or on export:
> #+lob: square(x=2)
>
> The same seems to happen with call:
> : #+call: square(x=2)
> #+call: square(x=2)

I'm not seeing this. The following works for me with C-c C-c on the
lob/call lines. However, note that the #+call line will *appear* not to
do anything as things stand, because it sees the existing results block
created by the #+lob call.

#+srcname: square(x)
#+begin_src python
return x*x
#+end_src

#+lob: square(x=2)

#+results: square(x=2)
: 4

#+call: square(x=2)


Is the above definitely not working for you? What version of org are you
using?

Dan

>
> Instead, to get things to work I need to do something like:
> : | 4 |
> : #+TBLFM: @1$1='(sbe "square" (x 2))
> to get:
> | 4 |
> #+TBLFM: @1$1='(sbe "square" (x 2))
>
> Thanks,
> -I.S.
> ___
> 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


[Orgmode] bug report: timeline agenda in an indirect buffer

2010-08-05 Thread Ilya Shlyakhter
Right now making a timeline agenda of an indirect buffer causes a crash.
I think it's because buffer-file-name is null for such buffers,
so in the call
(org-prepare-agenda (concat "Timeline "
(file-name-nondirectory buffer-file-name)))
the file-name-nondirectory call fails.

___
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] Re: [babel] lob evaluation : a bug ?

2010-08-05 Thread Dan Davison
d.tchin  writes:

> Hi,
>
> I try to evaluate function already defined in library-of-babel. 
> But whatever the function I try to evaluate I have the following
> error output get from buffer *Messages* :
>

Hi d.tchin,

Failure of lob and call on C-c C-c has been fixed (ec034ba) since the
release of the version you are using. I hope it's not too inconvenient
for you to upgrade. Ideally, if you are able to use git on your system
then that is the best way to stay current.

So #+lob and #+call are working correctly with C-c C-c in the current
git HEAD. However,

> setf: Wrong type argument: consp, nil

they are not currently working with C-c C-v e / C-c C-v C-e.

I have made a patch to fix that but it will need to be discussed /
tested first.

Dan


>
> For example I use the following :
>
> #+tblname: R-plot-example-data
> | 1 |  2 |
> | 2 |  4 |
> | 3 |  9 |
> | 4 | 16 |
> | 5 | 25 |
>
> #+srcname: R-plot(data=R-plot-example-data)
> #+begin_src R :session *test*
> plot(data)
> #+end_src
>
> When I evaluate block it works (with C-c C-c).
>
> Then when I try to evaluate the following line :
> #+lob: R-plot(data=R-plot-example-data)
>
> With C-c C-c on this line I have the following answer :
> Local setup has been refreshed
>
> With C-c C-v e, emacs asks me : "Evaluate this code on your system ?"
> I answer yes and I have the message :
> Wrong type argument: consp, nil
>
> I use the following versions of emacs and org-mode
>
> GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
> Org-mode version 7.01g
>
>
>
>
>
>
>
>
>
> ___
> 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


[Orgmode] debugging sbe calls

2010-08-05 Thread Inquisitive Scientist
Dear Experts,

I *love* org-babel. In trying to switch a bunch of things to using it, I
have run into the problem that if I get the syntax slightly wrong, either
nothing happens (no output) or I just get something like "ERROR". Is there a
way to understand what is causing the error? So far, I have resorted to
creating a checklist of common mistakes which I run through whenever
something doesn't work. I think many of these look like things which could
in theory be detected and warned or complained about. Any suggestions on
debugging would be much appreciated.

Below is a list of some common mistakes.

** common mistakes

*** forgetting colon on srcname

If you do the following (note the missing colon on srcname)

#+srcname Cube(x=3)
#+begin_src python :results value :export code
return x*x*x
#+end_src

then things won't work (e.g., you may get an error about "global name
'x' is not defined" which is pretty confusing).

Instead, make sure you have the colons and do

#+srcname: Cube(x=3)
#+begin_src python :results value :export both
return x*x*x
#+end_src

which gives

#+results: Cube
: 27

*** forgetting = in chained sbe call

Make sure you include the = sign in a chained sbe call like the
following:

| 512 |
#+TBLFM: @1$1='(sbe "Cube" (x "Cube(x=2)"))

If you forget the = as in
| 19683 |
#+TBLFM: @1$1='(sbe "Cube" (x "Cube(x 1)"))

or if you forget a quote as in
| #ERROR |
#+TBLFM: @1$1='(sbe "Cube" (x "Cube(x=2)))
it won't work.

*** getting confused on sbe call

It's common to forget that the sbe syntax uses pairs *without* the
equal sign. Consequently, something like
| #ERROR |
#+TBLFM: @1$1='(sbe "Cube" (x=2))

won't work but something like

| 8 |
#+TBLFM: @1$1='(sbe "Cube" (x 2))

will do what you want.
___
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] Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread amscopub-mail
Thanks for the reply.

What version of org-mode is that defined in? I'm using 7.01g. 

When I bring up org-format-latex-options, it doesn't define that variable in 
the documentation. Setting the variable doesn't seem to do anything. The PNG 
files are always 72 x 72 ppi. 

I tried setting it to this:

:html-resolution 90
:html-resolution 300

but to no avail.

--Uriel

On Thu, 05 Aug 2010 00:32:16 +0200
Bastien  wrote:

> amscopub-m...@yahoo.com writes:
> 
> > Is there a way to control the resolution of PNG LaTeX formulas when
> > you export to HTML?
> 
> I've implemented this.
> 
> You can define the :html-resolution in `org-format-latex-options'.
> 
> Please test and report any problem.
> 
> -- 
>  Bastien


___
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: MobileOrg for Android...issues

2010-08-05 Thread Matthew Jones
I really like pywebdav, it's what I use on my VPS when utilizing MobileOrg.

73,
Matthew W. Jones (KI4ZIB)
http://matburt.net


On Thu, Aug 5, 2010 at 3:11 AM, Holger Wenzel  wrote:

> Hi C64Wiz,
>
> > Also, I selected to store the .org files on my SD card.  Is there a
> > way I can *manually* copy org files to the SD card (just need a
> > location really) so that I can at least read/reference them? I don't
> > have a need to edit/capture at this point, but would like to at least
> > view them.
>
> you can always set up your own webdav server.
>
> I briefly used nginx (nginx.org) a full blown web server, there is an
> apache module for serving the webdav protocol and there is pywebdav
> http://code.google.com/p/pywebdav/
>
> Holger
>
>
> ___
> 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


Re: [Orgmode] Change resolution of LaTeX formulas in HTML output?

2010-08-05 Thread Nick Dokos
amscopub-m...@yahoo.com wrote:

> Thanks for the reply.
> 
> What version of org-mode is that defined in? I'm using 7.01g. 
> 

I presume it's not in any released version. You'll probably have
to pull the latest from the git repository to get it.

HTH,
Nick

> When I bring up org-format-latex-options, it doesn't define that variable in 
> the documentation. Setting the variable doesn't seem to do anything. The PNG 
> files are always 72 x 72 ppi. 
> 
> I tried setting it to this:
> 
> :html-resolution 90
> :html-resolution 300
> 
> but to no avail.
> 
> --Uriel
> 
> On Thu, 05 Aug 2010 00:32:16 +0200
> Bastien  wrote:
> 
> > amscopub-m...@yahoo.com writes:
> > 
> > > Is there a way to control the resolution of PNG LaTeX formulas when
> > > you export to HTML?
> > 
> > I've implemented this.
> > 
> > You can define the :html-resolution in `org-format-latex-options'.
> > 
> > Please test and report any problem.
> > 
> > -- 
> >  Bastien
> 
> 
> ___
> 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


Re: [Orgmode] Re: MobileOrg for Android...issues

2010-08-05 Thread C64 Whiz
I do have my own WebDav server (Apache mod) but I'm a "security guy" so I
only allow https.  Bad http, bad. :)

At this point, I really just want to view 1 org file, my contacts, as I
don't want my contacts sync'd or stored on Google.  It sounds like for now
I'll need to just export my contacts.org file as HTML and use the browser.

Thanks anyways guys.  I look forward to new versions of MobileOrg for
Android.

On Thu, Aug 5, 2010 at 12:11 AM, Holger Wenzel <
drholgerwen...@googlemail.com> wrote:

> Hi C64Wiz,
>
> > Also, I selected to store the .org files on my SD card.  Is there a
> > way I can *manually* copy org files to the SD card (just need a
> > location really) so that I can at least read/reference them? I don't
> > have a need to edit/capture at this point, but would like to at least
> > view them.
>
> you can always set up your own webdav server.
>
> I briefly used nginx (nginx.org) a full blown web server, there is an
> apache module for serving the webdav protocol and there is pywebdav
> http://code.google.com/p/pywebdav/
>
> Holger
>
>
> ___
> 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


Re: [Orgmode] Bug: inline image display not working when org-indent-mode active, follow-up

2010-08-05 Thread Martin Pohlack

Hi,

On 05.08.2010 04:19, Erik Iverson wrote:

Hello,

I am using the latest org pulled from git.

In the past few weeks, I found that the overlays of inline images in my org-mode
files would flash quickly and then be deleted when using org-indent-mode. This
also happened when re-running an org-babel source block that generates graphical
output, even without org-indent-mode turned on. [1]

I believe I've tracked this down to the following patch,

http://www.mail-archive.com/emacs-orgmode@gnu.org/msg25738.html

What I think is happening, is that org-indent-mode (or alternatively, the
org-babel result insertion process) must be triggering the
org-display-inline-modification-hook, which deletes the overlay. This
intuitively makes sense to me in both cases.

I do not know how to fix this unfortunately, but I think this is the correct
diagnosis.  For now, I've simply removed the function hook from the ov
modification-hooks, and all seems well.


If a functions want to elide trigger the modification hooks it should
bind: inhibit-modification-hooks.

From 
http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.html:



modification-hooks
If a character has the property modification-hooks, then its
value should be a list of functions; modifying that character
calls all of those functions. Each function receives two
arguments: the beginning and end of the part of the buffer being
modified. Note that if a particular modification hook function
appears on several characters being modified by a single
primitive, you can't predict how many times the function will be
called.

If these functions modify the buffer, they should bind
inhibit-modification-hooks to t around doing so, to avoid
confusing the internal mechanism that calls these hooks.

Overlays also support the modification-hooks property, but the
details are somewhat different (see Overlay Properties).


Could you try to find out the path from where these modifications
occur, insert a relevant bind there, and see if this helps?

HTH,
Martin

___
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] Insert TODO or plain heading depending on context

2010-08-05 Thread Nathan Neff
Sorry for a rudimentary question, but someone almost certainly has
done this before:

I'd like define a function that would:
a) Create a new heading if the cursor is on a heading or the body of a heading.
or
b) Create a new TODO heading if the cursor is on a TODO heading or the body
of a TODO heading.

Essentially, it would be a "smart" function to either press M-Return
or M-S-Return,
depending on the context.

I realize I can press M-Return to always create a new heading, and
M-S-Return to always create a new TODO, but I'd like to eliminate
an extra keypress for the most common cases.

Any ideas?

Thanks,
--Nate

___
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] how to show all subheadings of "current level +1", then all of "current level +2" etc.

2010-08-05 Thread Rainer Stengele
 Hi Juri,

TAB works like

,-> FOLDED -> CHILDREN -> SUBTREE --.
'---'


what I want is something like

FOLDED (headline level n) -> CHILDREN (headline level n+1) -> CHILDREN 
(headline level n+2) -> ... SUBTREE

and maybe the other direction  also ..


Best,
Rainer

Am 04.08.2010 22:45, schrieb Juri Krivov:
> Hi Rainer,
>
> On Wed, Aug 4, 2010 at 2:23 PM, Rainer Stengele  > wrote:
>
> Hi all,
>
> on any heading in an org file I can easily see all sub headings with C-c 
> C-k.
> Is there a possibility to easily see only the sub headings of the next 
> level and nothing more?
> And then all headings of the next sub level? And so on?!
>
> Motivation:
> C-c C-k can easily show far too many headings.
> It would be good to be able to incrementally step into the heading tree 
> ...
>
> I use TAB for digging down hierarchy.  But this is so obvious that you 
> probably 
> mean something else?
> Greetings 
> Juri
>  
___
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] %i indentation in capture templates

2010-08-05 Thread Thomas Jack
I have the following capture template:

("t" "Todo" entry (file+headline (concat org-directory "/inbox.org") "inbox")
 "* TODO %?\n%i\n%a")

Yet, with "foo\nbar\nbaz" in the region, this expands to:

...
*** TODO
foo
bar
baz
...

The manual says of %i that "The entire text will be indented like %i
itself." Is this a bug, or am I misunderstanding? To be specific, the
output I expect is:

...
*** TODO
foo
bar
baz
...

I'm on 7.01g.

___
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] org-clock-current-task?

2010-08-05 Thread Michael Gilbert
Hi -

Did org-clock-current-task actually end up in orgmode in February? I see 
mention of it on the list, but I'm not seeing it in the application.

— Michael


___
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] camel.el, for CamelCase links

2010-08-05 Thread Sebastian Rose
Michael Gilbert  writes:
> On Aug 3,2010, at 9:27 AM, Bastien wrote:
>
>> "David O'Toole"  writes:
>> 
>>> http://github.com/dto/folio/blob/master/camel.el
>>> Someone asked about this recently, i have some partially working code.
>> 
>> I'm not a big fan of CamelCase links because it encourages the habit of
>> creating many files -- but that may be useful for some.
>
> I'm on the fence about that one. I would definitely love an easier way
> to create remote files and headings. This might help with the file end
> of that.

(Return key broken? No auto-fill-mode?)


I don't see why typing

  [[file:xy.org]]

and

  `C-b C-c C-0'

to follow that link is to much.



How about a function like this (just a quick hack):




binUlvhFRjRaT.bin
Description: application/emacs-lisp


and bind it to a sensible key, e.g

   `C-c M-l'


This avoids any problems with camel case syntax and is easy to use.

The function does not use the default link method yet (i.e. ID
locations) but I couldn't make that work yet.



  Sebastian
___
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[2]: [Orgmode] programming for org-mode

2010-08-05 Thread Ivanov Dmitry
Hi, Eric. I decided to draw schemes for functions in your module 
org-collector.el. And started from org-read-prop. Please, check my pdf file - 
my questions are marked with green. If there are no attachments allowed in the 
mailing list, you can get it here:

http://live-wtr.ru/org/org-collector.pdf

Can you explain, which function is called, when the user clicks C-c C-c on the 
line with #+BEGIN: propview? It's almost impossible to understand the 
complicated code of other programmer without a scheme. Did you see, how many 
questions emerged after I schematized just one simple function. 

org-dblock-write:propview seems to be really hard.

org-collector.pdf
Description: Adobe PDF document
___
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] How do you use call and lob in org-babel?

2010-08-05 Thread Inquisitive Scientist
Dear Experts,

I am confused about how to use lob and call in org-babel. First I
define a simple function like square:
#+srcname: square(x)
#+begin_src python
return x*x
#+end_src

A line like
: #+lob: square(x=2)
does not seem to produce any result either in the buffer or on export:
#+lob: square(x=2)

The same seems to happen with call:
: #+call: square(x=2)
#+call: square(x=2)

Instead, to get things to work I need to do something like:
: | 4 |
: #+TBLFM: @1$1='(sbe "square" (x 2))
to get:
| 4 |
#+TBLFM: @1$1='(sbe "square" (x 2))

Thanks,
-I.S.
___
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] [babel] lob evaluation : a bug ?

2010-08-05 Thread d . tchin
Hi,

I try to evaluate function already defined in library-of-babel. 
But whatever the function I try to evaluate I have the following
error output get from buffer *Messages* :

setf: Wrong type argument: consp, nil

For example I use the following :

#+tblname: R-plot-example-data
| 1 |  2 |
| 2 |  4 |
| 3 |  9 |
| 4 | 16 |
| 5 | 25 |

#+srcname: R-plot(data=R-plot-example-data)
#+begin_src R :session *test*
plot(data)
#+end_src

When I evaluate block it works (with C-c C-c).

Then when I try to evaluate the following line :
#+lob: R-plot(data=R-plot-example-data)

With C-c C-c on this line I have the following answer :
Local setup has been refreshed

With C-c C-v e, emacs asks me : "Evaluate this code on your system ?"
I answer yes and I have the message :
Wrong type argument: consp, nil

I use the following versions of emacs and org-mode

GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600) of 2008-09-06 on SOFT-MJASON
Org-mode version 7.01g









___
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] Re: MobileOrg for Android...issues

2010-08-05 Thread Holger Wenzel
Hi C64Wiz,

> Also, I selected to store the .org files on my SD card.  Is there a
> way I can *manually* copy org files to the SD card (just need a
> location really) so that I can at least read/reference them? I don't
> have a need to edit/capture at this point, but would like to at least
> view them.

you can always set up your own webdav server. 

I briefly used nginx (nginx.org) a full blown web server, there is an
apache module for serving the webdav protocol and there is pywebdav 
http://code.google.com/p/pywebdav/

Holger


___
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] called-interactively-p : org-capture

2010-08-05 Thread Richard Riley

I upgraded to latest git version and modified my setup to use
org-capture.

Even using the default templates and keybindings in the docs I get the
following backtrace when trying to create a new todo item based on
org-capture-templates

,
| Debugger entered--Lisp error: (error "Capture template `t': 
called-interactively-p")
|   signal(error ("Capture template `t': called-interactively-p"))
|   error("Capture template `%s': %s" "t" called-interactively-p)
|   byte-code("Áp!ƒ


___
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] Re: how to show all subheadings of "current level +1", then all of "current level +2" etc.

2010-08-05 Thread Rainer Stengele
Fernando, thank you.

Excellent! Couldn't find that in the org manual.
Maybe its worth including it?

Rainer



Am 04.08.2010 22:52, schrieb Fernando Naufel do Amaral:
> Use show-children with a prefix argument.
> 
> From the docs:
> 
>   show-children is an interactive compiled Lisp function in `outline.el'.
>   (show-children &optional level)
> 
>   Show all direct subheadings of this heading.
>   Prefix arg level is how many levels below the current level should be shown.
> 
> 
> 
> 
> Fernando Náufel, D.Sc.
> fnau...@ic.uff.br
> http://fnaufel.wordpress.com
> http://www.uff.br/llarc
> 
> Professor Adjunto
> (~Professor Doctor -- see http://en.wikipedia.org/wiki/Professor#Brazil)
> LLaRC - Laboratório de Lógica e Representação do Conhecimento
> DCT - Depto. de Ciência e Tecnologia
> PURO - Pólo Universitário de Rio das Ostras
> UFF - Universidade Federal Fluminense
> Brazil
> --
> 
> 
> 
> 
> On Wed, Aug 4, 2010 at 5:45 PM, Juri Krivov  wrote:
>> Hi Rainer,
>>
>> On Wed, Aug 4, 2010 at 2:23 PM, Rainer Stengele 
>> wrote:
>>>
>>> Hi all,
>>>
>>> on any heading in an org file I can easily see all sub headings with C-c
>>> C-k.
>>> Is there a possibility to easily see only the sub headings of the next
>>> level and nothing more?
>>> And then all headings of the next sub level? And so on?!
>>>
>>> Motivation:
>>> C-c C-k can easily show far too many headings.
>>> It would be good to be able to incrementally step into the heading tree
>>> ...
>>
>> I use TAB for digging down hierarchy.  But this is so obvious that you
>> probably
>> mean something else?
>> Greetings
>> Juri
>>
>> ___
>> 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
> 



___
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] Bug: inline image display not working when org-indent-mode active, follow-up

2010-08-05 Thread Erik Iverson

On 08/05/2010 03:34 AM, Martin Pohlack wrote:

Hi,

On 05.08.2010 04:19, Erik Iverson wrote:

Hello,

I am using the latest org pulled from git.

In the past few weeks, I found that the overlays of inline images in
my org-mode
files would flash quickly and then be deleted when using
org-indent-mode.






If a functions want to elide trigger the modification hooks it should
bind: inhibit-modification-hooks.

 From
http://www.gnu.org/software/emacs/elisp/html_node/Special-Properties.html:


modification-hooks
If a character has the property modification-hooks, then its
value should be a list of functions; modifying that character
calls all of those functions. Each function receives two
arguments: the beginning and end of the part of the buffer being
modified. Note that if a particular modification hook function
appears on several characters being modified by a single
primitive, you can't predict how many times the function will be
called.

If these functions modify the buffer, they should bind
inhibit-modification-hooks to t around doing so, to avoid
confusing the internal mechanism that calls these hooks.

Overlays also support the modification-hooks property, but the
details are somewhat different (see Overlay Properties).


Could you try to find out the path from where these modifications
occur, insert a relevant bind there, and see if this helps?


I will try to track this down, yes.

___
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