Re: [O] force italic mode?

2016-11-18 Thread William Henney
On Fri, Nov 18, 2016 at 12:31 PM, hymie! <hy...@lactose.homelinux.net>
wrote:

> In our last episode, the evil Dr. Lacto had captured our hero,
>   Aaron Ecay <aarone...@gmail.com>, who said:
> > You can accomplish this by using an entity that expands to nothing.  The
> > closest entry in org-entities is \zwj (zero width word-joining space):
> >
> > foo\zwj{}/bar/\zwj{}baz
>
> This doesn't work for me. :(
>
> It works to the left of the zwj, such as
> =foo=\zwj{}bar
>
> ...but not to the right as you did above.
>
> It's hard to read the value I have for org-emphasis-regexp-components
> but it looks like } is in there, so I guess it should be working?
>
>
No, it is only in the POSTMATCH part. If you add it to the PREMATCH part
too, then your example would work.  But I think it would be neater to put a
pair of literal "zero width space" characters in your file.  I managed to
get this to work by doing:

(setq org-emphasis-regexp-components '("[:space:][:cntrl:]('\"{}"
"[:space:][:cntrl:]-.,:!?;'\")}\\[" "[:space:][:cntrl:]" "." 1))

This means you can write "fuzzy​/wuzzy/​wuzzabear" where there is a 0x200B
character (ZERO WIDTH SPACE) either side of /wuzzy/ (hopefully this will
survive in the email).  I inserted the characters with "C-x 8 RET ...".

In case you prefer to have something more visible in the source file, I
also made it so you can use any ascii control character to bracket the
delimiters.  For instance, the NULL character: "fuzzy^@/wuzzy/^@bear".
Note that those are not real NULLs, but are how they appear in the emacs
buffer.  You can insert them with "C-q 0 RET".


Will








> --hymie!http://lactose.homelinux.net/~hymie
> hy...@lactose.homelinux.net
>
>
>


-- 

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


Re: [O] Inheritance of tangle file for org babel blocks is broken in org 9

2016-11-18 Thread William Henney
On Fri, Nov 18, 2016 at 3:31 PM, Charles C. Berry <ccbe...@ucsd.edu> wrote:

> On Fri, 18 Nov 2016, William Henney wrote:
>
> Hi,
>>
>> Since upgrading to version 9.0, tangling of babel source blocks no longer
>> works properly for me.
>>
>
> It works for me with Org mode version 9.0.1 (release_9.0.1-31-g0a24f5).
>
> Running your ECM, the `tail' of C-c C-v C-i:
>
> :tangle test-B.el
>
> Maybe try restarting emacs to be sure 9.0.1 loads cleanly?
>
>
Thanks Chuck - that worked!   Weird, since I was sure I had already
restarted emacs once after updating.  But restarting again seems to have
fixed things.

Will

-- 

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


[O] Inheritance of tangle file for org babel blocks is broken in org 9

2016-11-18 Thread William Henney
Hi,

Since upgrading to version 9.0, tangling of babel source blocks no longer
works properly for me.  Specifically, the tangle file name is not inherited
from settings in a property drawer higher up the sub-tree, so that "C-u C-u
C-c C-v C-t" no longer behaves as it should.  This worked fine in version 8
and I can't find any mention of any deliberate change in the manual or the
change log.

Here is a minimal example that explains what goes wrong.

Cheers

Will


* Test of inheritance of tangle file name
** Pieces to tangle to test-A.el
:PROPERTIES:
:header-args: :tangle test-A.el
:END:

*** Piece A1
#+BEGIN_SRC emacs-lisp
;; code-block from first sub-head of A
#+END_SRC

*** Piece A2
#+BEGIN_SRC emacs-lisp
;; code-block from second sub-head of A
#+END_SRC

** Pieces to tangle to test-B.el
:PROPERTIES:
:header-args: :tangle test-B.el
:END:

+ This does not work any more in org 9
+ The pieces are tangled to =test-A.el= instead of =test-B.el=

*** Piece B1
#+BEGIN_SRC emacs-lisp
;; code-block from first sub-head of B
#+END_SRC

*** Piece B2
#+BEGIN_SRC emacs-lisp
;; code-block from second sub-head of B
#+END_SRC

** Results of inspecting babel info in source block B1
+ =C-c C-v TAB= invokes =(org-babel-view-src-block-info)=

*** In Org 8
+ src_elisp{(org-version)} =8.2.10=
+ This looks fine

#+BEGIN_EXAMPLE
Lang: emacs-lisp
Header Arguments:
:cache no
:colnames no
:exports code
:hlines yes
:noweb no
:results replace
:session none
:tangle test-B.el
#+END_EXAMPLE

*** In Org 9
+ src_elisp{(org-version)} {{{results(=9.0.1=)}}}
+ This looks contradictory
  + The "Properties" section has ":header-args :tangle test-B.el", which is
correct
  + But the "Header Arguments" has ":tangle test-A.el", which is wrong

#+BEGIN_EXAMPLE
Lang: emacs-lisp
Properties:
:header-args :tangle test-B.el
:header-args:emacs-lisp nil
Header Arguments:
:cache no
:exports code
:hlines no
:lexical no
:noweb no
:results replace
:session none
:tangle test-A.el
#+END_EXAMPLE


-- 

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


Re: [O] Problem with python session

2016-10-12 Thread William Henney
Yep, I agree. This is a wart in the vanilla python REPL, and org-mode can't
really do much about it.  Except maybe warn people.

As John noted, this is less of a problem if you use ipython as your REPL.
I think it is enough to just do

#+BEGIN_SRC emacs-lisp
(setq org-babel-python-command "ipython")
#+END_SRC

but I haven't tested this extensively since,  as I mentioned, I prefer to
use Greg Sexton's ob-ipython instead.  This integrates with the Jupyter
kernel by sending JSON to a web socket, rather than just pasting the source
block into a buffer, and that seems to be a more robust approach.

Will


On Tue, Oct 11, 2016 at 10:53 AM, Nicolas Goaziou <m...@nicolasgoaziou.fr>
wrote:

> Hello,
>
> John Kitchin <jkitc...@andrew.cmu.edu> writes:
>
> > I am not sure it makes sense to change anything for this.
>
> Noted. Thank you for the feedback.
>
> Regards,
>
> --
> Nicolas Goaziou
>
>


-- 

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


Re: [O] Problem with python session

2016-10-06 Thread William Henney
Hi Florian

I can reproduce your problem.  This is (arguably) a bug in ob-python when
using the vanilla python interpreter together with the :session argument.
You can work around it by putting a blank line after the for-loop in your
second code block.

I say that it is arguable that this is a bug or not since you would have
exactly the same error if you were to literally type your code block in at
the python interactive prompt.  That is, you have to give a second newline
in order to close the loop and return to the top-level prompt.  However, it
is admittedly confusing to have different behavior with and without the
":session" argument.

I had never come across this bug myself, since I use ob-ipython for
interactive python sessions (https://github.com/gregsexton/ob-ipython)

Here is a minimal example that shows the problem.

Cheers

Will

* Test of ob-python in session mode with vanilla python interpreter

** FAILS: Without blank line after indented loop
#+BEGIN_SRC python :session *ob-python session*
for x in 1, 2:
pass
x
#+END_SRC

#+RESULTS:

An error message appears in the =*ob-python session*= buffer, which can be
visited via =C-c C-v C-z= with point inside the code block.

#+BEGIN_EXAMPLE
>>> 'org_babel_python_eoe'
>>> 'org_babel_python_eoe'
>>> for x in 1, 2:
... pass
... x
  File "", line 3
x
^
SyntaxError: invalid syntax
#+END_EXAMPLE

** SUCCEEDS: With blank line after indented loop
#+BEGIN_SRC python :session *ob-python session*
for x in 1, 2:
pass

x
#+END_SRC

#+RESULTS:
: 2

** SUCCEEDS: Without using a session
#+BEGIN_SRC python :return x
for x in 1, 2:
pass
x
#+END_SRC

#+RESULTS:
: 2

** SUCCEEDS: Using ob-ipython instead of ob-python
#+BEGIN_SRC ipython :session
for x in 1, 2:
pass
x
#+END_SRC

#+RESULTS:
: 2


On Thu, Oct 6, 2016 at 7:41 AM, Florian Lindner <mailingli...@xgm.de> wrote:

> Hello,
>
> I have an org file:
>
> * Overview of available basis functions
> #+BEGIN_SRC python :session generateBFpics :exports results :results file
>   import matplotlib.pyplot as plt
>   import numpy as np
>
>   def set_plotoptions():
>   plt.xlabel("x")
>   plt.ylabel("$\phi(x)$")
>   plt.grid()
>
>
>   np.seterr(invalid='ignore')
>
>   x = np.linspace(-3, 3, 1000)
>
>   plt.plot(x,  np.log(abs(x))*np.power(x, 2))
>   plt.suptitle("Thin Plate Splines")
>   plt.title("$\phi(|x|) = \log(x) \cdot x^2$")
>   set_plotoptions()
>   plt.savefig("bf-tps.pdf")
>   plt.close()
>   "bf-tps.pdf"
> #+END_SRC
>
> #+RESULTS:
> [[file:bf-tps.pdf]]
>
> #+BEGIN_SRC python :session generateBFpics :exports results :results file
>   for shape in [1, 2, 3, 4]:
>   plt.plot(x, np.power(shape, 2) + np.power(x,2), label = "s = %i" %
> shape)
>   plt.suptitle("Multi Quadrics")
>   plt.title("$\phi(|x|) = s^2 + x^2$")
>   plt.legend()
>   set_plotoptions()
>   plt.savefig("bf-multiquadrics.pdf")
>   plt.close()
>   "bf-multiquadrics.pdf"
> #+END_SRC
>
> #+RESULTS:
> [[file:bf-multiquadrics.pdf]]
>
>
>
> Both PDFs are generated. But only the first one has the content I expect,
> the othe one is an empty plot (it's a plot,
> yes, but empty axes.
>
> When I copy these pieces of code into on .py file it works just great. To
> my understanding that just how session mode works.
>
> What could be the problem here?
>
> Thanks,
> Florian
>
>
>


-- 

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


Re: [O] Failure to display more than 18 images with captions

2016-10-01 Thread William Henney
I think Jean Louis is right: it _is_ an org issue.   The problem is that
the default value of org-latex-default-figure-position is "htb", which is a
very bad idea.  The string always needs to contain a "p" in it somewhere,
otherwise latex will never be able to find a solution for figure placement
in cases with many floats and little or no text.

Fuller explanation: The position specifiers "h" (here), "t" (top), and "b"
(bottom) are all for placing floats on a page that has some "normal" text
on.  For all 3 cases, there is a minimum fraction of the page that must be
occupied by text (controlled by the parameter \textfraction, which by
default is 0.2).  To get pages that are entirely occupied by floats, you
need to use the specifier "p" (page).  So, by just using "htb" you are
giving latex a set of requirements that are impossible to satisfy if there
are many floats and no text.  Hence the problem with "Too many unprocessed
floats".  I would recommend that the default be "htbp" instead.

Will


On Sat, Oct 1, 2016 at 1:13 PM, Jean Louis <g...@rcdrun.com> wrote:

> IMHO, the program Org Mode shall not give error when exporting PDF, or
> it should be documented that certain number of pictures are not
> tolerated and how to increase that number or how to avoid the problem.
>
> Maybe something like explained here:
> http://tex.stackexchange.com/questions/46512/too-many-unprocessed-floats
>
> like "morefloats" package:
> ctan.org/pkg/morefloats
>
> or \extrafloats{100}
>
> But I did not get that working, I have simply turned off floats.
>
> Jean
>
> On Sat, Oct 01, 2016 at 07:53:59PM +0200, Nicolas Goaziou wrote:
> > Hello,
> >
> > Jean Louis <g...@rcdrun.com> writes:
> >
> > > It is solved for me, not solved in general as a problem in Org mode.
> >
> > I do not understand: which part is a problem on the Org side?
> >
> > Regards,
> >
> > --
> > Nicolas Goaziou
>
>


-- 

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


Re: [O] org-mode, python and unicode

2016-05-19 Thread William Henney
Hi Daniel

On Wed, May 18, 2016 at 3:10 AM, Daniele Pizzolli <d...@toel.it> wrote:

>
> I did not found out:
>
> - how to get the table headers in python
>
>
I can answer this small part.  Use the (counter-intuitively named)
":colnames no" header argument, see [[info:org#colnames]].  The default
behavior is ":colnames nil", which supposedly strips off the table headers
on input and reattaches them on output.  But that doesn't work for me with
python - they are stripped off, but not reattached.

Will


-- 

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


Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-19 Thread William Henney
On Thu, May 19, 2016 at 2:32 PM, Ken Mankoff <mank...@gmail.com> wrote:

>
> On 2016-05-19 at 15:21, William Henney <when...@gmail.com> wrote:
> > I think Elpy works fine with conda environments - you just have to
> > call pyvenv-activate with the desired path.
>
> Yes, I have discovered that since I sent my email.
>
> > You have inspired me to try and automate this for org source blocks
> > (see org snippets below). It is a bit clunky, but I got it to work.
> > Let me know what you think, and any stylistic corrections are welcome
> > (my lisp skills are sadly lacking).
>
> Better than my lisp. It looks good, but I like to keep my virtual envs in
> the folder where the work happens. That is, I create them with =conda env
> create -y -p ./pyenv=. I think this means your code below will fail because
> it is looking for an =/envs/= folder. However, my method allows all virtual
> environments to always have the same name, which could make the code (and
> testing for the existence of that folder) easier.
>
>
Yes, that’s right.  You can just edit the part that says (string-match
"/envs/" venv) and change "/envs/" to a regex that matches the way you name
your environments.  For instance, just the literal string "pyenv" should
work.  Or, even better, "env" would match both your convention and the
standard location.



> > + One thing we have to remember is to install the elpy python package
> > and dependencies in each virtual environment. For instance:
>
> This can also be handled by =~./condarc= and the default packages
> installed whenever a virtual environment is created.
>
>
That's good to know - thanks

Will


>   -k.
>



-- 

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


Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-19 Thread William Henney
On Thu, May 19, 2016 at 8:18 AM, Ken Mankoff <mank...@gmail.com> wrote:

>
> Thanks for the example. This makes conda + Org work better than it has for
> me in the past. Unfortunately, one major issues is editing and running code
> outside of Org via (org-edit-special). Perhaps elpy will support conda
> environments soon.
>
>
I think Elpy works fine with conda environments - you just have to call
pyvenv-activate with the desired path.

You have inspired me to try and automate this for org source blocks (see
org snippets below).  It is a bit clunky, but I got it to work.  Let me
know what you think, and any stylistic corrections are welcome (my lisp
skills are sadly lacking).



* Automating Elpy virtual env configuration in babel source editing buffer
+ This function will automatically activate the virtual environment that
corresponds to the current python executable path
+ It should be a harmless no-op if we are not in a python buffer
  #+BEGIN_SRC emacs-lisp
(defun wjh/elpy-pyvenv-activate-from-babel-info (info)
  "Activate relevant conda virtual env in Babel source editing buffer.
The :python source block parameter is inspected to determine the venv."
  (let* ((python-command (or (cdr (assoc :python (nth 2 info)))
 org-babel-python-command))
 (venv (replace-regexp-in-string "/bin/python$" ""
python-command)))
(when (string-match "/envs/" venv)
  (pyvenv-activate (expand-file-name venv)
  #+END_SRC
+ Then we need to make sure it is run whenever we edit a babel source block
by doing something like =(wjh/elpy-pyvenv-activate-from-babel-info
org-src--babel-info)=, and also to do =(pyvenv-deactivate)= when we leave
+ Unfortunately, there are no actual hooks that I can find for
=org-edit-src-code= or =org-edit-src-exit=
+ For the activation part we can co-opt the =org-babel-edit-prep:python=
function:
  #+BEGIN_SRC emacs-lisp
(defun org-babel-edit-prep:python (info)
  (wjh/elpy-pyvenv-activate-from-babel-info info))
  #+END_SRC
  + Although this will break if =ob-python.el= decides to define
=org-babel-edit-prep:python= one day
+ For the deactivation part, I can't see any other way than to use advice
  #+BEGIN_SRC emacs-lisp
(advice-add 'org-edit-src-exit :after #'pyvenv-deactivate)
  #+END_SRC
+ One thing we have to remember is to install the elpy python package and
dependencies in each virtual environment.  For instance:
  #+BEGIN_SRC sh
  source activate myenv
  pip install elpy rope_py3k importmagic autopep8 yapf jedi
  #+END_SRC



-- 

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


Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-18 Thread William Henney
Hi Ken,

On Wed, May 18, 2016 at 8:45 AM, Ken Mankoff <mank...@gmail.com> wrote:

On 2016-05-17 at 21:19, William Henney <when...@gmail.com> wrote:
> > Why is the :python parameter insufficient for your needs? You can also
> > use it for different virtual environments
>
> Can you clarify how to do this? Does it work with conda environments too?
>

Yes, you just have to specify ~/anaconda/envs/NAME_OF_ENV/bin/python as the
name of the interpreter

I gave a conda example in my first message to this thread, but here is
another one.  In the shell, I just made a new environment:

$ condo create --name myenv

And now, I can test it in an org file:

#+BEGIN_SRC python :python ~/anaconda/envs/myenv/bin/python :results
verbatim
import sys
return sys.path
#+END_SRC

#+RESULTS:
: ['', '/Users/will/anaconda/envs/myenv/lib/python35.zip',
'/Users/will/anaconda/envs/myenv/lib/python3.5',
'/Users/will/anaconda/envs/myenv/lib/python3.5/plat-darwin',
'/Users/will/anaconda/envs/myenv/lib/python3.5/lib-dynload',
'/Users/will/anaconda/envs/myenv/lib/python3.5/site-packages',
'/Users/will/anaconda/envs/myenv/lib/python3.5/site-packages/setuptools-20.7.0-py3.5.egg']

Note that this is not /exactly/ equivalent to doing “source activate myenv”
in a terminal shell since it does not run any activation/deactivation
scripts that you might have put in the virtual environment.  But personally
I never use that feature

Will


-- 

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


Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-17 Thread William Henney
Hi Karl

On Tue, May 17, 2016 at 9:54 AM, Karl Voit <devn...@karl-voit.at> wrote:

> Hi William
>
> * William Henney <when...@gmail.com> wrote:
> >
> > On Sun, May 8, 2016 at 3:31 AM, Karl Voit <devn...@karl-voit.at> wrote:
> >
> > Python2 and Python3 are two different languages. Unfortunately,
> >> Org-mode only uses ~#+BEGIN_SRC python~ for both and uses
> >> python-shell-interpreter to choose/switch the compiler.
> >>
> >> Shouldn't Org-mode introduce ~#+BEGIN_SRC python2~ and ~#+BEGIN_SRC
> >> python3~ to solve this issue in a clean way?
> >>
> >> ~#+BEGIN_SRC python~ can still default to python2.
> >>
> > You can use the :python header argument to the source block, which allows
> > you to specify the path to the python interpreter:
> >
> > #+BEGIN_SRC python :python /Users/will/anaconda/envs/py27/bin/python
>
> Cool, I did not find this parameter yet.
>
> Is this undocumented? http://orgmode.org/org.html does not contain
> the string ":python:" and
> http://orgmode.org/org.html#Language_002dspecific-header-arguments
> also does not mention this parameter.
>
>
It is documented at
http://orgmode.org/worg/org-contrib/babel/languages/ob-doc-python.html

You are right that it would be better if the language-specific babel
documentation were better integrated in the general org info file.  But I
suppose nobody has been sufficiently motivated to do it yet


> > Also see original discussion at
> > https://lists.gnu.org/archive/html/emacs-orgmode/2014-04/msg01042.html
>
> Most interesting to me, thank you.
>
> With the parameter above as a workaround, I can accomplish the
> things I want to do for now. However, I still do think that Python2
> and Python3 as different languages demand different block
> identifiers.
>
> #+BEGIN_SRC python -> defaults to the default python interpreter
> #+BEGIN_SRC python2 -> uses Python2
> #+BEGIN_SRC python3 -> uses Python3
>
> Don't you think?
>
>
To be honest, I disagree that we need different block identifiers.  Python
is hardly the only language to have gone through multiple major versions,
and I don’t think a proliferation of org-babel languages is the answer.
What about C11 vs C99, etc?  I guess a good rule of thumb would be: do the
two versions use the same major mode in emacs?

Why is the :python parameter insufficient for your needs?  You can also use
it for different virtual environments

Cheers

Will



> --
> mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
>> get Memacs from https://github.com/novoid/Memacs <
>
> https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on
> github
>
>
>


-- 

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


Re: [O] Mixing Python2 and Python3 blocks in one file

2016-05-17 Thread William Henney
Hi Karl

On Sun, May 8, 2016 at 3:31 AM, Karl Voit <devn...@karl-voit.at> wrote:

Python2 and Python3 are two different languages. Unfortunately,
> Org-mode only uses ~#+BEGIN_SRC python~ for both and uses
> python-shell-interpreter to choose/switch the compiler.
>
> Shouldn't Org-mode introduce ~#+BEGIN_SRC python2~ and ~#+BEGIN_SRC
> python3~ to solve this issue in a clean way?
>
> ~#+BEGIN_SRC python~ can still default to python2.
>
>
>
You can use the :python header argument to the source block, which allows
you to specify the path to the python interpreter:


— BEGIN EXAMPLE 

* Default python version
#+name: check-python-version
#+BEGIN_SRC python
import sys
return sys.version
#+END_SRC

#+RESULTS: check-python-version
: 3.4.4 |Anaconda 2.5.0 (x86_64)| (default, Jan  9 2016, 17:30:09)
: [GCC 4.2.1 (Apple Inc. build 5577)]

This is the control experiment.

* Custom python version
#+BEGIN_SRC python :python /Users/will/anaconda/envs/py27/bin/python
import sys
return sys.version
#+END_SRC

#+RESULTS:
: 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:57:58)
: [GCC 4.2.1 (Apple Inc. build 5577)]

—  END EXAMPLE  

Also see original discussion at

https://lists.gnu.org/archive/html/emacs-orgmode/2014-04/msg01042.html

Will



> I only found those sources/solutions:
>
> http://thread.gmane.org/gmane.emacs.orgmode/47867
> ... file-variables to choose interpretor
>
> http://thread.gmane.org/gmane.emacs.orgmode/47867
> ... workaround with #+srcname (I don't get yet)
>
>
> --
> mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
>> get Memacs from https://github.com/novoid/Memacs <
>
> https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on
> github
>
>
>


-- 

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


Re: [O] pdf screen reader accessibility?

2015-04-08 Thread William Henney
On Mon, Apr 6, 2015 at 7:19 AM, Rasmus ras...@gmx.us wrote:

 Marcin Borkowski mb...@wmi.amu.edu.pl writes:

  On 2015-04-06, at 13:40, Rasmus ras...@gmx.us wrote:
 
  Jude DaShiell jdash...@panix.com writes:
 
  http://www.adobe.com/accessibility/products.html
  is a good place to start.
 
  It's a list of a bunch of software packages of which most are not (i)
 free
  in any meaning of the word; and (ii) supported on GNU/Linux.
 
  So what?  IIUC, the OP wants to have something similar using Emacs and
  (maybe) free (in a usual sense, or in FSF sense) software.  Isn't it
  a valid request?

 Of course it is, but OP is referring to features of some software that I
 don't have access to, so how am I supposed to make sense of it?  I'm not
 going to (i) install a new OS; and (ii) buy/torrent software to understand
 and test a feature in named software.

 If there's a standard I'm eager to hear about it.


I believe the relevant standard is PDF/UA

http://en.wikipedia.org/?title=PDF/UA

As far as I can tell, support for this from LaTeX is still very much a work
in progress, but there is an accessibility.sty package that has made a
start. Here is a recent SO discussion:

http://tex.stackexchange.com/questions/124291/revisiting-producing-structured-pdfs-from-latex

Will


-- 

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


Re: [O] getting an hline in a python generated table

2015-04-03 Thread William Henney
A simpler solution is to just use None, which gets automatically converted
to an hline by org-babel:

#+BEGIN_SRC python :return mytable
  NROWS, NCOLS = 6, 4
  mytable = []
  mytable.append(['A', 'B', 'C', 'D'])  # Table header
  mytable.append(None)  # hline
  for irow in range(NROWS):
  mytable.append([icol**irow for icol in range(NCOLS)])
  mytable.append(None)  # hline
#+END_SRC

#+RESULTS:
| A | B |  C |   D |
|---+---++-|
| 1 | 1 |  1 |   1 |
| 0 | 1 |  2 |   3 |
| 0 | 1 |  4 |   9 |
| 0 | 1 |  8 |  27 |
| 0 | 1 | 16 |  81 |
| 0 | 1 | 32 | 243 |
|---+---++-|

Will


On Wed, Apr 1, 2015 at 2:07 PM, John Kitchin jkitc...@andrew.cmu.edu
wrote:

 Hi everyone,

 In emacs-lisp, I can get a table as output that has a horizontal line
 in it like this:

 (append '((name scopus-id h-index n-docs n-citations))
 '(hline)
 (some expression that generates a list))

 The first row is header names, then a horizontal line, followed by a row
 for each thing of interest. This seems to work because the result is an
 emacs-lisp array.

 I cannot figure out if this is possible in a Python block though. So far
 my experiments have failed because I don't know how to make an hline
 symbol in a Python array. Any kind of string just shows as a row. Any
 thoughts on if this is possible?

 thanks,

 --
 Professor John Kitchin
 Doherty Hall A207F
 Department of Chemical Engineering
 Carnegie Mellon University
 Pittsburgh, PA 15213
 412-268-7803
 @johnkitchin
 http://kitchingroup.cheme.cmu.edu




-- 

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


Re: [O] How to tell Org mode radio table translator not to wrap, Greeks in dollars ($$)

2015-04-03 Thread William Henney
Hi Omid

It looks like orgtbl-to-latex is calling org-export-string-as on each table
cell, which is presumably what is wrapping each \mu inside $$.   This seems
wrong-headed to me, but I can't say I really understand what the code is
trying to achieve.

A workaround would be to directly use orgtbl-to-generic instead. Just
replace your ORGTBL line with

#+ORGTBL: SEND Ah-advection orgtbl-to-generic :splice t :skip 0 :lend 
 :sep   

Will


On Fri, Apr 3, 2015 at 8:52 PM, Omid omidl...@gmail.com wrote:

 Hello,

 I'm trying to use an Org mode Radio Table in LaTeX according to:

 http://orgmode.org/manual/Radio-tables.html
 http://orgmode.org/manual/A-LaTeX-example.html#A-LaTeX-example

 My Org mode table is representing a matrix containing Greek letters
 denoted by LaTeX commands (e.g., \mu). The radioing process wraps
 these commands in dollars (\mu changes to $\mu$). I'm using `:splice
 t' to return only table body lines (without wrapping them in a tabular
 environment) to insert the table in my equation and matrix
 environments. I tried `:fmt %s' hoping that the table fields would
 be left untouched, but, no the translator still wraps my \mu's in $$.

 Here is an example:

 \begin{comment}
 #+ORGTBL: SEND Ah-advection orgtbl-to-latex :splice t :skip 0 :fmt %s
 | 1-\mu |||   |   |
 | \mu   | 1-\mu  ||   |   |
 |   | \ddots | \ddots |   |   |
 |   || \mu| 1-\mu |   |
 |   ||| \mu   | 1-\mu |
 \end{comment}

 with the translated result

 \begin{equation}
   \label{eq:Ah-advection}
   A_{h}=
   \begin{bmatrix}
 % BEGIN RECEIVE ORGTBL Ah-advection
 1-$\mu$ \\
 $\mu$  1-$\mu$   \\
   \ddots  \ddots \\
 $\mu$  1-$\mu$   \\
   $\mu$  1-$\mu$ \\
 % END RECEIVE ORGTBL Ah-advection
   \end{bmatrix}
 \end{equation}

 How can I tell the table translator not to wrap Greeks in $$?

 Thanks,

 --
 Omid




-- 

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


[O] Why is ox-gfm.el missing from the org-plus-contrib elpa package?

2014-12-02 Thread William Henney
Hi

I have org-plus-contrib-20141201 installed from http://orgmode.org/elpa/,
which as far as I can tell is the latest version.  I was expecting to find
the Github-Flavoured Markdown exporter ox-gfm.el to be included because it
is listed in the contrib/ directory (e.g.,
http://orgmode.org/cgit.cgi/org-mode.git/tree/contrib/lisp/ox-gfm.el).
However, it doesn't seem to be there and it is not mentioned anywhere in
http://orgmode.org/elpa/build-org-pkg.txt

Is this deliberate?  I can always install it by hand, but it just seemed a
bit odd that it was missing.

Will

P.S. There is also a broken link in the docs at http://orgmode.org/elpa.html.
Instead of http://orgmode.org/build-org-pkg.txt, it should be changed to
http://orgmode.org/elpa/build-org-pkg.txt


-- 

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


Re: [O] BUG in reference by ID to remote table (was Re: org babel question: reference tables in remote file)

2014-05-31 Thread William Henney
Hi Bastien 

Thanks for the suggestion.  I'm traveling at the moment, but I'll check it out 
as soon as I get a chance.  

Will

Sent from a leading brand of mobile device

 On 30/05/2014, at 16:44, Bastien b...@gnu.org wrote:
 
 Hi William,
 
 William Henney when...@gmail.com writes:
 
 There is an apparent bug when using the ID property to refer to cells
 in remote tables, which is currently the only way to refer to a table
 in an external file.
 
 One way to deal with this is to set
 
 (setq org-table-use-standard-references nil)
 
 Since the default value for the variable is not nil, we could also
 consider preventing the conversion in remote(...) formulas.
 
 What do you think?
 
 -- 
 Bastien



Re: [O] (no subject)

2014-05-02 Thread William Henney
Hi Ryan

Convert to degrees, then multiply by 3600:

| - | - | - | 1@ 11' 37 | - | - | - | 4297 |
#+TBLFM: $8=3600 deg($4); %d

Cheers

Will



On Fri, May 2, 2014 at 8:52 PM, Ryan Moszynski ryan.moszyn...@gmail.comwrote:

 If an org table cell contains the HMS 1@ 11' 37

 is there an easy way to get the total (time)seconds?

 (1*3600 + 11*60 + 37 = 4297)


 if $4 =  1@ 11' 37

 how do I get $8 = 4297?

 thanks

 ryan

 --
 He felt that his whole life was some kind of dream and he sometimes
 wondered whose it was and whether they were enjoying it. - Douglas
 Adams




-- 

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


Re: [O] (no subject)

2014-05-02 Thread William Henney
Or, even better, just divide by the HMS form for 1 second (0@ 0' 1):

| - | - | - | 1@ 11' 37 | - | - | - | 4297 |
#+TBLFM: $8=$4 \ 0@ 0' 1

Note that \ is integer division, so there is no need for a format conversion

Will

P.S. I highly recommend reading the [[info:calc#Basic Arithmetic]] section
of the calc manual



On Fri, May 2, 2014 at 10:01 PM, William Henney when...@gmail.com wrote:

 Hi Ryan

 Convert to degrees, then multiply by 3600:

 | - | - | - | 1@ 11' 37 | - | - | - | 4297 |
 #+TBLFM: $8=3600 deg($4); %d

 Cheers

 Will



 On Fri, May 2, 2014 at 8:52 PM, Ryan Moszynski 
 ryan.moszyn...@gmail.comwrote:

 If an org table cell contains the HMS 1@ 11' 37

 is there an easy way to get the total (time)seconds?

 (1*3600 + 11*60 + 37 = 4297)


 if $4 =  1@ 11' 37

 how do I get $8 = 4297?

 thanks

 ryan

 --
 He felt that his whole life was some kind of dream and he sometimes
 wondered whose it was and whether they were enjoying it. - Douglas
 Adams




 --

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




-- 

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


[O] BUG in reference by ID to remote table (was Re: org babel question: reference tables in remote file)

2014-04-27 Thread William Henney
There is an apparent bug when using the ID property to refer to cells in
remote tables, which is currently the only way to refer to a table in an
external file.

This is illustrated in the attached org file.  In brief, the bug is
triggered by any ID that contains a sequence matching the regexp
-[A-Z]+[0-9]+-, which org wants to interpret as a spreadsheet-style cell
reference.

Also, it would be more user friendly if CUSTOM_ID properties could also be
used in this way.  Would that be easy to implement?

Will


On Thu, Apr 17, 2014 at 1:45 PM, Bastien b...@gnu.org wrote:

 Hi Arun,

 Arun Persaud apers...@lbl.gov writes:

  thanks for the answer. It would be nice to be able to reference tables
  in other files easily though, so some form of path:tablename would
  be great for the remote call. Is there some special ref syntax that
  could be used here?

  remote(NAME-OR-ID,REF)

 describes a reference to a table in a section, possibly in a different
 file, and the ID property is probably more stable than a filename, so
 I'd argue that what we have is enough.

 --
  Bastien




-- 

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


remote-ref-test.org
Description: Binary data


Re: [O] [babel] Setting python interpreter version on per-block or per-subtree basis

2014-04-25 Thread William Henney
Dear Sacha, Ian, and Eric

Thanks very much for your replies.  Sacha's way is a clever idea and works
fine, but I think Eric's patch is the best solution in the long term.
 Please see attached test file - the patch works perfectly.  Although I did
have to study the manual carefully to work out how get it to work using the
#+call: syntax. The key is to use inside header arguments.  Ian's
solution with shebang works when tangling but not for direct evaluation of
the source block.

Cheers

Will




On Fri, Apr 25, 2014 at 10:27 AM, Eric Schulte schulte.e...@gmail.comwrote:

 The attached patch should allow the specification of the python command
 through a new :python header argument.  E.g.,

 #+begin_src python :python /path/to/python2
   return 1 + 2
 #+end_src

 If someone who actually uses python could confirm that it works as
 expected then I'll be happy to apply it.



 Best,
 Eric

 William Henney when...@gmail.com writes:

  Hi
 
  Is there an easy way to specify the python version to use for a
 particular
  block or sub-tree?
 
  My use case is that I have mainly migrated to python 3, but there is
 still
  the occasional library that has not been updated yet, so I need to fall
  back to python 2.7 for some tasks.
 
  I can work around the problem by putting the python 2 code in a separate
  org file and use
 
  # Local Variables:
  # org-babel-python-command: /path/to/python2
  # End:
 
  but keeping everything in the same file would be preferable.
 
  Thanks
 
  Will

 --
 Eric Schulte
 https://cs.unm.edu/~eschulte
 PGP: 0x614CA05D




-- 

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


multi-python.org
Description: Binary data


[O] [babel] Setting python interpreter version on per-block or per-subtree basis

2014-04-24 Thread William Henney
Hi

Is there an easy way to specify the python version to use for a particular
block or sub-tree?

My use case is that I have mainly migrated to python 3, but there is still
the occasional library that has not been updated yet, so I need to fall
back to python 2.7 for some tasks.

I can work around the problem by putting the python 2 code in a separate
org file and use

# Local Variables:
# org-babel-python-command: /path/to/python2
# End:

but keeping everything in the same file would be preferable.

Thanks

Will

-- 

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


Re: [O] putting a element +UWa in table

2014-04-24 Thread William Henney
Assuming you never want to use strike-through text (who does?), you can
customise (or otherwise modify) the variable `org-emphasis-alist` to remove
the entry for +.

Will


On Tue, Apr 22, 2014 at 8:09 AM, Bastien b...@gnu.org wrote:

 Neal Becker ndbeck...@gmail.com writes:

  How do I put such an item in a table without org table
  misinterpreting it?

 You can't.

 --
  Bastien




-- 

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


Re: [O] table export to same buffer

2013-08-12 Thread William Henney
Hi Rustom

Sorry for the delay - I only check the list sporadically…

On Sun, Aug 4, 2013 at 6:13 AM, Rustom Mody rustompm...@gmail.com wrote:



 On Sun, Aug 4, 2013 at 5:04 AM, William Henney when...@gmail.com wrote:


 On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody rustompm...@gmail.comwrote:



[Snip]


 I dont think so.
 The context is writing C with C mode (or haskell with haskell-mode
 python with python-mode etc) ie the user is not using orgmode.  That is why
 I mentioned orgtbl, ie org table editing facilities are needed but the
 major mode is something else.


 What about a radio table using orgtbl-to-generic?

 See Appendix 6 of the Org manual

 Will


 This looks like a useful approach

 The variable names dont seem to match:
 Appendix 6.2 talks of orgtbl-radio-tables
 However org (8.0.7) seems to have orgtbl-radio-table-templates



 Assuming they are the same, anywhere I can read about the documentation of
 the template format?
 Specifically I find that the name of the receiving function
 (orgtbl-to-latex) seems to have a significance.  The same in the template
 seems to have none


The template is not strictly necessary - you can just add the required
lines by hand to your C source file.
I think that orgtbl-to-generic should be able to do what you want out of
the box.  Maybe the attached example (orgtbl-test.c) might help you.  The
idea is that you edit the org table at the top, then C-u C-u C-c C-c will
update all the formulae in the table and install the results in your C
source code at the bottom.  This is not quite what you originally asked
for, since you have two copies of the data in the file and you have to
remember to only edit the version in the org table.  But it is pretty
close.

Cheers

Will




-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia
/* -*- eval: (orgtbl-mode); -*- */

/*
#+ORGTBL: SEND mytable orgtbl-to-generic :lstart const float  :sep  =  :skip 1 :lend ; :skipcols (2 3)
| parameter | numerator | denominator |value |
|---+---+-+--|
| a |   3.0 | 3.0 |  1.0 |
| b |  14.0 | 7.0 |  2.0 |
| c |  -2.0 |15.0 | -0.1 |
#+TBLFM: $4=$2/$3;f5

With point in above table, C-u C-u C-c C-c will update formulae and install into C source

*/
void main() {
// BEGIN RECEIVE ORGTBL mytable
const float a = 1.0;
const float b = 2.0;
const float c = -0.1;
// END RECEIVE ORGTBL mytable
}




Re: [O] table export to same buffer

2013-08-03 Thread William Henney
On Fri, Aug 2, 2013 at 11:52 PM, Rustom Mody rustompm...@gmail.com wrote:

 Sebastien Vauban wrote

 On Fri, Aug 2, 2013 at 10:53 PM, Rustom Mody rustompm...@gmail.comwrote:

 Is it possible to export an orgmode table not to a new file but
 overwriting the org table in the same buffer?

 Context is editing source code which contains a largeish table of (say)
 constants.
 Editing is done with orgtbl minor mode.
 When done it should become back the table in the natural format of the
 programming language
 [For simplicity lets just say csv will do]



 Using an Org Babel code block (which you have to write, of course) taking as
 input your table, and outputting your constants in the wished format should 
 do
 what you're looking for, right?


 I dont think so.
 The context is writing C with C mode (or haskell with haskell-mode python
 with python-mode etc) ie the user is not using orgmode.  That is why I
 mentioned orgtbl, ie org table editing facilities are needed but the major
 mode is something else.


What about a radio table using orgtbl-to-generic?

See Appendix 6 of the Org manual

Will


-- 

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


[O] [babel] bug in ob-latex - :exports argument is not honored when it is set as a header property

2011-09-23 Thread William Henney
Dear list

I believe I have found a bug in the export of latex source blocks (to
HTML, ascii, etc) when ob-latex.el has been loaded.

In summary, setting the :exports argument as a header property fails
to override the default value in org-babel-default-header-args:latex

Please see the attached org file for a demonstration.

Cheers

Will


-- 

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


test-export-latex-src-block.org
Description: Binary data


Re: [O] Wishlist: LaTeX export: automatically append backslash to . unless at end of sentence

2011-08-19 Thread William Henney
Hi András

2011/8/19 András Major andras.g.ma...@gmail.com:
  There is always a longer space between sentences than after a .
  that doesn't mark the end of a sentence

 This could easily be turned off with the use of a single \frenchspacing
 in the preamble (or in the document; you may switch between the two in
 the document as often as you like; e.g. \frenchspacing is active
 starting from the point TeX reads the macro until it is set back to
 \nonfrenchspacing).

 I'm fully aware of that, but that also messes up the spacing between
 sentences.  My proposed solution should be robust enough to be
 more-or-less foolproof yet produce nice-looking output.


What is nice-looking is a matter of personal taste. Personally, I tend
to prefer everything close-set, as with \frenchspacing, although that
is mainly because it is very easy to screw up with LaTeX's default
spacing, and then things look terrible. There is an interesting
discussion at
http://en.wikipedia.org/wiki/History_of_sentence_spacing

If you _do_ want to keep the wider inter-sentence spacing, then you
also need to worry about sentences that end with upper-case letters.
For instance, in LaTeX you should write:

The paper by A. Major et~al.\ was discussed by the General Assembly
of the UN\@.

Without the \@ LaTeX would not recognize the period following UN
to be sentence-ending. Note that there is no need to do anything
special after the A.

If you are going to go this way, I think it should be optional. Not
everyone uses double spaces between sentences in their ascii text.

Cheers

Will

-- 

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



Re: [O] [Announce] A GitHub Issues interface for Org-mode

2011-05-30 Thread William Henney
Hi Puneeth

On Sun, May 29, 2011 at 11:43 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 William,

 Thanks for trying it out!


No problem - anything to avoid doing my real work

 On Mon, May 30, 2011 at 9:16 AM, William Henney when...@gmail.com wrote:

 This looks very promising - thanks! It is a shame though that the body
 of the issue and the comments don't get synched (I see that you have
 these listed as TODO). I also noticed that if I type any text directly

 This is Experimental and I am open to suggestions, but one of the
 problems I have is that the GitHub API v3 is unstable and causing some
 trouble. I initially had a version, where the BODY of the issue was
 being sync-ed, but after a while, I stopped getting the body of the
 issue in the JSON. I'm not sure what went wrong, but a simple GET
 using curl also failed to give me the body.  I shall look at it again,
 in a short while.


Is the v2 API missing some features you need? Maybe it would be better
to use that until v3 is out of beta


 under the issue's heading in my org file, then this text is /wiped/
 when I execute =org-ghi-update-current-issue=. However, any
 subheadings (and their text) do survive, but they never get synched
 back to GitHub.

 I haven't figured out what would be the right way to do this. I am
 open to any suggestions from your side.


Well, the wiping of text directly below an issue's level 2 heading is
a data-loss bug, so I would suggest that you certainly don't do that
:)

With respect to sub-headings (level 3 or below) that are added by hand
to the github.org file, I would suggest that by default you do not
sync them with GitHub. Maybe you could have a function called
something like org-ghi-make-heading-a-comment that would work in a
similar way to org-ghi-make-todo-an-issue. However, it seems that
GitHub issue comments only understand markdown syntax, not org syntax,
so unless the comment is just simple text it would require an export
step (https://github.com/alexhenning/ORGMODE-Markdown might help
there).

Cheers

Will


-- 

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



Re: [O] [Announce] A GitHub Issues interface for Org-mode

2011-05-29 Thread William Henney
Dear Puneeth

On Tue, May 24, 2011 at 11:40 PM, Puneeth Chaganti puncha...@gmail.com wrote:
 Issue Tracker integration with Org-mode has been something that a lot
 of people have been looking for. Being the GitHub addict, that I am, I
 decided to hack up something that integrates GitHub issues with
 Org-mode.


This looks very promising - thanks! It is a shame though that the body
of the issue and the comments don't get synched (I see that you have
these listed as TODO). I also noticed that if I type any text directly
under the issue's heading in my org file, then this text is /wiped/
when I execute =org-ghi-update-current-issue=. However, any
subheadings (and their text) do survive, but they never get synched
back to GitHub.

Cheers

Will

 It presently allows
 - Importing all open issues from a project into an org-file. [Milestone
  due dates (if any) are added as Deadlines.
 - Closing Issues, Editing Tags, Changing Issue Name
 - Convert a TODO item into an Org-mode issue.

 However, it uses APIv3 of GitHub, which is Beta. So, expect some
 erratic behaviour. :)

 I have put up my code here [1]. The code isn't all that clean and
 robust, but it works. Hope atleast some of you will find it useful.
 Any suggestions, feedback and code help is more than welcome.




-- 

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



Re: [O] Thinkbook

2011-05-20 Thread William Henney
On Thu, May 19, 2011 at 7:52 AM, Giovanni Ridolfi
giovanni.rido...@yahoo.it wrote:
 -- Gio 19/5/11, Carsten Dominik carsten.domi...@gmail.com ha scritto:
 Data: Giovedì 19 maggio 2011, 12:12
 Thinkbook App for the iPad.  I
 *really* think these
 guys need to put in an acknowledgement for Org-mode.
 :/

 http://www.148apps.com/reviews/thinkbook/
 http://www.thinkbookapp.com/

 We could ask to comment if they
 have been _inspired_ by Org mode or Org Mobile.


No need to ask. Look at message #8 in this thread:

https://thinkbook.tenderapp.com/discussions/questions/10-guidelines-for-text-format

The developer says he originally wanted to use org-mode syntax for the
app's file format, but that he ran out of time (and I assume ended up
using something simpler).

Cheers

Will

-- 

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



Re: [Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-15 Thread William Henney
Hi Eric

On Mon, Jun 14, 2010 at 4:46 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Great, thanks for hunting this down, I've changed org-babel-latex.el to
 call the function you mentioned above and everything appears to be
 working.


I confirm that org-babel export of latex snippets to pdf now works as
advertised. Thanks!

Cheers

Will

-- 

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

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


Re: [Orgmode] Two bugs in org-indent (plus a fix to correct one of them)

2010-06-15 Thread William Henney
Hi David

Thanks for looking at this.

On Tue, Jun 15, 2010 at 6:02 AM, David Maus dm...@ictsoc.de wrote:
 William Henney wrote:
Hi all

1. If one sets org-indent-indentation-per-level to any value other
than the default of 2, then the indentation of lines following a
heading is not correct. I seem to have managed to fix this by changing
line 231 of org-indent.el from

                n (* (or level 0) org-indent-indentation-per-level

to

                n (+ 2 (* (1- (or level 0)) 
 org-indent-indentation-per-level)

Tested with org-indent-indentation-per-level = 0, 1, 2, and 3.

 I don't understand this: The original formula sets the indentation
 level of n times org-indent-indentation-per-level with n being the
 outline level.  Why do you consider this not being correct?[1]


Consider what one would want to happen when
org-indent-indentation-per-level = 1 (which is what I prefer):

Indentation of 0
* Level one heading
  Indentation of 2
** Level two heading
   Indentation of 3
*** Level three heading
Indentation of 4

So, the desired sequence of indentation is [0, 2, 3, 4, ...] whereas
the original formula gives the sequence [0, 1, 2, 3, ...]

 [1] Besides, the suggested function does not consider no outline
 level.  I.e. returns negative indentation.

Yes, you are quite right -- my function does indeed return garbage if
you are before the first headline.  However, in practice this is not a
problem since the line-prefix and wrap-prefix text properties only
seem to get applied to text after headlines. But I am sure that the
lisp experts on the list can come up with a more elegant function than
mine.

Cheers

Will


-- 

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

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


Re: [Orgmode] Two bugs in org-indent (plus a fix to correct one of them)

2010-06-15 Thread William Henney
On Tue, Jun 15, 2010 at 6:10 PM, William Henney when...@gmail.com wrote:
 Indentation of 0
 * Level one heading
  Indentation of 2
 ** Level two heading
   Indentation of 3
 *** Level three heading
    Indentation of 4

This is very odd - gmail ate my spaces! What I actually typed was the
following (spaces substituted by underscores this time):

Indentation of 0
* Level one heading
__Indentation of 2
** Level two heading
___Indentation of 3
*** Level three heading
Indentation of 4

Cheers

Will


-- 

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

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


[Orgmode] [org-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread William Henney
Hi all

If I have a snippet like so:

#+begin_src latex :file foo.png
Hello from org-babel!
#+end_src

then I can execute the source block with no problems, producing the
image foo.png.

However, if I change the filename to foo.pdf then it no longer works.

An intermediate .tex file is produced that contains the line

\usepackage[AUTO]{inputenc}

which causes latex to fail. Presumably, the string AUTO should have
been expanded to something, but it wasn't.

This is with yesterday's org-mode and emacs 23.2.1, aquamacs 2.0

Cheers

Will


-- 

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

___
Emacs-orgmode mailing list
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-babel] Bug in org-babel-latex when writing to PDF

2010-06-14 Thread William Henney
Hi Eric

Thanks for your response

On Mon, Jun 14, 2010 at 1:17 PM, Eric Schulte schulte.e...@gmail.com wrote:
 Your code snippet exports as expected for me using the latest version of
 Org-mode.

 What values do you have set for the
  `org-export-latex-default-packages-alist' and
  `org-export-latex-packages-alist'
 variables?

 My guess is that the problem could be in a rogue entry in one of those
 values.  If you'd like to re try with (a subset of) my settings you can
 by evaluating the following elisp.

I see the error even when I start a vanilla emacs with no
customizations. Yes, you are right that
org-export-latex-default-packages-alist is the culprit, but the
problem is with the default value of this variable. You do not see the
problem because you have overwritten that variable to remove the
problematic part!

The default value of org-export-latex-default-packages-alist, as
defined on line 3076 of org.el, begins

((AUTO inputenc t)
 (T1 fontenc t)
 ... etc ...

This works fine in the normal latex export, since the string AUTO gets
replaced by the correct file encoding, but this is not being done in
org-babel-latex.

It looks like the function that should be used is
org-export-latex-fix-inputenc, which is defined in org-latex.el

Cheers

Will




-- 

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

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


[Orgmode] Two bugs in org-indent (plus a fix to correct one of them)

2010-06-12 Thread William Henney
Hi all

I have recently started using org-indent (together with word-wrap) for
new org files. In general, I love it. But there are a couple of small
problems:

1. If one sets org-indent-indentation-per-level to any value other
than the default of 2, then the indentation of lines following a
heading is not correct. I seem to have managed to fix this by changing
line 231 of org-indent.el from

 n (* (or level 0) org-indent-indentation-per-level

to

 n (+ 2 (* (1- (or level 0)) 
org-indent-indentation-per-level)

Tested with org-indent-indentation-per-level = 0, 1, 2, and 3.

2. org-indent fails to play nicely with org-inlinetask in two ways

   i) It destroys the special fontification of the inline task's
leading stars, even if org-indent-mode-turns-on-hiding-stars is set to
nil

   ii) Any text after an inline task's END statement is soft-indented
as though it were part of the inline task, whereas the indentation
should ideally return to what it was before the inline task. Of
course, this is also a problem when org-indent is turned off, if you
try to automatically hard-indent using TAB. However, in that case you
can adjust by hand the indentation of the first line after the inline
task, and then all the following lines will indent correctly. With
org-indent the problem is much worse since there is no way of
adjusting the soft indents by hand.

Cheers

Will

P.S. Has anyone successfully converted a pre-existing org file to a
form suitable for use with org-indent? By which I mean that the
pre-existing file was written with hard line breaks and hard indents.
The task is not trivial since one needs to remove the hard indents due
to the nesting of the org headings, but to leave alone the hard
indents due to the nesting of plain lists.

-- 

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

___
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] Does anyone use Jump C-c C-j

2010-04-29 Thread William Henney
Hi all

On Thu, Apr 29, 2010 at 10:37 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Apr 29, 2010, at 5:27 PM, Eric S Fraga wrote:

 On Thu, 29 Apr 2010 09:15:53 -0600, David Frascone d...@frascone.com
 wrote:

 On Thu, Apr 29, 2010 at 8:56 AM, Eric S Fraga ucec...@ucl.ac.uk wrote:

 except for aquamacs opening the help in another window.  I think I
 need to go back to Emacs.app

 This, unfortunately, I cannot help with, having never used a
 Mac... (I'm linux 100% and have been since '92).  I have no idea what
 the difference between Emacs.app and Aquamacs may be...

 AquaEmacs tries to be like other Mac Applications, which all open a new
 frame for each document.

 I think you can get i back to more normal Emacs behavior by customizing

 `pop-up-frames', `pop-up-windows', `display-buffer-reuse-frames'.


Actually, I think you just need to do

(setq special-display-regexps nil)

to get Aquamacs to behave properly

See http://www.emacswiki.org/emacs/AquamacsEmacsCompatibilitySettings

Cheers

Will


-- 

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


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


[Orgmode] A table formula bug: incremental column fill with negative values

2010-04-23 Thread William Henney
Hi all

The following is using today's git trunk of org-mode with emacs
23.1.94.1 (aquamacs 2.0preview5)

Consider the following table

| -8 |
||
||
||
#+TBLFM: $...@-1 - 1::@1$1=-8

Evaluate formulas once (C-u C-c *):

| -8 |
| -9 |
||
| -1 |

Evaluate formulas again (C-u C-c *):

| -8 |
| -9 |
||
||

What I expected:

|  -8 |
|  -9 |
| -10 |
| -11 |

The problem always seems to start at -10. When I turn on table
debugging, it first calculates the -10 value correctly, but then fails
to recognise the -10 cell as a number when calculating the next row,
using 0 instead, which results in -1. This is because during the
intermediate formatting of the cell the minus sign in -10 abuts the
column separator: |-10 |, and the |- part is then interpreted as
the beginning of an hline.

Any possibility of a fix? Just prepending a space to all calculated
negative numbers might be enough.

Cheers

Will

-- 

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


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


SOLVED Re: [Orgmode] cannot pull from repo.or.cz today

2010-04-23 Thread William Henney
Just to tie up this old thread.

On Thu, Mar 18, 2010 at 3:32 AM, Scot Becker scot.bec...@gmail.com wrote:
 ...and here.

 On Wed, Mar 17, 2010 at 6:37 PM, David Maus dm...@ictsoc.de wrote:

 William Henney wrote:
 Is anyone else seeing this?

 $ git pull --verbose
 repo.or.cz[0: 195.113.20.142]: errno=Operation timed out
 fatal: unable to connect a socket (Operation timed out)

 Nope, works fine here.


Thanks for checking!

It turned out that there was nothing wrong with repo.or.cz - the
problem was simply that the sysadmins at my institute had started to
block the port used by the git protocol (9418).

Thankfully, they listened to reason and I am now happily git-pulling
during office hours again!

Cheers

Will

-- 

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


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


[Orgmode] cannot pull from repo.or.cz today

2010-03-17 Thread William Henney
Is anyone else seeing this?

$ git pull --verbose
repo.or.cz[0: 195.113.20.142]: errno=Operation timed out
fatal: unable to connect a socket (Operation timed out)

Cheers

Will

-- 

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


___
Emacs-orgmode mailing list
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 spreadsheet SUMIF

2010-03-08 Thread William Henney
Hi Jeff

On Mon, Mar 8, 2010 at 6:54 AM, Jeff Kowalczyk j...@yahoo.com wrote:
 What is the Org Mode spreadsheet formula idiom for a SUMIF function?

 The objective is to add up the numeric values for rows matching a tag column:

 | 2010-03-01 | 12.2 | foo |
 | 2010-03-02 | 11.5 | foo |
 | 2010-03-02 | 12.6 | bar |
 | 2010-03-03 | 10.2 | foo |

 Need a total for foo: 33.9, and bar: 12.6, etc.

This is perhaps not the most elegant solution, but it does work.

|   date | values | tag | foo values | bar values |
|++-++|
| 2010-03-01 |   12.2 | foo |   12.2 |  0 |
| 2010-03-02 |   11.5 | foo |   11.5 |  0 |
| 2010-03-02 |   12.6 | bar |  0 |   12.6 |
| 2010-03-03 |   10.2 | foo |   10.2 |  0 |
|++-++|
||| |   33.9 |   12.6 |
  #+TBLFM: $4='(if (string-equal $3 foo) $2 0);L::$5='(if
(string-equal $3 bar) $2
0);L::@6$4=vsum(@i...@ii)::@6$5=vsum(@i...@ii)

The idea is to make an extra column containing only the values with a
certain tag, and then sum that. It has the advantage that there is a
natural place in the table to put each conditional sum.

You could probably avoid the need for the extra columns if you recoded
the summation using an elisp formula instead of a calc formula. As far
as I know, you can't do string comparisons inside a calc formula.

Cheers

Will

-- 

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


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


[Orgmode] Table formula bug?

2010-03-07 Thread William Henney
Hi Carsten et al

Anyone have a clue what is going on here?

Cheers

Will

* Arctan2 bug
Activate the formula editor for the following table with =C-c '=, then
exit without changing anything. Note what happens to the arctan2
formula. For me, arctan2 changes to @2$20173232.
| x | y | arctan | arctan2 |
|---+---++-|
| 1 | 1 | 45 | 45. |
#+TBLFM: $3=arctan($1/$2)::$4=arctan2($1,$2)

** Versions
Org 6.34trans, Aquamacs 2.0preview4, Emacs 23.1.92.1




-- 

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


___
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] Table formula bug?

2010-03-07 Thread William Henney
Hi Carsten,

On Sun, Mar 7, 2010 at 9:22 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:
 Org does read arctan2 as a field reference like B4 or AB2 and determinates
 that this is a row REALLY far to the right.

 I have fixed this special case.  Are there more functions in calc which have
 names like this?

I confirm that your fix works. Thanks for doing this so fast!

A quick search for digits in the (calc) Function Index info node
gives the following list:

arctan2, exp10, expm1, lnp1, log10, stir1, stir2

Here is a list of all the calc operators that I could find, some of
which might confuse your regexps:

!, !!, !!!, !=, %, , , *, +, +/-, -, /, :, ::, :=, , =, =, ==,
=, , =, ?, \, ^, _, |, ||, |||

I don't think it is necessary to allow all of these in table formulae
since many have synonyms. E.g., `x  y' can be written `pand(x, y)'

