[O] HTML export of #+RESULTS:

2019-05-20 Thread Lawrence Bottorff
Basically, I'm trying to get my code block :exports both to give me
the #+RESULTS: preamble, i.e., not just the results naked. See this

for
what I've been trying to do/kludge with just CSS. I'm on latest-greatest
everything.

LB


Re: [O] switch off validate - how?

2019-05-20 Thread Amin Bandali
Nick Dokos  writes:

[...]

> You can't [fn:1]  set `org-html-validation-link' to nil because the defcustom
> specifies a string.
>
> Redefining the postamble format  is indeed a good solution, probably the
> best solution currently available. `org-html-validation-link' should probably
> only be used to point to a different validation engine, not to get rid of
> validation altogether.
>
> * Footnotes
>
> [fn:1] At least through `customize' or `set-variable' - `setq' will of course
>let you do anything you want.

Thanks for point that out!  I think I agree with your described use-case
for `org-html-validation-link'.


Colin Baxter  writes:

> Dear Amin,

[...]

>
> I've set the variable `org-html-validation-link' to "" as a local
> variable on a per file basis. However, where I have customised a
> multi-line variable is for `org-html-footnotes-section'. I removed the
> default setting of a colon after `Footnotes'. This always struck me as
> odd, a house-style too far almost, since other headings do not end with
> a punctuation mark.
>

Makes sense.  I too often find the colon after “Footnotes” inconsistent
and distracting.

>
> Thanks for your help.
>
> Best wishes,

Cheers, Colin.

Best,
amin



Re: [O] switch off validate - how?

2019-05-20 Thread Colin Baxter
Dear Amin,
> Amin Bandali  writes:

> Hello, Nick Dokos  writes:

> [...]

>> 
>> C-h v org-html-validation-link RET
>> 
>> Set it to "", but there are still validation remnants left in the
>> HTML file, which is probably a bug:
>> 
>> , |  | > class="author">Author: Nick Dokos | Created:
>> 2019-05-20 Mon 12:43 |  <<<
>> this should disappear.  |  `

> Indeed, it would be nice if setting `org-html-validation-link' to
> "" or nil didn’t insert the wrapping paragraph.  In the meantime,
> you can customize C-h v org-html-postamble-format RET and get rid
> of the validation paragraph entirely.

I've set the variable `org-html-validation-link' to "" as a local
variable on a per file basis. However, where I have customised a
multi-line variable is for `org-html-footnotes-section'. I removed the
default setting of a colon after `Footnotes'. This always struck me as
odd, a house-style too far almost, since other headings do not end with
a punctuation mark.

Thanks for your help.

Best wishes,

-- 
Colin Baxter
m43...@yandex.com



Re: [O] switch off validate - how?

2019-05-20 Thread Nick Dokos
Amin Bandali  writes:

> Hello,
>
> Nick Dokos  writes:
>
> [...]
>
>>
>> C-h v org-html-validation-link RET
>>
>> Set it to "", but there are still validation remnants left in the HTML
>> file, which is probably a bug:
>>
>> ,
>> | 
>> | Author: Nick Dokos
>> | Created: 2019-05-20 Mon 12:43
>> | <<< this should disappear.
>> | 
>> `
>
> Indeed, it would be nice if setting `org-html-validation-link' to "" or
> nil didn’t insert the wrapping paragraph.  In the meantime, you can
> customize C-h v org-html-postamble-format RET and get rid of the
> validation paragraph entirely.
>

You can't [fn:1]  set `org-html-validation-link' to nil because the defcustom
specifies a string.

Redefining the postamble format  is indeed a good solution, probably the
best solution currently available. `org-html-validation-link' should probably
only be used to point to a different validation engine, not to get rid of
validation altogether.

* Footnotes

[fn:1] At least through `customize' or `set-variable' - `setq' will of course
   let you do anything you want.

-- 
Nick





Re: [O] switch off validate - how?

2019-05-20 Thread Colin Baxter
Dear Nick,
> Nick Dokos  writes:

> Colin Baxter  writes:
>> Hello,
>> 
>> In exporting to html, how do I switch off the `validate' link at
>> the bottom of the html file? I can't seem to find any appropriate
>> variable.
>> 

> C-h v org-html-validation-link RET

> Set it to "", but there are still validation remnants left in the
> HTML file, which is probably a bug:

Great, that worked. I actually set it as a local variable since I want
the validation link on certain files but not all.

Thank you.

Best wishes,


Colin Baxter
m43...@yandex.com



Re: [O] switch off validate - how?

2019-05-20 Thread Amin Bandali
Hello,

Nick Dokos  writes:

[...]

>
> C-h v org-html-validation-link RET
>
> Set it to "", but there are still validation remnants left in the HTML
> file, which is probably a bug:
>
> ,
> | 
> | Author: Nick Dokos
> | Created: 2019-05-20 Mon 12:43
> | <<< this should disappear.
> | 
> `

Indeed, it would be nice if setting `org-html-validation-link' to "" or
nil didn’t insert the wrapping paragraph.  In the meantime, you can
customize C-h v org-html-postamble-format RET and get rid of the
validation paragraph entirely.



Re: [O] switch off validate - how?

