[O] org-mode on old pocket pc phone

2015-06-23 Thread cédric ody
Hello,

I hold an old pocket pc phone on which I have been able to install an
binary version of emacs I have found on the web. This binary version
is compiled for the arm processor that is on the device.

I'd like to use main commands of org-mode, cycling and planning
basically. I probably need to remove some packages like org-export and
so on.

I have downloaded an old version of org-mode (6.36) but I have not
compiled it. I don't know how to compile el files into elc ones with
such a configuration. On the emulator I am working on, I have problems
of exhausted memory when loading the line require 'org in the
.emacs.

Could you tell me which el files are needed to get the cycling and
planning tasks only. Can I use them without compiling them? Assuming
that the 6.36 version works on the 20.4 emacs I have...

thanks, cédric



Re: [O] org-mode on old pocket pc phone

2015-06-23 Thread cédric ody
Hi,

I have found a solution by using the outline-magic.el and table.el
emacs extensions. So I can wrap/unwrap my headlines and format tables
with pipes.

Is there a easy way to get the TODO-DONE-SCHEDULED features of
org-mode in a simple el file?

Cédric


2015-06-23 16:00 UTC+02:00, cédric ody cedric.lis...@gmail.com:
 Hello,

 I hold an old pocket pc phone on which I have been able to install an
 binary version of emacs I have found on the web. This binary version
 is compiled for the arm processor that is on the device.

 I'd like to use main commands of org-mode, cycling and planning
 basically. I probably need to remove some packages like org-export and
 so on.

 I have downloaded an old version of org-mode (6.36) but I have not
 compiled it. I don't know how to compile el files into elc ones with
 such a configuration. On the emulator I am working on, I have problems
 of exhausted memory when loading the line require 'org in the
 .emacs.

 Could you tell me which el files are needed to get the cycling and
 planning tasks only. Can I use them without compiling them? Assuming
 that the 6.36 version works on the 20.4 emacs I have...

 thanks, cédric




Re: [O] org-mode, tikz and beamer

2015-05-21 Thread cédric ody
Thank you for your answer.

Here is the shell script (many comments are in english except the
beginning) and the org file I use. To see how I call it, you can have
a look at the enclosed Makefile. Note that it uses specific
configurations files as well tex macros so it won't work without these
files. I can prepare a short example which generates the tex and pdf
files if needed. The script probably gives for now a good idea. You
can also look at the enclosed generated tex file to see how the tikz
language.

Basically, the shell script looks recursively into the org file and
creates nodes for the tikz headline mindmaps. Thus, there are parent
nodes and children nodes.

During that excursion, two kinds of files are created: the tree
files and the contents files.

The first ones are tex files with tikz mindmaps that must be inserted
at specific locations at the final latex compilation step. One tree
file contains the parent node with all the children files.

The contents files are org files and are converted into tex files
via the org-mode export command in a batch way. In the shell script,
hyperlinks are added to these newly converted tex files.

At the end, the assembly of all these files is done before compiling.

Numbering of sections through the recursive call is important so that
links work properly as you notice. Links allow one to go back and
forth the document. To go back, the idea is to click on the headline.
If a node exists without content, the links sends you the beginning of
the file or something like that.

Cheers,

Cédric


2015-05-21 20:02 UTC+02:00, Suvayu Ali fatkasuvayu+li...@gmail.com:
 On Thu, May 21, 2015 at 04:40:33PM +0200, cédric ody wrote:
 Dear org-mode users,

 I have used org-mode for some months now. I find it very useful. I
 have recently used it to prepare mathematic teaching lessons using the
 beamer exporter.

 I wanted to combine org-mode and tikz latex's package from latex In
 order to insert some kind of mind-mapping from the headlines between
 the main parts of the lesson. I enclose an example so that you can see
 what I am talking about. Note that you can move forth and back through
 the presentation with hyperlinks. Note also only the chapter Droites
 dans le plan is filled so most of links fail.

 Some of the links in that chapter are not working properly I think, but
 otherwise it's a very impressive start!  If you post your current shell
 script with the Org file, I think others can suggest what is and is not
 possible.

 To put it in more words, we don't know what you are thinking.  If we can
 see the Org source and the shell script, it is easier to understand how
 you map Org elements to beamer/tikz environments.

 I think you have started a very interesting project!

 Cheers,

 --
 Suvayu

 Open source is the future. It sets us free.