Cheers

Will



-- 

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


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


Re: [Orgmode] URLs are not always linked properly

2009-12-01 Thread William Henney
On Mon, Nov 30, 2009 at 11:47 AM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 On Nov 30, 2009, at 8:10 PM, PT wrote:

 For example, for this URL the bracketed part is not handled as part of the
 URL,
 though it should be:

 http://en.wikipedia.org/wiki/Lost_(TV_series)

 More often than not parenthesis are around a link, not part of it - this is
 why the plain link heuristics does not allow them.   Please surround such
 links with .. or [[..]]



Coincidentally, just last Friday John Gruber posted a regex that deals
nicely with these cases:

http://daringfireball.net/2009/11/liberal_regex_for_matching_urls

I think it is a perl-style regex, but perhaps it could be ported to
emacs regexes.

Cheers

Will


-- 

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


___
Emacs-orgmode mailing list
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: Org-mode version 6.30d; Hide stars

2009-09-04 Thread William Henney
])
  (quote org-agenda-later))
 (define-key org-agenda-keymap [drag-mouse-3]
  (quote
   (lambda (event) (interactive e)
(case (org-mouse-get-gesture event)
 (:left (org-agenda-earlier 1)) (:right 
(org-agenda-later 1)))
)
   )
  )
 )
)
 org-agenda-start-on-weekday nil
 org-enforce-todo-dependencies t
 org-icalendar-store-UID t
 org-occur-hook '(org-first-headline-recenter)
 org-from-is-user-regexp \\William Henney\\
 org-remember-templates '((Todo 116 * TODO %?\n  %i\n  %a
