[O] Support for a and p suffix for morning/afternoon scheduling

2012-05-24 Thread Tom
I use the scheduling prompt very often and I usually
give times in 8pm/9am/etc. format, because they are conveniently
short to type.

Today it occured to me the m is unnecessary, because a and p already
gives the necessary info.

Could we also support 8a and 9p format for times like 8am and 9pm,
so that the m does not have to be typed when scheduling?
It's unambiguous, this form is not used for other things AFAIK, so we
could easily support this shorter form too.





Re: [O] Comments and control lines (# vs. #+)

2012-05-24 Thread Mark Shoulson
Samuel Wales  gmail.com> writes:

> 
> The following, which is general and I wrote a long time ago,
> might also be relevant to the recent thread on comments
> breaking lists.
> 
> ===
> 
> There might be really good reasons for the #+ comment
> convention in Org, but I am not sure what they are.  So
> please bear with me.

Probably the most important one is that # is often used in ordinary writing
without the intent of commenting out the rest of the line.  Like saying "We're 
#1" or talking about #hashtags.  It could be escaped for things like that, 
maybe, but the whole point is to keep the markup as minimal and unobtrusive as
possible.  Comments are specifically a departure from the norm; they are things
*excluded* from the usual functioning of whatever they're in.  Let _them_ be
what has to get extra markup.  #+ is a sufficiently rare combination that it
can be spared.

> This list is not complete or minimal.  Please disregard the
> items you don't like.

Most of them can't really counter the above issue, I think (you may feel
otherwise).

>   1) #+ is not as standard as #

Standards are per-format anyway.

>   2) there are tools for commenting and uncommenting regions
>  with #, but not with #+

Org is its own tool.  If it needs region-commenting features, let them be
added, and they can use #+.  Besides, the COMMENT keyword in headlines
also comments out regions quite effectively (if the region is a subtree).

>   4) imported (or pasted) text will often have # commenting
>  and this will need special processing to make it work
>  with Org

This is perfectly sensible if you're a programmer (I haven't seen # used as
a comment character anywhere outside of computer-parsable input).  Org has a
much larger scope than talking about programming.  I would say that "Imported
(or pasted) text will often have # without intending to comment and this will
need special processing..."  That's more or less what I said above.

Org is mainly about prose.  If you're pasting in programs with comments they
probably belong in code-blocks anyway.

>   5) fill functions and packages often don't understand #+

Org is its own tool, and is what's best suited for editing org files.

>   6) plain # works in column 0 in Org, leading to user
>  expectation that it will behave consistently in other
>  columns as it does in most other languages that use #

# in column 0 is a special case precisely for something simpler than #+ since
# is rarely seen in column 0 in ordinary text, though it could happen if a
# sign or something like #1 happened to be wrapped at a bad place.
This present paragraph does serve as a counterexample, to be sure, but
I think it is a rare case.

~mark





[O] [New Contrib Feature] Automatic URL shortening via Bitly

2012-05-24 Thread Neil Smithline
Just thought I'd let you know about two projects I've been working on 
that, when combined, make Org even cooler than it already is.


A few months ago I took over maintenance of Emacs' bitly.el. I really 
worked it over, fixed some bugs, and, most importantly, I made it 
default to doing an asynchronous call to Bitly. Now you just ask it to 
shorten an URL and, sometime in the near future, it will.


I just recently wrote org-auto-shorten-url. It binds to the `]' key in 
Org Mode. When you type `]', it does some sanity checks to see if you 
just finished typing a link. If you have, it calls `bitly-shorten-url' 
in the background to shorten the URL.


The net net of this is that as you are typing an URL in Org Mode:
   [[http://example.com][Example]]
The http://example.com will magically be transformed into a Bitly URL. I 
now use this for all of my HTML links. Due to technical complications, 
inline image links don't work and probably never will.


You can grab the two packages from Github. They have a dependency on my 
`defhook' package though you can convert that to a straight `add-hook' 
call if you don't want to use defhook (though I think it is real cool).


Neil

- https://github.com/Neil-Smithline/bitly.el
- https://github.com/Neil-Smithline/org-auto-shorten-url
- https://github.com/Neil-Smithline/defhook

--
Neil Smithline
http://www.neilsmithline.com
Proud GNU Emacs user since 1986, v. 18.24.




Re: [O] links in comments and footnotes

2012-05-24 Thread Samuel Wales
On 5/23/12, Nicolas Goaziou  wrote:
> That's normal. If it's commented, the link shouldn't be recognized
> anymore (but I suppose it sill is)

For some people (not necessarily you) it would be nice to know that
there is a link there.

>> When I kill a link and yank it into a footnote, the link stops being
>> in link face.
>
> That's another problem. Probably a bug, although a minor one.

If you think it's ordinary text and you RET on it to insert a newline,
you end up following the link.  That is one example of how it can be a
surprise.

A similar thing happens, by the way, with point near but not on the
colored part of a link, but that is not a footnote or comment issue,
just a link issue.

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] makefile regression

2012-05-24 Thread Greg Troxel

Achim Gratz  writes:

> Could you please state clearly what you want to have changed and
> possibly how?  You keep wandering back and forth in your arguments, but

What I meant was:

  If GNU make is required it needs to be documented.

  Separately from that, the makefiles look much more complicated than I
  would have thought necessary, and if there aren't good reasons to
  require more than POSIX make, it would be nice to stay with POSIX.

> to me it seems simply adding a sentence or two to the README file about
> the need for GNU make would suffice until the full documentation is
> finished.  I'm sure Bastien would appreciate if you could supply a patch
> for it.

Fair enough - I have sent a patch which adds to the README the kind of
information present in almost all other software pacakges.  It needs
adjusting to list the XEmacs versions that org can use, but I think it's
close.

Thanks,
Greg




pgpL5rV59TuiV.pgp
Description: PGP signature


[O] [PATCH] Add section describing prerequisites.

2012-05-24 Thread Greg Troxel
Note that building org requires GNU make, and that 3.82 is known to
work.

Begin to list the versions of emacs that org can work with.  (It seems
clear taht some versions of XEmacs work, but I couldn't find out
which.)
---
 README |   13 +
 1 file changed, 13 insertions(+)

diff --git a/README b/README
index 6fcddb9..5fee08e 100644
--- a/README
+++ b/README
@@ -40,3 +40,16 @@ request-assign-future.txt
 
 EXPERIMENTAL
 Experimental code, not necessarily FSF copyright.
+
+
+
+Prerequisites for building and using org:
+
+ - GNU make.  Version 3.82 is known to work, but earlier versions are
+   likely ok.
+
+ - emacs, one of
+ GNU emacs 22
+ GNU emacs 23
+ GNU emacs (what will be 24)
+ ?
-- 
1.7.10.2




Re: [O] Why doesn't this calc org-babel code work?

2012-05-24 Thread Christopher Allan Webber
I guess what I'm saying is that assignment would be really nice.
However, I'm now seeing that this would take a lot of work.

What I'd really like to do is something like the following:

# Total BS financial projection, don't read into this at all
#+BEGIN_SRC calc
derp_expenses := 1234
derp_income := 4315

