Re: Using Code Block for C++

2020-08-05 Thread Christopher Dimech

That works, thanks so very much

 

C*

 

-
Christopher Dimech
Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy

 
 

Sent: Thursday, August 06, 2020 at 1:25 AM
From: "ian martins" 
To: "Christopher Dimech" 
Cc: "Org-Mode mailing list" 
Subject: Re: Using Code Block for C++



Christopher,

 

C, C++ and D are all defined in ob-C.el, so when you load C you get C++ and D as well. If you remove the "(c++ . t)" from the above line, does it work?

 


On Wed, Aug 5, 2020 at 6:05 PM Christopher Dimech  wrote:


Have been trying to set the C++ call for using a code block.

Here is the call. I am getting an error, have tried Cpp, cpp, C++, c++

  (org-babel-do-load-languages
    'org-babel-load-languages
    '( (sh . t) (lisp . t) (emacs-lisp . t)
       (awk . t) (python . t) (R . t)
       (C . t) (c++ . t) (F90 . t)
  ))

The error is

Debugger entered--Lisp error: (file-error "Cannot open load file" "ob-c++")
  require(ob-c++)

-
Christopher Dimech
Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy

 








Re: Using Code Block for C++

2020-08-05 Thread ian martins
Christopher,

C, C++ and D are all defined in ob-C.el, so when you load C you get C++ and
D as well. If you remove the "(c++ . t)" from the above line, does it work?


On Wed, Aug 5, 2020 at 6:05 PM Christopher Dimech  wrote:

>
> Have been trying to set the C++ call for using a code block.
>
> Here is the call. I am getting an error, have tried Cpp, cpp, C++, c++
>
>   (org-babel-do-load-languages
> 'org-babel-load-languages
> '( (sh . t) (lisp . t) (emacs-lisp . t)
>(awk . t) (python . t) (R . t)
>(C . t) (c++ . t) (F90 . t)
>   ))
>
> The error is
>
> Debugger entered--Lisp error: (file-error "Cannot open load file" "ob-c++")
>   require(ob-c++)
>
> -
> Christopher Dimech
> Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
> - Geophysical Simulation
> - Geological Subsurface Mapping
> - Disaster Preparedness and Mitigation
> - Natural Resource Exploration and Production
> - Free Software Advocacy
>
>
>


Re: Bug: org-agenda-sorting-strategy priority has no effect [9.3.7 (9.3.7-16-g521d7f-elpaplus @ /Users/devil/.emacs.d/elpa/org-plus-contrib-20200803/)]

2020-08-05 Thread Kyle Meyer
Adam Faryna writes:

> org-agenda-sorting-strategy priority sorting doesn't work in my setup.
> I have a single file for all the tasks for agenda. Its structure looks 
> similar to
> this:
>
> # -*- mode: org; mode: my/org-agenda-appt -*-
>
> #+STARTUP: overview
> #+CATEGORY: Tasks
> #+ARCHIVE: ../archive/tasks_archive.org::
>
> * Tasks
> :PROPERTIES:
> :CATEGORY: Single
> :END:
> ** TODO task 1
> ** TODO task 2
>
> * Repeatable
> :PROPERTIES:
> :CATEGORY: Repeat
> :END:
> ** TODO task 3
> ** TODO task 4
[...]
> The agenda show records with different priorities totally mixed up. When I run
> agenda with org-agenda-sorting-strategy set to just priority-up it
> doesn't change anything.

None of the entries in your example have priorities (or, effectively,
they are all have the same priority, B).  Here's how you'd mark a
heading as a priority A heading:

** TODO [#A] task 1

See the (info "(org)Priorities") node in the manual for more details.



Creating Image White Text on Black Background

2020-08-05 Thread Christopher Dimech
Am trying to have the latex image to output White Text on Black Background

Currently I have the following Code:

#+HEADER: :exports results :file equation.png
#+BEGIN_SRC latex :exports results :file equation.png :imagemagick yes 
:iminoptions -density 300
$ x=\sqrt{b} $
For a spherical triangle with sides $a$, $b$, and $c$, and
opposite angles $\alpha$, $\beta$, and $\gamma$, we have:
$$\cos \alpha = -\cos \beta \cos \gamma +
\sin \beta \sin \gamma \cos \alpha \quad
\hbox{(Law of Cosines)}$$
and:
$$\tan {\alpha \over 2} = \sqrt{
{- \cos \sigma \cdot \cos(\sigma - \alpha)} \over
{\cos (\sigma - \beta) \cdot \cos (\sigma - \gamma)}},\quad
\hbox{where $\sigma = {1 \over 2}(a+b+c)$}$$
We also have:$$\sin x = {{e^{ix}-e^{-ix}}\over 2i}$$
and:
$$\int _0 ^\infty {{\sin ax \sin bx}\over{x^2}}\,dx
% The \, above produces a thin space
= {\pi a\over 2}, \quad \hbox{if $a < b$}$$
#+END_SRC

-
Christopher Dimech
Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy




Using Code Block for C++

2020-08-05 Thread Christopher Dimech


Have been trying to set the C++ call for using a code block.

Here is the call. I am getting an error, have tried Cpp, cpp, C++, c++

  (org-babel-do-load-languages
'org-babel-load-languages
'( (sh . t) (lisp . t) (emacs-lisp . t)
   (awk . t) (python . t) (R . t)
   (C . t) (c++ . t) (F90 . t)
  ))

The error is

Debugger entered--Lisp error: (file-error "Cannot open load file" "ob-c++")
  require(ob-c++)

-
Christopher Dimech
Chief Administrator - Naiad Informatics - GNU Project (Geocomputation)
- Geophysical Simulation
- Geological Subsurface Mapping
- Disaster Preparedness and Mitigation
- Natural Resource Exploration and Production
- Free Software Advocacy




Re: Can you automatically noweb include?

2020-08-05 Thread Ken Mankoff
What about using :pre or :prologue and setting it at the header or document
level?

Please excuse brevity. Sent from tiny pocket computer with
non-haptic-feedback keyboard.

On Wed, Aug 5, 2020, 14:22 George Mauer  wrote:

> Use case:
>
> I'm using ob-racket  but this
> would apply just as well to a few other workflows I have with python or js.
>
> I would like to write a helper function in a src block and then
> automatically have access to it in other src blocks further down the
> document. I don't really want a stateful session (nor does ob-racket
> support sessions) so I essentially want the equivalent of automatically
> including it everywhere so I don't have to type it out all the time (and
> have it screw up syntax coloring/indentation).
>
> Is this currently possible? Does anyone have any ideas for how to extend
> things so it is?
>


Re: Delete duplicate subtrees?

2020-08-05 Thread Allen Li
On Wed, Aug 5, 2020 at 6:16 PM David Rogers  wrote:
>
> Hello
>
> I've copied text from several different sources into an org
> buffer, and now I find I have a large number of subtrees that are
> exactly the same. All headlines are at the top level, so there are
> no duplicates at different levels from each other - but there
> *are* some where the headline matches but the contents don't
> match. Is there an efficient way to delete all-but-one of the
> exactly duplicate subtrees, but avoid deleting any whose contents
> are different? (When the large number of exact duplicates are
> gone, it will be easy for me to resolve the partial matches one by
> one.)

Maybe this will be useful to you.

https://lists.gnu.org/archive/html/emacs-orgmode/2017-12/msg00626.html
https://lists.gnu.org/archive/html/emacs-orgmode/2018-01/msg0.html

You will have to modify the code since IIRC the linked code only
matches by heading and not body.

>
> --
> Thanks
> David
>



Can you automatically noweb include?

2020-08-05 Thread George Mauer
Use case:

I'm using ob-racket  but this
would apply just as well to a few other workflows I have with python or js.

I would like to write a helper function in a src block and then
automatically have access to it in other src blocks further down the
document. I don't really want a stateful session (nor does ob-racket
support sessions) so I essentially want the equivalent of automatically
including it everywhere so I don't have to type it out all the time (and
have it screw up syntax coloring/indentation).

Is this currently possible? Does anyone have any ideas for how to extend
things so it is?


Re: Bug: no math-mode detection for align-environment [9.3.7 (9.3.7-13-ge62ca4-elpaplus @ /home/stefi/.emacs.d/elpa/org-plus-contrib-20200713/)]

2020-08-05 Thread Rafael
Kyle Meyer  writes:

> Stefi writes:
>
>> I recently updated my emacs packages and noticed that \begin{align*}
>> does not trigger math-mode detection any more, so org-cdlatex does not
>> work. However, begin{equation} still does trigger the math-mode
>> detection. I have read the documentation of
>> "org-inside-LaTeX-fragment-p" and found something about matchers, but
>> nothing about equation or align environment and why it might be treated
>> differently for math-mode detection.
>
> The default value for :matches is ("begin" "$1" "$" "$$" "\\(" "\\[").
> It looks like the value hasn't been touched in a long time, and that
> AFAICT the "begin" should cover "align" just as it covers "equation".
> And I'm not spotting any recent changes on Org's end that should affect
> this.
>
>> My test-file.org:
>> 8<-8<-8<-8<-
>>
>> * blabla
>>  \begin{equation}
>> \label{eq:1} \frac{}{}
>> test_{cds} \frac{}{}
>> \end{equation}
>>
>> \begin{align}
>> \label{eq:2}
>> test$_d$ fr
>> \end{align}
>>
>> $\frac{}{} fds_{fdsf} \frac{}{}$
>>
>> \begin{align*}
>> fr
>> \end{align*}
>>
>>
>> 8<-8<-8<-8<-
>>
>> - detection works for: \begin{equation}, $$, \[\] (not in testfile)
>> - detection does not work for: \begin{align}, begin{align*}; subscript _
>>   does insert extra $_{}$, which it should not in math mode, and fr does
>>   not get expanded to \frac{}{}
>>
>> Emacs  : GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20)
>>  of 2020-05-19
>> Package: Org mode version 9.3.7 (9.3.7-13-ge62ca4-elpaplus @
>> /home/stefi/.emacs.d/elpa/org-plus-contrib-20200713/)
>
> On master, maint, and the commit matching your reported version
> (e62ca4), I tried org-inside-LaTeX-fragment-p within each block of your
> test file, and it returns non-nil, including in the align and align*
> blocks.  So I dunno...
>
> Could some org-cdlatex users out there give the test file a try?

I can confirm that with
Org mode version 9.3.7 (9.3.7-16-g521d7f-elpaplus @
/home/rafael/Documents/new-emacs.d/elpa/org-plus-contrib-20200803/)
and
GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of
2019-12-23
and using org-cdlatex, fr does not expand inside align but it does
inside equation, just as Stefi says.



Re: Document containing different text colours?

2020-08-05 Thread Diego Zamboni
Hi Sharon,

I'm not sure I understand what is it that you are trying to do. But color
(or any other visual) is a feature of the exporter you use rather than of
Org-mode itself. For example, if you are exporting to HTML, you can use the
following at the top of the document:

#+html_head_extra: body { color: white; background-color: black;
}

For LaTeX export, you should be able to add the correct settings using #+
LATEX_HEADER_EXTRA.

Hope this helps,
--Diego


On Wed, Aug 5, 2020 at 2:37 PM Sharon Kimble 
wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA512
>
>
> In a book that I am writing, the text is white on black background which
> I like. But this is only the first draft, when its ready I shall go onto
> the second draft and then third draft, as many as necessary to polish
> the book before it goes to the beta-readers.
>
> So the first draft is white text on a black background, is it possible
> for all the second draft text to be in a different colour that I assign
> to it? And ditto third draft onwards?
>
> I envisage something like setting the text with 'M-x second-draft-text'
> which will then display the new text with its assigned colour. Which
> will also mean that the document will have multi-coloured text in it?
>
> Is this possible?
>
> And if it is possible, how do I do it please?
>
> Thanks
>   Sharon.
> - --
> Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
> -BEGIN PGP SIGNATURE-
>
> iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
> c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
> deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
> aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
> /tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
> fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
> 9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
> ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
> DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
> 9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
> u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
> ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
> RDz4BPP61uqJQqQ9GKq09EMd
> =3YW5
> -END PGP SIGNATURE-
>
>


Delete duplicate subtrees?

2020-08-05 Thread David Rogers

Hello

I've copied text from several different sources into an org 
buffer, and now I find I have a large number of subtrees that are 
exactly the same. All headlines are at the top level, so there are 
no duplicates at different levels from each other - but there 
*are* some where the headline matches but the contents don't 
match. Is there an efficient way to delete all-but-one of the 
exactly duplicate subtrees, but avoid deleting any whose contents 
are different? (When the large number of exact duplicates are 
gone, it will be easy for me to resolve the partial matches one by 
one.)


--
Thanks
David



Re: Website revamp?

2020-08-05 Thread TEC


Maxim Nikulin  writes: -- lots of stuff --

Since we're talking about newcomers now, I think there are 2c I 
can share.


- I started sliding down the Emacs slope early this year My 
- initial use case was Org, as a replacement of Jupyter (I want an 
- editor, 
 not a fancy web page) 