~/org/TODO.org Tasks)
  (Journal 106 * %U %?\n\n  %i\n  %a 
~/org/JOURNAL.org)
  (Idea 105 * %^{Title}\n  %i\n  %a 
~/org/JOURNAL.org
   New Ideas)
  )
 org-icalendar-include-todo t
 )


-- 

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


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


Re: [Orgmode] Re: Latex export to documentclass beamer

2009-08-10 Thread William Henney
On Mon, Aug 10, 2009 at 6:46 AM, Carsten
Dominikcarsten.domi...@gmail.com wrote:
 2. Is there a way to add an attribute to latex lists (itemize, enumerate,
 description} so that:

 * Slide 1
 - x
 - y
 - z

 gets output as:
 \begin{itemize}[+-]
 \item x
 \item y
 \item z
 \end{itemize}

 No.

Although you could always add

\beamerdefaultoverlayspecification{+-}

to the preamble.

Cheers

Will

-- 

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


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


Re: [Orgmode] iPhone ---- org-mode

2009-03-26 Thread William Henney
On Thu, Mar 26, 2009 at 4:39 PM, Carsten Dominik
carsten.domi...@gmail.com wrote:

 I am still looking for a dedicated iPhone developer who will write
 and Org-mode app :-)


I would love to see that! But I have neither the skills, time, nor
funding to help (though I would pay good money for the app).

