Re: Display problems

2019-11-11 Thread Fraga, Eric
On Monday, 11 Nov 2019 at 17:12, Fabrice Popineau wrote:
> - with global-hl-line-mode: the cursor disappears on empty lines,
> quite disturbing in my opinion

Known problem in latest versions of Emacs with extended faces (hl-line
face is one such face).  If you customize the face and remove the
:extend property, everything is fine in terms of the cursor but, of
course, the face will no longer extend across the window.

-- 
Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78



Re: Publish to PDF on Linux: An impossible task?

2019-11-11 Thread Alan Tyree
I don't know if this helps, but I am running Manjaro, using the repository
packages and have no problem with export. The installed texlive packages
are:

texlive-bin
texlive-core
texlive-humanities
texlive-latexextra

I have no problems with either org export or any pandoc conversions.

Cheers,
Alan

On Tue, 12 Nov 2019 at 07:26, Alan E. Davis  wrote:

> Arch linux has a package, aside from any arch directly installed
> individualized texlive packages, that just installs the texlive network
> install script, and directs the user to run the script that is located in
> /opt .
>
> This piece of magic is "texlive-installer",   available in the Arch Users
> Repository (AUR), makes it easier to use texlive from upstream sources, by
> doing the necessary work of handling dependencies.   Debian based distros
> require to install a dummy package to accomplish this, and some kind of
> tweaking may be necessary on other distros.  Once AUR is set up, I have run
> "yay -S texlive-installer" or one may use other AUR helpers.   I think it's
> not possible to install this with pacman.
>
> As far as this problem of the OP, I cannot help.
>
> Alan Davis
>
> On Mon, Nov 11, 2019 at 12:13 PM Jack Kamm  wrote:
>
>> John Hendy  writes:
>>
>> > By "LaTeX" I mean "that which is necessary to have a functioning latex
>> > system." If by lower-level you mean the ecosystem itself vs. compiling
>> > errors, completely agree. Clearly some core components are missing.
>> > For example, the texmf.cnf file is provided by the arch package
>> > texlive-core (assuming a package was used), so that's potentially not
>> > even installed.
>> > - https://www.archlinux.org/packages/extra/any/texlive-core/
>>
>> I would also suggest referring to
>> https://wiki.archlinux.org/index.php/TeX_Live#Installation for the
>> packages to install on Arch. I myself am using Archlinux-packaged TeX
>> Live without any issues. I believe I installed "texlive-most",
>> "texlive-lang", and "biber", which are the 3 main packages/groups
>> recommended by the wiki.
>>
>>
>
> --
> [Fill in the blanks]
>
> The use of corrupt manipulations and blatant rhetorical ploys ...---
> outright lying, flagwaving, personal attacks, setting up phony
> alternatives, misdirection, jargon-mongering, evading key issues, feigning
> disinterested objectivity, willful misunderstanding of other points of
> view---suggests that ... lacks both credibility and evidence.
>
>   Edward Tufte (in context of making presentations)
>
>
>


-- 
Alan L Tyreehttp://www2.austlii.edu.au/~alan


Re: Publish to PDF on Linux: An impossible task?

2019-11-11 Thread Alan E. Davis
Arch linux has a package, aside from any arch directly installed
individualized texlive packages, that just installs the texlive network
install script, and directs the user to run the script that is located in
/opt .

This piece of magic is "texlive-installer",   available in the Arch Users
Repository (AUR), makes it easier to use texlive from upstream sources, by
doing the necessary work of handling dependencies.   Debian based distros
require to install a dummy package to accomplish this, and some kind of
tweaking may be necessary on other distros.  Once AUR is set up, I have run
"yay -S texlive-installer" or one may use other AUR helpers.   I think it's
not possible to install this with pacman.

As far as this problem of the OP, I cannot help.

Alan Davis

On Mon, Nov 11, 2019 at 12:13 PM Jack Kamm  wrote:

> John Hendy  writes:
>
> > By "LaTeX" I mean "that which is necessary to have a functioning latex
> > system." If by lower-level you mean the ecosystem itself vs. compiling
> > errors, completely agree. Clearly some core components are missing.
> > For example, the texmf.cnf file is provided by the arch package
> > texlive-core (assuming a package was used), so that's potentially not
> > even installed.
> > - https://www.archlinux.org/packages/extra/any/texlive-core/
>
> I would also suggest referring to
> https://wiki.archlinux.org/index.php/TeX_Live#Installation for the
> packages to install on Arch. I myself am using Archlinux-packaged TeX
> Live without any issues. I believe I installed "texlive-most",
> "texlive-lang", and "biber", which are the 3 main packages/groups
> recommended by the wiki.
>
>

-- 
[Fill in the blanks]

The use of corrupt manipulations and blatant rhetorical ploys ...---
outright lying, flagwaving, personal attacks, setting up phony
alternatives, misdirection, jargon-mongering, evading key issues, feigning
disinterested objectivity, willful misunderstanding of other points of
view---suggests that ... lacks both credibility and evidence.

  Edward Tufte (in context of making presentations)


Re: Publish to PDF on Linux: An impossible task?