org2tex.sh
Description: Bourne shell script


coursP.org
Description: Binary data


coursP.tex
Description: TeX document


[O] org-table-(iterate/recalculate)-buffer-tables and remote tables in batch mode

2017-02-17 Thread cédric ody
Hi,

I can't manage the org-table-(iterate/recalculate)-buffer-tables
functions to work in batch mode.

When using the functions inside emacs, no problem, fields are well
calculated from remote tables.
I get errors and zeros when launching emacs in batch mode.

Any reason for that?

Cheers,

cédric



[O] displaying thumbnails in heading or subheadings

2017-04-25 Thread cédric ody
Hi everyone,

I'd like to be able to display thumbnails of images in headlines.

Assume I define a ICON property with the path to a thumbnail. For instance

* Emacs heading
  :PROPERTIES:
  :ICON:  /tmp/emacs.png
  :END:

I have been able to get some results with the following code

#+BEGIN_SRC elisp
(defun my-function ()
  "comment"
  (interactive)
  (save-excursion
(org-with-limited-levels (org-map-tree 'my_subfunction)))
  (org-fix-position-after-promote))
(defun my_subfunction ()
"comment"
  (org-with-wide-buffer
   (org-back-to-heading t)
   (let ((e (org-element-at-point)))
   (looking-at org-outline-regexp) (goto-char (1- (match-end 0)))
(insert-image (create-image (org-element-property :ICON e))
#+END_SRC

There are two issues I'd like to solve:

- when the document is saved and re-opened, a blank space has
substituted the thumbnail.
- is it possible to control the appearance or not of thel thumbnails
of all headlinesin one command?

Thanks,

cedric



[O] displaying icons in heading or subheadings

2017-04-30 Thread Cédric ODY

Hi,

I'd like to be able to display icons just after the stars in heading or 
subheadings, by defining the icon as a property. For instance



* Emacs heading
  :PROPERTIES:
  :ICON:  /tmp/emacs.png
  :END:

I have tried something like

#+BEGIN_SRC elisp :results value raw
(let ((parsetree (org-element-parse-buffer 'headline)))
  (org-element-map parsetree 'headline
(lambda (hl) (org-back-to-heading t) (insert-image (create-image 
(org-element-property :ICON hl))

#+END_SRC

which inserts the icon before the star.

Any hint to do it? Is this smart enough?

Thanks,

co


--
--

02 98 49 86 04




[O] width/height/alignement of images in tables

2017-09-22 Thread Cédric ODY

Hello,

Would there be a way to add width/height/alignment parameters for images 
that are included in a table, say


| [[./a.png]] | [[./b.png]] |

by for instance adding the parameters inside the brackets 
[[./a.png,width,height,halign,valign]]?


From what I have seen, the alignment should however concern the table 
data in which the image is embedded, for html export.


thanks,




[O] floatp test in babel

2019-01-29 Thread cédric ody
Hello,


I am trying to understand why the floatp lisp function does not seem to
detect exponential scientific notation in babel octave mode.


If I do


#+BEGIN_SRC emacs-lisp

(floatp 1e4)

#+END_SRC


#+RESULTS:

: t


whereas in the following table is converted into char due to the presence
of the third column.


#+RESULTS: variables

| 1 | 1 | 1e-05 |


#+HEADERS: :var a=variables

#+BEGIN_SRC octave :results output replace

whos a

#+END_SRC


#+RESULTS:

: Variables in the current scope:

: Attr Name Size Bytes Class
:    = =
: a 1x7 7 char

:


Can we modify something so that exponential notation is supported?


Cédric