[O] Bug: Template Expansion with prompt-specific history [9.1.2 (9.1.2-37-g3f8d67-elpa @ /Users/ke/.emacs.d/elpa/org-20171113/)]

2017-11-18 Thread Karl Eichwalder
"mhe" :follow org-mhe-open :store org-mhe-store-link)
   ("irc" :follow org-irc-visit :store org-irc-store-link)
   ("info" :follow org-info-open :export org-info-export
:store org-info-store-link)
   ("gnus" :follow org-gnus-open :store
org-gnus-store-link)
   ("docview" :follow org-docview-open :export
org-docview-export :store org-docview-store-link)
   ("bibtex" :follow org-bibtex-open :store
org-bibtex-store-link)
   ("bbdb" :follow org-bbdb-open :export org-bbdb-export
:complete org-bbdb-complete-link :store
org-bbdb-store-link)
   ("w3m" :store org-w3m-store-link) ("file+sys")
   ("file+emacs") ("doi" :follow org--open-doi-link)
   ("elisp" :follow org--open-elisp-link)
   ("file" :complete org-file-complete-link)
   ("ftp" :follow
(lambda (path) (browse-url (concat "ftp:" path
   ("help" :follow org--open-help-link)
       ("http" :follow
(lambda (path) (browse-url (concat "http:" path
   ("https" :follow
(lambda (path) (browse-url (concat "https:" path
   ("mailto" :follow
(lambda (path) (browse-url (concat "mailto:; path
   ("news" :follow
(lambda (path) (browse-url (concat "news:; path
   ("shell" :follow org--open-shell-link))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 )
-- 
Karl EICHWALDER



[O] 9.1.3.2 Template expansion: documentation issue

2017-01-16 Thread Karl Eichwalder

In 9.1.3.2 Template expansion, you say:

 %\n Insert the text entered at the nth %^{PROMPT}, where 
‘n’ is


but in my 25.1.1, you must use "%\\n".

Maybe, it is also worth noting that

 %^{PROP}p   Prompt the user for a value for property PROP.

will get inserted at the end of a list of properties, but white-space 
will stay

in place:

 :PROP_A:   a
 %^{PROP}p
 :PROP_Z:   z

==>

 :PROP_A:   a

 :PROP_Z:   z
 :PROP: foo

To avoid white-space issues and an unexpected sorting order, you must 
write (and you lose the preset values):


 :PROPERTIES:%^{PROP_A}p%^{PROP}p%^{PROP_Z}p


--
Karl Eichwalder



Re: [O] Managing Images with Org-mode?

2012-08-03 Thread Karl Eichwalder
Karl Voit devn...@karl-voit.at writes:

 ,[ ~/.snippets/tls ]
 | name : Insert a table with files of a folder including links
 | # --
 | #+BEGIN_SRC sh
 | PATTERN='${1:*.jpg}'
 | MYFOLDER='${2:$HOME/}'
 | cd \${MYFOLDER}; MYPWD=\`pwd\`; for file in \`ls -1 \${PATTERN}\`; do
 | echo '-[['\$MYPWD'/'\$file']]'; done
 | #+END_SRC
 `

Yes, I use something similar to create the thumbnails and the initial
org code (I use 3rd level headlines instead of table, because I want to
attache tags to every single image):

#+BEGIN_SRC sh
  reuse_thumb=${1:yes}
  org=2012-07-14-stubai-hohe-huetten
  img_dirs=${2:2012-07-*}
  : $org.tmp
  for d in $img_dirs ; do
{
  [ -f $d ]  continue
  echo ** $d
  pushd $d /dev/null
  mkdir -p thumb
  for f in *.JPG *.jpg; do
[ -f $f ] || continue
thumb=thumb/${f:0:-3}png
[ $reuse_thumb = yes ]  [ -f $thumb ] \
  || convert $f -thumbnail 144^ $thumb
echo *** [[file:$d/$thumb]]
echo [[file:$d/$f][$d/$f]]
  done
  popd /dev/null
} $org.tmp
  done
#+END_SRC

 Related to this topic: C-c C-x C-v (org-toggle-inline-images) is of
 interest for you. On a per-file-basis this is: #+STARTUP inlineimages

I was already aware of the toggle key sequence.  Thanks for the STARTUP
parameter!  A colon is missing, though ;)  --better use:

#+STARTUP: inlineimages

-- 
Karl Eichwalder



[Orgmode] Exporting to blogspot.com

2011-02-25 Thread Karl Eichwalder
I want to prepare a text ready to be blogged at blogspot.com.

The HTML export is mostly ok.  The rather longish org-export-as-html
function even seems to allow tuning options.  How can I make use of
'body-only'?  How can I pass it to org-export-as-html?

Final goal would be the combination of 'body-only plus table of
contents'.

-- 
Karl Eichwalder


___
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] remote reference

2010-12-11 Thread Karl Eichwalder
Carsten Dominik carsten.domi...@gmail.com writes:

 Fixed, thanks.

It is not fixed in the 23.2.91 pre-release, which comes with org 6.33x.
It did not check any other repository (which one?).

 On May 12, 2010, at 1:26 PM, Karl Eichwalder wrote:

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

 On May 11, 2010, at 9:16 PM, Karl Eichwalder wrote:
 C-c C-c in a TBLFM with a remote table reference updates the table
 as
 expected, but also jumps to the referenced table in the remote file.
 Is
 this intended?  If yes, is it possible to avoid it?

 Can you please be more specific.  What exactly happens?

 Consider the following two files:

 * 2009
 #+TBLNAME: 2009
  :PROPERTIES:
  :ID:   ea32e5b5-31ba-468e-8e31-3e0d09696bb0
  :END:
 |-+---|
 |  mm |km |
 |-+---|
 | all | 946.8 |
 |-+---|

 * 2010
 #+TBLNAME: 2010
  :PROPERTIES:
  :ID:   e0df84c4-8abc-458f-a1ee-eb53eb71b4f0
  :END:
 |-+---+---+---|
 |  mm |km |  B km |  G km |
 |-+---+---+---|
 | all | 249.4 | 429.2 | 678.6 |
 |-+---+---+---|

 * all
  :PROPERTIES:
  :ID:   44751a7f-73a4-4c07-b3c2-e3edb9042acd
  :END:
 #+TBLNAME: all
 |--+|
 |  | km |
 |--+|
 | 2009 ||
 | 2010 |  678.6 |
 |--+|
 |  all | 1625.4 |
 |--+|
 #+TBLFM: @2$2=remote(ea32e5b5-31ba-468e-8e31-3e0d09696bb0,$LR2);%.
 1f::@3$2=remote(2010,$LR4);%.1f::$LR2=vsum(@2$...@-1);%.1f

 Then, in the 2010 file, eval the formula of the all table by
 pressing
 C-c C-c.
 ==

 It takes the km value from the 2009 file, but also puts the cursor
 (point) into the 2009 file in front of the ID:

 * 2009
 #+TBLNAME: 2009
  :PROPERTIES:
  :ID:   -!-ea32e5b5-31ba-468e-8e31-3e0d09696bb0
  :END:
 |-+---|
 |  mm |km |
 |-+---|
 | all | 946.8 |
 |-+---|

 -=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

 I'd prefer if the point would stay in the 2010 file.

 --
 Karl Eichwalder


 - Carsten





-- 
Karl Eichwalder

___
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] remote reference

2010-05-12 Thread Karl Eichwalder
Carsten Dominik carsten.domi...@gmail.com writes:

 On May 11, 2010, at 9:16 PM, Karl Eichwalder wrote:
 C-c C-c in a TBLFM with a remote table reference updates the table as
 expected, but also jumps to the referenced table in the remote file.
 Is
 this intended?  If yes, is it possible to avoid it?

 Can you please be more specific.  What exactly happens?

Consider the following two files:

* 2009
#+TBLNAME: 2009
  :PROPERTIES:
  :ID:   ea32e5b5-31ba-468e-8e31-3e0d09696bb0
  :END:
|-+---|
|  mm |km |
|-+---|
| all | 946.8 |
|-+---|

* 2010
#+TBLNAME: 2010
  :PROPERTIES:
  :ID:   e0df84c4-8abc-458f-a1ee-eb53eb71b4f0
  :END:
|-+---+---+---|
|  mm |km |  B km |  G km |
|-+---+---+---|
| all | 249.4 | 429.2 | 678.6 |
|-+---+---+---|

* all
  :PROPERTIES:
  :ID:   44751a7f-73a4-4c07-b3c2-e3edb9042acd
  :END:
#+TBLNAME: all
|--+|
|  | km |
|--+|
| 2009 ||
| 2010 |  678.6 |
|--+|
|  all | 1625.4 |
|--+|
#+TBLFM: 
@2$2=remote(ea32e5b5-31ba-468e-8e31-3e0d09696bb0,$LR2);%.1f::@3$2=remote(2010,$LR4);%.1f::$LR2=vsum(@2$...@-1);%.1f

Then, in the 2010 file, eval the formula of the all table by pressing
C-c C-c.
==

It takes the km value from the 2009 file, but also puts the cursor
(point) into the 2009 file in front of the ID:

* 2009
#+TBLNAME: 2009
  :PROPERTIES:
  :ID:   -!-ea32e5b5-31ba-468e-8e31-3e0d09696bb0
  :END:
|-+---|
|  mm |km |
|-+---|
| all | 946.8 |
|-+---|

-=-=-=-=-=-=-=-=-=-=-=-=-=- cut here -=-=-=-=-=-=-=-=-=-=-=-=-=-

I'd prefer if the point would stay in the 2010 file.

-- 
Karl Eichwalder

___
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] remote reference

2010-05-11 Thread Karl Eichwalder
Carsten Dominik carsten.domi...@gmail.com writes:

 For tables in a different file, the remote table must be the first
 table in an outline node, and the outline node must have an ID
 property.

 First configure org-modules and turn on the id module.
 Then prepare your target file like this

 * here is my table
   :PROPERTIES:
   :ID: DDE64190-0C3D-4088-A303-DA3B60ECEB48
   :END:

and here we have the table.

|...|...|...|


 The ID can be an arbitrary string, but then you must
 make sure yourself that it is globally unique.  Or you
 can have Org-mode make the ID for you.

This way it works nicely, thanks for the example.  Something related:

C-c C-c in a TBLFM with a remote table reference updates the table as
expected, but also jumps to the referenced table in the remote file.  Is
this intended?  If yes, is it possible to avoid it?

-- 
Karl Eichwalder

___
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] remote reference

2010-01-15 Thread Karl Eichwalder
I do not understand how I can reference tables (only the first one?)
in remote files.  The manual says:

Remote references
.

You may also reference constants, fields and ranges from a different
table, either in the current file or even in a different file.  The
syntax is

 remote(NAME-OR-ID,REF)

where NAME can be the name of a table in the current file as set by a
`#+TBLNAME: NAME' line before the table.  It can also be the ID of an
entry, even in a different file, and the reference then refers to the
first table in that entry.  REF is an absolute field or range reference
as described above for example `...@3$3' or `$somename', valid in the
referenced table.



remote(FILENAME,REF) does not seem to work.  All the tutorials I
found are either too basic or too advanced or too general.


-- 
Karl Eichwalder



___
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] HTML table export with col width XY

2009-12-29 Thread Karl Eichwalder
I'm using org 6.33x.  If you limit the col width with the special header
notation (e.g., 35), org-export-as-html-to-buffer expands the =
indicator literally.  In org mode my table looks as follows:

| 35|  ||
| Rückfahrt   |  ||
|-+--+|
| St. Bartholomä  | ab 16:30 | Schiff |
| Schönau (Königssee), ab Berchtesgad | ab 17:xx | Bus (z.t. SEV) |
  

where the long field actually contains:

#
# Edit field and finish with C-c C-c
#
Schönau (Königssee), ab Berchtesgaden weiter als SEV


M-x org-export-as-html-to-buffer RET
==
...
tbody
trtdSt. Bartholomä/tdtdab 16:30/tdtdSchiff/td/tr
trtdSchönau (Königssee), ab Berchtesgaden weiter als SEV/tdtdab 
17:xx/tdtdBus (z.t. SEV)/td/tr


Thanks for this great software!

-- 
Karl Eichwalder


___
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