Re: How to export a single subtree but include document preamble?

2024-04-04 Thread Scott Randby

On 4/4/24 14:11, Richard Stanton wrote:
Thanks for the suggestion!

It would still be nice (i.e., you wouldn’t have to do this for every section 
you ever want to export) to have a way of specifying a line that gets executed 
for EVERY (say) LaTeX export. Or else an option to do something like include 
everything in the file before the first section header.




That would be a nice feature, but I also like using the 'PROPERTIES' drawer 
because it enables me to have very fine control over the export of a subtree. A 
typical drawer I use looks like this:

:PROPERTIES:
:EXPORT_TITLE: *Subtree Title*
:EXPORT_FILE_NAME: Exported-Subtree
:EXPORT_LATEX_HEADER_EXTRA: \input{latex-preamble.tex} 
\hypersetup{pdftitle={Subtree Title},pdfauthor={Scott 
Randby},pdfsubject={},pdfkeywords={},pdfproducer={Emacs 
Org},pdfcreator={pdflatex}} 
\hypersetup{colorlinks=true,urlcolor=blue,linkcolor=blue} %\pagestyle{empty} % 
Turn page numbering off
:EXPORT_OPTIONS: h:4 author:nil email:nil date:nil creator:nil timestamp:nil 
tags:nil num:0 toc:nil
:END:

Scott



Re: How to export a single subtree but include document preamble?

2024-04-03 Thread Scott Randby

On 4/3/24 15:00, Richard H. Stanton wrote:

I just tried to export a single subtree from an org document to a PDF file:

1) Type  C-c C-e [org-export-dispatch]
2) C-s to narrow to subtree
3) l -> o to export to PDF via LaTeX

However, instead of exporting the portion of the file I want, I get the error 
message

Undefined Org macro: newline; aborting

That macro is defined in a setup file that is #+included at the top of the 
file, so exporting the entire file works fine.

I assume the problem is that when I export only one subtree, the setup file is 
not #+included, and I can see it sort of makes sense, but it would be nice if 
there were an option to include one or more lines from the preamble when 
exporting just a subtree, since otherwise exporting a subtree doesn’t actually 
work! Is there a simple way to do this?



I don't know if this does what you want, but I use a ‘PROPERTIES’ drawer right 
below the subtree's headline and in that drawer, I put the following code:

:EXPORT_LATEX_HEADER_EXTRA: \input{latex-preamble.tex}

Scott Randby



Re: mailto link issue in 9.5.5 and 9.6.6

2023-06-08 Thread Scott Randby

On 6/8/23 11:47, Max Nikulin wrote:

I decided that it is consistent with


   nil("mailto:sran...@gmail.com; (nil))
   browse-url--mailto("mailto:sran...@gmail.com; nil)


when `browse-url-mailto-function' is set to nil. However docstring to this 
variable allows nil (perhaps there is really an Emacs bug). Now I am puzzled 
why setting `browse-url-mailto-function' to `browse-url-default-browser' does 
not help. I have no idea what should be suggested to users instead of nil.




I've spent some time looking through the code of browse-url.el, and I've been 
unable to alter its code so that setting `browse-url-mailto-function' to 
`browse-url-default-browser' works. But my grasp of Elisp is not good. I'm 
going to make a detailed bug report as soon as I can find the time to make it.

Scott Randby



Re: mailto link issue in 9.5.5 and 9.6.6

2023-06-06 Thread Scott Randby

On 6/6/23 02:05, Ihor Radchenko wrote:

Scott Randby  writes:


(4) I executed (customize-set-variable 'browse-url-mailto-function nil) and then executed 
(browse-url "mailto:sran...@gmail.com;). The result gave the same error 
messages.


This sounds like Emacs bug, and I can reproduce. Please report it to
Emacs devs. (M-x report-emacs-bug)



I agree, I've looked through the code of browse-url.el in 28.2 and 27.2 (where 
it works) but I can't find the problem because my understanding of Elisp is 
primitive. I've never reported an Emacs bug before, but I will try.



Re: mailto link issue in 9.5.5 and 9.6.6

2023-06-06 Thread Scott Randby

On 6/6/23 10:30, Max Nikulin wrote:


Try to set `browse-url-mailto-function' to `browse-url-default-browser'.



I tried that yesterday and it didn't work.



Re: mailto link issue in 9.5.5 and 9.6.6

2023-06-05 Thread Scott Randby




On 6/5/23 15:48, Ihor Radchenko wrote:

Scott Randby  writes:


When I execute (browse-url "mailto:sran...@gmail.com;) in the *scratch* buffer, 
I get the following:

Debugger entered--Lisp error: (void-function nil)
nil("mailto:sran...@gmail.com; (nil))
browse-url--mailto("mailto:sran...@gmail.com; nil)
apply(browse-url--mailto "mailto:sran...@gmail.com; nil)
browse-url("mailto:sran...@gmail.com;)


Then, it looks like mis-configured `browse-url'.
Check your configuration.



Here are some steps I tried following your advice.

(1) I eliminated all customizations that involved `browse-url' from my 
configuration and restarted Emacs (Emacs 28.2, Org 9.6.6).

(2) I executed (browse-url "mailto:sran...@gmail.com;) and the buffer to edit 
an email appeared.

(3) I executed (browse-url "https://orgmode.org/;) and the Org Mode site opened 
in Firefox.

(4) I executed (customize-set-variable 'browse-url-mailto-function nil) and then executed 
(browse-url "mailto:sran...@gmail.com;). The result gave the same error 
messages.

(5) I quit Emacs and ran `emacs -q' (Emacs 28.2, Org 9.5.5).

(6) I executed (browse-url "mailto:sran...@gmail.com;) and the buffer to edit 
an email appeared.

(7) I executed (browse-url "https://orgmode.org/;) and the Org Mode site opened 
in Firefox.

(8) I executed (customize-set-variable 'browse-url-mailto-function nil) and then executed 
(browse-url "mailto:sran...@gmail.com;). The result gave the same error 
messages.

I'm not sure how my configuration can be at fault when `emacs -q' gives the 
same result. I'm not sure what to do now.



Re: mailto link issue in 9.5.5 and 9.6.6

2023-06-05 Thread Scott Randby

On 6/5/23 02:00, Ihor Radchenko wrote:

What will happen if you try

M-: (browse-url"mailto:your-em...@blah.com;) 

?


I get this: Symbol's function definition is void: nil

When I execute (browse-url "mailto:sran...@gmail.com;) in the *scratch* buffer, 
I get the following:

Debugger entered--Lisp error: (void-function nil)
  nil("mailto:sran...@gmail.com; (nil))
  browse-url--mailto("mailto:sran...@gmail.com; nil)
  apply(browse-url--mailto "mailto:sran...@gmail.com; nil)
  browse-url("mailto:sran...@gmail.com;)
  (progn (browse-url "mailto:sran...@gmail.com;))
  eval((progn (browse-url "mailto:sran...@gmail.com;)) t)
  elisp--eval-last-sexp(nil)
  eval-last-sexp(nil)
  funcall-interactively(eval-last-sexp nil)
  call-interactively(eval-last-sexp nil nil)
  command-execute(eval-last-sexp)



mailto link issue in 9.5.5 and 9.6.6

2023-06-04 Thread Scott Randby

Hello,

I'm having a problem with mailto links. The problem occurs in Org 9.5.5 
(running emacs -q) and Org 9.6.6 at least. It did not occur when I used Org 
9.4.6.

I do not use Emacs for email (sorry). The documentation states that when 
browse-url-mailto-function is set to nil, then the setting of browse-url-browse-function 
will be used. That function is set to browse-url-default-browser in Org 9.5.5, and it is 
set to browse-url-firefox in my Org 9.6.6. However when browse-url-mailto-function is set 
to nil and I C-c C-o on a mailto link, I get this message: "Symbol's definition is 
void: nil"

How do I fix this issue? The other types of links I use (http, https, file, 
info) all work fine.

Scott Randby



Re: HTML export meta tag

2023-05-29 Thread Scott Randby

On 5/29/23 16:37, Timothy wrote:

Hi Scott,


Just to give some support to my request, the HTML standard
() says this:
“Then, if the element is one of the void elements, or if the element is a
foreign element, then there may be a single U+002F SOLIDUS character (/), which
on foreign elements marks the start tag as self-closing. On void elements, it
does not mark the start tag as self-closing but instead is unnecessary and has
no effect of any kind. For such void elements, it should be used only with
caution — especially since, if directly preceded by an unquoted attribute value,
it becomes part of the attribute value rather than being discarded by the
parser.”


The things is the ox-html exporter currently tries to (mostly) support XHTML,
which as I understand requires the self-closing slash.

I think what’s really needed is an HTML export implementation that can more
easily support different “modes” of export, but somebody needs to work on that
.


Okay, but when I try to validate my page as XHTML, I get numerous errors that 
would be inconvenient to fix especially since I'm only interested in obtaining 
valid HTML. What I think I'll do is to edit the org-html--build-meta-entry 
function in my ox-html.el file to eliminate the trailing slash. I'll just have 
to remember to do that every time I upgrade Org.

Scott



Re: HTML export meta tag

2023-05-29 Thread Scott Randby

On 5/29/23 14:07, Ihor Radchenko wrote:

Scott Randby  writes:




This did not happen when I used Org 9.4.6:



I wouldn't care about this change, but when I validate the page code 
(https://validator.w3.org/) I get the following: "Info: Trailing slash on void 
elements has no effect and interacts badly with unquoted attribute values."


Timothy, may you take a look?


Just to give some support to my request, the HTML standard 
(https://html.spec.whatwg.org/multipage/syntax.html#start-tags) says this: "Then, if 
the element is one of the void elements, or if the element is a foreign element, then 
there may be a single U+002F SOLIDUS character (/), which on foreign elements marks the 
start tag as self-closing. On void elements, it does not mark the start tag as 
self-closing but instead is unnecessary and has no effect of any kind. For such void 
elements, it should be used only with caution — especially since, if directly preceded by 
an unquoted attribute value, it becomes part of the attribute value rather than being 
discarded by the parser."

Scott




HTML export meta tag

2023-05-29 Thread Scott Randby

Hello,

When I export to HTML using Org 9.6.6, there is a /> closing the meta tag:



This did not happen when I used Org 9.4.6:



I wouldn't care about this change, but when I validate the page code 
(https://validator.w3.org/) I get the following: "Info: Trailing slash on void 
elements has no effect and interacts badly with unquoted attribute values."

The documentation I've seen states that the code without the trailing slash is 
the proper code. I request that the org-html--build-meta-entry function in 
ox-html.el be changed to eliminate the trailing slash.

Scott Randby



Re: LaTeX fragment preview weirdness

2021-06-03 Thread Scott Randby

On 6/2/21 1:28 PM, Nick Dokos wrote:

You probably want #+LATEX_HEADER_EXTRA, not #+LATEX_HEADER. Do

    (info "(org) Latex header and sectioning")

where it says:

#+BEGIN_QUOTE
    The LaTeX export back-end appends values from ‘LATEX_HEADER’ and
‘LATEX_HEADER_EXTRA’ keywords to the LaTeX header.  The docstring for
‘org-latex-classes’ explains in more detail.  Also note that LaTeX
export back-end does not append ‘LATEX_HEADER_EXTRA’ to the header when
previewing LaTeX snippets (see *note Previewing LaTeX fragments::).
#+END_QUOTE


On 6/2/21 2:19 PM, Scott Randby wrote:

That worked after I deleted the old images in the ltximg directory. I hardly 
ever preview LaTeX fragments, but I'm changing #+latex_header: to 
#+latex_header_extra: everywhere.



I had to do a little extra work to get subtree export to work properly. Subtree 
export appears to also not append ‘LATEX_HEADER_EXTRA’ to the header. I had to 
add the values I need to the properties of the subtree using 
'EXPORT_LATEX_HEADER_EXTRA'. This actually cleaned up a lot of the code, but it 
was work I'd been putting off.

Scott



Re: LaTeX fragment preview weirdness

2021-06-02 Thread Scott Randby

On 6/2/21 1:28 PM, Nick Dokos wrote:

You probably want #+LATEX_HEADER_EXTRA, not #+LATEX_HEADER. Do

(info "(org) Latex header and sectioning")

where it says:

#+BEGIN_QUOTE
The LaTeX export back-end appends values from ‘LATEX_HEADER’ and
‘LATEX_HEADER_EXTRA’ keywords to the LaTeX header.  The docstring for
‘org-latex-classes’ explains in more detail.  Also note that LaTeX
export back-end does not append ‘LATEX_HEADER_EXTRA’ to the header when
previewing LaTeX snippets (see *note Previewing LaTeX fragments::).
#+END_QUOTE



That worked after I deleted the old images in the ltximg directory. I hardly 
ever preview LaTeX fragments, but I'm changing #+latex_header: to 
#+latex_header_extra: everywhere.

Thanks,
Scott



Re: suggestion to change default org-latex-pdf-process to latexmk

2021-06-02 Thread Scott Randby

On 6/2/21 12:07 PM, Stefan Nobis wrote> I have


--8<---cut here---start->8---
(setq org-latex-pdf-process '("latexmk -f -pdf -%latex -outdir=%o %f"))
--8<---cut here---end--->8---



I could not get that setting to work. The only setting that worked for me was 
this one:

--8<---cut here---start->8---
(customize-set-variable 'org-latex-pdf-process '("latexmk -f -pdf -%latex 
-interaction=nonstopmode -output-directory=%o %f"))
--8<---cut here---end--->8---

I've added the above code to my configuration file.

Scott



LaTeX fragment preview weirdness

2021-06-02 Thread Scott Randby

First, I'm using Emacs 27.2 and Org 9.4.6.

I have the following code in an Org file:

#+latex_header: 
\hypersetup{pdfauthor={Author},pdftitle={Title},pdfsubject={Subject},pdfkeywords={keyword},pdfproducer={Emacs
 Org},pdfcreator={pdflatex}}
#+latex_header: \hypersetup{colorlinks=true,urlcolor=blue,linkcolor=black}

The above lines are in a section at the end of my document.

When I do C-c C-x C-l in a section (or with a fragment at point), the following 
appears above every  fragment that is previewed:

pdfauthor=Author,pdftitle=Title,pdfsubject=Subject,pdfkeywords=keyword,pdfproducer=Emacs
 Org,pdfcreator=pdflatex colorlinks=true,urlcolor=blue,linkcolor=black

Here is a sample section from my Org file:

--BEGIN--

* Distance Formula

Let $d$ be the distance between $(x_{1}, y_{1})$ and $(x_{2}, y_{2})$.
\[
d=\sqrt{\left(x_{1}-x_{2}\right)^{2}+\left(y_{1}-y_{2}\right)^{2}}
\]

--END--

Scott Randby



Re: suggestion to change default org-latex-pdf-process to latexmk

2021-06-02 Thread Scott Randby

On 6/2/21 8:07 AM, Bruce D'Arcus wrote:

On Wed, Jun 2, 2021 at 4:28 AM Tim Cross  wrote:


The more I think about it, I think the best solution would be to update
the code which sets the default and have it check for latexmk. If it is
found, set it as the default and if it is not found, set the existing
default. This would have minimum impact on users and allow those who
have installed latexmk to get the benefits while not forcing those who
don't need it to install it.


If this were possible, I agree it would be the best approach.


Perhaps this is a stupid question, but what about the case in which TeX is 
installed after Emacs is installed? I do this sometimes.

Scott Randby



Re: suggestion to change default org-latex-pdf-process to latexmk

2021-06-02 Thread Scott Randby

On 6/2/21 1:33 AM, Stefan Nobis wrote:

"Bruce D'Arcus"  writes:


Here's the current command for the "latexmk" option:



"latexmk -g -pdf -pdflatex=\"%latex\" -outdir=%o %f"



... and here's what you have, minus shell-escape.



"latexmk -f -pdf -%latex -interaction=nonstopmode -output-directory=%o %f"


The option "-interaction=nonstopmode" forbids user interaction (like
asking for a missing file). Without this explicit option latexmk uses
"-interaction=batchmode" by default - in this case some diagnotic
messages to the terminal (not log file) are suppressed. Thus the
default option from latexmk might suffice.

Regarding "-f" versus "-g" I personally would slightly prefer "-f" for
performance reasons. With "-g" the document will always be newly
generated, even if nothing changed. This is only useful if the latexmk
config (or some environment variable) has changed. Other changes
should be detectable by latexmk, so "-f" should suffice.

The options "-output-directory" and "-outdir" are synonyms.

Regarding the choise of engine: "-pdflatex=\"%latex\"" explicitly sets
the command (including options) to be called by latexmk, without
letting latexmk know that the engine changed. Using "-%latex" (e.g.
the option "-lualatex" or "-xelatex") lets latexmk know that a
different engine should be used.

This matters at least for xelatex, because latexmk can utilize some
optimizations if it knows that xetex is used. In this case the first
runs only produce .xdv files and only the last run will produce the
full pdf to save time (see also option "-pdfxe" which is triggered by
"-xelatex").

Therefore I would tend to use this call:

 "latexmk -f -pdf -%latex -outdir=%o %f"

All other aspects of latexmk should be configured via config file
(IMHO).


In any case, whatever the command is, clearly it should.




I'm no longer sure that a change would break my ability to export to PDF. I'm 
using Linux with TeX Live, and latexmk is available. I'm willing to try 
changing org-latex-pdf-process to one of the above suggestions, but I have some 
questions. I've never used latexmk, and I really depend on Org to set things up 
so that they just work out of the box. It took me a long time to figure out how 
to get Emacs to find TeX so that previewing LaTeX fragments works (the solution 
is not in the Org manual).

(1) Which one of the above suggestions should I use? I don't want interactions 
when I'm exporting. I don't want to have to mess with a configuration file 
either.

(2) How many shell commands will org-latex-pdf-process need? Right now there 
are three. Replace those three with just one latexmk?

Scott Randby




Re: suggestion to change default org-latex-pdf-process to latexmk

2021-06-01 Thread Scott Randby




On 6/1/21 8:00 PM, Tim Cross wrote:


"Bruce D'Arcus"  writes:


While testing org-cite a few weeks ago, I noticed by default bibtex
won't run with natbib export, or biblatex with biblatex export.

Since org has not had native citations, this is not surprising.

But with org-cite coming soon, this will change.

At the time I suggested changing default to use latexmk, which will
handle both bibtex and biblatex runs.

https://lists.gnu.org/archive/html/emacs-orgmode/2021-05/msg00486.html

So what do LaTeX users think about changing the default for
"org-latex-pdf-process" to "latexmk"?

Is there any reason not to do this?



One reason is that latexmk is not installed on some systems. This means
it will require users to install an additional package not previously
required. It is also a perl script, so will need perl installed - not
sure what sort of overhead this might represent for Windows and Mac
users? Does latexmk work on all the platforms Emacs+org is supported on?

It isn't hard for users who want to use latexmk to set the value and as
it will break the installation for many existing users, I think we need
to be careful about changing this default. For many users who don't use
bibtex, this change could mean they have to install additional
software with little other observable benefit or change the default back
to what it is.

If we do make this change, it will be necessary to update any docs to
add details about the additional dependncy and how to resolve it (for
all supported platforms).




As a constant user of Org's LaTeX export capability, this change would break my 
ability to export to PDF, and it would be difficult for me to fix. I don't 
support this change.

Scott Randby



Re: New website - back to the old unicorn!

2020-10-26 Thread Scott Randby
On 10/26/20 5:41 AM, Bastien wrote:
> Dear all,
> 
> thanks to the initiative and the patient efforts of Timothy, our
> website has been revamped: new contents, new look and... the old
> unicorn!

The new site is wonderful. The Features page is especially useful. Now my 
friends and students can easily see why Org is so great.

Scott Randby



Re: Website revamp?

2020-07-30 Thread Scott Randby
On 7/30/20 1:57 PM, TEC wrote> Ok, I had a bit of time so I had a quick look 
and got started.
> I decided to start off with the big flashy stuff --- navbar and banner.
> 
> I need to think about how I'm doing the styling more. To fit with the default 
> org-export I need to work out what sort of CSS hackery I want to go with, at 
> the moment it's with negative margins in a css calc(...) using variables.
> 
> Anyway, barely started but you can take a peek here --- 
> http://orgmode.tecosaur.com/
> 
> Let me know what you all think :) 

This is a very nice start in my opinion. There is one thing, something which 
has nothing to do with the new design or the old design, that has sort of 
bugged me for a long time though. That thing is the advertisement for "The Org 
Mode 7 Reference Manual." Org is now at version 9.3.7, there have been 
significant changes to Org since version 7, and the manual isn't available 
anymore (as stated on the page). Potential and new users might be confused by 
the advertisement. Perhaps there is another graphic that can replace the 
graphic of the cover of the printed reference manual.

Scott Randby



Re: [O] blogging wih org-mode

2019-09-29 Thread Scott Randby
On 9/29/19 6:06 PM, Joseph Vidal-Rosset wrote:
> I would be glad to know what is, according to the majority, the best
> tool to blog with org-mode. I'm searching something simple to use and
> to install in order to blog with emacs, and, ideally, with emacs and
> org-mode only.
> 
> (I met  difficulties with lazyblorg, for example. I did not succeed to
> understand how it works.)
> 

Does this help?

https://diego.codes/post/blogging-with-org/

Scott Randby



Re: [O] Weird Headline Behavior

2019-02-12 Thread Scott Randby
On 2/12/19 5:37 PM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby writes:
> 
>> I've been noticing some unusual behavior when I manipulate headlines (Org 
>> 9.2).
>>
>> I have the following (or something similar) at the very end of many Org 
>> files:
>>
>> * LOCAL VARIABLES
>> # Local Variables:
>> # mode: org
>> # coding: utf-8-unix
>> # End:
>>
>> If I copy this subtree (C-c C-x M-w) and then yank it (C-c C-x C-y)
>> into into the same file or another file, only the headline is yanked,
>> the rest of the subtree is not.
> 
> This is because Org now has some code preserving file local variables at
> the end of the document. Some headings related commands -- e.g., moving
> or sorting them -- just ignore these comments.
> 
> If you really want to copy them, mark the section, with
> `org-mark-subtree' and copy it with M-w.

Okay, I understand now.

> 
>> In addition, if I decide to delete a different headline in the file
>> (C-c C-x C-w) while the LOCAL VARIABLES headline is folded, then this
>> appears on the display:
>>
>> * LOCAL VARIABLES...# Local Variables:
>> # mode: org
>> # coding: utf-8-unix
>> # End:
> 
> I fixed it. Thank you.

Thank you.

Scott



[O] Weird Headline Behavior

2019-02-08 Thread Scott Randby
Hello,

I've been noticing some unusual behavior when I manipulate headlines (Org 9.2).

I have the following (or something similar) at the very end of many Org files:

* LOCAL VARIABLES
# Local Variables:
# mode: org
# coding: utf-8-unix
# End:

If I copy this subtree (C-c C-x M-w) and then yank it (C-c C-x C-y) into into 
the same file or another file, only the headline is yanked, the rest of the 
subtree is not.

In addition, if I decide to delete a different headline in the file (C-c C-x 
C-w) while the LOCAL VARIABLES headline is folded, then this appears on the 
display:

* LOCAL VARIABLES...# Local Variables:
# mode: org
# coding: utf-8-unix
# End:

I don't know if these facts are relevant or not, but this behavior happens when 
org-indent-mode is both on and off, and I have org-tags-column set to 0.

The folding behavior is not big deal since S-TAB or something similar corrects 
everything, but it is inconvenient to have to use regular copy and yank 
commands when I want to copy the subtree to a different file. Can anyone 
provide some insight into this?

Scott Randby





Re: [O] Org without Emacs?

2019-01-30 Thread Scott Randby
On 1/29/19 8:33 PM, nly wrote:
> btw, you can run emacs on android, and use org from there.
> 
> You can install termux from fdroid
> and then, at a termux shell, enter:
> $ pkg install emacs
> 

I have Termux and Emacs installed on my Android tablet, but I've had too many 
issues with yanking from one file to another (it doesn't work most of the time) 
and other things. I prefer using Emacs on my laptop which has Xubuntu installed.

Scott



Re: [O] Org without Emacs?

2019-01-29 Thread Scott Randby
On 1/28/19 11:42 PM, Tim Cross wrote:
> Of course, this says nothing about the ethical position associated with 
> re-implementing functionality from a GPL'd sysem under a non-free license. We 
> can hope people do the right thing, but have no control to enforce it. I also 
> doubt it will cause any fracture in the org user community - the bottom line 
> is most of use came to org because of Emacs. These other systems don't have 
> Emacs and therefore are really only a pale imitation.

I'm one of those who came to Emacs because of Org. I read an article in some 
magazine (Linux Journal?) about Org and knew I had to try it out. Once I was 
into using Org, Emacs took over more and more of my computing life. People who 
use a non-free semi-implementation of Org may not even realize Emacs is the 
software that made Org possible and that Emacs is so great, and I think that is 
sad.

Scott



Re: [O] Org without Emacs?

2019-01-28 Thread Scott Randby
On 1/28/19 4:13 PM, Tim Cross wrote:
> As org is implemented in elisp, there are only two options for
> implementing org outside of emacs
> 
> 1. Implement a full elisp runtime in the alternative envrionment
> 2. Re-implement org functionality in a different language and runtime.
> 
> I think 1 is extremely unlikely, with the possible exception of things
> like https://github.com/Wilfred/remacs, which is a re-implementation of
> Emacs.
> 
> Alternative 2 is more likely and to some extent has been done with
> things like beorg and Visual Source Code, which has an extension with
> some (minimal) org support.

It is great that people want to implement Org functionality into other 
software, but the issue I have with beorg and Visual Source Code is that 
neither is free software. In the case of beorg, Org is mentioned repeatedly on 
its website as an inspiration, but what is the contribution of the beorg 
developers back to the Org community? The central feature of Org is that it is 
free software. In my view, non-free products like beorg are fundamentally 
broken.

> The problem with re-implementation is that there is a lot of core
> functionality built into emacs which is not found in most other
> runtimes. Much of what Org does is really take existing Emacs
> functionality and wrap it together in a more convenient and consistent
> bundle. In other systems, much of this functionality would need to be
> implemented from scratch, which would be a non-trivial task. In
> addition, keep pace with org development will be difficult for these
> clones. 

I agree with this completely. 

> I expect we will see some of Org's functionality implemented in other
> environments, but are unlikely to see a fully compatible and feature
> rich version on any other platform. Most likely, we will see some core
> ideas make their way into other environments, but they won't be Org mode
> - they will be something different which owes much of the inspiration to
> Org mode.
> 
> If we are lucky, we may see some new good ideas in these other systems
> which could be added to Org itself to make it even greater, otherwise
> such ports are unlikely to be of any real interest/use to Emacs Org
> users.

It would be wonderful to see new good ideas implemented in other systems, but 
in the case of proprietary software like beorg or Visual Source Code, their 
non-free nature makes it risky to re-implement in Org any new ideas they use 
(if they ever use any). I hope all the new good ideas for Org first exist as 
free software. That seems likely given the pace at which Org develops and the 
vitality of the Org community.

Scott



Re: [O] Org without Emacs?

2019-01-28 Thread Scott Randby
On 1/28/19 9:14 AM, Neil Jerram wrote> My only worry would be if any of this 
support in other tools is cover
> for attacking the copyleft and hence unity of how Org works; aimed
> ultimately at fragmenting the Org ecosystem.

I like your point!

> As long as that is not the case, I'm happy to fully support these
> alternative implementations.  (And personally, I'm a heavy Orgzly user.)

I was under the mistaken impression that Orgzly was proprietary software. Since 
it is free software, I'm going to start using it.

Scott



[O] Org without Emacs?

2019-01-28 Thread Scott Randby
Greetings,

Here is an article that might interest some: 
https://opensource.com/article/19/1/productivity-tool-org-mode

I'm not sure if the article is entirely successful. Maybe the tools mentioned 
in it can do some of the things Org does, but are there any that have full Org 
functionality? I'm not convinced that Org can be divorced from Emacs. Maybe 
parts of it can be separated.

Scott Randby



Re: [O] Table Columns

2019-01-24 Thread Scott Randby
On 1/24/19 3:36 PM, Nicolas Goaziou wrote:
> Scott Randby  writes:
> 
>> I wonder this: Is there a way to tell Org to align and shrink all the
>> tables in an Org file after startup or does it have to be done on an
>> individual basis?
> 
> It should be
> 
>#+startup: align shrink 

This is what I had in my file originally, but when I opened the file, there 
would be a lengthy delay before it actually opened. When I removed the code 
from the file, it opened immediately. I don't know what is going on.

> 
>> My use case is this: I have an Org file with many tables and I edit
>> some of them which requires me to shrink those tables. Later, I run
>> a macro which accesses and alters all of the tables. I need all of the
>> tables to be in the same state so that the macro runs correctly.
>> I guess the solution is to have the macro put a table in the proper
>> state before it does anything to that table, but that is one more
>> thing I have to remember to put in the macro. It would be easiest if
>> I could just tell Org to unshrink (which is what I actually want) all
>> tables in the file before I run the macro.
> 
> There is no function to expand all tables in the buffer, but it is
> pretty straightforward, and fast:
> 
>   (dolist (o (overlays-in (point-min) (point-max)))
> (when (eq 'table-column-hide (overlay-get o 'org-overlay-type))
>   (delete-overlay o)))

Thanks, this works well. And I learned how to take your code and turn it into a 
function which is something I should have learned a long time ago. One of these 
days, I'll get around to really learning elisp instead of borrowing code others 
wrote and playing around with it like an amateur. Again, thank you very much.

Scott



[O] Table Columns

2019-01-24 Thread Scott Randby
Greetings,

Sorry for repeating the message, but I want to add a bit to it.

I had to stop using the align and shrink startup options because at least one 
of them causes a considerable delay when opening an Org file that contains many 
tables (in my case, 25 or more tables). The delay makes sense, and it isn't a 
big deal to not use these options, but I wonder this: Is there a way to tell 
Org to align and shrink all the tables in an Org file after startup or does it 
have to be done on an individual basis?

My use case is this: I have an Org file with many tables and I edit some of 
them which requires me to shrink those tables. Later, I run a macro which 
accesses and alters all of the tables. I need all of the tables to be in the 
same state so that the macro runs correctly. I guess the solution is to have 
the macro put a table in the proper state before it does anything to that 
table, but that is one more thing I have to remember to put in the macro. It 
would be easiest if I could just tell Org to unshrink (which is what I actually 
want) all tables in the file before I run the macro.

Scott Randby



[O] Table Columns

2019-01-24 Thread Scott Randby
Greetings,

I had to stop using the align and shrink startup options because at least one 
of them causes a considerable delay when opening an Org file that contains many 
tables (in my case, 25 or more tables). The delay makes sense, and it isn't a 
big deal to not use these options, but I wonder this: Is there a way to tell 
Org to align and shrink all the tables in an Org file after startup or does it 
have to be done on an individual basis?

Scott Randby



Re: [O] Clone tree backwards in time

2019-01-21 Thread Scott Randby
On 1/21/19 12:49 PM, Nicolas Goaziou wrote:
> Hello,
> 
> Yasushi SHOJI  writes:
> 
>> Done.
> 
> Thank you. Applied now.

Yasushi: Thank you for your patch.

Scott



Re: [O] Link Bug?

2019-01-15 Thread Scott Randby
On 1/15/19 4:07 PM, Marco Wahl wrote:
> Hi,
> 
> Scott Randby  writes:
> 
>> First, I'm using Emacs 26.1 and Org 9.2.
>>
>> If I have [[./page.html]] in an Org file and I click on the link,
>> page.html is opened in my browser, but if I have
>> [[./page.html#section]] in the Org file and I click on that link, a
>> text file named page.html#section is opened in a buffer instead of a
>> page in my browser that starts at the desired place. I'm not sure if
>> this is a bug or not, but it isn't the kind of behavior I want. Is
>> there any way of getting around this behavior?
> 
> The core of your issue seems to be that one can interpret
> "./page.html#section" as filename and also as an anchor in html file
> "./page.html".
> 
> Possibly there are clever ways to make the program smarter to detect
> links to anchors in html files.
> 
> A way around is to be more explicit in the link.  E.g. call a browser
> via elisp and use the "file:" protocol:
> 
> [[elisp:(browse-url-firefox "file:///home/webstuff/page.html#section")]]

This sort of works, but it doesn't give me the correct link when I export to 
HTML. I was hoping to check links to anchors in HTML files before exporting to 
HTML, but maybe that was wishful thinking. Oh well, it is easy enough to check 
such links after exporting to HTML. I don't know enough elisp to be able to 
think about making Org smarter. Thanks for the help.

Scott



[O] Link Bug?

2019-01-15 Thread Scott Randby
First, I'm using Emacs 26.1 and Org 9.2.

If I have [[./page.html]] in an Org file and I click on the link, page.html is 
opened in my browser, but if I have [[./page.html#section]] in the Org file and 
I click on that link, a text file named page.html#section is opened in a buffer 
instead of a page in my browser that starts at the desired place. I'm not sure 
if this is a bug or not, but it isn't the kind of behavior I want. Is there any 
way of getting around this behavior?

Scott Randby



Re: [O] Clone tree backwards in time

2019-01-15 Thread Scott Randby
On 1/13/19 8:23 PM, Yasushi SHOJI wrote:
> On Thu, Jan 10, 2019 at 1:28 PM Scott Randby  wrote:
>> On occasion, I need to clone a tree backwards in time. I tried using 
>> something like -2d (instead of the usual +2d) without success. Is there a 
>> way to clone backwards in time?
> 
> How about this?

Unfortunately, I don't have the knowledge needed to test your patch, but it 
seems good to me. Any possibility of testing this and maybe incorporating it 
into Org?

Scott
 



[O] Clone tree backwards in time

2019-01-09 Thread Scott Randby
Hello,

On occasion, I need to clone a tree backwards in time. I tried using something 
like -2d (instead of the usual +2d) without success. Is there a way to clone 
backwards in time?

Scott Randby



Re: [O] Release 9.2

2018-12-28 Thread Scott Randby
On 12/27/18 4:41 AM, Bastien wrote:
> Hi all,
> 
> Org 9.2 is out: https://orgmode.org
> 

Greetings Org users,

I installed Org 9.2 and I'm enjoying some of the new features.

The new structure template mechanism is really nice because now I only have to 
remember C-c C-,.

The ability to dynamically narrow and widen table columns makes it a lot easier 
to work with tables which have a large number of columns.

Being able to exclude unnumbered headlines from the table of contents solves a 
problem I've struggled with for awhile.

The best new feature for me is the attachment of the new variable 
org-toggle-narrow-to-subtree to the "s" speed key. I narrow to subtrees 
constantly, and this new feature means I will soon forget the old cumbersome 
way without regret.

Like previous releases, Org 9.2 is a superb release. Everyone who worked to 
make this release happen has my appreciation and thanks.

Scott Randby



Re: [O] Release 9.2

2018-12-27 Thread Scott Randby
On 12/27/18 4:41 AM, Bastien wrote:
> Hi all,
> 
> Org 9.2 is out: https://orgmode.org

The link https://orgmode.org/org-9.2.tar.gz gives a 404 Not Found page. Can 
someone please fix this?

Scott Randby



Re: [O] Moving from Jekyll to Orgmode

2018-04-29 Thread Scott Randby
On 04/29/2018 04:50 AM, ST wrote:
> Hi Scott,
> 
> thank you, and all other responders, for the shared information. The
> reason I want to leave Jekyll is because I don't want to depend on a
> tool that relies on language (Ruby)/environment that I don't know/use
> (in this respect Hugo is the same for me). I prefer something more
> simplistic, even though if I'll have to invest some time for it to work
> initially. Those 3 features I've mentioned are almost all I need, more
> or less.
> 
> Could you, please, share your website publishing workflow (considering
> the 3 issues I've mentioned)?

I'm sorry, but I can't address any of your three issues. My site is in English 
only, I use regular links, and my style is very simple and made so the site 
will work well on any device. Here is a link to it: http://srandby.org/

The Org source code isn't available yet, but it isn't anything special. The key 
is really the CSS which you can easily obtain.

For publishing, I update a file, use Org's HTML export facility (C-c C-e h or 
C-c C-e C-s h to export a subtree), and then upload to the server. Not very 
sophisticated, but I find it to be very efficient.

I haven't had time to look into the more complex things one can do regarding 
Org and websites.

Scott



Re: [O] Moving from Jekyll to Orgmode

2018-04-28 Thread Scott Randby
On 04/28/2018 05:40 PM, Diego Zamboni wrote:
> 
> Org-mode is not really a website-publishing tool like Jekyll, although it can 
> be part of the chain. Org-mode at its core is a markup language, although 
> with considerable tooling support from org-mode and related tools in Emacs.
> 

I think Org is a good website publishing tool in many ways. I've been using it 
for making and publishing my website since 2010. Sure, it has some limitations, 
but I think it can be made to work nicely for a lot of types of sites. But I do 
agree that the Org/Hugo combination is really good.

Scott Randby



Re: [O] BeOrg

2018-01-02 Thread Scott Randby


On 01/02/2018 09:43 PM, Ilya Shlyakhter wrote:
> "as a GNU package, we're not allowed to mention proprietary software"
> -- how is that consistent with GNU prominently distributing Emacs for
> Windows from its own website?  I think this shows that the guideline
> is not absolute.  And it's specifically phrased as a guideline
> ("should"), not as a requirement.
> 

Emacs for Windows is still free software with source code and everything. BeOrg 
is not free software.

Scott Randby



Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-18 Thread Scott Randby


On 12/17/2017 10:14 PM, Grant Rettke wrote:
> On Sun, Dec 17, 2017 at 10:55 AM, Scott Randby <sran...@gmail.com> wrote:
>>
>> On 12/15/2017 01:43 PM, Grant Rettke wrote:
>>> Write it in Org. Export to Pandoc file pandoc-A.
>>>
>>> Export Pandoc file pandoc-A to Word file word-A. Send that to your
>>> peers for review.
>>>
>>> Export Word file word-A to Pandoc file pandoc-B.
>>>
>>> Get the Word from your peers, the file with changes from their review,
>>> word-C. Export it to pandoc-C
>>>
>>> Do a diff between pandoc-B and pandoc-C. Integrate the results into
>>> your original Org file.
>>
>> I'm confused. My understanding is that Pandoc converts between file formats, 
>> so I don't understand what you mean by a Pandoc file. What is the file 
>> format of pandoc-A?
>>
>> Is this what you mean?
>>
>> Pandoc: Org -> word-A
>> Pandoc: word-A -> pandoc-B.org
>> Pandoc: word-C -> pandoc-C.org
> 
> Pandoc has their own markup language "Pandoc Markdown". That is what I
> meant by "Pandoc". And that was totally wrong in regards to your
> question. Sorry my mistake.
> 
> You said it right, yes. It makes it easy to diff the "reverse
> engineered" Org fils to see what changed from the reviewers.

I appreciate the clarification. Your method is very useful to me since I 
frequently have to work with people who know nothing but Word and since 
LibreOffice doesn't deal well with some of the poorly formatted DOCX files I 
receive. I've been experimenting with some sample files, and your method works 
great.

I know this is a lost cause, but I dream of the future in which document 
collaboration is done using only text files.

Scott
> 



Re: [O] advice please: best way to export to DOC(X) with maths

2017-12-17 Thread Scott Randby
On 12/15/2017 01:43 PM, Grant Rettke wrote:
> Write it in Org. Export to Pandoc file pandoc-A.
> 
> Export Pandoc file pandoc-A to Word file word-A. Send that to your
> peers for review.
> 
> Export Word file word-A to Pandoc file pandoc-B.
> 
> Get the Word from your peers, the file with changes from their review,
> word-C. Export it to pandoc-C
> 
> Do a diff between pandoc-B and pandoc-C. Integrate the results into
> your original Org file.

I'm confused. My understanding is that Pandoc converts between file formats, so 
I don't understand what you mean by a Pandoc file. What is the file format of 
pandoc-A?

Is this what you mean?

Pandoc: Org -> word-A
Pandoc: word-A -> pandoc-B.org
Pandoc: word-C -> pandoc-C.org

Scott Randby



Re: [O] setting local variables

2017-09-21 Thread Scott Randby
On 09/20/2017 07:16 PM, Kaushal Modi wrote:
>  I have to agree with Carsten. I use unnumbered table of contents all the
>> time in web pages. Almost all of my Org files that generate web pages have
>> the following:
>>
>> #+options: num:nil toc:t
>>
> 
> @Scott Please see that other thread[1]. I have this exact use case. And if
> the case 3 discussed in that thread is supported all should be good.
> 
> [1]: http://lists.gnu.org/archive/html/emacs-orgmode/2017-09/msg00497.html
> 

Okay, I don't really understand the issue being discussed in the thread, but if 
num:nil gives me an unnumbered table of contents after HTML export, I'm good. I 
also export to LaTeX, but I recognize that there are issues with LaTeX table of 
contents and I just work around them.

I need to sit down and read the Org manual. For years, I've been using toc:t 
and getting more in the table of contents than I wanted. Discovering that I can 
use something like toc:1 was exactly what I needed a long time ago. I know 
there are other things in Org that I want now and just don't know about. There 
are disadvantages to my haphazard approach to Org.

Scott



Re: [O] setting local variables

2017-09-20 Thread Scott Randby


On 09/20/2017 12:17 PM, Carsten Dominik wrote:
> On Thu, Sep 7, 2017 at 5:01 PM, Eric Abrahamsen <e...@ericabrahamsen.net>
> wrote:
> 
>> Nicolas Goaziou <m...@nicolasgoaziou.fr> writes:
>>
>>
>> [...]
>>
>>> So, any objection to have all major back-ends ignoring unnumbered trees
>>> from TOC, and make that an Org specificity?
>>
> 
> 
> Hi Nicolas,
> 
> OK, now I have read this thread.
> 
> I do object to removing unnumbered headers from the toc.  It breaks
> documented and used behaviour and aI see no pressing reason to change it. I
> find, for compact documents, it works extremely well to have a toc that has
> no numbers - in fact, in many cases I find numbered tocs even annoying.  In
> particular, it works really well in websites, where I use it constantly.
> 
> I am sorry that I did not see this earlier - but I really think this change
> should be reverted.  If there is a desire to have sections that are not put
> into the toc, it should be separated from the num: and toc: switches and
> depend, for example on properties instead.
> 
> The fact that in LaTeX "unnumbered" is linked to the question if something
> is in the toc is some kind of mistake, this behaviour is very specific to
> LaTeX-like systems (including TeXInfo), but it is not a very logical system
> IMO.
> 
> Carsten

I have to agree with Carsten. I use unnumbered table of contents all the time 
in web pages. Almost all of my Org files that generate web pages have the 
following:

#+options: num:nil toc:t

The change should be reverted. I wish I had paid attention to this thread. I 
thought it was about something else.

Scott Randby

> 
> 
>>
>> Sounds good!
>>
>>
>>
> 



Re: [O] [RFC] Remove Org Struct mode

2017-08-20 Thread Scott Randby
On 08/20/2017 09:57 AM, Nicolas Goaziou wrote:
> 
> I would like to remove Org Struct minor mode from Org code base. Here is
> the rationale:
> 

I use OrgStruct in my configuration files, but it is so limited that I've been 
slowly moving my configuration to Org files. It is frustrating that simple 
things like C-c C-u don't work in OrgStruct. Removing OrgStruct from the Org 
code base would be incentive for me to finish rewriting my configuration files. 
However, I have to wonder what harm is caused by leaving OrgStruct in the code 
base.

Scott Randby




Re: [O] EXPORT_HTML_HEAD Issue

2017-08-13 Thread Scott Randby
On 08/13/2017 09:19 AM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> In the properties of a subtree, I have several :EXPORT_HTML_HEAD:
>> lines. When I export to HTML, only the first of the lines exports to
>> the header. I can get two lines to export to the header by
>> using :EXPORT_HTML_HEAD: followed by a :EXPORT_HTML_HEAD_EXTRA: line,
>> but I need more than two such lines. This behavior does not happen
>> when I have several #+HTML_HEAD: lines the document. What is going on?
> 
> You cannot have multiple identical properties in the same property
> drawer.
> 
> You could try
> 
>  :export_html_head: line 1
>  :export_html_head+: line 2
>  :export_html_head+: line 3

This makes sense and works. Thanks. It would probably have helped if I had read 
the Property syntax section of the manual more closely.

Scott



[O] EXPORT_HTML_HEAD Issue

2017-08-12 Thread Scott Randby
In the properties of a subtree, I have several :EXPORT_HTML_HEAD: lines. When I 
export to HTML, only the first of the lines exports to the header. I can get 
two lines to export to the header by using :EXPORT_HTML_HEAD: followed by a 
:EXPORT_HTML_HEAD_EXTRA: line, but I need more than two such lines. This 
behavior does not happen when I have several #+HTML_HEAD: lines the document. 
What is going on? Using Org 9.0.3.

Scott Randby

-- 
Scott Randby

sran...@gmail.com

http://srandby.org/

PGP key ID: 0xF2D38A63

Key server: http://pool.sks-keyservers.net/

Key fingerprint: 5418 123E DCD3 7DA0 1770  0BDE 301E E657 F2D3 8A63



Re: [O] LaTeX Export

2017-08-10 Thread Scott Randby
On 08/10/2017 11:35 AM, Richard Lawrence wrote:> Hi Scott,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> I tried this in the properties associated with a subtree: 
>> :export_latex_header: 
>> \hypersetup{pdfauthor={foo},pdftitle={foo},pdfsubject={foo},pdfkeywords={foo},pdfproducer={foo},pdfcreator={foo}}
>>  Unfortunately, all the other LaTeX headers are unrecognized when I do this.
> 
> If you put the subtree-specific hypersetup in each subtree's 
> EXPORT_LATEX_HEADER_EXTRA property, and the common stuff in #+LATEX_HEADER 
> lines, I think it should do what you want.  Org should combine these 
> properties rather than using the subtree property to override the global 
> ones.  Hope that helps!

Works perfectly. Thanks.

Scott



[O] LaTeX Export

2017-08-09 Thread Scott Randby
I have a file with a large number of top-level headlines. Each subtree 
corresponding to a top-level headline is exported to its own PDF file. The 
subtrees all use the same LaTeX headers except for \hypersetup. Right now, I 
have to uncomment the \hypersetup manually whenever I export a subtree. I would 
like to have the export engine automatically recognize which \hypersetup to use 
instead.

I tried this in the properties associated with a subtree: 

:export_latex_header: 
\hypersetup{pdfauthor={foo},pdftitle={foo},pdfsubject={foo},pdfkeywords={foo},pdfproducer={foo},pdfcreator={foo}}

Unfortunately, all the other LaTeX headers are unrecognized when I do this. I 
could put all of the LaTeX headers in the properties of each subtree, but that 
would make it difficult to make universal changes to the overall style.

Is there some way to do what I want? Something like this?

:export_add_latex_header: 
\hypersetup{pdfauthor={foo},pdftitle={foo},pdfsubject={foo},pdfkeywords={foo},pdfproducer={foo},pdfcreator={foo}}

Scott Randby

-- 
Scott Randby

sran...@gmail.com

http://srandby.org/

PGP key ID: 0xF2D38A63

Key server: http://pool.sks-keyservers.net/

Key fingerprint: 5418 123E DCD3 7DA0 1770  0BDE 301E E657 F2D3 8A63



Re: [O] org to static site?

2017-06-10 Thread Scott Randby
On 06/10/2017 05:21 AM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> On 06/05/2017 05:16 PM, Nick Dokos wrote:
> 
>>> Can this paragraph please be added to 
>>> http://orgmode.org/worg/org-quotes.html?
>>> It certainly added a smile to my day.
>>
>> Sure, it can be added. I'm glad you liked it.
> 
> I added it. Thank you.

Just one comment. When I click on the "Show Org source" button at the
bottom of the page, it doesn't work. The button works on the Worg index
page, and the file org-quotes.org.html exists, so I don't know what the
problem is.

Scott

> 
> Regards,
> 




Re: [O] org to static site?

2017-06-05 Thread Scott Randby
On 06/05/2017 05:16 PM, Nick Dokos wrote:
> Scott Randby <sran...@gmail.com> writes:
> 
>> On 06/05/2017 01:59 AM, John Ankarström wrote:
>>> On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby <sran...@gmail.com> 
>>> wrote:
>>>>
>>>> Maybe this is too primitive, but I keep all the content in one Org
>>>> file
>>>> and export the text under each top-level headline as a single HTML
>>>> page.
>>>> I use some simple macros if I need to export more than one top-level
>>>> headline. I keep the CSS code in a separate file. Keeping all the
>>>> content in one file makes it really easy to add new pages and edit old
>>>> pages. I use a preamble for site navigation.
>>>>
>>>> Scott Randby
>>>
>>> Sounds interesting.
>>>
>>> Do you have any way to generate an index page for your blog?
>>
>> I have an idea about how to generate an index page, but I haven't had
>> time to work out the details. Instead, since it isn't much work, I will
>> add entries by hand to an index page. I don't have an index page right
>> now because it isn't useful for my students.
>>
>> Actually, my site isn't a blog, it is for the classes I teach. I post
>> class notes, class audio, and other items for each class. What I like
>> about using my own site for teaching is that students don't need to log
>> into a learning management system to get the lessons. I've also designed
>> the site so that it works well on mobile devices (which is why the
>> design is very simple). Below is a link to the site I used for one of my
>> courses last semester and a link to a page containing some templates and
>> notes for things I didn't use last semester but might use in the future.
>> I don't have my source code posted anywhere yet, but I'm thinking about
>> setting up a Git repository somewhere as soon as I get a better grasp of
>> Git. Well, I'm also not sure if anyone else cares about such simple code.
>>
> 
> You'd be surprised :-) I think there is a *need* for simple code, the simpler
> the better. If I can do anything to push you along, let me know!

Okay, I consider your comment a push. My two obstacles are time and weak
understanding of Git. I will work on overcoming both.

> 
>> http://srandby.org/2017-1/356-001/home.html
>>
>> http://srandby.org/lesson-examples/lessons.html
>>
>> Org is amazing. I don't know elisp, I'm certainly not an advanced user
>> of Emacs, and I don't know how to do that really sophisticated Org stuff
>> that others talk about on this list, but I can make a functional web
>> site with Org without trouble by using the basic export functions.
>> Adding new pages, editing old pages, and updating is trivial. I know a
>> lot of people who use Markdown and static site generators, but Org is
>> much better for my purposes. And I can use it for many other things too.
>> Sorry for this unnecessary rant, but I just love Org.
>>
> 
> Can this paragraph please be added to http://orgmode.org/worg/org-quotes.html?
> It certainly added a smile to my day.

Sure, it can be added. I'm glad you liked it.

Scott Randby

> 




Re: [O] org to static site?

2017-06-05 Thread Scott Randby
On 06/05/2017 01:59 AM, John Ankarström wrote:
> On June 5, 2017 1:26:15 AM GMT+07:00, Scott Randby <sran...@gmail.com> wrote:
>>
>> Maybe this is too primitive, but I keep all the content in one Org
>> file
>> and export the text under each top-level headline as a single HTML
>> page.
>> I use some simple macros if I need to export more than one top-level
>> headline. I keep the CSS code in a separate file. Keeping all the
>> content in one file makes it really easy to add new pages and edit old
>> pages. I use a preamble for site navigation.
>>
>> Scott Randby
> 
> Sounds interesting.
> 
> Do you have any way to generate an index page for your blog?

I have an idea about how to generate an index page, but I haven't had
time to work out the details. Instead, since it isn't much work, I will
add entries by hand to an index page. I don't have an index page right
now because it isn't useful for my students.

Actually, my site isn't a blog, it is for the classes I teach. I post
class notes, class audio, and other items for each class. What I like
about using my own site for teaching is that students don't need to log
into a learning management system to get the lessons. I've also designed
the site so that it works well on mobile devices (which is why the
design is very simple). Below is a link to the site I used for one of my
courses last semester and a link to a page containing some templates and
notes for things I didn't use last semester but might use in the future.
I don't have my source code posted anywhere yet, but I'm thinking about
setting up a Git repository somewhere as soon as I get a better grasp of
Git. Well, I'm also not sure if anyone else cares about such simple code.

http://srandby.org/2017-1/356-001/home.html

http://srandby.org/lesson-examples/lessons.html

Org is amazing. I don't know elisp, I'm certainly not an advanced user
of Emacs, and I don't know how to do that really sophisticated Org stuff
that others talk about on this list, but I can make a functional web
site with Org without trouble by using the basic export functions.
Adding new pages, editing old pages, and updating is trivial. I know a
lot of people who use Markdown and static site generators, but Org is
much better for my purposes. And I can use it for many other things too.
Sorry for this unnecessary rant, but I just love Org.

Scott

> 
> - John
> 
> 




Re: [O] org to static site?

2017-06-04 Thread Scott Randby
On 05/31/2017 11:00 AM, Matt Price wrote:
> I'm trying to wean myself off of Wordpress for next year's teaching
> websites, and am wondering what solutions other people are using for
> turning a collection of org pages and/or subtrees into a static html
> site. I am leaning towards Hugo but honestly not for any sensible
> reason; I've seen other people use Jekyll, though the fact that Github
> doesn't support direct conversion from org-mode removes some of Jekyll's
> appeal; and I know there are a number of other solutions too. 
> 
> So, I would love to hear what you all recommend.

Maybe this is too primitive, but I keep all the content in one Org file
and export the text under each top-level headline as a single HTML page.
I use some simple macros if I need to export more than one top-level
headline. I keep the CSS code in a separate file. Keeping all the
content in one file makes it really easy to add new pages and edit old
pages. I use a preamble for site navigation.

Scott Randby



Re: [O] [org] different key binding between GUI emacs and emacs -nw

2017-05-30 Thread Scott Randby
On 05/30/2017 08:29 AM, Jean-Christophe Helary wrote:
> It is the opposite that's happening. Terminal works fine. It is the GUI
> that does not accept the bindings. And as I wrote, it is not limited to
> my macOS (Emacs.app and Aquamacs show the same behavior) but to other
> people's GTK+ linux or Xubuntu. So it seems that's something that aught
> to be investigated and eventually fixed.

I have no issues on Xubuntu with Org key bindings. I'm using Emacs
24.5.1 and Org 9.0.3 on Xubuntu 16.04.

Scott Randby



Re: [O] Problems with opening a link

2017-03-31 Thread Scott Randby
On 03/31/2017 08:52 AM, Carsten Dominik wrote:
> Hi Scott,
>
> which system are you on?
>
> I am using a Mac, and the "open" command in the mac as
> browse-url-generic-program

I'm using Xubuntu 16.04. I believe the function being used is
browse-url-browser-function which I have set to browse-url-firefox. The
variable browse-url-generic-program has no value on my system.

Scott

>
> Carsten
>
> On Fri, Mar 31, 2017 at 2:22 PM, Scott Randby <sran...@gmail.com
> <mailto:sran...@gmail.com>> wrote:
>
> On 03/31/2017 05:39 AM, Carsten Dominik wrote:
> > Hi everyone,
> >
> > I have problems opening a link in org.
> >
> > The link looks like this:
> >
> > 
> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 
> <https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics>
> >
> > I have copied it like this from the address bar in a browser.
> >
> > If I click on it in Org-mode, the link is modified to
> >
> > https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> <https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics>
> >
> > before being sent to the browser, and the browser cannot resolve it.
> > The problem seems to be that # has been turned into %23
>
> The link worked fine when I tried opening it from an Org file. I'm using
> Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.
>
> Scott Randby
>
> >
> > Where does this happen, and how can I fix this?
> >
> > Thank you.
> >
> > Carsten
>
>



Re: [O] Problems with opening a link

2017-03-31 Thread Scott Randby
On 03/31/2017 05:39 AM, Carsten Dominik wrote:
> Hi everyone,
> 
> I have problems opening a link in org.
> 
> The link looks like this:
> 
> https://ui.adsabs.harvard.edu/#search/q=author%3A%22Dominik%2CC%22/metrics
> 
> I have copied it like this from the address bar in a browser.
> 
> If I click on it in Org-mode, the link is modified to
> 
> https://ui.adsabs.harvard.edu/%23search/q=author:%22Dominik,C%22/metrics
> 
> before being sent to the browser, and the browser cannot resolve it. 
> The problem seems to be that # has been turned into %23

The link worked fine when I tried opening it from an Org file. I'm using
Org 9.0.3 in Emacs 24.5.1 and my browser is Firefox.

Scott Randby

> 
> Where does this happen, and how can I fix this?
> 
> Thank you.
> 
> Carsten



Re: [O] Complex conversion of text to org table

2017-03-12 Thread Scott Randby
On 03/12/2017 11:35 AM, Xebar Saram wrote:
> Thx Vicente!
>  
> Thats a decent idea. can this be all wrapped in a function (i have zero
> coding skills :)) ? i have hundreds of these tables to convert :)
> 
> best!
> 
> Z

OR

3/4, cup, milk
2, tablespoons, white vinegar
1, cup, all-purpose flour
2, tablespoons, white sugar
1, teaspoon, baking powder
1/2, teaspoon, baking soda
1/2, teaspoon, salt
1,, egg
2, tablespoons, butter melted
,, cooking spray

| 3/4 | cup | milk  |
|   2 | tablespoons | white vinegar |
|   1 | cup | all-purpose flour |
|   2 | tablespoons | white sugar   |
|   1 | teaspoon| baking powder |
| 1/2 | teaspoon| baking soda   |
| 1/2 | teaspoon| salt  |
|   1 | | egg   |
|   2 | tablespoons | butter melted |
| | | cooking spray |

Scott

> 
> On Sun, Mar 12, 2017 at 5:26 PM, Vicente Vera  > wrote:
> 
> Hello. In this case Org splits into columns everytime it sees a
> space, so "baking soda" ends up in two columns. A brute force
> solution: replace the spaces between words that shouldn't be put
> into separated columns with an underscore:
> 
> 1_cup all-purpose_flour
> 
> Convert it to an Org table and then do a quick M-x replace-string to
> replace '_' with ' '.
> 
> 2017-03-12 15:14 GMT+00:00 Xebar Saram  >:
> 
> Hi list
> 
> so im trying to use orgmode to collect food recepies. i have one
> issue which is to convert text based ingridents list into org
> tables.
> 
> for example take this list
> 
> 3/4 cup milk
> 2 tablespoons white vinegar
> 1 cup all-purpose flour
> 2 tablespoons white sugar
> 1 teaspoon baking powder
> 1/2 teaspoon baking soda
> 1/2 teaspoon salt
> 1 egg
> 2 tablespoons butter, melted
> cooking spray
> 
> if i mark this as a region and issue
> `org-table-create-or-convert-from-region` this is the result
> 
> | 3/4 | cup | milk| |  |  
>  | |   | |
> |   2 | tablespoons | white   | vinegar | (%or | better
> | yet | lemon | juice%) |
> |   1 | cup | all-purpose | flour   |  |  
>  | |   | |
> |   2 | tablespoons | white   | sugar   |  |  
>  | |   | |
> |   1 | teaspoon| baking  | powder  |  |  
>  | |   | |
> | 1/2 | teaspoon| baking  | soda|  |  
>  | |   | |
> | 1/2 | teaspoon| salt| |  |  
>  | |   | |
> |   1 | egg | | |  |  
>  | |   | |
> |   2 | tablespoons | butter, | melted  |  |  
>  | |   | |
> | cooking | spray   | | |  |  
>  | |   | |
> 
> 
> as you can see it got the amount (1/2) and the unit (cup) right
> yet the actual ingredients is cut into several columns
> 
> i dont really know how to deal with this. is there a more
> intelligent way of auto directing the conversion to split it the
> correct way?
> 
> if not any suggestions on how to convert it in a better way?
> perhaps a command to quick delete the separator (|) across all
> the column?
> 
> thx alot in advance
> 
> Z
> 
> 
> 



Re: [O] Complex conversion of text to org table

2017-03-12 Thread Scott Randby
On 03/12/2017 11:35 AM, Xebar Saram wrote:
> Thx Vicente!
>  
> Thats a decent idea. can this be all wrapped in a function (i have zero
> coding skills :)) ? i have hundreds of these tables to convert :)
> 
> best!
> 
> Z

You can try using commas to separate items.

List with commas inserted:

3/4 cup, milk
2 tablespoons, white vinegar
1 cup, all-purpose flour
2 tablespoons, white sugar
1 teaspoon, baking powder
1/2 teaspoon, baking soda
1/2 teaspoon, salt
1, egg
2 tablespoons, butter melted
, cooking spray

(Notice that I eliminated the comma in "butter, melted")

Resulting table:

| 3/4 cup   | milk  |
| 2 tablespoons | white vinegar |
| 1 cup | all-purpose flour |
| 2 tablespoons | white sugar   |
| 1 teaspoon| baking powder |
| 1/2 teaspoon  | baking soda   |
| 1/2 teaspoon  | salt  |
| 1 | egg   |
| 2 tablespoons | butter melted |
|   | cooking spray |

Scott Randby

> 
> On Sun, Mar 12, 2017 at 5:26 PM, Vicente Vera <vicente...@gmail.com
> <mailto:vicente...@gmail.com>> wrote:
> 
> Hello. In this case Org splits into columns everytime it sees a
> space, so "baking soda" ends up in two columns. A brute force
> solution: replace the spaces between words that shouldn't be put
> into separated columns with an underscore:
> 
> 1_cup all-purpose_flour
> 
> Convert it to an Org table and then do a quick M-x replace-string to
> replace '_' with ' '.
> 
> 2017-03-12 15:14 GMT+00:00 Xebar Saram <zelt...@gmail.com
> <mailto:zelt...@gmail.com>>:
> 
> Hi list
> 
> so im trying to use orgmode to collect food recepies. i have one
> issue which is to convert text based ingridents list into org
> tables.
> 
> for example take this list
> 
> 3/4 cup milk
> 2 tablespoons white vinegar
> 1 cup all-purpose flour
> 2 tablespoons white sugar
> 1 teaspoon baking powder
> 1/2 teaspoon baking soda
> 1/2 teaspoon salt
> 1 egg
> 2 tablespoons butter, melted
> cooking spray
> 
> if i mark this as a region and issue
> `org-table-create-or-convert-from-region` this is the result
> 
> | 3/4 | cup | milk| |  |  
>  | |   | |
> |   2 | tablespoons | white   | vinegar | (%or | better
> | yet | lemon | juice%) |
> |   1 | cup | all-purpose | flour   |  |  
>  | |   | |
> |   2 | tablespoons | white   | sugar   |  |  
>  | |   | |
> |   1 | teaspoon| baking  | powder  |  |  
>  | |   | |
> | 1/2 | teaspoon| baking  | soda|  |  
>  | |   | |
> | 1/2 | teaspoon| salt| |  |  
>  | |   | |
> |   1 | egg | | |  |  
>  | |   | |
> |   2 | tablespoons | butter, | melted  |  |  
>  | |   | |
> | cooking | spray   | | |  |  
>  | |   | |
> 
> 
> as you can see it got the amount (1/2) and the unit (cup) right
> yet the actual ingredients is cut into several columns
> 
> i dont really know how to deal with this. is there a more
> intelligent way of auto directing the conversion to split it the
> correct way?
> 
> if not any suggestions on how to convert it in a better way?
> perhaps a command to quick delete the separator (|) across all
> the column?
> 
> thx alot in advance
> 
> Z
> 
> 
> 



Re: [O] workflow, matlab+latex in org file

2017-03-11 Thread Scott Randby
On 03/10/2017 04:15 PM, Uwe Brauer wrote:
> 
>> On 03/10/2017 11:08 AM, Uwe Brauer wrote:
> 
>> You need to change "#+BEGIN_LaTeX" to "#+begin_export latex" and
>> "#+END_LaTeX" to "#+end_export" for Org 9.0 and above.
> 
> Thanks, very much, I never understand what is the benefit of those
> changes which break backward compatibility (or forward compatibility)

I agree that breaking backward compatibility is a problem, but I support
this change because font locking of LaTeX code (and others) now works
well. There is a function in the CHANGES document
(http://orgmode.org/Changes.html) called org-repair-export-blocks that
works really well. I added the function to my customizations file and
run it whenever I need to modify and export an older file.

Scott

> 
> 
> .
> 



Re: [O] workflow, matlab+latex in org file

2017-03-10 Thread Scott Randby
On 03/10/2017 11:08 AM, Uwe Brauer wrote:
>>>> "John" == John Kitchin <jkitc...@andrew.cmu.edu> writes:
> 
> Hi John,
> 
> Quite some time ago you send me this code of yours. It somehow
> disappeared in my mail and only by now I tried it out, great, really 
> 
> Only one  question
> I copied your code in a org file, executed the src sections and
> obtained:
> 
> 
>> #+begin_src matlab :results output latex
>> clear all;
>> syms e p R g w K K2;
>> phi=[(e + (e+p)*R^2)^((g-1)/2);((e+p)*R*sqrt(1+R^2))/(e+(e+p)*R^2)];
> 
>> jac=jacobian(phi,[e,p]);
>> ltxjac=latex(jac);
>> disp(ltxjac)
>> #+end_src
> 
>> #+RESULTS: 
>> #+BEGIN_LaTeX
> 
>> \left(\begin{array}{cc} {\left(\left(e + p\right)\, R^2 +
>> e\right)}^{\frac{g}{2} - \frac{3}{2}}\, \left(R^2 + 1\right)\,
>> \left(\frac{g}{2} - \frac{1}{2}\right) & R^2\, {\left(\left(e +
>> p\right)\, R^2 + e\right)}^{\frac{g}{2} - \frac{3}{2}}\,
>> \left(\frac{g}{2} - \frac{1}{2}\right)\\ \frac{R\, \sqrt{R^2 +
>> 1}}{\left(e + p\right)\, R^2 + e} - \frac{R\, {\left(R^2 +
>> 1\right)}^{\frac{3}{2}}\, \left(e + p\right)}{{\left(\left(e +
>> p\right)\, R^2 + e\right)}^2} & \frac{R\, \sqrt{R^2 + 1}}{\left(e +
>> p\right)\, R^2 + e} - \frac{R^3\, \sqrt{R^2 + 1}\, \left(e +
>> p\right)}{{\left(\left(e + p\right)\, R^2 + e\right)}^2}
>> \end{array}\right)
>> #+END_LaTeX
> 
> How do I suppose to continue now? Because if I  export this to a latex
> file the latex equations are not exported! I admit that I only use org
> files this way export them to latex and continue working.

You need to change "#+BEGIN_LaTeX" to "#+begin_export latex" and
"#+END_LaTeX" to "#+end_export" for Org 9.0 and above.

Scott Randby

> 
> What do I miss?
> 
> Thanks
> 
> Uwe
> 
> Your mail:
> 
>> You might consider the alternative, no-frills approach below. I defined
>> a new execute function that strips the header and >> out of the output.
>> It won't support any kind of session or header variables, but if you
>> don't use those it might work for you.
>>
>> #+BEGIN_SRC emacs-lisp
>> (defun org-babel-execute:matlab (body params) 
>>  (interactive "P")
>>  (let* ((current-file (buffer-file-name)) 
>>   (code (org-element-property :value (org-element-context)))
>>   (result-params (cdr (assoc :result-params params)))
>>   m-file
>>   md5-hash)
>>
>>
>>(with-temp-buffer 
>>  (insert code)
>>  (setq md5-hash (md5 (buffer-string))
>>  mbuffer (format "*m-%s*" md5-hash)
>>  m-file (format "m-%s.m" md5-hash)))
>>
>>;; create the file to run
>>(with-temp-file m-file 
>>  (insert code))
>>
>>(let ((results (shell-command-to-string
>>  (concat
>>   "/Applications/MATLAB_R2013a.app/bin/matlab "
>>   "-nodesktop -nojvm -nosplash -nodisplay <"
>>   m-file
>>  (delete-file m-file)
>>  (when results
>>  ;; strip out >>
>>  (setq results (replace-regexp-in-string ">> " "" results))
>>  ;; remove first 10 lines that are the header.
>>  (setq results (mapconcat 'identity
>>   (nthcdr 10 (split-string results "\n"))
>>   "\n")))
>>  (org-babel-result-cond result-params
>>  results
>> #+END_SRC
>>
>> #+begin_src matlab :results output latex
>> clear all;
>> syms e p R g w K K2;
>> phi=[(e + (e+p)*R^2)^((g-1)/2);((e+p)*R*sqrt(1+R^2))/(e+(e+p)*R^2)];
>>
>> jac=jacobian(phi,[e,p]);
>> ltxjac=latex(jac);
>> disp(ltxjac)
>> #+end_src
>>
>> #+RESULTS: 
>> #+BEGIN_LaTeX
>>
>> \left(\begin{array}{cc} {\left(\left(e + p\right)\, R^2 +
>> e\right)}^{\frac{g}{2} - \frac{3}{2}}\, \left(R^2 + 1\right)\,
>> \left(\frac{g}{2} - \frac{1}{2}\right) & R^2\, {\left(\left(e +
>> p\right)\, R^2 + e\right)}^{\frac{g}{2} - \frac{3}{2}}\,
>> \left(\frac{g}{2} - \frac{1}{2}\right)\\ \frac{R\, \sqrt{R^2 +
>> 1}}{\left(e + p\right)\, R^2 + e} - \frac{R\, {\left(R^2 +
>> 1\right)}^{\frac{3}{2}}\, \left(e + p\right)}{{\left(\left(e +
>> p\right)\, R^2 + e\right)}^2} & \frac{R\, \sqrt{R^2 + 1}}{\left(e +
>> p\right)\, R^2 + e} - \frac{R^3\, \sqrt{R^2 + 1}

Re: [O] empty search causes infinite loop?

2017-01-25 Thread Scott Randby
On 01/24/2017 04:36 PM, Pete Siemsen wrote:
> I use Org mode version 8.2.10 under Aquamacs version 3.3 on Mac Sierra 
> 10.12.3.
> 
> When I do "C-c a s" to search my org files for a keyword, it works
> fine, except when I mistakenly search for nothing. In other words, if
> when prompted for a search string, I hit RETURN, Aquamacs dives into
> an infinite loop. I have to force-quit Aquamacs and restart.

This doesn't happen with Org 9.0.3 in GNU Emacs 24.5.1 on Xubuntu 16.04.
Maybe updating Org will fix the problem.

Scott Randby

> 
> -- Pete
> 
> 



Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 04:59 PM, John Kitchin wrote:
> That looks too rich for a link to me unless alot of it is always the
> same, or derived, e.g. the id tags.

That is why I said that agreeing on the default HTML export for the link
type will be difficult.

Scott

> 
> Something like this is what a link would look like:
> 
> video:quadratic.webm
> 
> and the html export could certainly generate what you put in the html
> block below.
> 
> See
> http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/
> for how to make a link, try it and report back if it is useful
> 
> Scott Randby writes:
> 
>> On 01/22/2017 01:22 PM, John Kitchin wrote:
>>> What would these links look like? And what should they render too?
>>
>> I wasn't suggesting support for the idea, I was just suggesting that it
>> makes sense to to both video and audio if they are to be done.
>>
>> However, I currently use export blocks to do video and audio export. I
>> don't have a problem with continuing that practice since it works well
>> for me. Here are two examples:
>>
>> #+begin_export html
>> 
>>   > id="audio-tag"
>> controls
>> preload="metadata">
>> 
>> Your browser does not support the audio tag.
>>   
>> 
>> #+end_export
>>
>> #+begin_export html
>> 
>>   > id="video-tag"
>> src="quadratic.webm"
>> controls
>> preload="metadata">
>>     Your browser does not support the video tag.
>>   
>> 
>> #+end_export
>>
>> Styling is done via a CSS file.
>>
>> It might be difficult to agree on what a video or audio link type
>> renders to by default.
>>
>> Scott
>>
>>>
>>>
>>> On Sun, Jan 22, 2017 at 1:09 PM Scott Randby <sran...@gmail.com
>>> <mailto:sran...@gmail.com>> wrote:
>>>
>>> On 01/22/2017 12:15 PM, Arun Isaac wrote:
>>>
>>> >
>>>
>>> > It would be nice to have a link type to export HTML5 videos. 
>>> Currently,
>>>
>>> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
>>>
>>> > block with literal #+HTML in them. This seems a little kludgy. 
>>> Thoughts?
>>>
>>>
>>>
>>> If there is to be a link type to videos, then I think there should be
>>>
>>> one for audio too.
>>>
>>>
>>>
>>> Scott Randby
>>>
>>>
>>>
>>> >
>>>
>>> > Thanks,
>>>
>>> > Arun Isaac.
>>>
>>> >
>>>
>>>
>>>
> 
> 



Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 01:22 PM, John Kitchin wrote:
> What would these links look like? And what should they render too?

I wasn't suggesting support for the idea, I was just suggesting that it
makes sense to to both video and audio if they are to be done.

However, I currently use export blocks to do video and audio export. I
don't have a problem with continuing that practice since it works well
for me. Here are two examples:

#+begin_export html

  

Your browser does not support the audio tag.
  

#+end_export

#+begin_export html

  
Your browser does not support the video tag.
  

#+end_export

Styling is done via a CSS file.

It might be difficult to agree on what a video or audio link type
renders to by default.

Scott

> 
> 
> On Sun, Jan 22, 2017 at 1:09 PM Scott Randby <sran...@gmail.com
> <mailto:sran...@gmail.com>> wrote:
> 
> On 01/22/2017 12:15 PM, Arun Isaac wrote:
> 
> >
> 
> > It would be nice to have a link type to export HTML5 videos. Currently,
> 
> > the only way to insert videos is to use the #+BEGIN_video, #+END_video
> 
> > block with literal #+HTML in them. This seems a little kludgy. Thoughts?
> 
> 
> 
> If there is to be a link type to videos, then I think there should be
> 
> one for audio too.
> 
> 
> 
> Scott Randby
> 
> 
> 
> >
> 
> > Thanks,
> 
> > Arun Isaac.
> 
> >
> 
> 
> 



Re: [O] Link type for HTML5 videos

2017-01-22 Thread Scott Randby
On 01/22/2017 12:15 PM, Arun Isaac wrote:
> 
> It would be nice to have a link type to export HTML5 videos. Currently,
> the only way to insert videos is to use the #+BEGIN_video, #+END_video
> block with literal #+HTML in them. This seems a little kludgy. Thoughts?

If there is to be a link type to videos, then I think there should be
one for audio too.

Scott Randby

> 
> Thanks,
> Arun Isaac.
> 



Re: [O] A modest "framework" for authoring teaching material with org-mode

2016-12-20 Thread Scott Randby
On 12/20/2016 10:45 AM, Olivier Berger wrote:
> Hi.
> 
> For teachning this year, I've used a "framework" that consists in a set
> of umbrella .org documents which generate various output formats from a
> single included .org source.
> 
> The goal is to author only a single "lesson.org" source, and generate both
> PDF handbooks (for students or teachers) and Web slides (using
> reveal.js, using org-reveal).
> 
> I thinks it may be useful to some, so I've decided to document and
> publish it :
> 
> http://www-public.tem-tsp.eu/~berger_o/org-teaching/
> 
> 
> An example slides deck (self documenting it) :
> http://www-public.tem-tsp.eu/~berger_o/org-teaching/slides.html
> and corresponding handbook :
> http://www-public.tem-tsp.eu/~berger_o/org-teaching/handbook.pdf
> 
> 
> Feel free to reuse, adapt, enhance and report.

This is very nice. Thanks for sharing.

Scott Randby

> 
> Hope this helps.
> 
> Best regards,
> 



Re: [O] Remove Org from Emacs repository?

2016-12-19 Thread Scott Randby
+1 for Keeping Org in Emacs.

Scott Randby

On 12/18/2016 08:20 AM, Carsten Dominik wrote:
> Dear all,
> 
> I'd hate to see Org removed from Emacs.  It took a lot of work to get it
> in, and I believe that the vast majority of Emacs users does not install
> packages.  For a newbie to get to Emacs and to be able to open a .org
> file is a big plus.  So my vote goes toward keeping it in.
> 
> Carsten
> 
> On Sun, Dec 18, 2016 at 10:22 AM, <aaermo...@gmail.com
> <mailto:aaermo...@gmail.com>> wrote:
> 
> 2 cents from me...
> 
> Besides I continuously see many users praising Emacs just for Org
> presence (they even may be completely non-technical users), I'm
> personally think Org may be removed from Emacs distribution because:
> 
> 1) all Reuben's argument seems sane;
> 2) there are situations when someone wants particular version of Org,
>and it may be not tne one bundled with Emacs. In this case someone
>should perform extra steps to ensure things are going the right way.
>When Org will be available only from ELPA, it will be SPOT for
> such cases.
> 
> Reuben Thomas <r...@sc3d.org <mailto:r...@sc3d.org>> writes:
> 
> > Now that Emacs has had package.el for some years, and Org is installable
> > directly from GNU ELPA, would it be a good idea to remove Org from 
> Emacs's
> > source repository?
> >
> > The current situation is left over from before Emacs had package.el, 
> and I
> > see no compelling reason to keep it. Org is too big and distinct to be
> > swallowed by Emacs; it doesn't make much sense to keep its current 
> half-in,
> > half-out state; so logically it seems sensible to take it out.
> >
> > I am asking this question from an Org point of view; I will ask the 
> Emacs
> > maintainers separately for their perspective.
> >
> > I think it would benefit Emacs too, as there would be less code to 
> maintain
> > (even though Org is quasi-external at present, it still has to build
> > successfully as part of an Emacs build), and the Emacs distribution 
> would
> > be slimmer for non-Org users.
> >
> > Of course, Emacs "distributions" would still be able to include Org
> > out-of-the box if they wished.
> >
> > --
> > http://rrt.sc3d.org
> 
> 



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-11 Thread Scott Randby
On 12/10/2016 07:05 PM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> First, a_b_c and a_bc give nearly identical results when processed
>> except that the spacing between letters in the subscript coming from
>> a_b_c is wider than that in the subscript coming from a_bc. The spacing
>> issue can be seen more clearly by comparing the processed versions of
>> a_b_c_d and a_bcd. The wider spacing looks funny when compared to
>> surrounding text.
>>
>> Second, I've been considering the issue of what the primary meaning of
>> a_b_c should be when it is used in a file. Since underscores are used in
>> LaTeX to designate subscripts in mathematical expressions, it is clear
>> to me that a_b_c should mean a_(b_c) instead of a_(bc). Similarly, a^b^c
>> should mean a^(b^c) instead of a^(bc). I really can't think of any case
>> when I would type in a_b_c in order to get a_(bc).
> 
> I chose this translation because
> 
>   1. It was the easiest to implement;
>   2. It is the closest to what Org (unlike to LaTeX) really sees;

It seems odd to me that Org would see multiple subscripts as being
really one subscript. And the spacing in the subscript when a_b_c is
exported and processed is still bad.

>   3. It doesn't matter since it is a pathological case.

I agree.

> 
>> Finally, I question the use of text style instead of math style when
>> a_b, a^b, or similar expressions are exported to LaTeX. TeX was designed
>> to produce beautiful typeset mathematics, and the math style is an
>> essential part of that beauty. Math style is also the expected way of
>> presenting mathematical expressions in all of the professional journals
>> that I read and use. New users may not be aware of professional
>> standards, but we could help them be aware by translating a_b_c as
>> \(a_{b_{c}}\) exactly. Similarly a^b^c would be translated as
>> \(a^{b^{c}}\) exactly.
> 
> I strongly disagree. 
> 
> Org is not a front-end to LaTeX. LaTeX is but one of its export output
> formats. In most of the others, sup/superscript doesn't force math mode
> on the user.

I realize that Org is not a front-end to LaTeX. But the standards of
other output formats are not the standards of LaTeX. Different output
formats have different purposes. In this case, one could view Org as
forcing text mode on the user when math mode is appropriate.

> 
> In Org, if you want to enter math mode, you need to explicitly request
> it, e.g., with:
> 
>   a_{$1 + 1$}

If this was true, then a_b would be exported to a\_b instead of
a\(_\text{b}\). Math mode is entered any time \(...\) is used, and in
the a_b case, the user did not explicitly request it.

Scott Randby



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-10 Thread Scott Randby
On 12/07/2016 06:21 AM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> On 12/06/2016 06:50 PM, Nicolas Goaziou wrote:
>>> I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\).
>>
>> With this solution, "a" will be exported as text while "b" and "c" will
>> be exported as a single subsrcipt using the math font.
> 
> Not at all. I simplified the output for clarity but the real generated
> code is
> 
>   a\(_{\text{b}}\)\(_{\text{c}}\)
> 
>> I would prefer that a_b_c be translated as \(a_{b_{c}}\).
> 
> As you pointed out, the string is ambiguous anyway. The point of the fix
> is to generate valid LaTeX code. You can obtain the above unambiguously
> with
> 
>   a_{b_c}

I have a few comments about the choice you've made for the translation
of underscores that do not appear in \(...\) or $...$ expressions. I've
attached a PDF to help explain my points.

First, a_b_c and a_bc give nearly identical results when processed
except that the spacing between letters in the subscript coming from
a_b_c is wider than that in the subscript coming from a_bc. The spacing
issue can be seen more clearly by comparing the processed versions of
a_b_c_d and a_bcd. The wider spacing looks funny when compared to
surrounding text.

Second, I've been considering the issue of what the primary meaning of
a_b_c should be when it is used in a file. Since underscores are used in
LaTeX to designate subscripts in mathematical expressions, it is clear
to me that a_b_c should mean a_(b_c) instead of a_(bc). Similarly, a^b^c
should mean a^(b^c) instead of a^(bc). I really can't think of any case
when I would type in a_b_c in order to get a_(bc).

Finally, I question the use of text style instead of math style when
a_b, a^b, or similar expressions are exported to LaTeX. TeX was designed
to produce beautiful typeset mathematics, and the math style is an
essential part of that beauty. Math style is also the expected way of
presenting mathematical expressions in all of the professional journals
that I read and use. New users may not be aware of professional
standards, but we could help them be aware by translating a_b_c as
\(a_{b_{c}}\) exactly. Similarly a^b^c would be translated as
\(a^{b^{c}}\) exactly.

However, the translation of a_b_c doesn't matter a whole lot to me since
I always use \(a_{b_{c}}\) or $a_{b_{c}}$ in my Org documents.

Scott Randby

> 
> Regards,
> 


Org-Subscripts-Superscripts.pdf
Description: Adobe PDF document


Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-06 Thread Scott Randby
On 12/06/2016 06:50 PM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby <sran...@gmail.com> writes:
> 
>> I don't think you can blame Org for the crashes you've experienced. Org
>> exports the string "a_variable_deleteThisAndItWorks" to
>> "a\(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)" which is not a
>> valid LaTeX expression. This invalid output is not the fault of Org, it
>> is the fault of the input string. Since there are different ways of
>> interpreting "a_variable_deleteThisAndItWorks," you have to tell Org
>> which interpretation you want it to make when you export to LaTeX. This
>> means additional markup of the string is required.
>>
>> That the exported LaTeX file crashes your installation of pdfTeX (or
>> whatever TeX engine you use) when you process it is not the fault of
>> Org. The exported LaTeX file contains an invalid LaTeX expression that
>> came from a ambiguous string, so pdfTeX shows an error when processing
>> the LaTeX file. Using additional markup of the string so that Org
>> exports it as a valid LaTeX expression is the solution to the problem.
> 
> Even though the OP used an ambiguous string, I don't think Org should
> generate invalid LaTeX.
> 
> I fixed it in maint. Basically, a_b_c is translated as a\(_b\)\(_c\).

With this solution, "a" will be exported as text while "b" and "c" will
be exported as a single subsrcipt using the math font. I would prefer
that a_b_c be translated as \(a_{b_{c}}\).

Scott Randby

> 
> Regards,
> 



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-06 Thread Scott Randby
On 12/06/2016 02:19 AM, Scott Otterson wrote:
> I understand that orgmode is literally copying Latex; I am suggesting
> that orgmode should do more than copy.

Org only literally copies some expressions. The expression "A_B_C" is
not a LaTeX expression and it cannot be literally copied when exporting
to LaTeX. Instead, Org must export "A_B_C" to a LaTeX expression. In
this case, Org exports to "A\(_{\text{B}}_{\text{C}}\)" because in LaTeX
the underscore character is used for subscripts in mathematical
expressions. The exported string is not a valid LaTeX expression because
the original string is incomplete. If you don't want Org LaTeX export to
export the underscore character to a subscript, the you need to tell Org
you want it to do that with additional markup such as "~A_B_C~" or
something similar. As someone who relies on Org's LaTeX exporting
capability, I would not be in favor of changing how Org exports a
non-LaTeX expression containing underscores.

> 
> This is for the reasons I gave: fixing problems export problems for one
> export type (usually Latex) breaks it for other export types; new users,
> etc. ...). 

I don't think it is possible to have a markup scheme that enables one to
perfectly export every document to every possible format. For instance,
LaTeX and HTML were designed to meet very different needs. The
intersection of these two markup languages is far from the union of
them. Org does a fantastic job of taking care of the intersection, and
it also includes wonderful tools that allow users to deal with instances
outside of the intersection.

I generally avoid exporting an Org file to both LaTeX and HTML (the two
export formats I use) unless the file is very basic. It is too much work
to make a file that exports to both formats well. But I can't blame Org
for that problem. It is the differing natures and purposes of LaTeX and
HTML that cause the trouble.

I'm not saying that Org export is as good as it can be. Certain aspects
of the default LaTeX export could be improved to help new users in my
opinion, but I haven't had the time to suggest those improvements.

I sympathize with the problems some new users may face when exporting an
Org file to various formats. I have friends who moved to Org but had
trouble with PDF export because they had no knowledge of LaTeX or
understanding of TeX distributions. Installing Emacs was a challenge for
some of my friends. The only solution I've been able to devise is to
provide as much help as possible and to encourage my friends to
subscribe to this mailing list.

Scott Randby

> 
> What do you think of those points?
> 
> On Tue, Dec 6, 2016 at 2:33 AM, Scott Randby <sran...@gmail.com
> <mailto:sran...@gmail.com>> wrote:
> 
> On 12/05/2016 03:36 AM, Scott Otterson wrote:
> > Yes, there's a general question of how to escape multiple underscores.
> >
> > But there's a bigger question too:  Should an org-doc that runs fine in
> > other exporters cause a messy-to-debug crash when it's exported to
> > Latex?  Is that the Pandoc-like behavior that orgmode seems to be aiming
> > for?
> >
> > I love org-mode.  For years, I've used it as a project organizer,
> > brainstorming tool, and extremely versatile notekeeper.  I've already
> > got a big investment in it, so I'll spend the time to track down this
> > kind of problem.
> >
> > But I'd guess that such unexpected Latex crashes have driven new users
> > back to Word or whatever.
> 
> I don't think you can blame Org for the crashes you've experienced. Org
> exports the string "a_variable_deleteThisAndItWorks" to
> "a\(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)" which is not a
> valid LaTeX expression. This invalid output is not the fault of Org, it
> is the fault of the input string. Since there are different ways of
> interpreting "a_variable_deleteThisAndItWorks," you have to tell Org
> which interpretation you want it to make when you export to LaTeX. This
> means additional markup of the string is required.
> 
> That the exported LaTeX file crashes your installation of pdfTeX (or
> whatever TeX engine you use) when you process it is not the fault of
> Org. The exported LaTeX file contains an invalid LaTeX expression that
> came from a ambiguous string, so pdfTeX shows an error when processing
> the LaTeX file. Using additional markup of the string so that Org
> exports it as a valid LaTeX expression is the solution to the problem.
> 
> Scott Randby
> 
> 



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-05 Thread Scott Randby
On 12/05/2016 03:36 AM, Scott Otterson wrote:
> Yes, there's a general question of how to escape multiple underscores.  
> 
> But there's a bigger question too:  Should an org-doc that runs fine in
> other exporters cause a messy-to-debug crash when it's exported to
> Latex?  Is that the Pandoc-like behavior that orgmode seems to be aiming
> for?
> 
> I love org-mode.  For years, I've used it as a project organizer,
> brainstorming tool, and extremely versatile notekeeper.  I've already
> got a big investment in it, so I'll spend the time to track down this
> kind of problem.  
> 
> But I'd guess that such unexpected Latex crashes have driven new users
> back to Word or whatever.

I don't think you can blame Org for the crashes you've experienced. Org
exports the string "a_variable_deleteThisAndItWorks" to
"a\(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)" which is not a
valid LaTeX expression. This invalid output is not the fault of Org, it
is the fault of the input string. Since there are different ways of
interpreting "a_variable_deleteThisAndItWorks," you have to tell Org
which interpretation you want it to make when you export to LaTeX. This
means additional markup of the string is required.

That the exported LaTeX file crashes your installation of pdfTeX (or
whatever TeX engine you use) when you process it is not the fault of
Org. The exported LaTeX file contains an invalid LaTeX expression that
came from a ambiguous string, so pdfTeX shows an error when processing
the LaTeX file. Using additional markup of the string so that Org
exports it as a valid LaTeX expression is the solution to the problem.

Scott Randby



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-04 Thread Scott Randby
On 12/04/2016 05:13 AM, Nicolas Goaziou wrote:
> Scott Randby <sran...@gmail.com> writes:
> 
>> There is an interesting issue here. I sometimes want to use ~ in a code
>> snippet, so I can't use ~code snippet~. Yet,
> 
> Indeed, this was discussed in this ML. We need some escape character in
> Org. A general escape character is a bit ambitious, and not necessarily
> useful, but we could introduce one specifically for verbatim and code
> markers, much like in macros and verbatim blocks, e.g.
> 
>   ~some\~code\=with special\\ characters~
> 
> There is a design decision involved: what character can be escaped? It
> could be anything, or limit to "~" for code and "=" for verbatim
> markers. For example macros limit escape-able characters to "," and "\".
> This makes the contents easier to read, but the rule is inconsistent.
> 
> Thoughts?

I don't think I have a good enough technical understanding of the issue
to provide constructive thoughts. I've adapted to using Org markup when
it works and specifying literal LaTeX when necessary. I don't need to
specify literal LaTeX very often anyway.

>> I've wondered why \verb isn't exported correctly without specifying it
>> as literal LaTeX,
> 
> It's because Org recognize LaTeX commands only if they are followed by
> a blank character, the end of buffer, or "{}", which is not the case
> with \verb@...@.

Now I understand. Thanks.

Scott



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Scott Randby
On 12/03/2016 05:31 PM, Charles C. Berry wrote:
> On Sat, 3 Dec 2016, Scott Randby wrote:
> 
>> On 12/03/2016 02:40 PM, Scott Otterson wrote:
>>> When an org file contains a string with more than one underscore, the
>>> orgmode export result will crash latex (example attached).   On the
>>> other hand, the org html export does finish successfully, and while
>>> result is odd, it's odd in a way that makes the problem visible and easy
>>> to identify.
>>
>> I exported your file using LaTeX export without trouble. The result does
>> look odd, but that is because the string you gave is missing the braces
>> needed to make it export properly. The output messages warn that the
>> string contains a double subscript, so the problem is with the string
>> and not Org's LaTeX export.
>>
>> Your string: a_variable_deleteThisAndItWorks
>>
>> Properly formed string: a_{variable_{deleteThisAndItWorks}}
> 
> I don't think the OP wanted double subscripts.  If the OP really wanted
> "heavily underscored code snippets", something like:
> 
> Code snippet:  ~a_variable_deleteThisAndItWorks~
> 
> seems like the way to go.

It seems I misunderstood the original question.

There is an interesting issue here. I sometimes want to use ~ in a code
snippet, so I can't use ~code snippet~. Yet,

Org code: \verb@a_variable_deleteThisAndItWorks@

Exported LaTeX: \verb@a\(_{\text{variable}}_{\text{deleteThisAndItWorks}}\)@

The exported LaTeX is not what we want. Instead,

Org code: #+latex:\verb@a_variable_deleteThisAndItWorks@

Alternative: @@latex:\verb@a_variable_deleteThisAndItWorks@@@

Exported LaTeX: \verb@a_variable_deleteThisAndItWorks@

I've wondered why \verb isn't exported correctly without specifying it
as literal LaTeX, but I don't have the expertise to be able to determine
why.

Scott



Re: [O] Multiple underscores crash org latex export; other exporters survive

2016-12-03 Thread Scott Randby
On 12/03/2016 02:40 PM, Scott Otterson wrote:
> When an org file contains a string with more than one underscore, the
> orgmode export result will crash latex (example attached).   On the
> other hand, the org html export does finish successfully, and while
> result is odd, it's odd in a way that makes the problem visible and easy
> to identify.

I exported your file using LaTeX export without trouble. The result does
look odd, but that is because the string you gave is missing the braces
needed to make it export properly. The output messages warn that the
string contains a double subscript, so the problem is with the string
and not Org's LaTeX export.

Your string: a_variable_deleteThisAndItWorks

Properly formed string: a_{variable_{deleteThisAndItWorks}}

Scott Randby

> 
> Many people have orgfiles with heavily underscored code snippets buried
> deep inside.  To them, the latex crashes are probably as mysterious as
> they were to me.  So I'd like to suggest that the org latex exporter
> adopt something like the org html exporter behavior.
> 
> 



Re: [O] How are people handling their calendars?

2016-10-25 Thread Scott Randby
On 10/25/2016 05:59 AM, Eric S Fraga wrote:
> On Tuesday, 25 Oct 2016 at 00:49, Scott Randby wrote:
>> Since I lack the knowledge that appears to be needed to get calendar
>> syncing to work, my need for a calendar on my phone is limited, and it
>> pains me greatly to make any changes to my calendar outside of org, I
>> have a very primitive system for transferring my calendar to my phone.
>>
>> Whenever I make a change to my calendar on my laptop, I open the agenda
>> to show the month which contains the change, export that month to an
>> html file (with a name like 2016-10.html), and upload the html file to
>
> Curiosity: how do you export the agenda month view to HTML?

I'll just give all the commands even though some of them are known to
all org users. This is a totally manual process because I don't have
time to learn how to automate it.

1. Open the agenda: C-c a

2. Switch to month view: v m

3. Navigate to the desired month. Initially, I had to export every
month during which I had stuff on my calendar, but now I just update a
month when I make a change.

4. Export to html: C-x C-w

To export to html, you need to use the .html extension when you name
the file. You can export to other file formats, but the html export is
really nice. See the Exporting Agenda Views section of the manual for
more information.

Scott



Re: [O] How are people handling their calendars?

2016-10-24 Thread Scott Randby
On 10/23/2016 07:36 PM, Tristan Strange wrote:
> The world of calendars is a murky one isn't it? After a couple of weeks
> of fiddling around I finally decided I'd keep my TODO's, deadlines, etc
> in a TODO.org and have org-gcal fetch (note not synchronise) my calendar
> from Google.
> 
> That way I do all my daily TODO mangling in orgmode, edit calendar when
> on Desktop or Mobile and pull results in to org agenda for easier viewing.
> 
> So how do you lot handle your calendars?

Since I lack the knowledge that appears to be needed to get calendar
syncing to work, my need for a calendar on my phone is limited, and it
pains me greatly to make any changes to my calendar outside of org, I
have a very primitive system for transferring my calendar to my phone.

Whenever I make a change to my calendar on my laptop, I open the agenda
to show the month which contains the change, export that month to an
html file (with a name like 2016-10.html), and upload the html file to
my phone via Bluetooth. The html file looks good when I open it on my
Android phone and I don't have to carry my laptop everywhere.

At first, I used Dropbox instead of transferring via Bluetooth, but the
Android Dropbox app has permission to take over your phone and that
worried me (I have all the Google apps except one turned off on my
phone). I like the fact that I don't have to connect to the Internet to
transfer the calendar to the phone.

Yes, this system is embarrassingly simple and it has no features that
many would want to have, but I don't need those features. All I need is
to be able to look at my calendar when I don't have my laptop, and this
system allows me to do that.

Scott Randby

> 
> Do any of you have a working two way set up with CalDAV or anything?
> 
> Cheers,
> Tristan



Re: [O] Request: change SVG embedding in exported HTML

2016-07-24 Thread Scott Randby
On 07/24/2016 12:50 PM, Christian Moe wrote:
> 
> I disagree. A switch to  for SVG export (1) is not necessary for
> scaling, and (2) would disable other useful features that are presently
> available out of the box.
> 
> (1) It *is* a bit easier to scale SVG with  in HTML. But you *can*
> scale SVG with  by putting the  in a container  and
> scaling the container width and height.
> 
> This is actually simple with Org, which natively wraps the  in a
>  tag, and passes any attributes to the latter.  To
> scale an arbitrary image.svg e.g. to 100px width, try:
> 
>   #+attr_html: :width 100px
>   [[path/to/image.svg]]

It has been awhile since I tried to scale an SVG image using Org markup,
but I recall trying what you suggest and it didn't work. I will try
again when I have some time and report the results to this list.

> 
> Alternatively, you can use #+attr_html to set an id on the figure ,
> and style it with CSS.
> 
> (2) You can also do other things with  that you cannot with
> , like manipulating the SVG with Javascript and styling it with an
> external stylesheet (linked from the SVG, not the web page).
> 
> Raw SVG in the exported HTML is a third option that is very plain-texty
> and supports all the mentioned features, but it tends to bloat files,
> and doesn't encourage caching and re-using of an image across web pages.
> 
> To sum up,  makes the most common task simpler (scaling the
> graphic), but at the cost of features such as interactive animated
> graphics, which are possible with  or SVG islands.

I do remember a discussion in the past about this issue.

Scott



Re: [O] Request: change SVG embedding in exported HTML

2016-07-23 Thread Scott Randby
On 07/23/2016 08:53 AM, Jarmo Hurri wrote:
> 
> Greetings.
> 
> Request: An SVG file embedded in exported HTML should be embedded using
> the  tag instead of .

I second this request. Right now, I use HTML code for SVG images, and
I'd rather use Org markup instead.

Scott Randby

> 
> Short reasoning: The displayed size of the SVG image can not be
> controlled from outside the SVG file when embedded using , but
> size can be controlled when embedded using .
> 
> Here is the longer explanation.
> 
> The HTML exporter currently embeds SVG as an object. Here is an example
> of the HTML produced by the exporter:
> 
> 
> 
> Sorry, your browser does not support SVG.
> 
> 
> 
> I have in the past couple of days found out that there is a serious
> disadvantage to this: the displayed size of the resulting web page image
> can not be controlled in any reasonable manner; see, for example
> 
> https://css-tricks.com/scale-svg/
> 
> However, the size _can_ be controlled if embedding is done with an
> . For example, the exported code above could be
> 
> 
> 
> 
> 
> I have included 'class="org-svg"' above so that embedded SVG images can
> then be distinguished from other images in CSS files. For example, the
> following CSS then sets the width of SVG images to be 80% of the width
> of the viewport.
> 
> .org-svg
> {
> width: 80vw;
> }
> 
> Current embedding using  has a nice textual fallback property
> for browsers not capable of SVG (I have no idea if this support is
> necessary nowadays). If need be, such fallback could also be added to
> embedding using . See
> 
> http://www.w3schools.com/jsref/event_onerror.asp
> 
> Jarmo
> 
> 
> 



Re: [O] Tuning the layout of published html

2016-07-19 Thread Scott Randby

On 07/19/2016 09:59 AM, Robert Klein wrote:

You can use the preamble and postamble features for this.


This solves a problem that has been bugging me for some time. All I need 
to do is use the preamble to solve my problem. Why didn't I think of 
that sooner?


Scott Randby



Re: [O] Tuning the layout of published html

2016-07-19 Thread Scott Randby

On 07/19/2016 10:27 AM, Jarmo Hurri wrote:



This is where I don't know what exactly is going to happen. Org writes
quite a bit of CSS in each exported HTML file. If I add in, say, a
vertical navigation bar, how am I going to control its placement with
respect to everything else that is already in the CSS?

I can start my trial and error -period...


If you put the following line in your Org file, then the exported HTML 
will use only your CSS.


#+HTML_HEAD: 

Scott



Re: [O] Tuning the layout of published html

2016-07-19 Thread Scott Randby

On 07/19/2016 09:09 AM, Jarmo Hurri wrote:


Greetings.

I am writing teaching material (for programming) using Org. All the
material (text, figures, code, program outputs) are written using Org
and Babel-supported languages. Publishing to html works just fine. What
I would like to do, however, is to add some layout structure to the
produced html.

More specifically, I would like to add, on all pages, a navigation bar
on the left-hand side and a title bar with no functionality on the top
of each page.

What options do I have to accomplish this? Searches led me to "derived
backends," but they sound like an overkill for a task that is this
simple. Or?

Jarmo





I don't know if I can answer your questions, but I used to do something 
similar to what you want using Org and CSS. I had a navigation list at 
the top and a fixed table of contents. There are some disadvantages to 
this setup and I no longer use it.


I still have some pages up which use this setup. You can see these pages 
by clicking on the following link:


  http://srandby.org/ictcm-2014/index.html

To get the navigation list, I had the following at the top of the Org 
file before any headlines (two items are not used in the above page):


#+BEGIN_HTML


  
Home
Lessons
Help
  


#+END_HTML

In the CSS file for the page, I had the following code to style the list:

/* Navigation List Styles Begin */
div #nav {
  position: absolute;
  left: 10px;
  top: 5em;
}

#nav ul {
  margin: 3px 10px 10px 5px;
  list-style: none outside none;
  padding: 0px 0px 0px 0px;
}

#nav ul li {
  margin-right: 4px;
  margin-bottom: 5px;
  float: left;
  margin-top: 20px;
}

#nav a {
  color: white;
  background-color: navy;
  padding: 5px;
  text-decoration: none;
  font-weight: bold;
  border: 5px solid blue;
  border-radius: 10px;
}
/* Navigation List Styles End */

It is easy to place the table of contents generated by Org wherever you 
want it using CSS. Here is to CSS code I used to style the table of 
contents. This code is sloppy.


#table-of-contents {
  font-size: small;
  position: fixed;
  right: 1em;
  top: 0.5em;
  background-image: url(./styleimages/toc-back.jpg);
  border-radius: 10px;
  height: 5em;
  max-height: 15%;
  width: 18em;
  overflow: auto;
  z-index: 1;
  border: 5px solid seagreen;
}
#table-of-contents h2 {
  font-size: medium;
  color: springgreen;
  font-style: oblique;
  text-align: center;
  margin-right: 15px;*/
  margin-top: 5px;
  margin-bottom: 5px;
  border-bottom: 0px solid silver;
  padding-top: 0px;
  padding-left: 0px;
  margin-left: 0px;
  margin-right: 0px;
}
#table-of-contents ul {
  color: aqua;
  list-style-type: disc;
  float: none;
  margin-left: 0px;
  margin-bottom: 0px;
}
#table-of-contents li {
  margin-bottom: 0px;
}
#table-of-contents a {
  color: white;
  font-weight: bold;
}
#table-of-contents #text-table-of-contents {
  display: block;
  text-align: left;
  padding-left: 0px;
  padding-right: 0px;
  margin-left: 10px;
  margin-right: 5px;
  margin-bottom: 10px;
}



[O] [OT] Emacs on Android

2016-04-10 Thread Scott Randby
Since there have been discussions on this list about using Org on an 
Android phone, I thought some might be interested in this: 
http://endlessparentheses.com/running-emacs-on-android.html


Scott Randby

sran...@gmail.com

http://srandby.org/

PGP key ID: 0xF2D38A63

Key server: http://pool.sks-keyservers.net/

Key fingerprint: 5418 123E DCD3 7DA0 1770  0BDE 301E E657 F2D3 8A63



Re: [O] Default html export css styles?

2015-09-01 Thread Scott Randby

On 09/01/2015 11:52 AM, Lawrence Bottorff wrote:

When I do an HTML export of my org buffer, it produces a default css
section in the head:


Re: [O] Inline Images Export Bug

2015-08-26 Thread Scott Randby

On 08/26/2015 02:06 PM, Rasmus wrote:


If you can provide a (html) solution that takes into consideration the
issues mentioned on SO that would of course be great.  In the age of d3.js
interactivity COULD be an issue (I would always load interactive svgs
via JS, but I'm a pretty naïve svg user so I don't know what's possible).


My SVGs aren't interactive. I have no idea how to deal with interactive 
SVGs.


Scott



Rasmus





Re: [O] Inline Images Export Bug

2015-08-26 Thread Scott Randby

On 08/26/2015 02:06 PM, Rasmus wrote:

Hi Scott,

Thanks for your bug report.

Scott Randby sran...@gmail.com writes:


When did Org start using the object tag for inline image HTML
export?


You should use git-blame to find out if you care.


I don't use the git repository for Org, so I'll just have to leave that 
question unanswered.






The problems with the second bit of exported code is that it doesn't
scale the image to fit the block with 50% width (only a small part of
the image is visible), and you when you right click on the image, you
can't view it, save it or anything.

[...]

Clearly, Org 8.3 is not using an img tag when exporting SVG images
to HTML, something which is a major issue for me. It essentially makes
Org unusable for HTML export. I really would appreciate a fix for this
bug.


I'm not sure it's a bug.  It's IS clearly a quite complicated issue, e.g.:

 
http://stackoverflow.com/questions/4476526/do-i-use-img-object-or-embed-for-svg-files

Perhaps it should be configurable, perhaps even as a default and a
per-image basis (via #+attr_html).

If you can provide a (html) solution that takes into consideration the
issues mentioned on SO that would of course be great.  In the age of d3.js
interactivity COULD be an issue (I would always load interactive svgs
via JS, but I'm a pretty naïve svg user so I don't know what's possible).


I don't really have the technical knowledge required to address the 
issue. The configuration option is the best option in my view. One 
option allows SVGs to be handled the old way and the other the new way. 
Perhaps something like this:


#+ATTR_HTML: :svg img

or

#+ATTR_HTML: :svg object

In my view, the default should be img, but I intend for my pages to be 
viewed by browsers which support SVG images. I direct my students to 
those browsers. Also, the W3C draft document states that support for SVG 
via the img tag is the desired solution.


I will experiment a bit to see if I can get the object tag solution 
working for me. But given the short amount of time I have to get my 
pages up (by Sunday), I will probably put the desired HTML code into the 
Org file directly until the issue is resolved.


Scott



[O] Inline Images Export Bug

2015-08-26 Thread Scott Randby
When did Org start using the object tag for inline image HTML export? 
This is a horrible bug.


I use many SVG images in my documents. Here is a sample bit of Org code:

#+ATTR_HTML: :width 50% :style display: block; margin-right: auto; 
margin-left: auto;

[[./graphic-1.svg]]

I used to get this when exporting:

img src=./graphic-1.svg alt=graphic-1.svg width=50% 
style=display: block; margin-right: auto; margin-left: auto; /


Now I get this:

object type=image/svg+xml data=./graphic-1.svg width=50% 
style=display: block; margin-right: auto; margin-left: auto;Sorry, 
your browser does not support SVG./object


The problems with the second bit of exported code is that it doesn't 
scale the image to fit the block with 50% width (only a small part of 
the image is visible), and you when you right click on the image, you 
can't view it, save it or anything.


The documentation for 8.3.1 says this about org-html-inline-images:

   Non-nil means inline images into exported HTML pages.  This is done
   using an img tag.  When nil, an anchor with href is used to link
   to the image.

Clearly, Org 8.3 is not using an img tag when exporting SVG images to 
HTML, something which is a major issue for me. It essentially makes Org 
unusable for HTML export. I really would appreciate a fix for this bug.


Scott Randby



Re: [O] Inline Images Export Bug

2015-08-26 Thread Scott Randby

On 08/26/2015 06:40 PM, Pip Cet wrote:

Okay, I just checked (sorry, had to regenerate the files and that took
some time), and with the current version of Firefox the code I pasted is
unnecessary.

The problem I had with previous Firefox versions is that those decided
on a scale for displaying the SVG that differed from its preferred
resolution, but only if an object tag was used for inclusion; img tags
would use the preferred resolution and everything was fine.

The reason for the pt-to-px arithmetic is that graphviz outputs (or used
to) SVGs with a preferred size specified in pt only, not in px. I'm not
sure, but I think HTML pt and SVG pt don't necessarily agree.

Org mode is generating this tag:

object type=image/svg+xml data=org/op-prec.svg 
Sorry, your browser does not support SVG./object

Which looks okay to me. It's browser support that's the issue.


The problems with the second bit of exported code is that it doesn'tscale the 
image to fit the block with 50% width (only a small part of

the image is visible)

Is it possible you're using an old browser? I'm on Iceweasel (Firefox)
38.1.0. (The bug was there a year or two ago, so by my standards it's a
recent fix that we shouldn't rely on yet.)


I'm using Firefox 40.0. I get the same behavior on Google Chrome 44.0 too.




and you when you right click on the image, youcan't view it, save it or 
anything.


Again, I can, using the This Frame popup menu.


Okay, that works.



But clearly that menu name is misleading and confusing in this case! And
I think that is reason enough to stick with the img tag for now: Firefox
users can't save the image unless they telepathically know that frame
means image. This Object might be okay, I guess.

My suggestion is to use img for images; that also appears to be the
consensus on Stack Overflow. Let's find a good syntax for including
interactive objects in Org mode, though.


This sounds reasonable.



On Wed, Aug 26, 2015 at 9:56 PM, Rasmus ras...@gmx.us
mailto:ras...@gmx.us wrote:

Hi,

Pip Cet pip...@gmail.com mailto:pip...@gmail.com writes:

 let found = false;
 for (let el of svgdoc.getElementsByTagName(svg)) {
 let width = el.getAttribute(width);
 let height = el.getAttribute(height);

 let width_pt = width.match(/^([0-9]*)pt$/)[1];
 let height_pt = height.match(/^([0-9]*)pt$/)[1];

 let width_px = 5/4 * width_pt;
 let height_px = 5/4 * height_pt;

 object.setAttribute(width, width_px + px);
 object.setAttribute(height, height_px + px);
 found = true;

So are you saying that Org is changing the size from px to pt?  Can you
try to explain the problem you observe in words?

Thanks,
Rasmus

--
The second rule of Fight Club is: You do not talk about Fight Club






Re: [O] Inline Images Export Bug

2015-08-26 Thread Scott Randby

On 08/26/2015 06:35 PM, Rasmus wrote:

Scott Randby sran...@gmail.com writes:


I will experiment a bit to see if I can get the object tag solution
working for me. But given the short amount of time I have to get my
pages up (by Sunday), I will probably put the desired HTML code into
the Org file directly until the issue is resolved.


Since time is of essence and you don't use the development version, would
you be able to use org 8.2.10?  It's bundled with Emacs 24.5.


I can stay with 8.3.1. It really isn't a problem for me to put the 
needed HTML code directly into the Org file. I'll just do something like 
this:



#+BEGIN_HTML
p
img src=./graphic-1.svg alt=Cannot load SVG file. width=75% 
style=display: block; margin-right: auto; margin-left: auto; /

/p
#+END_HTML

Scott



Re: [O] HTML Export, CSS Styling

2015-08-22 Thread Scott Randby

On 08/22/2015 12:13 AM, David A. Gershman wrote:

I've been reading all evening about HTML exporting, style sheets, etc.
Maybe I've been inundated with information, but I haven't been able to
determine an answer to my question: can text in the middle of a
paragraph by styled?  For example:

* Heading 1
This is the paragraph body that will allow *bold*
or /italic/ or even _underline_, but what if I want
only THIS word to have styling?  Such as making it
red to indicate importance?


I'm working on lecture notes and I was planning on a span/span tag
so I can set the color and, ultimately, a 'title' attribute for a
definition when hovered.  However, I'm only finding the #+HTML feature
within org which seems to need to be on a line of its own.  Howver, the
export would convert:

   This is the paragraph body that will allow *bold*
or /italic/ or even _underline_, but what if I want
only
 #+HTML: span.THIS/span
word to have...

to 3 different paragraphs:

This is the paragraph body that will allow *bold*
or /italic/ or even _underline_, but what if I want
only
THIS
word to have...

Am I missing something or is in-line styling just not a feature within
Org (yet?)?


I use inline styling all the time with code like this: @@html:i 
id=coninterest/i@@


I set the properties of con in a stylesheet, but they can also be put 
into the org file directly.


Scott Randby



Thanks!

--David






Re: [O] Stable releases

2015-08-18 Thread Scott Randby

On 08/18/2015 01:36 PM, Bastien wrote:

Hi Scott,

the main reason why 8.3 was not as stable as it should have been is
that I've been releasing it too quickly, after having been inactive
way too long.

It's kind of a miracle that Org development could continue without an
active official maintainer for so long, and we owe a lot to Nicolas
and other contributors for this.

So all the advice you got is good, but think of 8.3 as a come back
release, with problems that are largely due to me not paying attention
enough to all those small details that make a good release.

The cure is to deliver major releases at a steady pace, and I'm sure
having a release team will help a lot.


I've learned a lot from the advice I've been given, and I'm now better 
equipped to handle updates.




In the meantime, `org-latex-with-hyperref' will be back in 8.3.2 as
I don't see why we needed to remove this option too.


I appreciate this a great deal. It will make my life easier to have this 
variable back in Org.


Scott Randby



Thanks,





Re: [O] 8.3.1 and org-latex-with-hyperref

2015-08-16 Thread Scott Randby

On 08/16/2015 09:36 AM, Bastien Guerry wrote:

Scott Randby sran...@gmail.com writes:


Unfortunately, the \hypersetup{...} generated by org is last one in
the preamble when an org document is exported.


Is there anything to fix here?


Yes in my opinion. Return the org-latex-with hyperref variable to Org.

Scott







Re: [O] Stable releases

2015-08-13 Thread Scott Randby

On 08/13/2015 05:32 AM, Eric S Fraga wrote:

On Wednesday, 12 Aug 2015 at 15:06, Scott Randby wrote:

[...]


If there are no stable releases, then maybe the web site should not
say: Stable version 8.3.1 (Aug. 2015). Perhaps stable should just
be eliminated from that phrase. Certainly, the use of stable
confused me.


I guess it's a matter of interpretation.  The word stable can mean
different things.  In this context, it is the opposite of labile and
specifically in comparison with the continually changing git version.

Stable does not unfortunately mean bug-free nor does it mean anything
with respect to the previous stable version.


I never expect any version to be bug free.







Re: [O] Stable releases

2015-08-12 Thread Scott Randby

On 08/11/2015 04:56 PM, Rasmus wrote:

Hi,

The definition of a major release is in README_maintainer:

 Main releases are made whenever Org is in a state where the feature
 set is consistent and we feel that the features that are implemented
 is something we want to support in the future.

AFAIK, Org 8.2.10 ships with Emacs 24.5 and you can use that.

I agree that the changes you mentioned should be in ORG-NEWS.

You can help by testing the master version against your files once in a
while and let us know of breakages.


This is very helpful. Thank you.



Rasmus





Re: [O] Stable releases

2015-08-12 Thread Scott Randby

On 08/12/2015 09:39 AM, Nicolas Goaziou wrote:

Hello,

Scott Randby sran...@gmail.com writes:


When I started using 8.3, I discovered that the behavior of commented
headlines had been changed---a change with which I disagree, a change
I could not find in the release notes, and one which forces me to
alter a huge number of files. It seems I missed the discussion about
commented headlines on the mailing list. This is due to my limited
knowledge of elisp and programming in general, a gap which makes it
difficult for me to follow the more technical discussions on the
mailing list. While it has been explained to me that the change is
a feature, I consider it to be a serious bug since it is not backwards
compatible.


I think this change is good. COMMENT status of headlines was muddy
before. The only information about them was the following excerpt (from
Org 8.2.9's manual)

   Also entire subtrees starting with the word ‘COMMENT’ will never be
   exported.

which can mean many things. You extrapolated this definition to one of
its possible meanings, but your definition, AFAIU, was :noexport:
tags's.

Now there is a clearer definition of a COMMENT headline, and a clear
distinction between COMMENT and :noexport:.

Note that you don't have to alter any of your files. The following
function can do it for you on the fly, before each export. You can also
used it to effectively alter your files automatically for you.

   (defun my-comment-to-noexport (backend)
 (interactive)
 (goto-char (point-min))
 (while (re-search-forward ^\\*+.*\\( COMMENT\\) nil t)
   (when (save-match-data (org-in-commented-heading-p t))
 (replace-match  nil nil nil 1)
 (org-set-tags-to (cons noexport (org-get-tags))

   (add-hook 'org-export-before-processing-hook #'my-comment-to-noexport)


This function won't work for me because I use COMMENT in two different 
ways. I didn't extrapolate the meaning of COMMENT, I copied its various 
uses from files that other people have posted in various places. It is 
more flexible for COMMENT to mean various things than it is for it to be 
pigeonholed to one narrow function. COMMENT wasn't broken until 8.3.




I admit it could have been notified in ORG-NEWS.


Another issue I had with 8.3 is the deletion of the
org-latex-with-hyperref variable, something I could not find in the
release notes (maybe I missed it). I understand that having Org insert
\hypersetup{...} details is the most desirable situation, but I fail
to see the harm in keeping org-latex-with-hyperref for those of us who
needed it in the past. Yes, I figured out a fix, but this is a fix
that forces me to stick with an outmoded way of doing things, and so
I consider this deletion to be a bug.


I'm not sure to understand. What is wrong with setting
`org-latex-hyperref-template' to the empty string?


I don't understand what is wrong with keeping org-latex-with-hyperref. 
It is easy enough for me to set the variable locally for old files while 
I can use the default \hypersetup{...} for new files. Making 
org-latex-hyperref-template an empty string means I cannot use the 
built-in default template.




This change was introduced in Feb 2014. It is a step forward since we
move from an opt-in/opt-out to a full customizable template.


I'm not sure why I didn't notice a problem before 8.3. Perhaps it is due 
to my irregular updating.




I overlooked the fact that this replacement wasn't signaled in ORG-NEWS,
tho. I will try to be more careful for next release.


I do understand that all software has bugs, and that everyone working
on Org is doing so voluntarily (thank you so much for your wonderful
work). But I was very surprised to find that the evaluation of table
formulas didn't work in 8.3.1. I could see something like this
happening in the development version, but it is somewhat mysterious to
me how such a bug could make its way into a stable release.


I introduced these changes a short time (three days) before release.
I made an announcement[fn:1] in order to warn there could be some
hiccups in that area. It may be obnoxious for you, but no bug was
reported before release.


I don't consider the bug to be obnoxious, I'm just trying to understand 
what is meant by a stable release.




Another example is the recent columns view bug report[fn:2]. The faulty
commit was pushed 2 months ago. Yet no one during development phase
complained about column view being broken. Even a feature freeze period
wouldn't have helped in that case.

You can't really avoid small glitches after a release.


Yes, I understand.




I guess what I want to know, and maybe there is no answer, is how long
should I wait before upgrading to a stable release? Org is by far the
most important piece of software I use (I hate it when I can't use
Org), and bugs (which I know can't be avoided) make it hard, even
impossible, for me to get my real work done. If there is a way for me
to minimize encountering bugs, I will appreciate

Re: [O] Stable releases

2015-08-12 Thread Scott Randby

On 08/12/2015 01:37 PM, Achim Gratz wrote:

Scott Randby writes:

While I've used Org's development version in the past, I stopped doing
that due to my failure to learn how to use git (no time) and other
issues. Now, I only use the stable releases. But the latest 8.3
release doesn't seem so stable to me, so I'd like some clarification
about what the Org maintainers mean by a stable release. Perhaps this
is too vague, so let me explain a bit.


There are no stable releases, but major and minor ones (see
README_maintainer).  Major releases are developed in the master branch
and include backwards-incompatible changes as well as new and removed
features.  Minor releases are made from the maint branch and are kept
backwards compatible to the last major release (only bug fixes, no new
features, no feature removal).


If there are no stable releases, then maybe the web site should not say: 
Stable version 8.3.1 (Aug. 2015). Perhaps stable should just be 
eliminated from that phrase. Certainly, the use of stable confused me.


Scott



Re: [O] [OFF TOPIC] almost giving up on emacs email..looking for advice?

2015-08-11 Thread Scott Randby

On 08/11/2015 10:16 AM, Peter Davis wrote:


One of the persistent frustrations for me with Thunderbird is that
it still, even years after the problem was reported, can't get the
unread counts correct for various folders all the time. It
frequently shows unread counts for folders that have no unread
messages, and vice versa.


I know this is way off topic, but I've not experienced the unread 
messages bug with Thunderbird (fortunately). This might be due to the 
fact that I use POP instead of IMAP, or perhaps it may be because my 
daily email traffic is rather small (mostly messages from this list). My 
biggest beef with Thunderbird is that it doesn't follow the preferences 
I've set for news feeds.


Scott



Re: [O] [OFF TOPIC] almost giving up on emacs email..looking for advice?

2015-08-11 Thread Scott Randby

On 08/11/2015 08:23 AM, Peter Davis wrote:


2) I need a decent editor for replies. I have not found a
browser-based client that has this.


For me, setting up any of the Emacs email clients to work properly with 
my various email tasks is a daunting task. This especially true for my 
work email account which is not a Gmail account. I simply don't have the 
technical knowledge to get everything working, and I don't have the time 
to acquire that technical knowledge.


As a result, I use Thunderbird for all of my email and feed reading 
tasks. Thunderbird is trivial for me to set up, it is very easy to use, 
and I can still use Emacs for writing and editing email (as I'm doing 
now) with the External Editor add-on (http://globs.org/).


Scott Randby



3) To bring this somewhat back on topic, I've recently discovered
org capture, and I love the fact that I can capture a note with a
link to a specific email message.  That last feature alone is reason
enough for me.  FWIW, I'm on a Mac, and I generally use Gnu emacs
for editing, programming, etc., and use Aquamacs for running
gnus. This avoids any latency problems, etc.

-pd







[O] Stable releases

2015-08-11 Thread Scott Randby
While I've used Org's development version in the past, I stopped doing 
that due to my failure to learn how to use git (no time) and other 
issues. Now, I only use the stable releases. But the latest 8.3 release 
doesn't seem so stable to me, so I'd like some clarification about what 
the Org maintainers mean by a stable release. Perhaps this is too vague, 
so let me explain a bit.


Normally, I wait many months before upgrading Org to a new stable 
release, but when 8.3 was released, I upgraded right away (from 8.2.10) 
since I have a new machine on which I installed Emacs 24.5. I read 
through the release notes for anything that might give me problems and 
didn't see anything.


When I started using 8.3, I discovered that the behavior of commented 
headlines had been changed---a change with which I disagree, a change I 
could not find in the release notes, and one which forces me to alter a 
huge number of files. It seems I missed the discussion about commented 
headlines on the mailing list. This is due to my limited knowledge of 
elisp and programming in general, a gap which makes it difficult for me 
to follow the more technical discussions on the mailing list. While it 
has been explained to me that the change is a feature, I consider it to 
be a serious bug since it is not backwards compatible.


Another issue I had with 8.3 is the deletion of the 
org-latex-with-hyperref variable, something I could not find in the 
release notes (maybe I missed it). I understand that having Org insert 
\hypersetup{...} details is the most desirable situation, but I fail to 
see the harm in keeping org-latex-with-hyperref for those of us who 
needed it in the past. Yes, I figured out a fix, but this is a fix that 
forces me to stick with an outmoded way of doing things, and so I 
consider this deletion to be a bug.


I do understand that all software has bugs, and that everyone working on 
Org is doing so voluntarily (thank you so much for your wonderful work). 
But I was very surprised to find that the evaluation of table formulas 
didn't work in 8.3.1. I could see something like this happening in the 
development version, but it is somewhat mysterious to me how such a bug 
could make its way into a stable release.


I guess what I want to know, and maybe there is no answer, is how long 
should I wait before upgrading to a stable release? Org is by far the 
most important piece of software I use (I hate it when I can't use Org), 
and bugs (which I know can't be avoided) make it hard, even impossible, 
for me to get my real work done. If there is a way for me to minimize 
encountering bugs, I will appreciate a description of that way.


Scott Randby



Re: [O] 8.3.1 and org-latex-with-hyperref

2015-08-09 Thread Scott Randby

On 08/09/2015 03:54 AM, Suvayu Ali wrote:

On Sat, Aug 08, 2015 at 03:04:52PM -0400, Scott Randby wrote:

On 08/08/2015 02:50 PM, Rasmus wrote:

Scott Randby sran...@gmail.com writes:


Sorry for the noise, I figured out how to prevent the automatic
insertion of \hypersetup{...} by deleting the settings for
org-latex-hyperref-template


I'm curious to know what you are missing in org-latex-hyperref-template?
What do you need in order to use the provided method?


Nothing is missing. I had difficulties with the default \hypersetup{...}
with an old version of org, and my habit became to use my own
\hypersetup{...} instead. Since I now have a huge number of documents with
my own setup, it isn't worth it to go and change all of them.


If I understand hyperref correctly, I think it is okay to have multiple
\hypersetup{...} commands, and the last one has precedence.  So in the
future, you could simply put yours after the one generated by Org.


Unfortunately, the \hypersetup{...} generated by org is last one in the 
preamble when an org document is exported.


Scott



Hope this helps,





  1   2   3   >