monthly_balance := derp_income - derp_expenses
monthly_balance =>
monthly_balance * 12 =>
#+END_SRC

#+RESULTS:
: monthly_balance => 3081
: monthly_balance * 12 => 36972

I guess I could use calc embedded mode, but I haven't figured out how to
do that yet. ;)

 - Chris

Christopher Allan Webber  writes:

> I see now.
>
> #+BEGIN_SRC calc :var foo=5
> foo + 5 =>
> #+END_SRC
>
> #+RESULTS:
> : 5 + 5 => 10
>
> However, this isn't as useful as I'd like.  I'd really like to be able
> to see it say "foo + 5 =>" in the output.  That's clearer which line is
> being referred to...
>
> Christopher Allan Webber  writes:
>
>> Hey all...
>>
>> I have:
>>
>> #+BEGIN_SRC calc
>> foo := 5
>> foo + 5 =>
>> #+END_SRC
>>
>> #+RESULTS:
>> : foo + 5 => foo + 5
>>
>> What I'd like, obviously, is for it to result in:
>>
>> #+RESULTS:
>> : foo + 5 => 10
>>
>> I guess I really don't understand how calc support works in org-babel.
>> Could someone enlighten me?



Re: [O] Why doesn't this calc org-babel code work?

2012-05-24 Thread Christopher Allan Webber
I see now.

#+BEGIN_SRC calc :var foo=5
foo + 5 =>
#+END_SRC

#+RESULTS:
: 5 + 5 => 10

However, this isn't as useful as I'd like.  I'd really like to be able
to see it say "foo + 5 =>" in the output.  That's clearer which line is
being referred to...

Christopher Allan Webber  writes:

> Hey all...
>
> I have:
>
> #+BEGIN_SRC calc
> foo := 5
> foo + 5 =>
> #+END_SRC
>
> #+RESULTS:
> : foo + 5 => foo + 5
>
> What I'd like, obviously, is for it to result in:
>
> #+RESULTS:
> : foo + 5 => 10
>
> I guess I really don't understand how calc support works in org-babel.
> Could someone enlighten me?



[O] Why doesn't this calc org-babel code work?

2012-05-24 Thread Christopher Allan Webber
Hey all...

I have:

#+BEGIN_SRC calc
foo := 5
foo + 5 =>
#+END_SRC

#+RESULTS:
: foo + 5 => foo + 5

What I'd like, obviously, is for it to result in:

#+RESULTS:
: foo + 5 => 10

I guess I really don't understand how calc support works in org-babel.
Could someone enlighten me?



