Re: [O] Scheduling and calendar-day-of-week

2018-04-06 Thread Brian Shine
Sorry!  I see that is exactly what you said.

Best wishes,
Brian

> On 6 Apr 2018, at 17:46, Brian Shine <briansh...@mac.com> wrote:
> 
> An alternative, which isn’t as neat as you would like, would be to set up the 
> 3 days as separate events, with 7-day repeats.
> 
> Best wishes,
> Brian
> 
>> On 6 Apr 2018, at 15:16, Nick Dokos <ndo...@gmail.com> wrote:
>> 
>> Cecil Westerhof <cldwester...@gmail.com> writes:
>> 
>>> There is something I want to do on Monday, Wednesday and Friday. So I tried:
>>> *** TODO Monday, Wednesday and Friday
>>>SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>>> 
>>> This seems to work: I see the activity on the correct days.
>>> But then I changed today's entry to DONE. But then all are gone in my 
>>> agenda view.
>>> What I want is for today's item to be 'gone' and the future ones still 
>>> displayed as TODO. Is that possible?
>>> 
>>> --
>>> Cecil Westerhof
>>> 
>> 
>> My impression is that calendar sexp entries don't play well with the
>> rest of org-mode: most of the code does not understand them, so you
>> end up with situations like the above.
>> 
>> IMO, you are better off creating separate entries for MWF. You might
>> want to look into `org-clone-subtree-with-time-shift' to create them
>> efficiently.
>> 
>> -- 
>> Nick
>> 
>> 
> 




Re: [O] Scheduling and calendar-day-of-week

2018-04-06 Thread Brian Shine
An alternative, which isn’t as neat as you would like, would be to set up the 3 
days as separate events, with 7-day repeats.

Best wishes,
Brian

> On 6 Apr 2018, at 15:16, Nick Dokos  wrote:
> 
> Cecil Westerhof  writes:
> 
>> There is something I want to do on Monday, Wednesday and Friday. So I tried:
>> *** TODO Monday, Wednesday and Friday
>> SCHEDULED: <%%(memq (calendar-day-of-week date) '(1 3 5))>
>> 
>> This seems to work: I see the activity on the correct days.
>> But then I changed today's entry to DONE. But then all are gone in my agenda 
>> view.
>> What I want is for today's item to be 'gone' and the future ones still 
>> displayed as TODO. Is that possible?
>> 
>> --
>> Cecil Westerhof
>> 
> 
> My impression is that calendar sexp entries don't play well with the
> rest of org-mode: most of the code does not understand them, so you
> end up with situations like the above.
> 
> IMO, you are better off creating separate entries for MWF. You might
> want to look into `org-clone-subtree-with-time-shift' to create them
> efficiently.
> 
> -- 
> Nick
> 
> 




Re: [O] org-mode R using xtable produces strange output

2018-03-20 Thread Brian Shine
Brilliant!  Thank you so much.

Best wishes,
Brian


> On 20 Mar 2018, at 16:47, Berry, Charles <ccbe...@ucsd.edu> wrote:
> 
> 
> 
>> On Mar 19, 2018, at 4:44 PM, Brian Shine <briansh...@mac.com> wrote:
>> 
>> I am using xtable to produce summary tables of linear models, specifying the 
>> output as latex.  If I just run the code in R, I get the correct output.  
>> However, the latex output in the org document contains a lot of “|”s.  I 
>> think this is because the header of the table contains some code to make “p 
>> > |t|”, where the vertical lines are to indicate “absolute value of t”.  My 
>> guess is that when the output is written to the results section, org 
>> interprets the “|” signs as an org-table and tries to be helpful by adding 
>> more of them to make up the correct number of columns. 
> 
> 
> See
> 
>   (info "(org) results")
> 
> and note the difference between `:results output' and `:results value' (the 
> default).
> 
> Since you want the printed version of the R object, you should use 
> 
>   `:results output latex'
> 
> to pass the printed output to the org #+Results or 
> 
>   `:results raw :wrap export latex'
> 
> to pass the unadorned value.  In your use case they seem to produce the same 
> #+Results.
> 
> HTH,
> 
> Chuck




[O] org-mode R using xtable produces strange output