2019-11-11 Thread Jack Kamm
John Hendy  writes:

> By "LaTeX" I mean "that which is necessary to have a functioning latex
> system." If by lower-level you mean the ecosystem itself vs. compiling
> errors, completely agree. Clearly some core components are missing.
> For example, the texmf.cnf file is provided by the arch package
> texlive-core (assuming a package was used), so that's potentially not
> even installed.
> - https://www.archlinux.org/packages/extra/any/texlive-core/

I would also suggest referring to
https://wiki.archlinux.org/index.php/TeX_Live#Installation for the
packages to install on Arch. I myself am using Archlinux-packaged TeX
Live without any issues. I believe I installed "texlive-most",
"texlive-lang", and "biber", which are the 3 main packages/groups
recommended by the wiki.



Bug: dealine-up sorting strategy does not work [9.2.6 (9.2.6-dist @ c:/Users/wlin/.emacs-lisp/org/lisp/)]

2019-11-11 Thread Wanrong Lin

If I call this:

(let ((org-agenda-sorting-strategy '((agenda deadline-up 
(call-interactively 'org-agenda-list))


entries with deadline are at the bottom, after currently scheduled and 
past scheduled items. I think instead entries with deadlines should be 
at the top, before all other items without deadlines. I remember this 
was so before (deadline items at top), but forgot since when this bug 
sneaked in. Thanks for looking into it.


Warren

Set up:

Emacs  : GNU Emacs 26.3 (build 1, x86_64-w64-mingw32)

 of 2019-08-29
Package: Org mode version 9.2.6 (9.2.6-dist @ 
c:/Users/wlin/.emacs-lisp/org/lisp/)






Display problems

2019-11-11 Thread Fabrice Popineau
Hi,
I noticed a couple of problems recently:
- with global-hl-line-mode: the cursor disappears on empty lines, quite
disturbing in my opinion

[image: image.png] [image: image.png]

- with org-hide-emphasis-markers: when at the end of a line as above, if
turned on, then you can't go past the marker and stay on the same line.
Hiding the markers and going right will put you on next line.

All of this with latest Org mode and Emacs 27.0.50 (master).

Hope someone has an insight in these hairy display things.

Regards,

Fabrice


Re: Using Org and eev together - problem with source blocks

2019-11-11 Thread Eduardo Ochs
Perfect!
I've added several mentions to ":results output" to the tutorial:
  http://angg.twu.net/eev-intros/find-org-intro.html
Thanks a lot! =)
  Eduardo
http://angg.twu.net/#eev


On Sun, 10 Nov 2019 at 14:13, Ken Mankoff  wrote:

>
> On 2019-11-10 at 15:36 +01, Eduardo Ochs  wrote...
> > Changing the Python source block to
> >
> > #+BEGIN_SRC python :output results
> >
> > Are you sure that you wrote it correctly?
>
> I'm pretty sure I did not. Try ":results output"
>
>   -k.
>
>


Set heading text from elisp?

2019-11-11 Thread Tim Visher
I'm wondering if there's builtin support for editing components of the
heading? I'm trying to set the text component (i.e. `(nth 4
(org-heading-components))`) without altering anything else and while I can
obviously achieve this with generic elisp I wanted to be sure I had to.

The cleanest elisp I came up with was:

```
(save-excursion
  (org-back-to-heading t)
  (let (case-fold-search)
(looking-at org-complex-heading-regexp)
(replace-match text t t nil 4)
(org-align-tags)))

```

--

In Christ,

Timmy V.

https://blog.twonegatives.com
https://five.sentenc.es


Re: Truncate lines option on file startup

2019-11-11 Thread Dmitrii Korobeinikov
> beware that it can also cause interference.
> Here is the code shall someone need it:

And just not to leave the bad code be, here is a different, better way:

(setq my/org-truncate-option nil)
(eval-after-load 'org
  (lambda ()
(push (list "truncate" 'my/org-truncate-option 1) org-startup-options)
(push (list "notruncate" 'my/org-truncate-option -1)
org-startup-options)))
And in org-mode hook:
(lambda () (case my/org-truncate-option (1 (setq truncate-lines t)) (-1
(setq truncate-lines nil

this avoids interference w/ org-startup-truncated while giving flexibility
to conditionally set truncation in .dir-locals.el and STARTUP will always
work.


пн, 11 нояб. 2019 г. в 14:40, Dmitrii Korobeinikov :

> > # -*- truncate-lines: t; -*-
>
> This works nicely, thank you! Never knew about these.
>
> By the way, I got the STARTUP to function. Turns out it's enough to set
> truncate-lines variable and the change is picked up automatically (docs
> say: "Calls these functions when changed: (#)").
> Here is the code shall someone need it:
>
> (eval-after-load 'org
>   (lambda ()
> (setq org-startup-truncated nil)
> (push (list "truncate" 'truncate-lines t) org-startup-options)
> (push (list "notruncate" 'truncate-lines nil) org-startup-options)))
>
> Note that (setq org-startup-truncated nil) is needed for the notruncate
> option to work. Plus the stuff in the org-mode-hook runs after the STARTUP
> lines, so beware that it can also cause interference.
>
> Thanks all!
>
> вс, 10 нояб. 2019 г. в 18:47, Fraga, Eric :
>
>> On Sunday, 10 Nov 2019 at 18:12, Dmitrii Korobeinikov wrote:
>> > PS if this turns out to be hairy, I can use .dir-locals.el, but the
>> feature
>> > would still be a nice-to-have.
>>
>> You could use file local variables for this, e.g.
>>
>> # Local Variables:
>> # truncate-lines: t
>> # End:
>>
>> at the end of your org file or
>>
>> # -*- truncate-lines: t; -*-
>>
>> as the first line of your file.
>>
>> This is not org specific so I guess there is no real justification for
>> an org variable for this feature.
>>
>> --
>> Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
>>
>


Re: Truncate lines option on file startup

2019-11-11 Thread Dmitrii Korobeinikov
> # -*- truncate-lines: t; -*-

This works nicely, thank you! Never knew about these.

By the way, I got the STARTUP to function. Turns out it's enough to set
truncate-lines variable and the change is picked up automatically (docs
say: "Calls these functions when changed: (#)").
Here is the code shall someone need it:

(eval-after-load 'org
  (lambda ()
(setq org-startup-truncated nil)
(push (list "truncate" 'truncate-lines t) org-startup-options)
(push (list "notruncate" 'truncate-lines nil) org-startup-options)))

Note that (setq org-startup-truncated nil) is needed for the notruncate
option to work. Plus the stuff in the org-mode-hook runs after the STARTUP
lines, so beware that it can also cause interference.

Thanks all!

вс, 10 нояб. 2019 г. в 18:47, Fraga, Eric :

> On Sunday, 10 Nov 2019 at 18:12, Dmitrii Korobeinikov wrote:
> > PS if this turns out to be hairy, I can use .dir-locals.el, but the
> feature
> > would still be a nice-to-have.
>
> You could use file local variables for this, e.g.
>
> # Local Variables:
> # truncate-lines: t
> # End:
>
> at the end of your org file or
>
> # -*- truncate-lines: t; -*-
>
> as the first line of your file.
>
> This is not org specific so I guess there is no real justification for
> an org variable for this feature.
>
> --
> Eric S Fraga via Emacs 27.0.50, Org release_9.2.6-552-g8c5a78
>


Re: Publish to PDF on Linux: An impossible task?

2019-11-11 Thread Diego Zamboni
Hi Nate,

As others have said, your problem sounds more like a broken TeXlive
install, I would highly recommend installing the official distribution.

However, even with a proper working LaTeX install, the output from the
plain LaTeX exporter can be underwhelming, particularly if you want things
to look "pretty". Things like syntax highlighting need to still be
configured manually. If you don't know LaTeX, it can be quite a task.

One shortcut I found (although I don't use this actively) is to export to
reStructuredText using ox-rst (https://github.com/kandread/ox-rst), and
then use Sphinx (http://www.sphinx-doc.org/
) to produce
PDF. Sphinx has a pleasing default theme which includes syntax highlighting
and other nice formatting touches. Sphinx requires some initial setup but
it's not too complicated. Mind you: you still need a working LaTeX install,
as this is what Sphinx uses in the backend.

Hope this helps,
--Diego


On Mon, Nov 11, 2019 at 1:01 AM Nathan Neff  wrote:

> After using org-mode for 10 years, I run for the doorway when
> I even think about trying to convert an org-mode file to PDF.
>
> *** I quiver when I see errors such as:
>
> warning: kpathsea: configuration file texmf.cnf not found in these
> directories:
> /usr/bin:/usr/bin/share/texmf-local/web2c:/usr/bin/share/texmf-dist/web2c:/usr/bin/share/texmf/web2c:/usr/bin/texmf-local/web2c:/usr/bin/texmf-dist/web2c:/usr/bin/texmf/web2c:/usr:/usr/share/texmf-local/web2c:/usr/share/texmf-dist/web2c:/usr/share/texmf/web2c:/usr/texmf-local/web2c:/usr/texmf-dist/web2c:/usr/texmf/web2c://texmf-local/web2c:/://share/texmf-local/web2c://share/texmf-dist/web2c://share/texmf/web2c://texmf-local/web2c://texmf-dist/web2c://texmf/web2c.
> This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/Arch Linux)
> (preloaded format=pdflatex)
>
> kpathsea: Running mktexfmt pdflatex.fmt
> mktexfmt: No such file or directory
> I can't find the format file `pdflatex.fmt'!
>
> *** I run for cover when I read documentation such as:
>
> https://orgmode.org/manual/LaTeX-Export.html#LaTeX-Export
>
> I think people who have been using LaTex and related tools for a long time
> have
> no issue with this (seemingly) insurmountable feat.  However, I am not
> familiar with
> such a myriad of tools and I'm simply looking for the "easiest" way to
> convert/export an org
> mode file to PDF on Linux.
>
> Can anyone point me to some tutorials?  I'm sorry if I miss something
> obvious.
>
> Thanks,
> --Nate
>