offtopic
So, I searched for emacs at the ITunes store and I found a couple of
useless-looking cheat sheets[1] for the  iPhone/Touch, plus a track
called Emacs by a trance/techno band called BandX. And their album
(11R6) seems to be named after a release of X windows...
/offtopic

Cheers

Will

[1] If you are in emacs, you have C-h b, M-x apropos, etc. If you
are not in emacs, why would you need to know the keybindings?


-- 

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


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


Re: [Orgmode] iPhone ---- org-mode

2009-03-25 Thread William Henney
On Wed, Mar 25, 2009 at 10:35 AM, Ian Barton li...@manor-farm.org wrote:


 I do hope that this will not stop python hackers from exploring
 this further, because I thought that the python solution was really
 good and innovative, and it shows what can be done with modules like
 the ones Charles has put out.

 - Carsten

 Don't worry it wont:) I have set up a repo for my Python version at
  git://github.com/geekinthesticks/org-reqall.git . It doesn't have anything
 in it at the moment, because I stupidly put my own reqall rss url in one of
 the versions for testing purposes, so its in the version history.


I also have been hacking on Ian's python script - I hope you don't mind!

I changed it to support Ta-da lists (tadalist.com) rather than reqall.
In my opinion, ta-da list is a much simpler and has a nice clean
interface. It has the disadvantage that it doesn't have an
accompanying iPhone/Touch app that works offline, although it does
have a beautiful ipod-optimized web interface. And it doesn't support
bling such as voice memos, but then reqall doesn't support voice memos
on the Touch either, even if you have an external mic :(

Anyway, I am attaching it (sync-tadalist.py) in case anyone finds it
useful. In particular, it has a few changes that Ian might want to
fold back into his version. For instance, it solves the private URL
problem by reading it from an external dot file. Also, the original
was repeatedly parsing the org file inside the loop over feed entries.
This is unnecessary, so I have moved it outside.

I guess that ideally we want a webservice that

1. Allows adding tasks etc via a mobile device, preferably with
offline capabilities and syncing

2. Exports RSS feeds of tasks so that org-mode can grab them

3. Exports an API that would let org-mode write information back to
the service, e.g., marking a task as done

Does anyone know of a service that supports all 3?

Cheers

Will


-- 

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


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


Re: [Orgmode] org-exp-bibtex.el - add support to citing bibtex in both html and latex exports

2009-03-04 Thread William Henney
On Tue, Mar 3, 2009 at 3:34 AM, Carsten Dominik domi...@science.uva.nl wrote:
 Now how do we want to do this with org-mode?
 1) The user is responsible for creating a bib-file using
 whatever tools she prefers (e.g. bib2bib).
 2) Add an option to just select the entries that are used
 in the org-file. Nothing fancy.

 I think (1) and (2) would be really nice.


 3) Add a generic API to select+sort+format the entries.

 (3) seems to be indeed more than necessary.  I for one would be perfectly
 happy if the entries would come out in the sequence of citation, which
 will likely be automatic?

Agreed. Alphabetic sorting would be a nice optional extra, but just
(1) and (2) would be great.

Cheers

Will

-- 

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


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


Re: [Orgmode] worg accessibility

2009-02-06 Thread William Henney
Hi Samuel

On Thu, Feb 5, 2009 at 5:54 PM, Samuel Wales samolog...@gmail.com wrote:
 Thanks for trying it.

 Your screenshot looks good, but I don't get that using the preferences
 panel.  I am using Tiger.


Ah, that might explain it. Lots of little annoyances got fixed in
Leopard (a few other little annoyances got introduced, but that's
another story)

 I think it's something with worg, because most other sites do not run
 text together vertically.


Maybe it is the text-align: justify; setting. You could try nuking
that with a user style sheet - is that possible in Tiger?

Cheers

Will


-- 

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


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


Re: [Orgmode] html heading levels when exporting sub-tree

2009-02-06 Thread William Henney
Hi Carsten

On Fri, Feb 6, 2009 at 1:38 AM, Carsten Dominik domi...@science.uva.nl wrote:
 I guess you are right that this should work differently,
 but it is not as easy to fix as I thought.  It is on my
 list, though.


OK, I understand. Thanks for looking into it. I really appreciate the
effort that you put into org mode development. How you manage to do
all this and be scientifically productive too never ceases to astound
me.

Cheers

Will


-- 

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


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


Re: [Orgmode] Re: Advice sought on managing decision alternatives.