2018-03-19 Thread Brian Shine
I am using xtable to produce summary tables of linear models, specifying the 
output as latex.  If I just run the code in R, I get the correct output.  
However, the latex output in the org document contains a lot of “|”s.  I think 
this is because the header of the table contains some code to make “p > |t|”, 
where the vertical lines are to indicate “absolute value of t”.  My guess is 
that when the output is written to the results section, org interprets the “|” 
signs as an org-table and tries to be helpful by adding more of them to make up 
the correct number of columns. If I switch off the latex output, and write the 
xtable to a small .tex file, using xtable.print and then include the file after 
the code block, the table appears correctly.
I’m using emacs 25.2.

Here’s an example:


Best wishes,
Brian




xtableeg.org
Description: Binary data




Re: [O] Fwd: how do you compose mails in Gnus with org-mode

2018-03-01 Thread Brian Shine
Thank you so much.  This looks like a great website.  I’ll have a read and see 
whether I can get it to work.  I may well call on you!

Best wishes,
Brian

> On 1 Mar 2018, at 18:46, Joseph Vidal-Rosset <joseph.vidal.ros...@gmail.com> 
> wrote:
> 
> Le jeu. 01 mars 2018 à 06:17:48 , Brian Shine <briansh...@mac.com> a
> envoyé ce message:
> > This is a wonderful resource, but I wonder if I can ask how to set up
> > email using emacs? I’ve failed multiple times to do this using
> > several solutions that are suggested. My main accounts are with iCloud
> > and Exchange and I have never managed to log in through the suggested
> > methods. I’m obviously doing something basic incorrectly.
> >
> > Is there a really simple guide to setting this up?
> >
> > Best wishes,
> > Brian
> Hello,
> It is difficult to give you and advice, because as you know there are
> many email clients for emacs.
> Maybe you can read this web page first, that could help you to make a
> choice:
> https://wwwtech.de/articles/2016/jul/my-personal-mail-setup 
> <https://wwwtech.de/articles/2016/jul/my-personal-mail-setup>
> I am using Gnus with Gmail, and it works smoothly. I do not believe
> that I will change now. But it is time consuming to get the convenient
> setup.
> If Gnus can be you choice, I will be happy to help you, as I can,
> because there many people in this list that are more experts than me
> (Eric Fraga for example).
> Best wishes,
> Jo.
> 



Re: [O] Fwd: how do you compose mails in Gnus with org-mode

2018-03-01 Thread Brian Shine
This is a wonderful resource, but I wonder if I can ask how to set up email 
using emacs?   I’ve failed multiple times to do this using several solutions 
that are suggested. My main accounts are with iCloud and Exchange and I have 
never managed to log in through the suggested methods.  I’m obviously doing 
something basic incorrectly. 

Is there a really simple guide to setting this up?  

Best wishes,
Brian


> On 1 Mar 2018, at 18:04, Joseph Vidal-Rosset  
> wrote:
> 
> Le jeu.  01 mars 2018 à  04:59:27 , Eric S  Fraga  > a
> envoyé ce message:
>> On Thursday,  1 Mar 2018 at 16:29, Joseph Vidal-Rosset wrote:
>>> The first option would be the best for me: because my use of org-mode is
>>> mainly for my work and I am always pasting this link in new org file. It
>>> is boring. If you could me help to define such a hook, I will be again
>>> indebted to you. But please do it only if it is not time consuming for
>>> you.
>> 
>> I use autoinsert to automatically insert contents into new files.  Look
>> at autoinsert.el in your emacs distribution.  I do the following:
>> 
>>  (require 'autoinsert)
>>  (push '(org-mode . "/SOMEPATH/orgskeleton.org") auto-insert-alist)
>>  (add-hook 'find-file-hook 'auto-insert)
>> 
>> where orgskeleton.org has the initial contents I want inserted into any
>> new org file.  These include settings and some default headlines in my
>> case.
> 
> Many thanks Eric, it is very kind of you to help me so much.
> 
> autoinsert works well  for new org files,  it is a first  good point for
> me. I receive this message: Perform org-mode auto-insertion? (y or n)
> and after replying "y" I get my org file with the bibliography link.
> 
> Unfortunately, it does not work in Gnus with the command M-x org-mode on
> a reply to a message, and I do not understand why.
> 
> Regards, and thanks again !
> 
> -- 
> Joseph Vidal-Rosset