Re: [O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows

2012-05-24 Thread Mikhail Titov
> -Original Message-
> From: emacs-orgmode-bounces+mlt=gmx...@gnu.org [mailto:emacs-orgmode-
> bounces+mlt=gmx...@gnu.org] On Behalf Of Mikhail Titov
> Sent: Thursday, May 24, 2012 4:02 PM
> To: emacs-orgmode@gnu.org
> Subject: [O] [babel] ob-octave does not catch EOE from matlabShell on MS
> Windows
> 
> ...
>
> I have a simple test block like
> 
> #+begin_src matlab :session *MATLAB*
> a=2
> #+end_src
> 
> When I try to execute it with C-c C-c , emacs never returns unless I hit C-g.
> If I do M-x toggle-debug-on-quit RET I see that for some reason it keeps
> waiting for EOE.
>
> ...
> 
> Here is what I see in *MATLAB* buffer:
> 
> 8<-*MATLAB*-->8-
> >> a=2
> if ischar(ans), fid = fopen('c:/DOCUME~1/user/LOCALS~1/Temp/babel-
> 7560HUp/matlab-7560PPd', 'w'); fprintf(fid, '%s\n', ans); fclose(fid); else,
> dlmwrite('c:/DOCUME~1/user/LOCALS~1/Temp/babel-7560HUp/matlab-7560PPd', ans,
> '\t'); end
> 'org_babel_eoe'
> 
> a =
> 
>  2
> 
> >> >>
> ans =
> 
> org_babel_eoe
> 
> >>
> 8<-*MATLAB*-->8-

I feel like it is about

(defvar org-babel-octave-eoe-output "ans = org_babel_eoe")

as Matlab's return has newlines. I'm not sure so far how to make universal 
regex for re-search-forward in org-babel-comint-with-output .

Mikhail
 





Re: [O] listings and the new LaTeX exporter

2012-05-24 Thread Andreas Leha
Nick Dokos  writes:

> Andreas Leha  wrote:
>
>> I do emacs -Q -l .emacs.org, set the 'org-export-latex-listings to t and
>
> That's the old exporter variable. The new exporter variable is 
> org-e-latex-listings.
>
> Nick

blush.  Thanks.


For my (weak) defense:
I did not see that variable in the customization interface.  M-x
customize-group RET org-export-e-latex RET
takes me to the group "Org Export LaTeX" and no sign of
org-e-latex-listings...

Cheers,
Andreas




Re: [O] Code for feature for showing progress in lisp code for creation of Gantt charts

2012-05-24 Thread John Hendy
On Thu, May 24, 2012 at 10:00 AM,   wrote:
> Hello everybody out there using Org-mode,
>
> Some time ago, Eric Fraga had posted a script for generating Gantt charts 
> directly out of Org-mode which is very helpful.
> Some project management software allows to follow the progress of tasks by 
> staining a proportional part of the rectangle for a certain task in relation 
> to its completion percentage in green and the rest in red.
> This allows easier evaluation of a project's current status.
> I added this feature to Eric Fraga's code and would like to post it here for 
> discussion. It would be great if it could be somehow added to Org-mode.

I can't seem to get this to compile. I assumed I was to C-c C-c on the
elisp source block, which appears to have run, though this is in
*Messages* buffer:

--
executing Emacs-Lisp code block...

(table (quote (("" "type" "label" "activity" "depends" "start"
"duration" "end" "align" "progress") hline (1 "date" "Start" "" "" 0
"" 0 "" "") (2 "task" 1.1 "Litsurvey" "" 0 2 2 "right" 75) (3
"task" 1.2 "experiments" "" 2 6 8 "" 40) (4 "milestone" "M1" "data
collected" 3 8 "" 8 "" "") (5 "task" 1.3 "Report" 3 8 6 14 "" 30) (6
"date" "6 weeks" "" "" 14 "" 14 "" "") (7 "milestone" "M2" "Release" 5
14 "" 14 "" "") hline (8 "task" 2.1 "Discuss" 5 14 1 15 "left" 90) (9
"task" 2.2 "Correct mistakes" 8 15 1 16 "left" 10) (10 "task" 2.3 "Add
feedback" 5 14 2 16 "left" 50) (11 "date" "End" "" "" 16 "" 16 "" "")
hline)))

Initial: (( type label activity depends start duration end align
progress) hline (1 date Start   0  0  ) (2 task 1.1 Litsurvey
0 2 2 right 75) (3 task 1.2 experiments  2 6 8  40) (4 milestone M1
data collected 3 8  8  ) (5 task 1.3 Report 3 8 6 14  30) (6 date 6
weeks   14  14  ) (7 milestone M2 Release 5 14  14  ) hline (8 task
2.1 Discuss 5 14 1 15 left 90) (9 task 2.2 Correct mistakes 8 15 1 16
left 10) (10 task 2.3 Add feedback 5 14 2 16 left 50) (11 date End
16  16  ) hline)

Entries: ((1 date Start   0  0  ) (2 task 1.1 Litsurvey  0 2 2
right 75) (3 task 1.2 experiments  2 6 8  40) (4 milestone M1 data
collected 3 8  8  ) (5 task 1.3 Report 3 8 6 14  30) (6 date 6 weeks
14  14  ) (7 milestone M2 Release 5 14  14  ) hline (8 task 2.1
Discuss 5 14 1 15 left 90) (9 task 2.2 Correct mistakes 8 15 1 16 left
10) (10 task 2.3 Add feedback 5 14 2 16 left 50) (11 date End   16  16
 ) hline)

Ignoring non-list entry hline

Ignoring non-list entry hline

Code block evaluation complete.
--

Then I used export to PDF via the normal method =C-d p= but just get a
blank PDF with a title, your name, and first section, "Time line."

I checked and do have emacs-lisp enabled in my babel section.

Suggestions?


John

>
> Thank you for making Org-mode such a good piece of software,
> Julia



Re: [O] listings and the new LaTeX exporter

2012-05-24 Thread Nick Dokos
Andreas Leha  wrote:

> I do emacs -Q -l .emacs.org, set the 'org-export-latex-listings to t and

That's the old exporter variable. The new exporter variable is 
org-e-latex-listings.

Nick



[O] [babel] ob-octave does not catch EOE from matlabShell on MS Windows

2012-05-24 Thread Mikhail Titov
Hello!

I was trying hard to set up Matlab R2011a to work with my Emacs 24.1.50.1 (org 
version is release_7.8.09-532-gb797c8.dirty) and finally I was able to use it 
from M-shell but not from orgmode yet. I've edited emacs wiki [1] to reflect 
somewhat working matlab-mode setup on win32. Namely I use [2] as matlab shell.

I have a simple test block like

#+begin_src matlab :session *MATLAB*
a=2
#+end_src

When I try to execute it with C-c C-c , emacs never returns unless I hit C-g. 
If I do M-x toggle-debug-on-quit RET I see that for some reason it keeps 
waiting for EOE.

I'd appreciate any suggestion as what to try (other than Octave which has its 
own tricks on Win32). I'm lost.

[1] http://www.emacswiki.org/emacs/MatlabMode#toc3
[2] http://www.cs.umb.edu/~ram/matlabShell/index.html

--
Mikhail


Here is what I see in *MATLAB* buffer:

8<-*MATLAB*-->8-
>> a=2
if ischar(ans), fid = 
fopen('c:/DOCUME~1/user/LOCALS~1/Temp/babel-7560HUp/matlab-7560PPd', 'w'); 
fprintf(fid, '%s\n', ans); fclose(fid); else, 
dlmwrite('c:/DOCUME~1/user/LOCALS~1/Temp/babel-7560HUp/matlab-7560PPd', ans, 
'\t'); end
'org_babel_eoe'

a =

 2

>> >> 
ans =

org_babel_eoe

>>
8<-*MATLAB*-->8-


8<-*Bactrace*-->8-
Debugger entered--Lisp error: (quit)
  accept-process-output(#)
  (while (progn (goto-char comint-last-input-end) (not (save-excursion (and 
(re-search-forward (regexp-quote (if matlabp org-babel-octave-eoe-indicator 
org-babel-octave-eoe-output)) nil t) (re-search-forward comint-prompt-regexp 
nil t) (accept-process-output (get-buffer-process (current-buffer
  (progn (goto-char (process-mark (get-buffer-process (current-buffer (let 
((start (point)) (end (point-max))) (setq dangling-text (buffer-substring start 
end)) (delete-region start end)) (insert full-body) (comint-send-input nil t) 
(while (progn (goto-char comint-last-input-end) (not (save-excursion (and 
(re-search-forward (regexp-quote ...) nil t) (re-search-forward 
comint-prompt-regexp nil t) (accept-process-output (get-buffer-process 
(current-buffer (goto-char (process-mark (get-buffer-process 
(current-buffer (insert dangling-text))
  (unwind-protect (progn (goto-char (process-mark (get-buffer-process 
(current-buffer (let ((start (point)) (end (point-max))) (setq 
dangling-text (buffer-substring start end)) (delete-region start end)) (insert 
full-body) (comint-send-input nil t) (while (progn (goto-char 
comint-last-input-end) (not (save-excursion (and (re-search-forward ... nil t) 
(re-search-forward comint-prompt-regexp nil t) (accept-process-output 
(get-buffer-process (current-buffer (goto-char (process-mark 
(get-buffer-process (current-buffer (insert dangling-text)) (remove-hook 
(quote comint-output-filter-functions) (quote my-filt)))
  (progn (fset (quote my-filt) (function* (lambda (text) (block my-filt (setq 
string-buffer (concat string-buffer text)) (add-hook (quote 
comint-output-filter-functions) (quote my-filt)) (unwind-protect (progn 
(goto-char (process-mark (get-buffer-process (current-buffer (let ((start 
(point)) (end (point-max))) (setq dangling-text (buffer-substring start end)) 
(delete-region start end)) (insert full-body) (comint-send-input nil t) (while 
(progn (goto-char comint-last-input-end) (not (save-excursion (and ... ... 
(accept-process-output (get-buffer-process (current-buffer (goto-char 
(process-mark (get-buffer-process (current-buffer (insert dangling-text)) 
(remove-hook (quote comint-output-filter-functions) (quote my-filt
  (unwind-protect (progn (fset (quote my-filt) (function* (lambda (text) (block 
my-filt (setq string-buffer (concat string-buffer text)) (add-hook (quote 
comint-output-filter-functions) (quote my-filt)) (unwind-protect (progn 
(goto-char (process-mark (get-buffer-process (current-buffer (let ((start 
(point)) (end (point-max))) (setq dangling-text (buffer-substring start end)) 
(delete-region start end)) (insert full-body) (comint-send-input nil t) (while 
(progn (goto-char comint-last-input-end) (not (save-excursion ...))) 
(accept-process-output (get-buffer-process (current-buffer (goto-char 
(process-mark (get-buffer-process (current-buffer (insert dangling-text)) 
(remove-hook (quote comint-output-filter-functions) (quote my-filt (if 
--cl-letf-bound-- (fset (quote my-filt) --cl-letf-save--) (fmakunbound (quote 
my-filt
  (let* ((--cl-letf-bound-- (fboundp (quote my-filt))) (--cl-letf-save-- (and 
--cl-letf-bound-- (symbol-function (quote my-filt) (unwind-protect (progn 
(fset (quote my-filt) (function* (lambda (text) (block my-filt (setq 
string-buffer ...) (add-hook (quote comint-output-filter-functions) (quote 
my-filt)) (unwind-protect (progn (goto-char (process-mark (get-buffer-process 
...))) (let ((start ...) (end ...)) (setq dangling-text (buffer-substring start 
end)

Re: [O] listings and the new LaTeX exporter

2012-05-24 Thread Andreas Leha
Hi Jambunathan,

> M-x customize-group RET org-export-e-latex RET
>
> (Hint: Search for listing)

Thanks for looking into this.  This variable is set to "t".

Sorry, that I did not give a more complete workflow of how I do *not* get
listings with the new LaTeX exporter.
This now follows.


Here is the .emacs.org
,
| (add-to-list 'load-path (expand-file-name 
"~/local/emacs/org-mode-install/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\  |org_archive\\|txt\\)$" . 
org-mode))
| (require 'org-install)
| (require 'org-habit)
| 
| (add-to-list 'load-path (expand-file-name 
"~/local/emacs/org-mode/contrib/lisp"))
| (require 'org-export)
| 
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
| (global-set-key "\C-cb" 'org-iswitchb)
`

I do emacs -Q -l .emacs.org, set the 'org-export-latex-listings to t and
run the org-export-dispatch "L" on this file:
,
| #+TITLE: Test the listings
| 
| 
| * Some listing
| #+begin_src R
|   bh <- basehaz(coxmodel.cont.64)
| #+end_src
| 
| * Options:noexport:
| #+LaTeX_CLASS_OPTIONS: [11pt]
| #+LATEX_HEADER: \setlength{\parindent}{0pt}
| #+LATEX_HEADER: \setlength{\parskip}{1ex}
| #+LATEX_HEADER: \usepackage{listings}
| #+LATEX_HEADER: \usepackage{color}
| #+LATEX_HEADER: \definecolor{mylstback}{RGB}{200,200,200} % light gray
| #+LATEX_HEADER: \lstloadlanguages{R}
| #+LATEX_HEADER: \lstdefinelanguage{Renhanced}[]{R}{%
| #+LATEX_HEADER:   
morekeywords={acf,ar,arima,arima.sim,colMeans,colSums,is.na,is.null,%
| #+LATEX_HEADER: 
mapply,ms,na.rm,nlmin,replicate,row.names,rowMeans,rowSums,seasonal,%
| #+LATEX_HEADER: 
sys.time,system.time,ts.plot,which.max,which.min},
| #+LATEX_HEADER:   deletekeywords={c},%
| #+LATEX_HEADER:   alsoletter={._\%},%
| #+LATEX_HEADER:   alsoother={:\$}}
| #+LATEX_HEADER: \lstset{%
| #+LATEX_HEADER: extendedchars=true,%
| #+LATEX_HEADER: basicstyle=\ttfamily\scriptsize, % the font that is used 
for the code
| #+LATEX_HEADER: tabsize=4, % sets default tabsize to 4 spaces
| #+LATEX_HEADER: numbers=left, % where to put the line numbers
| #+LATEX_HEADER: numberstyle=\tiny, % line number font size
| #+LATEX_HEADER: stepnumber=4, % step between two line numbers
| #+LATEX_HEADER: breaklines=false, %!! don't break long lines of code
| #+LATEX_HEADER: showtabs=false, % show tabs within strings adding 
particular underscores
| #+LATEX_HEADER: showspaces=false, % show spaces adding particular 
underscores
| #+LATEX_HEADER: showstringspaces=false, % underline spaces within strings
| #+LATEX_HEADER: frame=tb,%
| #+LATEX_HEADER: keywordstyle=\color{blue},
| #+LATEX_HEADER: identifierstyle=\color{black},
| #+LATEX_HEADER: stringstyle=\color{green},
| #+LATEX_HEADER: commentstyle={\color{red}\ttfamily\itshape},
| #+LATEX_HEADER: backgroundcolor=\color{mylstback}, % sets the background 
color
| #+LATEX_HEADER: captionpos=t, % sets the caption position to `bottom'
| #+LATEX_HEADER: extendedchars=false %!?? workaround for when the listed 
file is in UTF-8
| #+LATEX_HEADER: }
`

The result is this:
,
| % Created 2012-05-24 Do 22:52
| \documentclass[11pt]{article}
| \usepackage[utf8]{inputenc}
| \usepackage[T1]{fontenc}
| \usepackage{fixltx2e}
| \usepackage{graphicx}
| \usepackage{longtable}
| \usepackage{float}
| \usepackage{wrapfig}
| \usepackage{soul}
| \usepackage{textcomp}
| \usepackage{marvosym}
| \usepackage{wasysym}
| \usepackage{latexsym}
| \usepackage{amssymb}
| \usepackage{hyperref}
| \tolerance=1000
| \usepackage{color}
| \usepackage{listings}
| \setlength{\parindent}{0pt}
| \setlength{\parskip}{1ex}
| \usepackage{listings}
| \usepackage{color}
| \definecolor{mylstback}{RGB}{200,200,200} % light gray
| \lstloadlanguages{R}
| \lstdefinelanguage{Renhanced}[]{R}{%
| morekeywords={acf,ar,arima,arima.sim,colMeans,colSums,is.na,is.null,%
| mapply,ms,na.rm,nlmin,replicate,row.names,rowMeans,rowSums,seasonal,%
| sys.time,system.time,ts.plot,which.max,which.min},
| deletekeywords={c},%
| alsoletter={._\%},%
| alsoother={:\$}}
| \lstset{%
| extendedchars=true,%
| basicstyle=\ttfamily\scriptsize, % the font that is used for the code
| tabsize=4, % sets default tabsize to 4 spaces
| numbers=left, % where to put the line numbers
| numberstyle=\tiny, % line number font size
| stepnumber=4, % step between two line numbers
| breaklines=false, %!! don't break long lines of code
| showtabs=false, % show tabs within strings adding particular underscores
| showspaces=false, % show spaces adding particular underscores
| showstringspaces=false, % underline spaces within strings
| frame=tb,%
| keywordstyle=\color{blue},
| identifierstyle=\color{black},
| stringstyle=\color{green},
| commentstyle={\color{red}\ttfamily\itshape},
| backgroundcolor=\color{mylstback}, % sets the background color
| captionpos=t, % sets the caption position to `bottom'
| extendedchars=false %!?? w

Re: [O] Bug: latex-export: More than 5 levels of headings [7.8.03]

2012-05-24 Thread Sebastien Vauban
Hi Arne,

Arne Babenhauserheide wrote:
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
>
>  http://orgmode.org/manual/Feedback.html#Feedback
>
> Your bug report will be posted to the Org-mode mailing list.
> 
>
> Dear org-hackers,
>
> I am using org-mode for writing my PhD and I found that even when I
> adapt the latex-classes to have more than 3rd levels of headings¹, all
> headings after the 3rd level turn to itemize-lists. 
>
> Am I missing something? 
> If not, could that be extended to allow for arbitrarily deep structures?

H:4 in the options... See export template.

Best regards,
  Seb

-- 
Sebastien Vauban




Re: [O] listings and the new LaTeX exporter

2012-05-24 Thread Jambunathan K

M-x customize-group RET org-export-e-latex RET

(Hint: Search for listing)

Andreas Leha  writes:

> Hi all,
>
> in my exported LaTeX-document all code blocks are wrapped in
> #+begin_latex
>   \begin{verbatim}
>   % the code
>   \end{verbatim}
> #+end_latex
>
> With the "old" LaTeX-exporter I get 
> #+begin_latex
>   \lstset{language=Renhanced}
>   \begin{lstlisting}
>   % the code
>   \end{lstlisting}
> #+end_latex
> which is also what I want.
>
> How do I configure the new exporter to wrap code blocks in =lstlisting=
> and set the listings language (to =Renhanced= in my case)?
>
> Thanks in advance,
> Andreas
>
>
>

-- 



[O] listings and the new LaTeX exporter

2012-05-24 Thread Andreas Leha
Hi all,

in my exported LaTeX-document all code blocks are wrapped in
#+begin_latex
  \begin{verbatim}
  % the code
  \end{verbatim}
#+end_latex

With the "old" LaTeX-exporter I get 
#+begin_latex
  \lstset{language=Renhanced}
  \begin{lstlisting}
  % the code
  \end{lstlisting}
#+end_latex
which is also what I want.

How do I configure the new exporter to wrap code blocks in =lstlisting=
and set the listings language (to =Renhanced= in my case)?

Thanks in advance,
Andreas




Re: [O] Problem Installing Info Files

2012-05-24 Thread Achim Gratz
Ian Barton writes:
> Thanks, tried that but got same error. In any case the directory is
> owned by me, so it shouldn't be a permission problem.

What are the permissions on the directory and what is the OS?  Unless
install-info has a bug on your system, it should create a "dir" file if
it cannot find one.  It seems that it has tried to do that, but failed.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds




Re: [O] makefile regression

2012-05-24 Thread Achim Gratz
Greg Troxel writes:
> I don't really object to using GNU make; enough things require it
> (probably emacs does too) that it's already installed.  It's more that
> "anyone using a makefile will use gnu make" isn't a valid assumption,
> especially when the documentation says "type make".
[...]

Could you please state clearly what you want to have changed and
possibly how?  You keep wandering back and forth in your arguments, but
to me it seems simply adding a sentence or two to the README file about
the need for GNU make would suffice until the full documentation is
finished.  I'm sure Bastien would appreciate if you could supply a patch
for it.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Samples for the Waldorf Blofeld:
http://Synth.Stromeko.net/Downloads.html#BlofeldSamplesExtra




Re: [O] Opening an odt file - problem solved

2012-05-24 Thread Jambunathan K
Jambunathan K  writes:

> I see that there is a bug in nxml-mode.  I file a bug report against
> Emacs sometime soon.  The bug is:
>
> When `nxml-auto-insert-xml-declaration-flag' is on, if one opens a ODT
> file in archive mode and presses RET on say content.xml, an "extra" XML
> declaration is added.  (i.e., Emacs tampers with XML file) This
> shouldn't happen.

So to verify the fix:

1. Unzip ODT file in a shell and then 
2. Do M-x find-file-literally RET content.xml RET
3. Verify that none of the XML files have multiple XML declarations.

-- 



Re: [O] Opening an odt file - problem solved

2012-05-24 Thread Bastien
Jambunathan K  writes:

>> Can you fix it?
>
> OK.  Fixed in both maint and master.  The exported ODT file will not
> have multiple XML declrations.

Great, thanks a lot!

-- 
 Bastien



Re: [O] Opening an odt file - problem solved

2012-05-24 Thread Jambunathan K
Bastien  writes:

> Hi Jambunathan,
>
> Jambunathan K  writes:
>
>>> So if want to be able to open odt files created with orgmode odt
>>> exporter you have to have nxml-auto-insert-xml-declaration-flag set to
>>> nil.
>>
>> Thanks for writing this down.  It seems you aren't insisting on a fix.
>
> I think the fix would be nice to have.
>
> Can you fix it?

OK.  Fixed in both maint and master.  The exported ODT file will not
have multiple XML declrations.

I see that there is a bug in nxml-mode.  I file a bug report against
Emacs sometime soon.  The bug is:

When `nxml-auto-insert-xml-declaration-flag' is on, if one opens a ODT
file in archive mode and presses RET on say content.xml, an "extra" XML
declaration is added.  (i.e., Emacs tampers with XML file) This
shouldn't happen.

> Thanks,



Re: [O] Rounding timeclock and moving to the end of the line

2012-05-24 Thread Kevin Buchs
 On Thu, May 24, 2012 at 4:25 AM, Bastien  wrote:

> What is your value of ̀org-time-stamp-rounding-minutes'?
>

It is  (15 15).

>
> Replacing (current-time) with (org-current-time) here will surprise
> users that use ̀org-time-stamp-rounding-minutes' only for modifying
> time-stamps and not for clocking in.
>
> We could have an option for this, letting users decide whether they
> want `org-time-stamp-rounding-minutes' to apply to clocking in.  Do
> you want to work in this direction?
>
>
According to the documentation for org-time-stamp-rounding-minutes, the
first value of that list should apply to creating time stamps and the
second to modifying them. Does that differentiation cover the case you
gave? If we need to create another sort of encoding for
org-time-stamp-rounding-minutes, I can certainly work on coding that. I
find this feature really useful. Perhaps I misunderstand, but it seems like
one still needs to replace (current-time) with (org-current-time) as
org-current-time is where the value of org-time-stamp-rounding-minutes is
actually utilized.


>
>


> > I have filled out the paperwork with FSF to be a developer in emacs/
> > org-mode.
>
> Let us know when this is done.
>
> It is already done - been so for a few months.


> > My next project is to solve the problem that C-e does not move to the
> > end of the line with long lines that are not headings. I find myself
> > doing this often and have to hit multiple C-e s. I don't have the
> > org-special-ctrl-a/e set to non-nil. My line-move-visual is the
> > default value of t, so I get the end-of-visual-line movement one
> > screen's worth.
>
> C-e always go to the end of ordinary lines here, with various values of
> `org-special-ctrl-a/e' and `line-move-visual'.  Can you post a recipe
> and an example file so that I can reprodce?
>
> > Before I make any changes, I thought I should be
> > clear on the design goals here. It seems as if the declaration of
> > line-move-visual says it is dealing with vertical motion, not
> > horizontal motion. I don't see any behavior elsewhere that uses the
> > interpretation that line-move-visual is for horizontal motion. Anyone
> > have thoughts on this subject?
>
> I'm not sure I understand the issue correctly - thanks for further
> details.
>

I created a video to demonstrate this:
http://screencast.com/t/PS5BuhPdNcuP. It gives the environment
information after starting emacs with -Q. By the
way, I'm on a Windows-7 platform. The problem is the same whether the
second line in the buffer is a list entry or a plain line.

Kevin Buchs


Re: [O] PATCH: follow timestamp link also in heading

2012-05-24 Thread Samuel Wales
Thanks for this.  I use inactive timestamps in headings all the time
and sort by them.  It offers excellent usability for finding a contact
-- just scan the dates in order.

I had not noticed the /lack/ of the feature, because I didn't notice
its /presence/ in non-mouse.

I use RET to follow links.

Perhaps we should make RET do this also when RET follows links.

Samuel

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com



Re: [O] preview latex fragments

2012-05-24 Thread Nick Dokos
Andreas Leha  wrote:

> Andreas Leha  writes:
> 
> > Hi Bastien,
> >
> > Bastien  writes:
> >
> >> Hi Andreas,
> >>
> >> Andreas Leha  writes:
> >>
> >>> I experience a problem with the preview of latex fragments:  I can not
> >>> change the foreground color (in org-format-latex-options).  On a dark
> >>> background, the black fragments are barely visible.
> >>>
> >>> The settings for background and scale (in the same variable) are
> >>> honored, though.
> >>
> >> Can you post a reproducible case with a specific Org version?
> >
> > Thanks a lot for looking into this, but:
> > No, I can not.  Now it works as it should.  No clue what happened
> > actually.  Sorry for the noise.
> >
> > - Andreas
> 
> 
> Actually, now I can again reproduce it.  The problem seems to be tikz:
> With tikz in the latex header, foreground is always black.  So probably
> more a LaTeX-issue?
> 
> Example: Change the :foreground color in org-format-latex-options to
> "Red" and do the preview (C-c C-x C-l) on this subtree:
> 
> #+begin_org
> #+LATEX_HEADER: \usepackage{tikz}
> 
> 
> * Test 
>   Hi, 
> 
>   set :foreground in org-format-latex-options to "Red" and take this
>   fragment $1 = 2$ and press C-c C-x C-l.
> #+end_org
> 
> 
> So the question becomes:
> Can I make the foreground changing work even with tikz loaded in the
> latex document?
> 

I can reproduce it too, without tikz. I have a green-on-black setup but
I think the underlying reason (at least in my case: Andreas's case might
be different) is minted. I'm appending an org file with my
investigation.

Nick

--8<---cut here---start->8---

* previewing a latex fragment produces a black blob 

I use a green-on-black scheme:

#+BEGIN_SRC elisp
  (setq frame-inherited-parameters '(foreground-color background-color))

  (set-foreground-color "green")
  (set-background-color "black")
  (set-cursor-color "red")
  (set-mouse-color "red")
  (set-face-foreground 'menu "light grey")
  (set-face-background 'menu "black")

#+END_SRC

Here's a simple latex fragment:

\[
2 + 2 = 4
\]

Previewing it with C-c C-x C-l, I get an invisible black blob.

The current value of org-format-latex-options is

(:foreground default
 :background default
 :scale 1.4
 :html-foreground "Black"
 :html-background "Transparent"
 :html-scale 1.0
 :matchers
 ("begin" "$1" "$" "$$" "\\(" "\\["))

If I link to the produced png file:

[[file:./ltxpng/dark-bg_ca60306327ae6b995f92a473e1e8787c7917c488.png]]

and follow the link, I get nothing. The file has size 84 which seems
ridiculously low.  Indeed, I can ``display'' it and get info on the
image: the channel statistics show it's all black.

OTOH, if I take the following tex program, latex and dvipng it with
the same parameters, I get a reasonable result:

#+BEGIN_EXAMPLE
\documentclass{article}

\begin{document}
\[
2 + 2 = 4
\]
\end{document}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "fragment"
%%% End: 

#+END_EXAMPLE

#+BEGIN_SRC sh
 latex fragment.tex
 dvipng -fg "rgb 0 1 0" -bg "rgb 0 0 0" -D 140 -T tight -o fragment.png 
fragment.dvi

#+END_SRC

So either the production of the fragment is wrong or the production of
the png from the fragment, probably the former. The latex code for the
fragment follows. If I again do the latex/dvipng run by hand (with
--shell-escape to accommodate minted) I get an all-black png. If I
comment out minted, it works.

#+BEGIN_SRC latex
\documentclass{article}
\usepackage[usenames]{color}
\usepackage{amsmath}
\usepackage[mathscr]{eucal}
\pagestyle{empty} % do not remove
\usepackage{minted}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
% Package fixltx2e omitted
\usepackage{graphicx}
% Package longtable omitted
% Package float omitted
% Package wrapfig omitted
\usepackage{soul}
\usepackage{textcomp}
\usepackage{marvosym}
\usepackage{wasysym}
\usepackage{latexsym}
\usepackage{amssymb}
% Package hyperref omitted
\tolerance=1000
% The settings below are copied from fullpage.sty
\setlength{\textwidth}{\paperwidth}
\addtolength{\textwidth}{-3cm}
\setlength{\oddsidemargin}{1.5cm}
\addtolength{\oddsidemargin}{-2.54cm}
\setlength{\evensidemargin}{\oddsidemargin}
\setlength{\textheight}{\paperheight}
\addtolength{\textheight}{-\headheight}
\addtolength{\textheight}{-\headsep}
\addtolength{\textheight}{-\footskip}
\addtolength{\textheight}{-3cm}
\setlength{\topmargin}{1.5cm}
\addtolength{\topmargin}{-2.54cm}
\begin{document}
\[
2 + 2 = 4
\]
\end{document}

#+END_SRC
--8<---cut here---end--->8---



[O] Bug: latex-export: More than 5 levels of headings [7.8.03]

2012-05-24 Thread Arne Babenhauserheide

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

 http://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org-mode mailing list.


Dear org-hackers,

I am using org-mode for writing my PhD and I found that even when I
adapt the latex-classes to have more than 3rd levels of headings¹, all
headings after the 3rd level turn to itemize-lists. 

Am I missing something? 
If not, could that be extended to allow for arbitrarily deep structures?

Best wishes,
Arne

¹: relevant setting (not in the org-mode settings I use for writing the
bug-report): 
   ("report" "\\documentclass[11pt]{scrreprt}" ("\\part{%s}"
. "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}"
. "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}") ("\\paragraph{%s}"
. "\\paragraph*{%s}") ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))

Emacs  : GNU Emacs 23.4.2 (x86_64-pc-linux-gnu, GTK+ Version 2.24.8)
 of 2012-04-10 on fluss
Package: Org-mode version 7.8.03

current state:
==
(setq
 org-export-latex-after-initial-vars-hook '(org-beamer-after-initial-vars)
 org-export-latex-listings t
 org-speed-command-hook '(org-speed-command-default-hook 
org-babel-speed-command-hook)
 org-agenda-custom-commands '(("o" "Agenda and TODOs" ((tags "KANBAN") (agenda 
nil) (todo ""
 org-agenda-files '("~/.emacs.d/private/org/emacs-plan.org")
 org-agenda-include-diary t
 org-babel-load-languages '((python . t) (sh . t) (emacs-lisp . t))
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-babel-tangle-lang-exts '(("python" . "py") ("emacs-lisp" . "el"))
 org-export-latex-format-toc-function 'org-export-latex-format-toc-default
 org-agenda-skip-scheduled-if-done t
 org-tab-first-hook '(org-hide-block-toggle-maybe 
org-src-native-tab-command-maybe)
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-confirm-shell-link-function 'yes-or-no-p
 org-export-first-hook '(org-beamer-initialize-open-trackers)
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-export-latex-packages-alist '(("" "color") ("" "listings"))
 org-default-notes-file "~/.emacs.d/private/org/emacs-remember-mode.org"
 org-directory "~/.emacs.d/private/org"
 outline-mode-hook '((lambda nil (require (quote outline-magic
 org-blank-before-new-entry nil
 org-babel-pre-tangle-hook '(save-buffer)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers 
org-cycle-show-empty-lines
  org-optimize-window-after-visibility-change)
 org-export-latex-classes '(("protokoll"
 
"\\documentclass{scrartcl}\\usepackage{parskip}\\usepackage{underscore}\\setlength{\\parindent}{0cm}"
 ("\\section{%s}" . "\\section*{%s}") 
("\\subsection{%s}" "\\newpage" "\\subsection*{%s}" "\\newpage")
 ("\\subsubsection{%s}" . "\\subsubsection*{%s}") 
("\\paragraph{%s}" . "\\paragraph*{%s}")
 ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("article" "\\documentclass[11pt]{article}" 
("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
 ("\\paragraph{%s}" . "\\paragraph*{%s}") 
("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
("report" "\\documentclass[11pt]{report}" 
("\\part{%s}" . "\\part*{%s}")
 ("\\chapter{%s}" . "\\chapter*{%s}") 
("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("book" "\\documentclass[11pt]{book}" ("\\part{%s}" 
. "\\part*{%s}")
 ("\\chapter{%s}" . "\\chapter*{%s}") 
("\\section{%s}" . "\\section*{%s}")
 ("\\subsection{%s}" . "\\subsection*{%s}") 
("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
("beamer" "\\documentclass{beamer}" 
org-beamer-sectioning))
 org-export-preprocess-before-normalizing-links-hook 
'(org-remove-file-link-modifiers)
 org-mode-hook '(org-mode-reftex-setup turn-on-font-lock
 #[nil "\300\301\302\303\304$\207" [org-add-hook 
change-major-mode-hook org-show-block-all append local] 5]
 org-babel-hide-all-hashes)
 org-extend-today-until 4
 org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point 
org-babel-execute-safely-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-start-on-weekday nil
 org-export-interblocks '((lob org-babel-exp-lob-one-liners) (src 
org-babel-e

Re: [O] little annoyance

2012-05-24 Thread Jason Dunsmore
Hi Julian,

You can change org-edit-src-content-indentation to keep indentation from
being added:

(setq org-edit-src-content-indentation 0)

Regards,
Jason



[O] Code for feature for showing progress in lisp code for creation of Gantt charts

2012-05-24 Thread julia . jacobson
Hello everybody out there using Org-mode,

Some time ago, Eric Fraga had posted a script for generating Gantt charts 
directly out of Org-mode which is very helpful.
Some project management software allows to follow the progress of tasks by 
staining a proportional part of the rectangle for a certain task in relation to 
its completion percentage in green and the rest in red.
This allows easier evaluation of a project's current status.
I added this feature to Eric Fraga's code and would like to post it here for 
discussion. It would be great if it could be somehow added to Org-mode.

Thank you for making Org-mode such a good piece of software,
Julia


pro_prog.org
Description: Binary data


[O] little annoyance

2012-05-24 Thread Julian Burgos

Dear list:

Is there any way to stop org-mode from adding blank spaces on the left 
margin of an R source code block when returning from editing in ESS 
mode?  Here is an example:


1) I create my org mode file with an R source code block:

-start org mode---
* Trial
#+begin_src R
plot(1:10)
#+end_src
-end org mode---

2) I do Ctrl-' to switch to ESS mode, and then again to go back to org mode.

3) The source code block has new spaces'

-start org mode---
* Trial
#+begin_src R
  plot(1:10)
#+end_src
-end org mode---

This is mildly annoying because I edit the source code blocks both in 
ESS and in org-mode, and the code gets misaligned.  Any ideas?

Many thanks,

Julian

--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax:  +354-5752001
Netfang/Email: jul...@hafro.is




Re: [O] Largest org file you have + performance

2012-05-24 Thread SW
I'm not familiar enough with Emacs to comment about the performance of overlays,
etc., but I'm surprised that processing *text* can be so CPU intensive.

These days we have games running with millions of pixels and shading or whatever
(some use the GPU of course), and browsers with fancy Flash animation and dozens
of tabs open and spreadsheets with thousands of cells and word processor
documents with hundreds of formatted pages on dual cores and quad cores with GB
of RAM.

Is this performance overhead just a result of poorly-scalable overlays, rather
than an inherent shortcoming of Emacs and/or org-mode?




Re: [O] preview latex fragments

2012-05-24 Thread Andreas Leha
Andreas Leha  writes:

> Hi Bastien,
>
> Bastien  writes:
>
>> Hi Andreas,
>>
>> Andreas Leha  writes:
>>
>>> I experience a problem with the preview of latex fragments:  I can not
>>> change the foreground color (in org-format-latex-options).  On a dark
>>> background, the black fragments are barely visible.
>>>
>>> The settings for background and scale (in the same variable) are
>>> honored, though.
>>
>> Can you post a reproducible case with a specific Org version?
>
> Thanks a lot for looking into this, but:
> No, I can not.  Now it works as it should.  No clue what happened
> actually.  Sorry for the noise.
>
> - Andreas


Actually, now I can again reproduce it.  The problem seems to be tikz:
With tikz in the latex header, foreground is always black.  So probably
more a LaTeX-issue?

Example: Change the :foreground color in org-format-latex-options to
"Red" and do the preview (C-c C-x C-l) on this subtree:

#+begin_org
#+LATEX_HEADER: \usepackage{tikz}


* Test 
  Hi, 

  set :foreground in org-format-latex-options to "Red" and take this
  fragment $1 = 2$ and press C-c C-x C-l.
#+end_org


So the question becomes:
Can I make the foreground changing work even with tikz loaded in the
latex document?

Cheers,
Andreas




Re: [O] makefile regression

2012-05-24 Thread Greg Troxel

I don't really object to using GNU make; enough things require it
(probably emacs does too) that it's already installed.  It's more that
"anyone using a makefile will use gnu make" isn't a valid assumption,
especially when the documentation says "type make".

  At the very start of my Makefile branch I stated that I will use GNU
  make since the old make file already used some GNU make features.  This
  will be documented when it gets released.  Using GNU make features
  helped to keep things a bit more maintenance friendly, but before other
  things, I have a reliable documentation of what it is supposed to do and
  can be reasonably sure that it actually does that across a range of
  platforms.

It seems easy enough to document the requirement in README in the
sources, where programs traditonally list their prerequisites; I looked
there and in the usual other files and found no such requirement
explained.  I don't understand why it makes sense to defer adjusting the
source to explain what's needed until its tagged, but maybe you don't
mean that.

Separately, that would be a good place to explain what version of emacs
are supported.  I am running 24 and thus not running into too new/old,
but I now realize that's an obvious question the answer to which my
attempt to find out if the requirement to use GNU Make was documented
should have led me across.

  > This seems unfortunate; I don't understand why building org has to be so
  > complicated.  If it is complicated, it seems best to use
  > autoconf/automake, which already have worked out most of the portability
  > issues.

  Please, let's not go there.  I will implement a facility to build an
  in-place orgmode without any support from make at all.  It appears that
  this would be enough for your use-case, but I'd still still suggest to
  use GNU make.

I did use GNU make.   My reaction was not to GNU make, but that it
wasn't obvious in a minute or two what all the makefile complexity was
for.

  > (I haven't seen any discussion, but I confess to not quite keeping up
  > with with emacs-orgmode traffic.)

  It seems a better idea to stay on maint rather than on master then.

By not quite keeping up I mean that I scan all the subject lines and
read some things.  Almost all if not all of my problems on master over
the last few years have been running into real bugs.


Thanks,
Greg


pgpolfsUCxVvp.pgp
Description: PGP signature


Re: [O] preview latex fragments

2012-05-24 Thread Andreas Leha
Hi Bastien,

Bastien  writes:

> Hi Andreas,
>
> Andreas Leha  writes:
>
>> I experience a problem with the preview of latex fragments:  I can not
>> change the foreground color (in org-format-latex-options).  On a dark
>> background, the black fragments are barely visible.
>>
>> The settings for background and scale (in the same variable) are
>> honored, though.
>
> Can you post a reproducible case with a specific Org version?

Thanks a lot for looking into this, but:
No, I can not.  Now it works as it should.  No clue what happened
actually.  Sorry for the noise.

- Andreas




Re: [O] Opening an odt file - problem solved

2012-05-24 Thread Bastien
Hi Jambunathan,

Jambunathan K  writes:

>> So if want to be able to open odt files created with orgmode odt
>> exporter you have to have nxml-auto-insert-xml-declaration-flag set to
>> nil.
>
> Thanks for writing this down.  It seems you aren't insisting on a fix.

I think the fix would be nice to have.

Can you fix it?

Thanks,

-- 
 Bastien



Re: [O] PATCH: follow timestamp link also in heading

2012-05-24 Thread Bastien
Hi Ingo,

Ingo Lohmar  writes:

> --- a/lisp/org.el
> +++ b/lisp/org.el
> @@ -9606,6 +9606,7 @@
>(org-remove-occur-highlights nil nil t)
>(cond
> ((and (org-at-heading-p)
> +(not (org-at-timestamp-p t))
>  (not (org-in-regexp
>(concat org-plain-link-re "\\|"
>org-bracket-link-regexp "\\|"

Applied in master, thanks.

-- 
 Bastien



Re: [O] Rounding timeclock and moving to the end of the line

2012-05-24 Thread Bastien
Hi Kevin,

Kevin Buchs  writes:

> This is my first contribution to this email list.

Welcome!

> Having a need to do my clocking in 1/4-hour multiples, I went and
> fully implemented my own solution in org-mode BEFORE I realized that
> org-mode was already set up to do it - it was just not completely
> implemented. I needed to change a few (current-time) in org-clock-in
> (org-clock.el) to be (org-current-time) and it works like a charm.

What is your value of ̀org-time-stamp-rounding-minutes'?

Replacing (current-time) with (org-current-time) here will surprise
users that use ̀org-time-stamp-rounding-minutes' only for modifying
time-stamps and not for clocking in.

We could have an option for this, letting users decide whether they 
want `org-time-stamp-rounding-minutes' to apply to clocking in.  Do 
you want to work in this direction?

> Here are the changes based on the development sources cloned via git
> today:
>
> 1198c1198
> < (/ (- (org-float-time (org-current-time))
> ---
>> (/ (- (org-float-time (current-time))
> 1202c1202
> < (org-current-time)))
> ---
>> (current-time)))

For next patches, please use `C-x v =' from the modified buffer, it
creates a well formatted patch.  Also consider git format-patch for
bigger changes.  Please read this:

  http://orgmode.org/worg/org-contribute.html#sec-4

> I have filled out the paperwork with FSF to be a developer in emacs/
> org-mode.

Let us know when this is done.

> My next project is to solve the problem that C-e does not move to the
> end of the line with long lines that are not headings. I find myself
> doing this often and have to hit multiple C-e s. I don't have the
> org-special-ctrl-a/e set to non-nil. My line-move-visual is the
> default value of t, so I get the end-of-visual-line movement one
> screen's worth. 

C-e always go to the end of ordinary lines here, with various values of
`org-special-ctrl-a/e' and `line-move-visual'.  Can you post a recipe
and an example file so that I can reprodce?

> Before I make any changes, I thought I should be
> clear on the design goals here. It seems as if the declaration of
> line-move-visual says it is dealing with vertical motion, not
> horizontal motion. I don't see any behavior elsewhere that uses the
> interpretation that line-move-visual is for horizontal motion. Anyone
> have thoughts on this subject?

I'm not sure I understand the issue correctly - thanks for further
details. 

Best,

-- 
 Bastien



Re: [O] preview latex fragments

2012-05-24 Thread Bastien
Hi Andreas,

Andreas Leha  writes:

> I experience a problem with the preview of latex fragments:  I can not
> change the foreground color (in org-format-latex-options).  On a dark
> background, the black fragments are barely visible.
>
> The settings for background and scale (in the same variable) are
> honored, though.

Can you post a reproducible case with a specific Org version?

-- 
 Bastien



Re: [O] makefile regression

2012-05-24 Thread Bastien
Achim Gratz  writes:

> At the very start of my Makefile branch I stated that I will use GNU
> make since the old make file already used some GNU make features.  This
> will be documented when it gets released.

FWIW, Achim's work on the makefile will be part of Org 7.9, expected to
be released in June (I'm ending a contract at the end of this month, so
I will have more time in June.)

Part of the reasons why Org 7.9 has been delayed is (1) the work
required to make Org 7.8.* part of Emacs 24.1 and (2) because I thought
it would be weird to release 7.9 while the next Emacs will have 7.8.*.
So I didn't rush on releasing 7.9.  But since there is no official date
for Emacs 24.1, Org 7.9 might be released before it anyway.

-- 
 Bastien



Re: [O] Drupal syntax on html-export for image links

2012-05-24 Thread Bastien
Hi William,

William Crandall  writes:

> Drupal inline image syntax is:
>
>   
>
> Default Org-mode html-export, for  [[/sites/a.png]]  seems to be:
>
>   

Nicolas export engine does it right :

  

To use it, please pull from the git master repository then

- add the "contrib/" directory to your load-path
- (require 'org-export)
- M-x org-export-dispatch h

HTH,

-- 
 Bastien



Re: [O] doi proxy , a test patch

2012-05-24 Thread Fabrice Pardo

On 12-05-23 06:39 PM, Jambunathan K wrote:

Can a given Org document contain links to two different doi proxies?  In
that case will a defcustom help.


No, my doi server is an enhancement or the official http://dx.doi.org/

Hence it would be a goog thing to redirect all the org-mode external 
links to a customizable address, and to replace the hard-coded string

"http://dx.doi.org/"; in org-open-at-point by a variable.

Regards

--
Fabrice