2009-02-06 Thread William Henney
On Fri, Feb 6, 2009 at 7:08 AM, Carsten Dominik domi...@science.uva.nl wrote:
 CHOOSEas the prefix
 choseness as the interpretation
 org-decision as the name of the module.

 My request would be to maybe use `choose' also as the
 interpretation symbol, or, alternatively, CHOSENESS
 as the prefix.


I believe the standard spelling is chosenness, although it is a very
rare word in English outside of Judaism :)

Cheers

Will



-- 

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


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


Re: [Orgmode] Automatic Update of Org files

2009-02-06 Thread William Henney
Mark

On Fri, Feb 6, 2009 at 12:54 PM, Mark Elston m.els...@advantest-ard.com wrote:
 You say you are using Python.  I have used Perl since I found a SOAP
 package for Perl and I haven't seen one for Python and I need it for
 accessing TestTrack.  I would prefer Python otherwise.

http://www.diveintopython.org/soap_web_services/

HTH

Will

-- 

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


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


Re: [Orgmode] error when exporting org to html

2009-02-05 Thread William Henney
Hi Giovanni

On Thu, Feb 5, 2009 at 9:14 AM, Giovanni Ridolfi
giovanni.rido...@yahoo.it wrote:

 1. I selected the region with C-c @ and the I did
   C-c C-e h

 -and I found the *whole* file exported.


This has always (and still does) work correctly for me. That is, only
the region is exported. Perhaps it is some interaction with your
customizations. Have you turned off transient-mark-mode perhaps?

[snip]

 Regarding the issue of the subheadings, I found that,
 if the region begins with sublevel
 higher than 3, the region is exported
 as a list and not with numbered headings:

You can change that with, for example:

#+OPTIONS:   H:6

However, there are certainly issues with the html headers when
exporting a sub-tree. I raised this exact point last week
(http://lists.gnu.org/archive/html/emacs-orgmode/2009-01/msg00729.html)
but have not received any answer. I don't know if it just fell through
the cracks or if it is not considered to be a reasonable question :)

Cheers

Will

-- 

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


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


Re: [Orgmode] error when exporting org to html

2009-02-05 Thread William Henney
Correction:

On Thu, Feb 5, 2009 at 9:37 AM, William Henney when...@gmail.com wrote:
 However, there are certainly issues with the html headers when

I meant headings (i.e. h1, h6, etc), not headers.

-- 

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


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


Re: [Orgmode] worg accessibility

2009-02-05 Thread William Henney
Hi Samuel

2009/2/5 Samuel Wales samolog...@gmail.com:
 I have an issue with worg, which is that it is unreadable.
 The R tutorial, Carsten's beginner's guide, and
 http://orgmode.org/worg/index.php, for example, run lines
 together vertically when it is displayed with size 24 fonts
 (the only fonts that I can use since Safari has no larger
 ones).  I can sort of make out what they are saying, but I
 give up because it is too difficult.  Smaller fonts are not
 an option.  Magnification is not an option for various
 reasons.

The worg site looks fine to me in Safari with big fonts - the biggest
size I can get is about 48 pt. I am sending you a screenshot off-list.
I haven't changed the default font size - I just used the trackpad
two-finger pinch+zoom to increase the font size, but Cmd-+ has the
same effect.

Mac OS X 10.5.5 on an early-2008 model Macbook Pro.

Cheers

Will

-- 

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


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


Re: [Orgmode] Wishlist: drop a4paper option from the default LaTeX class

2009-01-31 Thread William Henney
On Sat, Jan 31, 2009 at 10:42 AM, Carsten Dominik
domi...@science.uva.nl wrote:
 Are there other opinons on this request?


+1

This is a localization, and as such should not be hard-wired

Will



-- 

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


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


Re: [Orgmode] POLL: the 40 variables project

2009-01-30 Thread William Henney
On Thu, Jan 29, 2009 at 2:49 AM, Carsten Dominik domi...@science.uva.nl wrote:

 So here is my question to all of you.  Could you, in reply to this
 message, list all the Org-related variables that you have customized,
 along with the values you used?

I had forgotten the per-file customizations. Do you want these too?

I have pruned this list of repetitions and boring stuff like TITLE,
AUTHOR, etc.

#+STARTUP:   lognotestate
This must have seemed like a good idea at some stage. Strangely
enough, it doesn't seem to work. Possibly because I have org-log-done
set to t in my global config, which does not seem to be one of the
allowed values.

#+SEQ_TODO: TODO(t) STARTED(s) WAITING(w@) | DONE(d) CANCELED(c@)
#+SEQ_TODO: | BOUGHT(b)
#+SEQ_TODO: RUNNING(r@) PAUSED(p@) | FINISHED(f@)
#+SEQ_TODO: | ANOTHERDAY(a@)
#+SEQ_TODO: MAYBE(m) PLAN_TO_BUY(p@) DONT_THINK_SO(d@) | BOUGHT(b) NEVER(n)
#+SEQ_TODO: PENDIENTE(p@) | APROPADO(a) DESAPROPADO(d@)
Different files require different todo sequences.

#+OPTIONS:   H:5 num:t toc:nil \n:nil @:t ::t |:t ^:t -:t f:t *:t
TeX:t LaTeX:t skip:t d:nil tags:not-in-toc
Export options are set differently in different files according to
need, although I now tend to set the :EXPORT_OPTIONS: property on a
sub-tree.

#+LINK: mailplane shell:open mailplane:%s
#+LINK: adsauthor
http://adsabs.harvard.edu/cgi-bin/nph-abs_connect?author=%sdb_key=AST
#+LINK: adscode http://adsabs.harvard.edu/abs/%s

#+EXPORT_SELECT_TAGS: export
#+EXPORT_EXCLUDE_TAGS: noexport
I generally use the COMMENT state to control what is exported, but at
one stage I must have tried to do something more complicated. I didn't
stick to it.


Cheers

Will

-- 

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


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


[Orgmode] Re: html heading levels when exporting sub-tree

2009-01-30 Thread William Henney
Correction

On Fri, Jan 30, 2009 at 1:39 PM, William Henney when...@gmail.com wrote:
 Currently, if I export the third sub-tree to html (via C-c @ C-x
 C-e h),

That should have been C-c @ C-c C-e h

Cheers

Will


-- 

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


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


Re: [Orgmode] POLL: the 40 variables project

2009-01-29 Thread William Henney
On Thu, Jan 29, 2009 at 2:49 AM, Carsten Dominik domi...@science.uva.nl wrote:
 So here is my question to all of you.  Could you, in reply to this
 message, list all the Org-related variables that you have customized,
 along with the values you used?

Here goes...

Cheers

Will

(add-to-list 'auto-mode-alist '(\\.org$ . org-mode))
;; global binding for saving a link to the current file
(define-key global-map \C-cl 'org-store-link)
;; global binding for agenda
(define-key global-map \C-ca 'org-agenda)
;; where to keep all the files
(setq org-directory ~/Org/)

;; integration with calendar/diary
(setq org-agenda-start-on-weekday nil)
(setq org-agenda-include-diary t)

;; Export to iCal - In iCal.app subscribe to http://localhost/orgmode.ics
(setq org-combined-agenda-icalendar-file
/Library/WebServer/Documents/orgmode.ics)
(setq org-icalendar-store-UID t)

;; turn on logging
(setq org-log-done t)
;; prettier formatting
(setq org-hide-leading-stars t)
(setq org-startup-folded nil)
;; export latex equations
(setq org-export-with-LaTeX-fragments t)

;; exporting projects to HTML
(setq org-publish-project-alist
  '((temarios-html
 :base-directory ~/Org/temarios
 :publishing-directory /ssh:w...@crya:/http/pub/will
 :publishing-function org-publish-org-to-html
 :section-numbers nil
 :table-of-contents nil
 :style link rel=stylesheet
 href=\temarios.css\
 type=\text/css\
 )
[ ... AND LOTS MORE LIKE THAT ... ]
))


(custom-set-variables
 '(org-agenda-files (quote (long list of files)))
 '(org-calc-default-modes (quote (calc-internal-prec 20
calc-float-format (float 5) calc-angle-mode deg calc-prefer-frac nil
calc-symbolic-mode nil calc-date-format ( - MM - DD   Www (
 HH : mm)) calc-display-working-message t)))
 ;; I use these for switching windows
 '(org-disputed-keys (quote (([(control tab)] . [(control shift tab)]
 '(org-enforce-todo-dependencies t)
 '(org-icalendar-include-todo t)
 '(org-replace-disputed-keys t)
 )

(custom-set-faces
 '(org-code class color grayscale) (min-colors 88) (background
light)) (:foreground grey30 :family -apple-monaco-*
 '(org-date class color) (background light)) (:foreground
DarkSeaGreen4 :underline t
 '(org-done ((t (:foreground chartreuse3 :overline gray :underline
gray :weight bold :height 0.75
 '(org-level-1 class color) (min-colors 88) (background light))
(:foreground #a26 :weight bold
 '(org-level-2 class color) (min-colors 16) (background light))
(:inherit org-level-1 :foreground #23a
 '(org-level-3 class color) (min-colors 88) (background light))
(:inherit org-level-1 :foreground #2a2
 '(org-level-4 class color) (min-colors 88) (background light))
(:inherit org-level-1 :foreground #952
 '(org-level-5 class color) (min-colors 16) (background light))
(:inherit org-level-1 :foreground #829
 '(org-level-6 class color) (min-colors 16) (background light))
(:inherit org-level-1 :foreground #288
 '(org-level-7 class color) (min-colors 16) (background light))
(:inherit org-level-1 :foreground #882
 '(org-level-8 class color) (min-colors 16) (background light))
(:inherit org-level-1 :foreground #911
 '(org-link class color) (background light)) (:foreground
MidnightBlue :underline t
 '(org-table class color) (min-colors 88) (background light))
(:inherit org-table :foreground Blue4 :family -apple-monaco-*
 '(org-tag ((t (:box (:line-width 1 :color grey75) :slant italic
:weight light :height 0.7
 '(org-time-grid class color) (min-colors 16) (background light))
(:foreground DarkGoldenrod
 '(org-todo ((t (:foreground Red2 :overline gray :underline gray
:weight bold :height 0.75
)



-- 

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


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


Re: [Orgmode] BUG? - Time summary overlay inherits org-tag face if heading has tags

2009-01-21 Thread William Henney
Hi Carsten

On Wed, Jan 21, 2009 at 3:32 AM, Carsten Dominik domi...@science.uva.nl wrote:
 If a heading has tags, then that heading's time summary overlay (shown
 by C-c C-x C-d) is displayed using the org-tag face. This looks a bit
 strange. Is it intended?


 What is intended is that the face should be only a highlight, and inherit
 the rest from the headline face which is below the overlay.

 Of course the assumption was that the tag face would not be too different
 from the headline face


Apologies for violating your assumption then :)

I take it that fixing this would not be straightforward? In that case,
it is probably not worth bothering with for a purely cosmetic issue. I
had put the tags in a smaller font so they weren't quite so in my
face. I was wondering if I could achieve a similar effect by having
the tags go in a property drawer instead of in the headline, but I
couldn't see from the manual how to do this. The TAGS property seems
to be created on the fly.

Cheers

Will

-- 

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


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


[Orgmode] BUG? - Time summary overlay inherits org-tag face if heading has tags

2009-01-20 Thread William Henney
Hi list

If a heading has tags, then that heading's time summary overlay (shown
by C-c C-x C-d) is displayed using the org-tag face. This looks a bit
strange. Is it intended? It is especially noticeable in my case, since
I have my tags shown in a smaller font.

org-mode 6.17, emacs 22.3.2, aquamacs 1.5

Cheers

Will

-- 

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


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


[Orgmode] org-plot histogram bug when the x-axis labels could be interpreted as numbers

2009-01-14 Thread William Henney
Hi list

* org-plot bug

  The following table works correctly with org-plot
#+PLOT: title:org-plot test ind:1 type:2d with:hist set:style fill
solid set:yrange [0:]
  |  Year | a | b |
  |---+---+---|
  | x2006 | 3 | 1 |
  |  2007 | 1 | 2 |
  |  2008 | 2 | 0 |

  However, if the x is removed from the start of all the years, it no
  longer works:

#+PLOT: title:org-plot bug ind:1 type:2d with:hist set:style fill
solid set:yrange [0:]
  | Year | a | b |
  |--+---+---|
  | 2006 | 3 | 1 |
  | 2007 | 1 | 2 |
  | 2008 | 2 | 0 |

  From glancing through org-plot.el, it seems as though the problem is
  that the text-ind parameter is false when all the values in the
  independent variable column are legal numbers. However, my lisp
  skills are not up to fixing this.


Cheer

Will

-- 

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


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


Re: [Orgmode] Pulling Carsten's changes.

2009-01-08 Thread William Henney
On Thu, Jan 8, 2009 at 10:58 AM, Matthew Lundin m...@imapmail.org wrote:

 There's a nice FAQ entry on this:

 http://orgmode.org/worg/org-faq.php#keeping-current-with-Org-mode-development


This reminds me that I had a couple of minor niggles with this process
when I tried to pull a new version:

1. Shouldn't the Makefile install target have install-info added
as a dependency? Otherwise, item 3 of the FAQ entry should be modified
to include make install-info. Also, the default installation
directory is /usr/local, which is not usually user-writable, so it
should be sudo make install.

2. Item 6 in the FAQ entry says You should restart org mode to have
the changes take effect. What is the best way to do this? I couldn't
get anything to work, short of rebooting emacs.

Cheers

Will

-- 

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


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


OT Re: [Orgmode] Re: Suggestion with bad patch for org-remember-templates

2009-01-05 Thread William Henney
On Mon, Jan 5, 2009 at 12:41 PM, Carsten Dominik domi...@science.uva.nl wrote:

 --
 In the bathtub of history the truth is harder to hold than the soap,
 and much more difficult to find.  -- Terry Pratchett


 I do love this citation in your signature..


Actually, as of last week it should be Sir Terry Pratchett

http://news.bbc.co.uk/2/hi/entertainment/7805143.stm

:)

Will

-- 

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


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


Re: [Orgmode] question about org-region-active-p

2008-12-16 Thread William Henney
Hi Robert

On Mon, Dec 15, 2008 at 7:51 PM, Robert Goldman rpgold...@sift.info wrote:
 [I found this because I tried to publish a subtree of an org file, and I
 found that org-region-active-p was NIL even after C-c @
 (outline-mark-subtree).]

 This may be an oddity of aquamacs -- it seems to prefer cua-mode and
 turn off transient-mark-mode by default.  I confess to not really
 understanding that decision or its implications.

I use Aquamacs with org-mode every day, and I have never run into this
problem. I just checked by turning off my customizations and
transient-mark-mode is indeed on by default. After doing C-c @ in an
org file, then M-: (org-region-active-p) gives t, as expected.
Maybe it is a problem with your customizations. You can check by
running M-x start-vanilla-aquamacs.

I am running Aquamacs 1.5, org-mode 6.12b

Cheers

Will


-- 

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


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


Re: [Orgmode] Publishing my personal website with Org-mode

2008-11-20 Thread William Henney
On Thu, Nov 20, 2008 at 10:01 AM, Matthew Lundin [EMAIL PROTECTED] wrote:
 Yes, the horizontal TOC is standard org with some CSS styling. I still
 have concerns about its usability, but I like the look of it.

Indeed, your horizontal TOC is very beautiful. I guess the main
usability concern is that it is not immediately obvious that it is a
TOC for the page, rather than a bunch of links to separate pages on
your site.

Would you mind if I sought (ahem) inspiration from your CSS file?

Here is an example of a small bunch of pages that I published with org:

http://www.crya.unam.mx/~will/temarios-armonia.html

Much less ambitious than the other examples given, but it did its job.

Cheers

Will


-- 

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


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


Re: [Orgmode] Re: Does this happen to you? Aquamacs messes with you! (but I still like my Mac)

2008-11-10 Thread William Henney
Hi list

On Mon, Nov 10, 2008 at 9:57 AM, Matthew Lundin [EMAIL PROTECTED] wrote:
 I third that. Carbon Emacs is the only emacs package for OS X that
 works like Emacs is supposed to. It also comes with a lot more elisp
 goodness (i.e., more packages) by default. IMHO, Aquamacs tries to
 make Emacs behave like a very simple Carbon program (e.g., like Text
 Edit).

Just for the record, I have to disagree. As a long-time emacs user
(about 18 years), I am pretty happy with Aquamacs. To be honest, for
anyone who has any significant personal customizations, the
differences between different emacs distros on the Mac are pretty
slight. There is also I believe an Enhanced Carbon Emacs add-on for
Aquamacs that contains the extra packages that you mention. One detail
that I like with Aquamacs, which I don't think is present in other
emacs versions, is that you can drag the file icon from the Aquamacs
menubar onto other applications. Useful for attaching files to mail
messages for instance. Shame you can't drag from a dired buffer
though...

If you want to live on the cutting edge, there is also a Cocoa-based
emacs (emacs-app.sourceforge.net), which now seems to be in the main
emacs development trunk. Supposedly, Aquamacs plans to transition to
being based on this in the medium term. Last time I tried it, it was
pretty flaky though.

Cheers

Will

-- 

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


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


Re: [Orgmode] How to say Footnotes on other languages

2008-11-08 Thread William Henney
(es Autor Fecha Índice Pies de página)

or with the silly escape sequences:

(es Autor Fecha \xcdndice Pies de p\xe1gina)

Saludos

Will

-- 

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


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


Re: [Orgmode] RELEASE: Org-mode 6.08a

2008-10-05 Thread William Henney
On Sun, Oct 5, 2008 at 5:21 PM, Carsten Dominik [EMAIL PROTECTED] wrote:
 Maybe a caching problem?


Maybe. But caching where?

--
$ curl -s http://orgmode.org/org.tar.gz | tar tzf - | head -1
org-6.07b/
--

I am not using any proxy (to the best of my knowledge).

Are you saying that org.tar.gz is 6.08 for you?

Cheers

Will




-- 

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


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


Re: [Orgmode] org-plot (generating graphs from org-mode)

2008-09-02 Thread William Henney
Hi Eric

On Sun, Aug 31, 2008 at 1:14 PM, Eric Schulte [EMAIL PROTECTED] wrote:

 Thanks for the feedback, much appreciated.  A new version of org-plot is
 up on the git repo http://github.com/eschulte/org-plot/tree/master


I can confirm that the new version fixes both the problems that I
reported. Furthermore, the new option to use a column of text labels
for the x-axis is wonderful. Thanks!

 If you don't mind, I would like to add the
 table you sent above to the example.org file in org-plot to demonstrate
 this feature.


Yes, by all means, go ahead.

I've run into a couple more minor problems that might be worth looking
into if you have the time.

 Writing plot to file
 Two issues here:
 1. The suffix of the output file must exactly match the name of a
gnuplot terminal type. Thus file:foo.jpeg works, but
file:foo.jpg doesn't. Similarly, one needs to use
.postscript instead of .ps.
 2. Some terminals seem to work, but some don't (there is no error
message and the ouput file is created, but it is empty):
- Works :: jpeg, png, svg, postscript, mp
- Fails :: pdf (OK, this seems to be the only one - weird)
 Non-ascii characters in strings
 These tend not to work. However, the results vary according to
 the output terminal in use, so I suspect that this may be due to
 bugs in gnuplot. My version is
:   G N U P L O T:
:   Version 4.2 patchlevel 3
:   last modified Mar 2008
:   System: Darwin 9.4.0
 One strange thing is that, even if the .org file is utf8, the
 graphics file seems to get written as latin-1.

Cheers

Will

-- 

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


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


Re: [Orgmode] org-plot (generating graphs from org-mode)

2008-08-29 Thread William Henney
Hi Eric

On Tue, Aug 26, 2008 at 6:09 PM, Eric Schulte [EMAIL PROTECTED] wrote:
 Of course if anyone has any comments, problems, or suggestions please
 let me know.

Org-plot is great! Thank you very much for writing this. I just found
a couple of small problems, as detailed below.

Cheers

Will

** Bugs in org-plot
*** [2008-08-28 Thu] Finding the table to plot
=org-plot/goto-nearest-table= searches backward first, which means
that if point is located in an options line for a following table,
then it will find the previous table instead. This is usually
undesired.

*** [2008-08-28 Thu] Columns with multi-word text
Consider the following table:

#+PLOT: title:Citas ind:0 deps:(3) type:2d with:histograms set:yrange [0:]
| Sede  | Max cites | H-index |
|---+---+-|
| Chile |257.72 |   21.39 |
| Leeds |165.77 |   19.68 |
| São Paolo | 71.00 |   11.50 |
| Stockholm |134.19 |   14.33 |
| Morelia   |257.56 |   17.67 |

In theory, this should plot the third column. However, the data
point for São Paolo comes from the second column
instead. Presumably this is because of the embedded space in Sõo
Paolo. If I replace it with a unicode non-breaking space,
São Paolo, then it works correctly.


-- 

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


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


Re: [Orgmode] question concerning table mode / vsum / automatic adjustments of indices

2008-08-29 Thread William Henney
Hi Rainer

On Wed, Aug 27, 2008 at 6:35 AM, Rainer Stengele
[EMAIL PROTECTED] wrote:
 Now I want to add a row after c. Being on the row below c
 when I press M-S-DOWN I get this:

   |---+|
   | items | amount |
   |---+|
   | a |0.5 |
   | b |0.0 |
   | c |0.5 |
   |   ||
   |---+|
   | sum   | 1. |
   |---+|
 #+TBLFM:@6$2=vsum(@[EMAIL PROTECTED])

 which is not what I want. I want @5 as in the case before.
 Is this a bug or a feature? How can I get what I need?


The way you have written the vsum, org has no way of knowing that you
really want to sum all the rows between the previous two horizontal
lines. Instead, you should put vsum(@[EMAIL PROTECTED]) to tell it this
explicitly. That way, you can even add/delete rows by hand and it
will still work.

Hope this helps

Will


-- 

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


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


Re: [Orgmode] HTML export: how to delimit escaped HTML entity?

2008-08-28 Thread William Henney
Hi Mark

On Wed, Aug 27, 2008 at 5:37 PM, mtheo [EMAIL PROTECTED] wrote:
 The entities in org-html-entities work fine for me as long as followed by a
 space (or another \-escaped entity), but I can't seem to discover how
 they're delimited within a word.

Maybe someone will correct me, but it looks to me like there is no
provision in the code for delimiting these entities.

In the function org-html-do-expand in org-exp.el, if you change the
line 3788 (in org 6.06b):

(while (setq start (string-match \\([a-zA-Z]+\\) s start))

to

(while (setq start (string-match \\([a-zA-Z]+\\)\\(\\{\\}\\)? s start))

then you can use an empty pair of braces {} to end the entities (as
in LaTeX macros). With that change, then \Aacute{}stor will produce
Aacute;stor. I haven't tested this much, so I don't know if it has
unwanted side effects elsewhere.

I would also echo Sebastian's suggestion that you may be better off
just directly entering the non-ascii character in the .org file. This
usually works fine for export to HTML and means taht your org files
are much more readable. You can either use your operating system's way
of entering special characters (which in most cases is pretty clunky)
or emacs' own input methods (which are very nice). You can turn one of
these on with C-u C-\ - hit TAB to get a list to choose from. There
are lots of language-specific ones, and also general ones like tex and
sgml. For instance, with the sgml input method, you type Aacute; to
get Á, or with the spanish-prefix input method you would type 'A

Cheers

Will




-- 

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


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


Re: [Orgmode] protecting ascii art

2008-08-25 Thread William Henney
Hi Scott

On Sat, Aug 16, 2008 at 11:38 AM, Scott Otterson
[EMAIL PROTECTED] wrote:
 By the way, it would be lovely if it were possible to use emacs's built-in
 artist-mode:

   http://www.cinsk.org/emacs/emacs-artist.html

 to draw diagrams inside of an org mode buffer.  Right now, hitting M-x
 artist-mode while already in org-mode clobbers the org file.

What seems to work is to first set aside some lines for your artistic
creation, select them, and do C-x n n (narrow-to-region) before
turning on artist-mode. Then, when you have finished, turn off
artist-mode and do C-x n w (widen).

This is a bit of a pain to remember the steps, but it does protect the
org file from getting clobbered.

Cheers

Will

-- 

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


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


Re: [Orgmode] org export html with header and footer option

2008-02-20 Thread William Henney
Hi Xin

On 20 Feb 2008 21:31:07 -0500, Xin Shi [EMAIL PROTECTED] wrote:
  Now, when I want to publish org to html, it is possible to add a header and 
 footer file? Usually the header file contains the style and other format 
 related settings.

There is a variable org-export-html-style, which lets insert stuff
into the head ... /head section of the html file. Despite its
name, you can abuse it to add stuff other than stylesheets. For
instance,

# Local Variables:
# org-export-html-style: link rel=stylesheet
#   href=\temarios.css\
#   type=\text/css\
# meta HTTP-EQUIV=\Refresh\ CONTENT=300
# End:

There are also two variables: org-export-html-preamble and
org-export-html-postamble that allow you set fixed code to appear at
the beginning and end of the body ... /body section of the file.
Unlike muse, they have to be literal strings rather than references to
files.

HTH

Will


-- 

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


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


Re: [Orgmode] Quickly Switch Between TODO States

2008-02-13 Thread William Henney
On Feb 13, 2008 11:19 AM, Wanrong Lin [EMAIL PROTECTED] wrote:
 C-c C-t is what I have been using, but recently I am a little bit tired
 of the cycling (especially when I have 7 TODO states), so I wish to have
 something that can let me select a TODO state directly, like C-c C-c
 does for tags.

C-u C-c C-t works for me

Also see sec 5.2.4 of manual (org)Fast access to TODO states for
other options.

Cheers

Will


-- 

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


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


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
Hi Eddward

On Feb 9, 2008 11:02 AM, Eddward DeVilla [EMAIL PROTECTED] wrote:
 I know what I'd like, but I don't know if it's practical.  Another
 possibility is to do like rst and require a blank line when ending a
 list entry.  Again, I'm not sure that is reasonably workable in
 org-mode.


But that would mean that org would have to disallow multiple
paragraphs in one list item, which is currently allowed.

I think the only way to get what you want is to have distinct markers
for starting and ending the lists. Something like

 Proposal for a more explicit list syntax
 An attempt to provide more robust indentation for lists with
 follow-on text.
 /-
 - Here is a list item
 - Here is another item.

   This item has multiple paras.
 - And a third item
   /+
   + With an embedded sub-list
   + Second sub-item
   +/
   Final part of third item
 -/
 And here the lists have ended, so indentation returns to
 normal.


One thing I'm not too happy about with this proposal is that the - in
the start list marker (/-) does not line up with the other -'s. An
alternative could be something like

-\
- one
- two
-/

or (if unicode is allowed) even

-↓
- one
- two
-↑

What do people think? The interaction with org-outdent-item would be tricky.

Cheers

Will

-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
On Feb 9, 2008 4:17 PM, cezar [EMAIL PROTECTED] wrote:
 I think a terminator would be better for the last list element.
 Something like a blank line. I am not sure, just throwing ideas around.

But how would one distinguish a blank line that ends a list from a
blank line that separates paragraphs within a list item?

You are right, though, that it is the end-of-list marker that is
important. On reflection, it seems to me that a beginning-of-list
marker is not necessary.

Cheers

Will

-- 

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


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


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
Hi Eddward

On Feb 9, 2008 5:26 PM, Eddward DeVilla [EMAIL PROTECTED] wrote:
 On Feb 9, 2008 4:50 PM, William Henney [EMAIL PROTECTED] wrote:
  You are right, though, that it is the end-of-list marker that is
  important. On reflection, it seems to me that a beginning-of-list
  marker is not necessary.

 That's why I suggested -.  It's really only needed as a
 terminator, but I like symmetry.  I'd like to be able have something
 at the top, but it should not be required.

But it causes problems to allow the same marker to be used at the
start and end. For instance, consider the following:

-
- item one
- item two
- - point is on this line

When I hit TAB, how is org to know whether the - is supposed to
start a new sublist (and so should be indented 3 spaces) or is meant
to end the preceding list (and so should not be indented)?

That is why I proposed that IF we are to have both start and end
markers, THEN they need to be distinct. However, I now think that it
would be better to just have end markers. Personally, I would prefer
-/ for the XMLish feel. My objections to - are

1. It is hard to remember (was it 5 dashes or 4?)
2. It is a pain to type when you have the tex input method turned on
3. It conflicts with existing usage (sec 12.6.5 of the manual)

   * A line consisting of only dashes, and at least 5 of them, will be
 exported as a horizontal line (`hr/' in HTML).

 Really, the terminator
 should not be required unless you need it to tell org to end the list,
 so we don't break current files.


