Re: emacs-orgmode@gnu.org New Sign-in to your account

2020-09-16 Thread Bastien
The mail above is just spam, please ignore. -- Bastien

[PATCH] org.el: Allow transparent background in latex images

2020-09-16 Thread Roshan Shariff
* lisp/org.el (org-create-formula-image): When `:background' is set to "Transparent" in `org-format-latex-options', do not output a `\pagecolor{...}' command in the generated LaTeX file. This will cause dvisvgm, convert, or dvipng (with the `-bg Transparent' option) to produce png or svg images

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Nick Dokos wrote: > (setq org-latex-tables-centered nil) Yes! :) Thanks :) That took a couple of messages... :O -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal

Re: creating png images in emails with org-mode

2020-09-16 Thread Nick Dokos
Joseph Vidal-Rosset writes: > Hello, > > One more time, my setup to create png image via LaTeX in email in org-mode is > broken. > > I get this error message: > > Creating LaTeX preview... > org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced.  Please > adjust ‘imagemagick’ part of

Re: eldoc recursion error

2020-09-16 Thread Kyle Meyer
James N V Cash writes: > I've attached a patch that addresses the recursion issue with Emacs 28 > and shows eldoc properly with example python. It presumably should act > the same with older versions of Emacs, although I haven't tested. Thanks for the patch! For information about the expected

Re: basic org questions

2020-09-16 Thread Nick Dokos
Emanuel Berg via "General discussions about Org-mode." writes: > Matt Huszagh wrote: > >> Were you referring to the tables being centered >> after export (I see from another part of this chain >> that that's what you were referring to in the 3rd >> question) when you wanted them left-aligned?

[PATCH] org.el: Fix regression in handling of empty #+TAGS

2020-09-16 Thread Kyle Meyer
Allen Li writes: > Previously, placing an empty #+TAGS: in a file would override > org-file-tags for the file. In 9.4, an empty #+TAGS: is ignored and > org-file-tags is used. > > The relevant code in org.el: > > (setq org-current-tag-alist > (org--tag-add-to-alist >

Keep Org mode submodules in Emacs, please!

2020-09-16 Thread Richard Stallman
[[[ To any NSA and FBI agents reading my email: please consider]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] [Resending to cater to prissy mailer] Redesigning Org mode so that its secondary

Re: Configuring text export block output

2020-09-16 Thread Tim Quelch
> I don't think ox-ascii has an option to control that, but you could get > the behavior you're after by creating a derived backend. In fact, the > section of the manual that covers derived backends provides an example > of extending the ox-ascii backend to tweak the rendering of the source >

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Jeff Filipovits
Adam Spiers writes: Hrm, no this isn't good enough. For graphical windows we still need to set the display text properties to align all tags when the buffer initially loads. AFAICS there's currently no code to trigger this, so it would need to be added, and for large files this might

Re: pcase failure with Emacs 24 (was Emacs version for Org 9.4?)

2020-09-16 Thread Kyle Meyer
Jens Lechtenboerger writes: > On 2020-09-15, Kyle Meyer wrote: > >> It is pretty tricky to debug, but the failure starts with 4a27b67fd >> (org-element: Fix property drawers parsing, 2020-04-22). As far as I >> can see, the pattern introduced there is perfectly valid and should be >> compatible

Re: Configuring text export block output

2020-09-16 Thread Kyle Meyer
Tim Quelch writes: > For example if I have a source block > > #+begin_src python > Some code here > with multiple lines > #+end_src > > With `org-ascii-export-as-ascii` the above block gives: > > , > | Some code here > | with multiple lines > ` > > I don't really like this as the '|' at

Re: official orgmode parser

2020-09-16 Thread Ihor Radchenko
> So basically this is what this thread is about. One needs a working > Emacs instance and work in "push" mode to export any Org data. This > requires dealing with temporary files, as described above, and some > ad-hoc formats to keep whatever data I need to pull from org. > "Pull" mode would

Re: basic org questions

2020-09-16 Thread Thomas S. Dye
Yes, of course. But first you need to write a style or class file. All the best, Tom Emanuel Berg via General discussions about Org-mode. writes: Thomas S Dye wrote: There are many pieces of software that will allow the user to the violate best typesetting practices easily. LaTeX is not

Configuring text export block output

2020-09-16 Thread Tim Quelch
Hi all, Is there a way to configure how text is exported in ascii? For example if I have a source block #+begin_src python Some code here with multiple lines #+end_src With `org-ascii-export-as-ascii` the above block gives: , | Some code here | with multiple lines ` I don't really

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Thomas S Dye wrote: > There are many pieces of software that will allow > the user to the violate best typesetting practices > easily. LaTeX is not one of them. In my experience, you can typeset whatever you want with LaTeX, and in any way that you want. non-fiction book:

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Stefan Nobis wrote: > #+attr_latex: :center nil :booktabs t > | My | Columns | > |+-| > | 1 | 2 | > | 3 | 4 | "PDF file produced with errors." -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
tomas wrote: > Or just ask around here, but best with concrete, > little goals each time. ? -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
TEC wrote: > You see, strangely enough - if you want to tweak > the result of Org exporting to LaTeX, you have to > write LaTeX :P I got it to work. Thanks for your help. I'm not abandoning org-mode just yet... -- underground experts united http://user.it.uu.se/~embe8573

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Adam Spiers
On Wed, Sep 16, 2020 at 11:55:53PM +0100, Adam Spiers wrote: I've actually managed it get it working now! See the attached patch. However unfortunately it is not ready to be merged yet. Firstly, it breaks `test-org/tag-align'. Secondly, since this changes the method of alignment from simply

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Samuel Wales wrote: >> Marking paragraphs by blank lines and without >> indentation is deemed less readable (see for >> example section 3.10 "Marking Paragraphs" in >> https://komascript.de/~mkohm/scrguien.pdf). [...] > > for my part, i appreciate your using the "wrong" > style for your email

Re: how to exclude a file from appearing in the refile target cache?

2020-09-16 Thread Kyle Meyer
swedebugia writes: >> > On Sep 15, 2020, at 3:37 PM, swedebugia [...] >> > I read: >> > https://orgmode.org/manual/Refile-and-Copy.html >> > >> > But its unclear to me how to exclude a file from appearing in the >> > refile target cache. [...] >> You can use org-refile-targets to explicitly

Re: Help administer code.orgmode.org: moderate user access and manage the gogs instance

2020-09-16 Thread Adam Spiers
On Wed, 16 Sep 2020 at 08:21, Bastien wrote: > Hi Timothy, > > TEC writes: > > >> Is anyone willing to help with (1) and/or (2)? > > > > I'm willing to give (2), and potentially (1) a shot :) > > Thanks a lot! I wrote you offlist about this. It's not nearly as generous an offer, but as I don't

Re: basic org questions

2020-09-16 Thread Samuel Wales
On 9/16/20, Stefan Nobis wrote: > Marking paragraphs by blank lines and without indentation is deemed > less readable (see for example section 3.10 "Marking Paragraphs" in > https://komascript.de/~mkohm/scrguien.pdf). > > But if you really insist on using this style, still the variant of >

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Adam Spiers
On Wed, Sep 16, 2020 at 03:03:02PM -0400, Jeff Filipovits wrote: It looks like (window-text-pixel-size) could be used to calculate the pixel length of the tags list? Ahah! This indeed did the trick! I have no idea how I missed this handy function previously when I was scouring the

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Stefan Nobis wrote: >> #+latex_header: \setlength{\parindent}{0pt} >> #+latex_header: \setlength{\parskip}{\baselineskip} > > Better use > > #+latex_header: \usepackage{parskip} > > as this package has less bad side-effects on other > parts of the document than setting these far-reaching >

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Stefan Nobis wrote: > But otherwise I second your recommendation to not > use this style of marking paragraphs if not > absolutely required. Well, I'm not exactly required to do anything, but I know what I think something should look like... -- underground experts united

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Tim Cross wrote: >> #+latex_header: \parskip 1.5ex >> #+latex_header: \parindent 0pt > > Note that I agree with the other post recommending > using the parskip package as a better solution. > I had forgotten about that package when I posted > the above, which is really just a dirty hack.

Re: basic org questions

2020-09-16 Thread Tim Cross
Emanuel Berg via General discussions about Org-mode. writes: > Tim Cross wrote: > >> #+latex_header: \parskip 1.5ex > > Got it! Thanks! Now it works, with: > > #+latex_header: \parskip 1.5ex > #+latex_header: \parindent 0pt Note that I agree with the other post recommending using the

Re: basic org questions

2020-09-16 Thread General discussions about Org-mode.
Tim Cross wrote: > #+latex_header: \parskip 1.5ex Got it! Thanks! Now it works, with: #+latex_header: \parskip 1.5ex #+latex_header: \parindent 0pt -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal

Control where files are emitted during block eval

2020-09-16 Thread George Mauer
I would like to create a playground.org file inside my node project where I will put bits of code that I'm playing with during development. The problem is that when I actually evaluate a source block it gets written into a temporary location that I do not control - I therefore cannot `require` my

Re: strange bug after a fresh install

2020-09-16 Thread Jeremie Juste
Hello Uwe, if seems that the problem lies with ob-ipython. I would suggest to remove ob-ipython to check and then perform a fresh install of ob-ipython. HTH, Jeremie Uwe Brauer writes: > Hi > > I freshly installed Ubuntu 20.04 and used the pre compiled Emacs 26, I > copies also all my init

Re: strange bug after a fresh install

2020-09-16 Thread Nicholas Savage
Are you using ob-ipython? Your trace makes it seem like that might be loaded maybe in your init files. This issue seems to cover the problem you are having, since it says that it's modifying `org-mode-hook'. https://github.com/gregsexton/ob-ipython/issues/161 Maybe since you have a clean

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Samuel Wales
can emacs supply tools that would be useful? On 9/16/20, Jeff Filipovits wrote: > > Adam, > > Thanks. You are right of course and I realized the right-align > issue right after I sent my email. > > Adam Spiers writes: > >> But the whole point of this exercise is to support >> variable-width >>

strange bug after a fresh install

2020-09-16 Thread Uwe Brauer
Hi I freshly installed Ubuntu 20.04 and used the pre compiled Emacs 26, I copies also all my init files. When I open an org file I obtain an error message I don't understand and attach any help is appreciated Regards Uwe Brauer Debugger entered--Lisp error: (json-readtable-error 47)

Re: [PATCH] Bug: Fontification: Heading following a comment

2020-09-16 Thread Nicolas Goaziou
Hello, Sébastien Miquel writes: > It isn't clear to me which one should be preferable and in what > situation. It is [ \t] almost everywhere, as shown in the code base. The only exception I know about is when we need to escape with zero-width space, e.g., in `org-emphasis-regexp-components'.

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Jeff Filipovits
Adam, Thanks. You are right of course and I realized the right-align issue right after I sent my email. Adam Spiers writes: But the whole point of this exercise is to support variable-width fonts. In this case, the correct position for the end of the single space is most likely not

Re: using header data in document

2020-09-16 Thread General discussions about Org-mode.
Eric S Fraga wrote: > what does your #+date: line look like? Is it > a single time stamp? If it is not, all of the above > would return the same thing. I don't have that line. -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal

Re: official orgmode parser

2020-09-16 Thread Matt Huszagh
"Gerry Agbobada" writes: > I'm currently toying with the idea of trying a tree-sitter parser for Org. > The very static nature of a shared object parser (knowing TODO keywords are > pretty dynamic for example) is a challenge I'm not sure to overcome ; to be > honest even without that I can't

Re: basic org questions

2020-09-16 Thread Stefan Nobis
Eric S Fraga writes: > #+latex_header: \setlength{\parindent}{0pt} > #+latex_header: \setlength{\parskip}{\baselineskip} Better use #+latex_header: \usepackage{parskip} as this package has less bad side-effects on other parts of the document than setting these far-reaching lengths directly.

Re: variable-pitch-mode misaligns org-mode heading tags

2020-09-16 Thread Adam Spiers
Hi Jeff, Firstly thanks a lot for looking into this! On Tue, Sep 15, 2020 at 01:41:04PM -0400, Jeff Filipovits wrote: Following the call for help to fix bugs, and with building guilt, I’ve taken a stab at fixing aligning tags when using a variable-pitch font. I haven’t tested this much

Re: using header data in document

2020-09-16 Thread Eric S Fraga
On Wednesday, 16 Sep 2020 at 17:56, Emanuel Berg via "General discussions about Org-mode." wrote: > Eric S Fraga wrote: >> The documentation that you have in your post says >> that this works only if the actual date given in >> the #+DATE directive is a single timestamp. So, >> what did you

Re: using header data in document

2020-09-16 Thread General discussions about Org-mode.
Eric S Fraga wrote: >> {{{date()}}} works as does {{{date(%D)}}} in >> a sense, only the format string doesn't seem to >> influence the output, which is "September 16, >> 2020". > > The documentation that you have in your post says > that this works only if the actual date given in > the #+DATE

Re: Help with moderating non-subscribers messages on the Org mailing list

2020-09-16 Thread Bastien
Bastien writes: > We could use the help of more mailing list maintainers. Thanks to everyone who responded! We are now 9 persons moderating the list, that helps a lot. -- Bastien

Re: using header data in document

2020-09-16 Thread Eric S Fraga
On Wednesday, 16 Sep 2020 at 17:18, Emanuel Berg via "General discussions about Org-mode." wrote: > {{{date()}}} works as does {{{date(%D)}}} in a sense, > only the format string doesn't seem to influence the > output, which is "September 16, 2020". The documentation that you have in your post

Re: using header data in document

2020-09-16 Thread General discussions about Org-mode.
Eric S Fraga wrote: > On Wednesday, 16 Sep 2020 at 00:08, Emanuel Berg via > "General discussions about Org-mode." wrote: > >> Hm, date? Maybe that can be used to do a line like >> the LaTeX's >> >> Last modified: \today >> >> or how would one do that? > > Check out the info manual:

Re: using header data in document

2020-09-16 Thread Eric S Fraga
On Wednesday, 16 Sep 2020 at 00:08, Emanuel Berg via "General discussions about Org-mode." wrote: > Hm, date? Maybe that can be used to do a line like > the LaTeX's > > Last modified: \today > > or how would one do that? Check out the info manual: [[info:org#Macro Replacement]] but you should

Re: basic org questions

2020-09-16 Thread Eric S Fraga
On Wednesday, 16 Sep 2020 at 06:13, Emanuel Berg wrote: > TEC wrote: > >> #+begin_src latex >> \setlength{\parindent}{0pt} >> \setlength{\parskip}{\baselineskip} >> #+end_src > > Also, that doesn't work. Put it in the document, new > PDF, looks the same. Try #+latex_header:

Re: creating png images in emails with org-mode

2020-09-16 Thread Eric S Fraga
On Wednesday, 16 Sep 2020 at 13:37, Joseph Vidal-Rosset wrote: > My problem has just been solved with substituting dvipng for imagemagick: This may solve your problem but you really shouldn't be having that problem in the first place? I use imagemagick, not dvipng, and things work fine for me,

Re: official orgmode parser

2020-09-16 Thread Ihor Radchenko
FYI: You may find https://github.com/ndwarshuis/org-ml helpful. Przemysław Kamiński writes: > On 9/15/20 2:37 PM, to...@tuxteam.de wrote: >> On Tue, Sep 15, 2020 at 01:15:56PM +0200, Przemysław Kamiński wrote: >> >> [...] >> >>> There's the org-json (or ox-json) package but for some reason I

Re: official orgmode parser

2020-09-16 Thread Przemysław Kamiński
On 9/16/20 2:02 PM, Ihor Radchenko wrote: However what Ihor presented is interesting. Do you use similar approach with shellout and 'emacs -batch' to show currently running task or you 'push' data from emacs to show it in the taskbar? I prefer to avoid querying emacs too often for performance

Re: official orgmode parser

2020-09-16 Thread tomas
On Wed, Sep 16, 2020 at 02:09:42PM +0200, Przemysław Kamiński wrote: [...] > So I looked at (pp (org-element-parse-buffer)) however it does print > out recursive stuff which other schemes have trouble parsing. > > My code looks more or less like this: > > (defun org-parse (f) >

Re: official orgmode parser

2020-09-16 Thread Przemysław Kamiński
On 9/15/20 2:37 PM, to...@tuxteam.de wrote: On Tue, Sep 15, 2020 at 01:15:56PM +0200, Przemysław Kamiński wrote: [...] There's the org-json (or ox-json) package but for some reason I wasn't able to run it successfully. I guess export to S-exps would be best here. But yes I'll check that out.

Re: official orgmode parser

2020-09-16 Thread Ihor Radchenko
> However what Ihor presented is interesting. Do you use similar approach > with shellout and 'emacs -batch' to show currently running task or you > 'push' data from emacs to show it in the taskbar? I prefer to avoid querying emacs too often for performance reasons. Instead, I only update the

Re: official orgmode parser

2020-09-16 Thread Przemysław Kamiński
On 9/16/20 9:56 AM, Ihor Radchenko wrote: Wow, another awesomewm user here; could you share your code? Are you interested in something particular about awesome WM integration? I am using simple textbox widgets to show currently clocked in task and weighted summary of clocked time. See the

Re: creating png images in emails with org-mode

2020-09-16 Thread Joseph Vidal-Rosset
Hello, My problem has just been solved with substituting dvipng for imagemagick: (setq org-latex-create-formula-image-program 'dvipng) ; (setq org-latex-create-formula-image-program 'imagemagick) Le mer. 16 sept. 2020 à 12:03, Joseph Vidal-Rosset < joseph.vidal.ros...@gmail.com> a écrit : >

creating png images in emails with org-mode

2020-09-16 Thread Joseph Vidal-Rosset
Hello, One more time, my setup to create png image via LaTeX in email in org-mode is broken. I get this error message: Creating LaTeX preview... org-compile-file: File "/tmp/orgtex2wp50c.png" wasn’t produced. Please adjust ‘imagemagick’ part of ‘org-preview-latex-process-alist’. Your help is

Help with moderating non-subscribers messages on the Org mailing list

2020-09-16 Thread Bastien
Dear all, non-subscribers messages sent to emacs-orgmode@gnu.org are currently moderated by Austin, Mikael and me. We could use the help of more mailing list maintainers. The task is to check the mailman administration page and to discard messages that should not be sent to the list, while

Re: Bug: org-priority face has extra space at the end starting from version 9.4 [9.4 (9.4-elpaplus @ /home/rrudakov/.emacs.d/elpa/org-plus-contrib-20200914/)]

2020-09-16 Thread Protesilaos Stavrou
Roman Rudakov [2020-09-15, 18:50 +]: > I use theme which draw boxes around priority cookie. Before updating to > version 9.4 box was rendered just around square brackets, but since > version 9.4 it has additional space at the end. > > I think it's related to the fact that org-priority face

Re: official orgmode parser

2020-09-16 Thread Ihor Radchenko
> Wow, another awesomewm user here; could you share your code? Are you interested in something particular about awesome WM integration? I am using simple textbox widgets to show currently clocked in task and weighted summary of clocked time. See the attachments. Best, Ihor Marcin Borkowski

Re: "text mode" org mode

2020-09-16 Thread Stefan Nobis
Emanuel Berg via "General discussions about Org-mode." writes: > Thanks, I wonder tho if all this > (setq org-descriptive-links nil) > (setq org-hide-emphasis-markers nil) > (setq org-startup-folded'showeverything) > is implied, with `visual-mode'? Beware: =visible-mode=

Re: basic org questions

2020-09-16 Thread Thomas S. Dye
This is the unix design: let each tool do what it does well. LaTeX decides how to format and align tables, and it does this very well. Nevertheless, it does this at the level of the document class, which decides how tables are formatted and aligned for the whole document. The idea of having

Re: basic org questions

2020-09-16 Thread Stefan Nobis
Emanuel Berg via "General discussions about Org-mode." writes: > Tim Cross wrote: >> #+latex_class: korma-article > user-error: Unknown LaTeX class ‘korma-article’ >> #+latex_header: \setlength{\parindent}{0pt} > Yes, that's removed the indentation but didn't insert > a blank line... First

Re: official orgmode parser

2020-09-16 Thread Marcin Borkowski
On 2020-09-15, at 11:17, Przemysław Kamiński wrote: > So, I keep clock times for work in org mode, this is very > handy. However, my customers require that I use their service to > provide the times. They do offer API. So basically I'm using elisp to > parse org, make API calls, and at the

Re: Help administer code.orgmode.org: moderate user access and manage the gogs instance

2020-09-16 Thread Bastien
Hi Timothy, TEC writes: >> Is anyone willing to help with (1) and/or (2)? > > I'm willing to give (2), and potentially (1) a shot :) Thanks a lot! I wrote you offlist about this. -- Bastien

Re: basic org questions

2020-09-16 Thread tomas
On Wed, Sep 16, 2020 at 06:11:52AM +0200, Emanuel Berg wrote: > TEC wrote: > > > #+begin_src latex > > \setlength{\parindent}{0pt} > > \setlength{\parskip}{\baselineskip} > > #+end_src > > I know this commands well from my LaTeX projects, > but I'm gonna use LaTeX anyway, what's the use of >

Re: basic org questions

2020-09-16 Thread tomas
On Wed, Sep 16, 2020 at 03:58:17AM +0200, Emanuel Berg via General discussions about Org-mode. wrote: > Tim Cross wrote: > > > #+latex_class: korma-article > > user-error: Unknown LaTeX class ‘korma-article’ This might have been a typo: there is a family of LaTeX classes called "koma" (not

Re: basic org questions

2020-09-16 Thread Stefan Nobis
Hi. Details about Org tables are to be found in the manual at different places (maybe not optimal, but that's the current structure). First of all, aspects of tables inside Emacs and Org are discussed here: https://orgmode.org/manual/Tables.html#Tables But everything about exporting

Re: [PATCH] Bug: Fontification: Heading following a comment

2020-09-16 Thread Sébastien Miquel
Hi, Thanks for taking a look. Afaict, the only difference between blank and [ \t] are some weird unicode characters. It isn't clear to me which one should be preferable and in what situation. I couldn't find any reference to this in any documentation of Org syntax. I've replaced all

Re: basic org questions

2020-09-16 Thread TEC
pssst. I think you're a bit off. See my reply ;) All the best, Timothy.