- I use Doom. I can say with a great degree of confidence that it 
 has made the 
 transition much easier. 
- I think the best we can hope for is name the most common /paths/ 
 into Emacs, and 
 tell the user what they're getting into. 
E.g.


Emacs :: the one and only, configure everything from scratch - 
know exactly what's going on in your config.
Doom :: Adds a bunch of presets for common tasks, and a bunch of 
helper functions/optimisations
Spacemacs :: Features feature-rich functionally 'layers' for 
common tasks


Whichever you choose, using a version control system such as [git] 
is _highly recommended_. Every now and then you'll accidentally 
break something. This allows you to seamlessly roll back.


Hope that's of some interest,

Timothy.


Re: Website revamp?

2020-08-05 Thread Maxim Nikulin

05.08.2020 04:43, Bo Grimes wrote:
best advice I found [1], and I did so by backing up my entire emacs.d 
and then deleting all .elc files. This worked. I've no understanding of 
the underlying technicalities, and I'm pretty sure I had never heard of 
byte-compiled files (except in the most general sense unrelated to 
Emacs).


[2] The idea that someone would use org-mode and not get "hooked" is 
paradoxically unimaginable.


I mean that someone who never heard of emacs may notice e.g. a blog post 
related to org-mode. My opinion that =apt install emacs= even without 
=apt install elpa-org= is more than enough to try how org-mode works. 
=M-x package-install= is unnecessary magic in such case. Decision to 
continue to use traditional note taking application is normal in such 
circumstances and the person is not org-mode user yet. Next mention of 
org-mode still may give better results.


Avoiding =M-x package-install= I am trying to shorten path to really 
first attempt to use org-mode.


I have not heard of problems with .elc files before. Frankly speaking, I 
am surprised that they exist at all. I would expect comparison of source 
file hash with the value saved in compiled file.


Anyway I would expect more problems from previous attempts to install 
packages from withing of emacs than from system-wide packages. However I 
have just noticed that emacs-common contains ready .elc files, but 
elpa-org calls compiler during installation.


I may be wrong but using latest stable version could lead to another 
kind of frustrating problems. Projects evolve with different pace, so 
accidentally org update could break another package relying on removed 
function or variable. I do not know what is more probable. Packages from 
system repositories may have more known bugs but still be more predictable.


I suppose, it is up to a particular user to choose if he sticks to 
system repositories or to latest upstream releases. Each option has its 
weak and strong sides.


As to installation recommendations I would consider something like:

Emacs is a very flexible application and the same is true for org-mode. 
Sometimes it is even hard to decide what set of default settings is 
better. It gives you great power but require additional responsibility. 
Almost certainly you will try to tune emacs and org-mode accordingly to 
your preferences. Please, keep your emacs configuration in a version 
control system, e.g. git and document the purpose of each change in 
commit messages. It would help to review recent changes and revert them 
if you noticed some problems. Definitely in addition you could use notes 
in an org file to log your activity related to improving emacs 
experience to have overview of accepted and rejected options, packages, etc.


However I am in doubt if git could be a rescue in the case of issues 
with .elc files.


Personally I prefer clearly separated roles of installing software and 
using it, otherwise much more security issues arise.





Bug: org-agenda-sorting-strategy priority has no effect [9.3.7 (9.3.7-16-g521d7f-elpaplus @ /Users/devil/.emacs.d/elpa/org-plus-contrib-20200803/)]

2020-08-05 Thread Adam Faryna


org-agenda-sorting-strategy priority sorting doesn't work in my setup.
I have a single file for all the tasks for agenda. Its structure looks similar 
to
this:

# -*- mode: org; mode: my/org-agenda-appt -*-

#+STARTUP: overview
#+CATEGORY: Tasks
#+ARCHIVE: ../archive/tasks_archive.org::

* Tasks
:PROPERTIES:
:CATEGORY: Single
:END:
** TODO task 1
** TODO task 2

* Repeatable
:PROPERTIES:
:CATEGORY: Repeat
:END:
** TODO task 3
** TODO task 4

* Waiting
:PROPERTIES:
:CATEGORY: Wait
:END:
** TODO task 5
** TODO task 6

* Projects
:PROPERTIES:
:CATEGORY: Project
:END:
** TODO task 7
** TODO task 8

My setup to display agenda looks similar to this:

(agenda ""
  ((org-agenda-skip-function
 '(or
(org-agenda-skip-entry-if 'todo '("WAITING"))
))
(org-agenda-cmp-user-defined 'jarfar/org-agenda-cmp-user-defined-birthday)
(org-agenda-sorting-strategy '(time-up todo-state-down user-defined-down 
habit-down priority-up deadline-up scheduled-up effort-down alpha-up))
(org-agenda-remove-tags nil)
(ps-number-of-columns 2)
(ps-landscape-mode 1)
(org-agenda-files (append org-agenda-files `(,my/org-events-file-path)

The agenda show records with different priorities totally mixed up. When I run
agenda with org-agenda-sorting-strategy set to just priority-up it
doesn't change anything.





Emacs  : GNU Emacs 26.3 (build 1, x86_64-apple-darwin18.2.0, NS appkit-1671.20 
Version 10.14.3 (Build 18D109))
 of 2019-09-02
Package: Org mode version 9.3.7 (9.3.7-16-g521d7f-elpaplus @ 
/Users/devil/.emacs.d/elpa/org-plus-contrib-20200803/)

current state:
==
(setq
 org-caldav-delete-org-entries 'never
 org-icalendar-store-UID t
 org-src-mode-hook '(org-src-babel-configure-edit-buffer 
org-src-mode-configure-edit-buffer)
 org-agenda-scheduled-leaders '("" "")
 org-after-todo-state-change-hook '(jarfar/org-state-canceled-timestamp-toggle 
org-checklist)
 org-columns-default-format "%25ITEM(Task) %TODO %3PRIORITY %7Effort %8CLOCKSUM 
%TAGS"
 org-agenda-skip-scheduled-if-deadline-is-shown t
 org-link-shell-confirm-function 'yes-or-no-p
 org-blank-before-new-entry '((heading . auto) (plain-list-item))
 org-drill-adjust-intervals-for-early-and-late-repetitions-p t
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-global-properties '(("Effort_ALL" . "0:05 0:15 0:30 1:00 2:00 4:00"))
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-refile-targets '(("/Users/devil/Documents/emacs/agenda/tasks.org" :level . 
1)
  
("/Users/devil/Documents/emacs/projects/trip_to_nottingham.org" :level . 1)
  
("/Users/devil/Documents/emacs/projects/trip_to_edinburgh.org" :level . 1)
  
("/Users/devil/Documents/emacs/projects/become_confident_pua.org" :level .
   1)
  
("/Users/devil/Documents/emacs/projects/service_arbitrage.org.gpg" :level .
   1)
  
("/Users/devil/Documents/emacs/projects/best_offers_club.org.gpg" :level .
   1)
  
("/Users/devil/Documents/emacs/projects/indie-dev.org.gpg" :tag .
   "PROJECT_ACTIVE")
  ("/Users/devil/Documents/emacs/projects/guru.org.gpg" 
:level . 1)
  
("/Users/devil/Documents/emacs/projects/switch_to_self_accounting.org.gpg"
   :level . 1)
  ("/Users/devil/Documents/emacs/orgs/projects.org" :level 
. 1))
 org-html-format-inlinetask-function 
'org-html-format-inlinetask-default-function
 org-log-done-with-time nil
 org-icalendar-combined-agenda-file "/Users/devil/.emacs.d/caldav/org.ics"
 org-pretty-entities t
 org-enforce-todo-dependencies t
 org-edit-src-content-indentation 0
 org-use-property-inheritance t
 org-src-tab-acts-natively t
 org-odt-format-headline-function 'org-odt-format-headline-default-function
 org-caldav-sync-direction 'org->cal
 org-agenda-files '("/Users/devil/Documents/emacs/agenda/tasks.org")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-contacts-birthday-format "%h (%Y)"
 org-clock-report-include-clocking-task t
 org-tag-alist '(("health" . 104) ("wealth" . 119) ("career" . 99) ("relations" 
. 114)
 ("fun" . 102) ("tax" . 116) ("service" . 115) ("saw" . 97) 
("work" . 106)
 ("@poland" . 110) (:startgroup) ("@home" . 111) ("@office" . 
105)
 ("@delegate" . 100) (:endgroup) (:startgroup) ("@phone" . 112)
 ("@computer" . 109) (:endgroup))
 org-modules '(ol-w3m ol-bbdb ol-bibtex ol-docview ol-gnus ol-info ol-irc 
ol-mhe ol-rmail ol-eww
   org-habit org-drill org-collector org-depend org-eww 
org-checklist)
 org-shiftup-final-hook '(windmove-up)
 org-ascii-headline-spacing '(1 . 1)
 org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent 

Document containing different text colours?

2020-08-05 Thread Sharon Kimble
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512


In a book that I am writing, the text is white on black background which
I like. But this is only the first draft, when its ready I shall go onto
the second draft and then third draft, as many as necessary to polish
the book before it goes to the beta-readers.

So the first draft is white text on a black background, is it possible
for all the second draft text to be in a different colour that I assign
to it? And ditto third draft onwards?

I envisage something like setting the text with 'M-x second-draft-text'
which will then display the new text with its assigned colour. Which
will also mean that the document will have multi-coloured text in it?

Is this possible?  

And if it is possible, how do I do it please?

Thanks
  Sharon.  
- -- 
Debian 10.2, fluxbox 1.3.7, emacs 27.1, org 9.3.7
-BEGIN PGP SIGNATURE-

iQJPBAEBCgA5FiEELSc/6QwVBIYugJDbNoGAGQr4g1sFAl8qp/YbHGJvdWRpY2Nh
c0Bza2ltYmxlLnBsdXMuY29tAAoJEDaBgBkK+INbXdsP/RWZdu+1N1V+ZCXUmnX3
deLkWS5APBK1zltakwg4Mm7ZxgkTLjEaXrVvpm4i8zMcTXqT38U7HUiUW870hTAC
aH9bEDku+R/F79ibBOZxasEl8S5DnLhK7skplbKBHp8OftV3GWPDTntBr8+F6cre
/tQvVxkd/GDeGZxDvKRuRNEAZN1a05dnfmv6/O0XJ2PpI7rAqMOAEigxpV8G3elk
fFbBmqObJLcJdTOlHu3b3MljnVbo2ePv7q/6Xwgez0g0Q0+Bj6ZW01IMfTr5aRd2
9He+l+ds64M8m2M5NZAME2O7PutgM4IjF6ccp7MAfAkHCWy9t+H1BG6u7xxcT4Oh
ys9wEb2PW6bxl3YPjsx3ByNPup0dZpufudDvNqk2IX4t6qIea/1v6AEwqfic1s5O
DrWX3A6TDj9RcLZN5sPHXC9e4WMfGkbngGwdNo5nkquULwUg91ySBAWEJ3z2TohZ
9/U6W8eV0rvm12GTe3wNssNcrDSfvXXT70Bm8ii94u4w44zBCWiq/puLqgFivutl
u5sNPIedyULbdj+n8SKfmpRZFnfClQA1cVLl6wiTOZx1WubZR++C9IsJhhaLp7kP
ZaLh1Q2zIVYJxp7OolUsdJ40AFrcDI8Y6ra6YWYnpuq7Cgza+l2UI7YFWSXfJLMC
RDz4BPP61uqJQqQ9GKq09EMd
=3YW5
-END PGP SIGNATURE-



Re: Website revamp?

2020-08-05 Thread TEC


Thanks for stepping through your thoughts in such detail.
I really appreciate it :)

Maxim Nikulin  writes:

> On a phone I would expect to see something like
>
> Org mode for GNU Emacs
>
> - Keeping notes
> - maintaining TODO lists
> - planning projects
> - authoring documents
>
> with a fast and effective plain-text system

I'll do a bit more on the banner design in a day or two, I'll play around a bit
then. Worst case that sort of content would be just under the banner on mobile
devices --- I really want to avoid a 'crammed' look.

> Sorry, but "An innovative and intuitive plain text markup syntax" means 
> nothing
> to me. "Created by Carsten Dominik in 2003" is a sign of mature and stable
> enough software without disgusting "since ..." but contradicts a bit with
> "innovative".

Good to know. I'd be interested in hearing more thoughts on this, but for now
here are my own:
 - innovative :: does 'new' and exciting things that similar products don't
 - intuative :: despite doing a lot, it isn't complex to work with, but
   thoughtfully designed to be easy to use
 - plain text markup sytax :: what Org is ... mostly

I personally don't find 2003 at odds with "innovative". Something can both
have competitive advantages, and be mature.
   
Please let me know if this explanation of my view affects your own.
   
> In a "full" version my suggestion is to minimize amount of text significantly
> larger than 1em. 4em is excessively huge font for normal monitor. I am in 
> doubt
> it is feasible to require readable but not oversized font on mobile devices,
> 1366x768px laptops, and 4k monitors simultaneously.

I take it you mean 1em to be the body text size, and are just referring to the
size of headings? Or do you mean 1rem?
The body text is currently ~1.2rem FYI.

> On the other hand, I hope, donate links work but in new design thy are not
> contrast and eye catching enough despite their colors.

Interesting that you should say this, personally I find them more eye-catching
than the current grey box in the corner.

I'm also planning on repeating that "Created ... support ..." banner on the
other pages, perhaps as a footer --- I haven't worked out the details yet.

If the colour needs to be more prominent, we could turn the styling from links
to buttons, but I suspect the change wouldn't be worth it.

> In my opinion on a laptop/desktop screen the banner should not occupy so much
> vertical space. I like the idea of adaptive one or two column layout depending
> of screen width that you have shown in another message.

I'll look forward to hearing your comments after I get around to implementing
that :)

> I see 3 category of users requiring content different to some extent but 
> should
> be easily recognizable:
>
> - Newcomers need to recognize if org-mode is able to do what are they looking
> for. So features should be presented for them, they should notice links to 
> docs
> and an instruction how to try it
> - "Help desk stuff" in a broad sense who are not aware of org-mode but have to
> help some person when local org-mode guru is not available. They need to 
> quickly
> recognize what is org-mode is at all, so they may look for general 
> descriptions,
> docs, specific discussion groups. Unsure but even "Download" instead "Install"
> might be more noticeable.
> - Experienced users are more or less familiar with the site, they may look for
> project news, hacks, how to debug particular issue or to submit a patch. They
> should be able to find info on not so often used feature or to find specific
> place in docs to send a link to a friend. Unfortunately I am not familiar 
> enough
> with content of the site to recommend "hot" links to the main page.

Mmmm. This is a good point. The essential details are communicated by the
current large banner IMO

- plain text markup syntax
- versatile
- a few use cases
  + keeping notes
  + todo lists
  + planning
  + writing
- system

My current idea is to have the banner be a quick "what is it?", then have
elaboration as the first part of the content, links to other important parts of
the site (e.g. features, install) and little details like latest version and
release date after that.

> Priority of content is different for mobile and laptop/desktop visitors but 
> the
> latter should see content, not just banner and void on the home page. There is
> room for improvement of current home page, but it is more informative than the
> new design demo.

Let's see how this is with the revised banner :)

>> Are you saying that you find the current mention of Emacs in the instillation
>> page works well?
>
> I do not remember how I realized that org-mode is a part of .deb package when 
> I
> decided to try org-mode for the first time. I tend to believe that is not
> immediately clear that first paragraph could be just an alternative to second
> one. Maybe it should be emphasizing with headers:
> "Use org-mode bundled with Emacs" vs. "Install latest stable org-mode package
> from 

Re: Website revamp?

2020-08-05 Thread Maxim Nikulin

04.08.2020 22:53, TEC wrote:


Please, share your thoughts!


It is just opinion, I am unsure even that all suggestions are consistent 
or reachable with reasonable efforts. Since it is you who actually is 
doing the work, it is your right to choose which arguments should be 
ignored.


On a phone I would expect to see something like

#+begin_quote
Org mode for GNU Emacs

- Keeping notes
- maintaining TODO lists
- planning projects
- authoring documents

with a fast and effective plain-text system
#+end_quote

Sorry, but "An innovative and intuitive plain text markup syntax" means 
nothing to me. "Created by Carsten Dominik in 2003" is a sign of mature 
and stable enough software without disgusting "since ..." but 
contradicts a bit with "innovative".


In a "full" version my suggestion is to minimize amount of text 
significantly larger than 1em. 4em is excessively huge font for normal 
monitor. I am in doubt it is feasible to require readable but not 
oversized font on mobile devices, 1366x768px laptops, and 4k monitors 
simultaneously.


On the other hand, I hope, donate links work but in new design thy are 
not contrast and eye catching enough despite their colors.


In my opinion on a laptop/desktop screen the banner should not occupy so 
much vertical space. I like the idea of adaptive one or two column 
layout depending of screen width that you have shown in another message.


I see 3 category of users requiring content different to some extent but 
should be easily recognizable:


- Newcomers need to recognize if org-mode is able to do what are they 
looking for. So features should be presented for them, they should 
notice links to docs and an instruction how to try it
- "Help desk stuff" in a broad sense who are not aware of org-mode but 
have to help some person when local org-mode guru is not available. They 
need to quickly recognize what is org-mode is at all, so they may look 
for general descriptions, docs, specific discussion groups. Unsure but 
even "Download" instead "Install" might be more noticeable.
- Experienced users are more or less familiar with the site, they may 
look for project news, hacks, how to debug particular issue or to submit 
a patch. They should be able to find info on not so often used feature 
or to find specific place in docs to send a link to a friend. 
Unfortunately I am not familiar enough with content of the site to 
recommend "hot" links to the main page.


Priority of content is different for mobile and laptop/desktop visitors 
but the latter should see content, not just banner and void on the home 
page. There is room for improvement of current home page, but it is more 
informative than the new design demo.


Are you saying that you find the current mention of Emacs in the 
instillation page works well?


I do not remember how I realized that org-mode is a part of .deb package 
when I decided to try org-mode for the first time. I tend to believe 
that is not immediately clear that first paragraph could be just an 
alternative to second one. Maybe it should be emphasizing with headers:
"Use org-mode bundled with Emacs" vs. "Install latest stable org-mode 
package from ELPA".


Please, fix a typo. Should be "Installation".

Even better - having two or three different demo files based on the use 
case of
the new user - e.g. programmer, author, organisation - or something like 
that.


It would be great but it requires more work.

Minor remarks:
- Should not be logo + "Org mode" in the navigation bar a link similar 
to "Home"?
- I am afraid that without clear sign that demo page is an experiment, 
results in search engines could be distorted. Red block with text like 
"See official site https://orgmode.org; and robots.txt file could help 
to avoid confusion of people and crawlers.





Re: Website revamp?

2020-08-05 Thread TEC


I feel like this may be where I need to jump in with:
  *cough, off-topic

;)

Bo Grimes  writes:

> On 8/5/20 6:26 AM, Eric S Fraga wrote:
>>Org mode on the move is brilliant to have.
>
> Agree!  However, because I too find screen keyboards "very annoying" and small
> screens even more so, my use of Org on the move is limited to Orgzly--which 
> is a
> wonderful app, but I have only one file I use, mobileGTD.org, the notes and
> tasks in which quickly get moved the next time I am at my 32'' monitor!




Re: Website revamp?

2020-08-05 Thread Eric S Fraga
On Wednesday,  5 Aug 2020 at 06:17, Bo Grimes wrote:
> On 8/4/20 1:54 AM, Eric S Fraga wrote:
>> On Monday,  3 Aug 2020 at 10:03, to...@tuxteam.de wrote:
>>> Emacs should run fine on PostmarketOS [1] [2]. Thus Org, too.
>> Emacs runs perfectly fine on Android via termux and org works as well (as 
>> does gnus!).
>>
>> But the issue is the keyboard.
>>
>
> Have you tried "Hacker Keyboard"? I don't use my phone for much, so I
> can't really say, but I know it has esc and ctrl keys and other "real" 
> keyboard features.

Oh, indeed.  I use that keyboard all the time on my phone.  My comment
was more about physical versus screen.  I find screen based keyboards
very annoying.  But that's me.

My solution is actually to use a small (palmtop, as they were called at
one time) computer.  I have two: the OpenPandora and the Planet
Computers Gemini.  I use both often while travelling/commuting.  Full
Debian, full Emacs, etc.  And no intrusive software from Google et
al. on the first of the two.  Org mode on the move is brilliant to have.

-- 
: Eric S Fraga via Emacs 28.0.50, Org release_9.3.7-705-gea9463



Re: Website revamp?

2020-08-05 Thread Bo Grimes

On 8/5/20 6:26 AM, Eric S Fraga wrote:

   Org mode on the move is brilliant to have.


Agree!  However, because I too find screen keyboards "very annoying" and 
small screens even more so, my use of Org on the move is limited to 
Orgzly--which is a wonderful app, but I have only one file I use, 
mobileGTD.org, the notes and tasks in which quickly get moved the next 
time I am at my 32'' monitor!


--
Bo Grimes


Re: Website revamp?

2020-08-05 Thread Bo Grimes


On 8/4/20 1:54 AM, Eric S Fraga wrote:

On Monday,  3 Aug 2020 at 10:03, to...@tuxteam.de wrote:

Emacs should run fine on PostmarketOS [1] [2]. Thus Org, too.

Emacs runs perfectly fine on Android via termux and org works as well (as does 
gnus!).

But the issue is the keyboard.



Have you tried "Hacker Keyboard"? I don't use my phone for much, so I 
can't really say, but I know it has esc and ctrl keys and other "real" 
keyboard features.


--
Bo Grimes