Agreed.

Cheers

Will


-- 

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


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


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
Hi Cezar

On Feb 9, 2008 5:41 PM, cezar [EMAIL PROTECTED] wrote:
 How common is a blank line in a list item ?
 I'd say it's more common for a blank line to end a list item.

I agree that multi-paragraph list items are not that common. A quick
random sampling of my own org files indicates about 3 instances per
1000 lines (so about 70 in total - wow, I have over 23,000 lines of
org files!). However, the point is that they do exist and up to now
have been (at least implicitly) encouraged.

I think that, all else being equal, it is best to maintain backwards
compatibility. On the other hand, if the majority decision were to
outlaw multi-paragraph list items, then I wouldn't be unduly upset. A
list item that complicated should probably have been a separate
subheading anyway.

Cheers

Will



-- 

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


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


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
Hi Cezar

On Feb 9, 2008 7:33 PM, Cezar Halmagean [EMAIL PROTECTED] wrote:

 I guess you are right. I should start using subheadings :)


No, I meant that *I* should have been using subheadings instead of
multi-paragraph list items :)

Anyhow, I just found this in the manual:

-
Empty lines are part of
the previous item, so you can have several paragraphs in one item.  If
you would like an empty line to terminate all currently open plain
lists, configure the variable `org-empty-line-terminates-plain-lists'.
-

Have you tried configuring that variable? Maybe it does what you want.

Cheers

Will

-- 

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


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


Re: [Orgmode] Re: list indentation

2008-02-09 Thread William Henney
On Feb 9, 2008 9:55 PM, Eddward DeVilla [EMAIL PROTECTED] wrote:
 In any case, I'm just trying to come up with something  that does the
 job but is not an eye sore in the org buffer.  I'm looking for
 something that visually looks like a natural footer or terminator in
 plain text.  (And a footer ought to be able to be preceeded by a
 header.)  I know the significance of the '/' in xml, but visually, it
 doesn't look right to my eyes.  Aside from the meaning in xml code, it
 does say end-of-list to me.  If anything, it seems to connect the
 preceeding and proceeding text, like this/that.  The dashes draw a
 dividing line.

How about -. ?

Will

-- 

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


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


Re: [Orgmode] Re: HTML export and heading levels

2008-01-17 Thread William Henney
Hi Bernt

On Jan 17, 2008 7:49 AM, Bernt Hansen [EMAIL PROTECTED] wrote:
 Bernt Hansen [EMAIL PROTECTED] writes:

  I started playing with HTML export this week and since I'm lazy I don't
  want to have to remember to export.  I created a few simple functions
  that export my org file to HTML and copies the resulting HTML file to my
  webserver when I save my org file using C-x C-s.
 
  This works great for sharing my ToDo list and other documents with other
  people.

 And maybe this isn't such a great idea after all.  After I've saved my
 document and auto-exported I can't undo things anymore...  Time to look
 at org-publish...


I have been using org-publish a lot lately and it works pretty well.
One thing that you might want to consider is to publish to a directory
on your local disk and then use an external utility (e.g., your
script) to synchronize with the web server.

The problem I have found with directly setting :publishing-directory
to a remote machine in org-publish-project-alist is that when there
are several files the publishing process becomes very slow (several
minutes) and emacs completely locks up for that time :(

Perhaps Bastien has some advice on how this can be improved. I think
the problem is with tramp rather than org-mode. I currently work
around the problem by publishing to a local directory and then using
make and rsync to synchronize with the web server.

Cheers

Will

-- 

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


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


Re: [Orgmode] Re: FR: Display images in org-mode?

2008-01-09 Thread William Henney
Hi Piotr

On Jan 9, 2008 12:12 PM, Piotr Zielinski [EMAIL PROTECTED] wrote:
 I think iimage-mode (minor mode shipped with emacs) does what you want

 http://www.netlaputa.ne.jp/~kose/Emacs/iimage.html


Hey, that's great! How come I never spotted it before?

Only problem seems to be that scrolling doesn't work properly when the
image is bigger than the emacs frame, but I think that this is a
general problem with emacs' display of images

Cheers

Will

-- 

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


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


Re: [Orgmode] New Year's (org-mode) resolutions?

2007-12-31 Thread William Henney
On Dec 31, 2007 11:41 AM, Bastien [EMAIL PROTECTED] wrote:
 As this is the right time for resolutions, one single question: what
 are your top 3 GTD-wise (or more generally org-wise) resolutions for
 this upcoming year?


Mine:

1. Try to catch up with a small fraction of the new functionality that
has been added to org mode since I last read the manual
2. Try to read through all of Adam's and Peter's postings to this list
3. Try to keep up with Sacha's blog posts

I find it mildly depressing that many other org-moders seem to be able
to write faster than I can read

Cheers

Will


-- 

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


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


Re: [Orgmode] Re: my GTD setup

2007-12-23 Thread William Henney
Hi Ivan

On Dec 23, 2007 5:20 AM, Ivan Kanis [EMAIL PROTECTED] wrote:
 David O'Toole [EMAIL PROTECTED] writes:

  ;; This file is free software; you can redistribute it and/or modify
  ;; it under the terms of the GNU General Public License as published
  by ;; the Free Software Foundation; either version 3, or (at your
  option) ;; any later version.

 Hi David, thanks for sharing your setup. Could you, please, fix mew so
 that it does not wrap your lisp? I find it unreadable.


I think the problem must be with your mail/news reader. The lisp in
David's message is not wrapped. At least, it looks fine when I do
Show original in gmail.

Cheers

Will


-- 

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


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


Re: [Orgmode] hotkeys for org in OS X (WAS gnome)

2007-12-22 Thread William Henney
Hi list

On Dec 22, 2007 12:00 PM, Rustom Mody [EMAIL PROTECTED] wrote:
 I guess that there are -- broadly speaking -- 3 ways of handling this:

 1. A programmable window manager
 2. Generating arbitrary sequence of events by stuffing the
 corresponding keys into the window manager using (something like)
 xrecord
 3. Using emacs' own clientserver setup ie emacsclient

 I have as of now opted for the 3rd option. My setup is as follows:

 .emacs has the following:

 (server-start)
 (defun myserver ()
   (raise-frame)
   (make-frame-visible)
   (remember))


Inspired by Rustom's post, I have experimented with doing a similar
thing for OS X, using applescript. The following seems to work OK.

- begin script -
tell application Aquamacs Emacs
activate
delay 1
tell application System Events
tell process Emacs
tell window 1
key code 53
keystroke :
keystroke (myfunc)
keystroke return
end tell
end tell
end tell
end tell
 end script 

This script can be bound to a hotkey using QuickSilver, or similar.
Note that this doesn't use emacsclient, so it is an example of
Rustom's 1st option. It is heavily indebted to a similar script that
Bill Clementson posted on his blog
(http://bc.tech.coop/blog/041219.html)

The function myfunc does not need to contain the raise-frame and
make-frame-visible commands.

The command delay 1 is there to work around a bug in the virtual
desktop software that I use. If emacs is running on a different
desktop, then it receives a switch-frame command just after it is
raised. Without the delay, the switch-frame can show up in the middle
of the M-: (myfunc) sequence, which breaks things.

Happy Xmas to all you org-ers! A special festive thanks to our
glorious leader Carsten, and his trusty lieutenant Bastien.

Cheers

Will

-- 

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


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


Re: [Orgmode] Feature request - add a new heading with a lower level than current

2007-12-10 Thread William Henney
Hi Charles

On Dec 10, 2007 4:03 PM, Charles Cave [EMAIL PROTECTED] wrote:
 I would like a command to enter a new headline at a level BELOW the current
 headline.  The command key binding could be a modificaton to M-RET maybe 
 adding
 the ctl or shift key.

 The reason for this functionality is when using org-mode for brainstorming.
 I want to quickly add more than one child heading to the current heading.
 Adding the first child heading is slower because I have to do a M-RET
 backspace backspace  asterisk (*) space the continue.

Or you could just do M-return M-right - is that really too slow for you?

Cheers

Will



-- 

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


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


Re: [Orgmode] Re: undo in org.el

2007-11-14 Thread William Henney
Hi Tassilo

On 11/14/07, Tassilo Horn [EMAIL PROTECTED] wrote:
 Wes Nakamura [EMAIL PROTECTED] writes:

 Hi Wes,

  On XEmacs I like being able to have a default variable width font in
  the org-mode buffer but still have the calendar, etc, come up in a
  monospace font in a different buffer in the same frame.  I haven't
  been able to do this in Emacs since I believe fonts are not buffer
  local but applied to a frame.

 That's wrong.  You can mix as many proportional and variable width faces
 in one buffer as you whish.  For example you could use big variable
 width fonts for org headlines and small proportional fonts for the
 normal content.

 Simply set point on the face you want to change and hit `M-x
 customize-face RET'.