2019-05-20 Thread Nick Dokos
Colin Baxter  writes:

> Hello,
>
> In exporting to html, how do I switch off the `validate' link at the
> bottom of the html file? I can't seem to find any appropriate variable.
>  

C-h v org-html-validation-link RET

Set it to "", but there are still validation remnants left in the HTML
file, which is probably a bug:

,
| 
| Author: Nick Dokos
| Created: 2019-05-20 Mon 12:43
| <<< this should disappear.
| 
`

-- 
Nick

"There are only two hard problems in computer science: cache
invalidation, naming things, and off-by-one errors." -Martin Fowler




Re: [O] Show weekday in daily agenda view

2019-05-20 Thread Bernt Hansen
db...@attentigroup.com (J. David Boyd) writes:

> Nick Dokos  writes:
>
>> db...@attentigroup.com (J. David Boyd) writes:
>>
>>> Nick Dokos  writes:
>>>
 johanna@th-koeln.de writes:

> maybe I did not search the right way in google alias startpage. But I
> could not figure out how to write next to the date e.g. 2000-04-01 the
> weekday, i.e. the specific day of the week. It would come very handy to
> have the date displayed as 2019-05-14 Tu and 2019-05-15 We and so on. Or
> even have it spelled out as 2019-05-14 Tuesday.
>

 How do you generate that view?

 Doesn't your agenda view already show the day of the week?  With the
 recommended keybinding, I get a daily agenda with C-c a a d.

 Mine starts like this:

 ,
 | Day-agenda (W20):
 | Tuesday14 May 2019
 |8:00.. 
 |   appts:  10:00-11:30 Tools Meeting
 |   10:00.. 
 |   12:00.. 
 |   14:00.. 
 |   16:00.. 
 |   18:00.. 
 |   20:00.. 
 |   work:   Sched.Xx:  TODO Review PR
 |   work:   Sched.2x:  TODO Add issue
 |   Weather:OpenWeatherMap: light rain, 3-8°C, 1010hpa, 90%, 3m/s
 `

 so it definitely shows the weekday, but perhaps you are doing something
 different?
>>>
>>>
>>> How do you generate *that* view?  How do you have it creating sub-groups?  
>>> All
>>> I get is a straight-forward list of days and times, with all items in chrono
>>> order
>>>
>>
>> Not sure what you mean by "sub-groups". And I'm pretty sure I don't do
>> anything special to get this. The grid is the standard grid - I
>> believe that comes "free" with the default settings of
>> org-agenda-time-grid and org-agenda-use-time-grid.
>>
>> The appts:, work: and Weather: thingies are "categories" - the first
>> two come from the name of the agenda file where the item originated:
>> I have a work.org file for work items and an appts.org file which contains 
>> just
>> reminders. It actually contains a bit more: there are top-level headlines
>> for Anniversaries, Weather and Appointments like this:
>>
>> ,
>> | * Anniversaries
>> |:PROPERTIES:
>> |:CATEGORY: Anniv
>> |:ID:   409062f6-6cb1-467f-b192-2dfcb7b384ca
>> |:END:
>> | %%(org-bbdb-anniversaries)
>> | 
>> | * Weather
>> |   :PROPERTIES:
>> |   :CATEGORY: Weather
>> |   :END:
>> | %%(org-weather)
>> | 
>> | * Appointments
>> | ** APPT Doctor appt 
>> | 
>> `
>>
>> Items in the Appoinments section don't have a defined Category
>> so they are labeled with the fill name ("appts"). Anniversaries
>> and Weather items have a CATEGORY property so they are labeled
>> by  the explicit category.
>>
>> I don't remember whether I do anything special to sort the items
>> (e.g. why the Weather item is always last). If you are interested
>> in that, I can dig a little more into my configuration.
>>
>> Does that answer your question?
>
>
> That helps immensely, evidently I have some reading to do, so I understand
> more of how to change the agenda view around.
>
> And yes please, could/would you check your config and see if anything special
> is done?
>
> Thanks very much!
>
> Dave in Hudson, FL

Make sure you have files contributing to org-agenda-files otherwise your
agenda view will be empty.

Regards,
Bernt



Re: [O] Bug: org-code face not rendering over org-level-* faces [9.2.3 (release_9.2.3-374-g0b0aa4 @ /home/matt/.emacs.d/straight/build/org/)]

2019-05-20 Thread stardiviner


Matthew Piziak  writes:

> If I load `emacs -q`, I can see `org-code` (text between ~ characters)
> rendering over headings just fine. However if I load `org-plus-contrib`,
> `org-level-1` et al. seem to override it. Is there a way I can check the
> precedence order? In my opinion `org-code` should be higher precedence
> for `foreground`.

I got same problem.

- GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.5) of 
2019-02-22
- Org mode version 9.2.1 (release_9.2.1-274-ge3b7c3.dirty @ 
/home/stardiviner/Code/Emacs/org-mode/lisp/)

Not just `org-code' face, also other faces like `org-verbatim' etc.



[O] switch off validate - how?

2019-05-20 Thread Colin Baxter
Hello,

In exporting to html, how do I switch off the `validate' link at the
bottom of the html file? I can't seem to find any appropriate variable.
 
Colin Baxter
m43...@yandex.com