No. I think you are missing Wes' point. Of course you can set
different fonts for different faces, but that does not help with the
particular issue that Wes mentions. The calendar uses the default
face, as does org-mode for normal text. Therefore, you can't change
one without screwing up the other. If XEmacs allows the font
associated with a particular face to be buffer-local, then that is a
big improvement.

A work-around for GNU Emacs would be for org to use define an
org-default face that inherits from default but can be changed
independently. Is this feasible, Carsten? I would appreciate that
feature too.

The main reason I don't use XEmacs any more is that there is no
version for OS X that is as nice as Aquamacs...

Cheers

Will (XEmacs user 1993-2005, GNU Emacs user 1990-1993, 2005-present)

-- 

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


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


Re: [Orgmode] Re: undo in org.el

2007-11-14 Thread William Henney
On 11/14/07, Tassilo Horn [EMAIL PROTECTED] wrote:
 William Henney [EMAIL PROTECTED] writes:
  If XEmacs allows the font
  associated with a particular face to be buffer-local, then that is a
  big improvement.

 And how does XEmacs know what face a new buffer should use?  By its
 major mode?


I really have no idea, but I'm guessing it works the same as any other
buffer-local variable. That is, there is a global default value that
is used for any buffer that has not explicitly set the variable
locally.

Cheers

Will

-- 

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


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


Re: [Orgmode] Question: C-c C-w

2007-11-07 Thread William Henney
On 11/7/07, Carsten Dominik [EMAIL PROTECTED] wrote:
 is anyone using the command `C-c C-w' a lot?
 I am planning to use these keys for a different purpose,
 and to make `org-check-deadline' accessible only
 through the sparse tree command `C-c /'

Personally, I have only ever used it by mistake when I meant to use
`C-c C-x C-w'

Will


-- 

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


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


Re: [Orgmode] Re: Ringing the alarm bell in orgmode

2007-11-06 Thread William Henney
On 11/6/07, Bastien [EMAIL PROTECTED] wrote:
 Richard G Riley [EMAIL PROTECTED] writes:
  Is it just me or are emacs info pages really a bit of a dog to search
  through?

 It's not just you.

 Many people don't like to search through the Info pages and whether this
 interface is the best one for Emacs documentation is always a hot topic
 on the emacs-devel mailing list.

 But `i' (M-x Info-index) will really make your life easier.

 Personnally I do like Info pages and Info-mode very much.  In addition
 to Info-index, I'm mostly using these:

   `l' Info-history-back
   `L' Info-history
   `]' Info-forward-node

 Once you get used to these few commands, it's really quick to find and
 fetch info relevant information.


I use l a lot, but I didn't know about L - thanks!

The commands I use most are spacebar, which just chugs through an
entire manual, and s, which does a regexp search.

I do like info pages when I can actually get the right ones to load.
The big problem I have with info is in setting it up so that it finds
the right files. For instance, I have totally failed to work out how I
can tell it where my org info files are, with the result that it
always shows me the old version that comes with my emacs (currently
4.67). I have tried setting Info-default-directory-list and
Info-directory-list, but all to no avail. Has anyone else had this
problem?

Cheers

Will

 HTH,

-- 

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


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


Re: [Orgmode] Re: Ringing the alarm bell in orgmode

2007-11-06 Thread William Henney
Thanks for your help, Chris, Richard, and Bastien. Chris's method of
loading the file explicitly will be useful until I get the path sorted
properly.

On 11/6/07, Bastien [EMAIL PROTECTED] wrote:
 William Henney [EMAIL PROTECTED] writes:
 I use the script Pete sent a while a go update org-mode automatically.
 It fetches uncompress and untar the tarball archive.  It copies the org
 info file (which name is really org) to the local ~/info/ directory
 where I keep latest version of Info files.

 Then I have this is my .emacs.el:

   (add-to-list 'Info-default-directory-list ~/info/)

 And the info page is correct.  Does that help?


I don't use Pete's script, but I do essentially the same thing and it
doesn't work

BUT, I think I have now found the culprit... It is all the fault of
fink (for the non Mac users, fink is a package manager and repo for OS
X, a bit like yum or apt, except a lot less useful)

At some point I had added the following line to my ~/.profile

  test -r /sw/bin/init.sh  . /sw/bin/init.sh

and that file, unbeknownst to me had been setting the INFOPATH
environment variable. This means that Info-directory-list gets
initialised from INFOPATH and that Info-default-directory-list is
completely ignored :(

So, the answer seems to be to unset INFOPATH in the shell and to merge
the fink info directories into my Info-default-directory-list

At least, I assume this will work. I don't want to restart my emacs at
the moment since I would lose too much context, but I will test it out
when I next have a quiet time.

Cheers

Will

-- 

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


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


Re: [Orgmode] beginner tries to convert to org-mode

2007-11-05 Thread William Henney
Hi Detlef

On 11/5/07, Detlef Steuer [EMAIL PROTECTED] wrote:
 But all promoting or demoting commands do not work as advertised.
 I get i.e. ESC S-right undefined etc.

 ESC-S centers next paragraph. Nice but unexpected for me. ;-)

Although ESC can usually be used as a synonym for Meta, this is not
always true. In particular, you can't combine ESC with shifted arrow
keys. You have to use Meta-Shift-right (all keys at once), where Meta
may actually be labelled as Alt or (heavens forbid) the Windows key on
your keyboard.

And the S in S-right is not the letter S, it is the shift key...

I'm assuming you are running emacs graphically, not inside a terminal.

Hope this helps

Will


-- 

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


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


Re: [Orgmode] XHTML export - nbsp; etc.

2007-11-03 Thread William Henney
On 11/3/07, Bastien [EMAIL PROTECTED] wrote:
 William Henney [EMAIL PROTECTED] writes:
 
  Here is what I have managed to work out. Apologies for answering in
  org syntax :)

 Hey this is great.  I ♥ typesetting :)


Me too. And the possibilities for new smilies are endless:

•⋖
⌣

Cheers

Will


-- 

  Dr William Henney, Centro de Radioastronomía y Astrofísica,
  Universidad Nacional Autónoma de México, Campus Morelia
___
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


Re: [Orgmode] XHTML export - nbsp; etc.

2007-11-02 Thread William Henney
Hi list

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

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


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

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

Cheers

Will


-- 

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


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


Re: [Orgmode] XHTML export - nbsp; etc.

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

   You mean ndash; and mdash;

Yes. Thanks for the correction.

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

Cheers

Will

-- 

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


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


Re: [Orgmode] Re: POLL: Volume of emacs-orgmode too high?

2007-10-16 Thread William Henney
On 10/16/07, Rick Moynihan [EMAIL PROTECTED] wrote:
 Nuutti Kotivuori wrote:
  Carsten Dominik wrote:
  Hi,
 
  the mailing list has been extremely active recently, we have had
  close to 20 email a day.
 
  I am worried that this will scare away some members.  Do we need to
  address this, or will people stick around and just wait until
  things cool off a bit?
 
  I think it is fine. The issues raised on the mailing list are very
  much to the point and actually relevant to org-mode.

 Agreed.  I do fall behind on reading it every now and then but I always
 try and catch up because the quality of discussions is so high.  I like
 having such a receptive community.


Agreed too. Sometimes my eyes glaze over the GTD threads, but I can
always mute the threads I'm not interested in. Perhaps an additional
low volume org-mode-announce list would be a good idea for those more
interested in product than process...

Cheers

Will


-- 

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


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


Re: [Orgmode] apparent bug in org-insert-link with active region

2007-10-04 Thread William Henney
On 10/4/07, Carsten Dominik [EMAIL PROTECTED] wrote:
 You have found a bug - fixed for 5.11.  I am also keeping the region
 in the buffer until the last moment now, to ease your discomfort :-)

Great, thanks. I am feeling more comfortable already :)

Cheers

Will

-- 

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


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


  1   2   >