(error "Listing directory failed but ‘access-file’ worked")

2024-04-12 Thread Edgar Lux
Hello. I got this in an Org file: #+begin_src org [[file:Figures/Ti19-g(w, eta={0.1,}, R=1e-3).svg]] [[file:Figures/Ti19-g(w, eta={0.1,}, R=1e-3).png]] #+end_src The files exist, and can be viewed in image-mode (tested with src_bash{emacs -q}). With =C-c C-o= src_emacs-lisp{(org-open-at-point)}

Re: Feature request: exclude sub-trees by backend

2024-03-27 Thread Edgar Lux
Hi, I had a need for this again (sorry for the necro-bump). On Feb 26, 2024 at 5:51 PM, Ihor Radchenko wrote: > The suggestions to use backend-specific export tag in the links are used > as ugly workarounds... Ok. It was just to show that there are other people who may use it :) . > As for igno

Feature request: exclude sub-trees by backend

2024-02-22 Thread Edgar Lux
Hello! I am trying to exclude different sub-trees (a.k.a. headings or sections), depending on the exporter backend. I am familiar with =:noexport:= to exclude selected sections (disregarding the backend). I found a solution, but it is only intended for a specific backend: https://emacs.stackex

Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 at 3:59 PM if I comment out the (add-hook 'org-mode-hook #'org-indent-mode), the error is gone -- Sent with https://mailfence.com Secure and private email -- Sent with https://mailfence.com Secure and private email

Re: [BUG] Warning when creating preview

2023-10-09 Thread Edgar Lux
On Oct 9, 2023 > #--- bug.org > \(a = 1\) > #--- further, if you stay "inside" the equation and do C-u C-c C-x C-l (to remove the preview) and try to show it again with C-c C-x C-l, the preview is not regenerated, but the minibuffer shows =Creating LaTeX previews in section... done.= -- Sent

[BUG] short TeX & in-text code highlighting [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2023-10-02 Thread Edgar Lux
I'm almost sure that this is known, but I don't want to assume. I get the text between ~ ~ with colouring as if it was in-text code snippet. I found it interesting \(a ~b\) and \(\int_{\Omega}fv~\mathrm{d}\) Emacs : GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo

Re: [BUG] Warning when creating preview

2023-10-02 Thread Edgar Lux
Nope, there is still something wrong with my config (see attachment). Haven't been able to reproduce consistently. -- Sent with https://mailfence.com Secure and private email log.gz Description: File Attachment: log.gz

language-specific org-babel-noweb-wrap-start?

2023-10-02 Thread Edgar Lux
Hi! I wish you a nice day, week, month... I would like to know if there is a way to set =org-babel-noweb-wrap-start= for a specific language. If I set that variable to a value, it will apply to all of them. Thank you. This is fine right now #+begin_src lang1 :noweb yes //;name_of_anoter_blo

Re: [BUG] Warning when creating preview

2023-09-28 Thread Edgar Lux
I forgot to say that now: "9.7-pre" GNU Emacs 29.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) -- Sent with https://mailfence.com Secure and private email -- Sent with https://mailfence.com Secure and private email

Re: [BUG] Warning when creating preview

2023-09-28 Thread Edgar Lux
On Aug 28, 2023 at 11:00 AM, Ihor Radchenko wrote:Edgar Lux writes: > On Aug 27, 2023 at 7:29 PM, Ihor Radchenko wrote: >> I recommend https://github.com/Malabarba/elisp-bug-hunter to narrow down >> which part of the config is the culprit. > > We have a winner: Ano

Re: [BUG] Warning when creating preview

2023-08-27 Thread Edgar Lux
On Aug 27, 2023 at 1:28 PM, Ihor Radchenko wrote: >>> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org" > Please run this command from terminal. > It should spawn a clean Emacs instance with Org version from the repository. No warning after C-c C-x C-l(2x) -- Ihor Radchenko

Re: [BUG] Warning when creating preview

2023-08-27 Thread Edgar Lux
On Aug 26, 2023 at 6:28 PM, Ihor Radchenko wrote: > Did you see a new Emacs instance at this point? Nope. I just launched Emacs again (there is another instance running) and copied the command >> 9. M-& make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org" Shell buffer shows #+begin_example m

Re: [BUG] Warning when creating preview

2023-08-26 Thread Edgar Lux
On Aug 23, 2023 at 9:56 AM, Ihor Radchenko > 1. Save the equation to file /tmp/bug.org > 2. Save your `setq' snippet to /tmp/bug.el > 3. cd /path/to/org/repo > 4. make repro REPRO_ARGS="-l /tmp/bug.el /tmp/bug.org" > 5. Move point to "t = 0" line > 6. C-c C-x C-l (2x) > 7. The preview appears and

Re: [BUG] Warning when creating preview

2023-08-22 Thread Edgar Lux
On Aug 18, 2023 at 6:04 PM, Ihor Radchenko wrote: > May you try to install the latest stable Org first, following > https://orgmode.org/manual/Installation.html? You should get M-x > org-version printing Org 9.6.7. > Then, let us know if the warning keeps appearing. * What happens When I type

Re: [BUG] Warning when creating preview

2023-08-18 Thread Edgar Lux
On Aug 18, 2023 at 6:04 PM, Ihor Radchenko wrote:Edgar Lux writes: > The Org version is very strange. Emacs 28 ships with Org 9.5.5 and the > latest stable version of Org available on ELPA is Org 9.6.7. The warning > comes from Org >9.6. Super weird. I don't know why I end

[BUG] Warning when creating preview

2023-08-18 Thread Edgar Lux
Hi, I don't really need help with this. Org has been telling me for days that I should report this, but I don't really want to share my configuration publicly, and I thought that it was only for a file on which I was working. It seems to be general for my configuration. I hope that it helps. If

Re: Add a Chinese version to index.org of orgmode.org

2023-08-17 Thread lux
On Tue, 2023-08-08 at 22:53 +0800, Ruijie Yu wrote: > Hello Ihor, Lux and all, > > On Aug 8, 2023, at 14:55, Ihor Radchenko wrote: > > > > lux writes: > > > > > Hi > > >  To facilitate Chinese users' understanding of Org Mode, I have > >

Re: How to preserve indentation of title inside a latex src block when exporting to LaTeX?

2023-08-15 Thread Edgar Lux
'my-latex-filter-indent-title) ;; indent title ends On Aug 15, 2023 at 12:35 PM, Edgar Lux wrote:Hello. How to preserve indentation of title inside a latex src block when exporting to LaTeX? For (annoying) reasons, I need a frontmatter block which is able to indent its c

How to preserve indentation of title inside a latex src block when exporting to LaTeX?

2023-08-15 Thread Edgar Lux
Hello. How to preserve indentation of title inside a latex src block when exporting to LaTeX? For (annoying) reasons, I need a frontmatter block which is able to indent its contents. I am almost there, but the title line is not. I can edit this manually after export, but I would like to know if

#+startup: noalign & C-c }

2023-08-14 Thread Edgar Lux
Hi! Is there a way to prevent resizing of a table with =org-table-toggle-coordinate-overlays=? #+caption: there are some extra spaces after =1=, and before and after =b=. #+begin_src org ,#+startup: noalign | 1 | 2 | b | #+end_src When typing C-c } (command for =org-table-toggle-coordin

Re: how can I get the output of a =#+begin_src org= in the current buffer?

2023-08-12 Thread Edgar Lux
Thanks!!! Regarding the typo, it does not show here. But in the info buffer, the =(see *note...= becomes (see see ...). See (:P) attachment On Aug 12, 2023 at 1:07 PM, Ihor Radchenko wrote:Edgar Lux writes: > #+begin_src org >   #+latex_header: \usepackage{nil} > #+end_src > &

how can I get the output of a =#+begin_src org= in the current buffer?

2023-08-12 Thread Edgar Lux
Hello, how can I get the output of a =#+begin_src org= in the current buffer? #+begin_src emacs-lisp   (org-babel-do-load-languages 'org-babel-load-languages '((shell   . t)    (latex   . t)    (emacs-lisp  . t)    (org . t)    )) #+end_src #+caption: T

Re: keep intermediary tex from latex preview

2023-06-05 Thread Edgar Lux
hanks! On Jun 5, 2023 at 11:34 AM, Edgar Lux wrote:When using xetex and dvisvgm, an equation like this: \(µp\) will render as p (see attached file), most likely because my configuration is wrong. I don't know how I fixed it for another buffer, but then I restart and--without knowing wha

Re: keep intermediary tex from latex preview

2023-06-05 Thread Edgar Lux
When using xetex and dvisvgm, an equation like this: \(µp\) will render as p (see attached file), most likely because my configuration is wrong. I don't know how I fixed it for another buffer, but then I restart and--without knowing what happened--the "no-µ" behaviour is back. Also (I am

Re: keep intermediary tex from latex preview

2023-06-04 Thread Edgar Lux
On Jun 4, 2023 at 8:34 AM, Ihor Radchenko wrote: > In short no. > And we are also in the process of refactoring the preview system: > https://list.orgmode.org/orgmode/87lek2up0w@tec.tecosaur.net/ Looks promising! Is the functionality which I mentioned there as well? (get the .tex for the pre

keep intermediary tex from latex preview

2023-06-03 Thread Edgar Lux
Hello, this has possibly been asked before, but (OMFG) I haven't been able to find it (sorry). How can I keep the .tex file used to generate a latex preview from an Org buffer (or file)? (the closest that I got was =org-latex-logfiles-extensions=). I can usually see such file in =/tmp= if the p

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-11 Thread lux
On Sat, 2023-03-11 at 10:47 +, Ihor Radchenko wrote: > > I am afraid that we cannot make things universally safe here without > breaking changes. The best way will be treating :cmd and similar > header > args as unsafe and include them into the planned safety prompt system > we > discussed in

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-10 Thread lux
On Thu, 2023-03-09 at 12:22 +, Ihor Radchenko wrote: > > im-in-options and im-out-options, according to > https://orgmode.org/worg/org-contrib/babel/languages/ob-doc-LaTeX.html > , > are options passed to ImageMagick. > > However, for example, (shell-quote-argument "-enhance -strip") will > r

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-08 Thread lux
On Tue, 2023-03-07 at 22:31 +0700, Max Nikulin wrote: > On 06/03/2023 10:17, lux wrote: > > On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: > > > > > > I think should be (rename-file img-out out-file t) > > > > Fixed, thank you. > > Th

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-07 Thread lux
On Tue, 2023-03-07 at 22:31 +0700, Max Nikulin wrote: > There are a couple more mv shell commands in ob-latex.el. It would be > nice to fix them as well. Sorry, I have not checked it earlier. Are > you > still interested in this topic? I hope, you already have examples > that > can be used to qui

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-07 Thread lux
On Tue, 2023-03-07 at 12:35 +, Ihor Radchenko wrote: > lux writes: > > (you don't seem to have FSF copyright > assignment). > Thank you :-) I have already signed a copyright assignment with Emacs, do I need to sign again with Org Mode?

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-03-05 Thread lux
On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: > lux writes: > > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (rename-file img-out out-file > > I think should be (rename-file img-ou

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
On Sat, 2023-02-18 at 11:43 +, Ihor Radchenko wrote: > lux writes: > > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (rename-file img-out out-file > > I think should be (rename-file img-out ou

Re: [PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
On Sat, 2023-02-18 at 18:15 +0700, Max Nikulin wrote: > On 18/02/2023 17:08, lux wrote: > > -  (shell-command (format "mv %s %s" img-out out- > > file) > > +  (shell-command (format "mv %s %s" (shell-quote- > > a

[PATCH] Fix ob-latex.el command injection vulnerability.

2023-02-18 Thread lux
Test environment: - Emacs 29.0.60 - Orgmode 9.6.1 - TeX Live 2020 Preconditions: (org-babel-do-load-languages 'org-babel-load-languages '((latex . t))) The vulnerability occurs in the file ob-latex.el, in the `org-babel- execute:latex' function, if then file's extension is .svg, using `shell-c

Re: [BUG] #+cite_export: ... bibstyle citestyle cannot be universally used as global defaults (was: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite)

2023-02-05 Thread Edgar Lux
Dear Ihor, On Feb 4, 2023 at 12:31 PM, Ihor Radchenko wrote:Edgar Lux writes: > For example, ... the proposed idea is > a bit awkward: > > ... > #+cite_export: processor[opt1=val1,opt2=val2,...] bibliography-style[...] > citation-style[...] > > I assumed that there is

Re: [BUG] #+cite_export: ... bibstyle citestyle cannot be universally used as global defaults (was: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite)

2023-02-03 Thread Edgar Lux
On Jan 24, 2023 at 11:54 AM, Ihor Radchenko wrote:Edgar Lux writes: > I understand. My takeaway from here is that there is a need to provide > extended global defaults for both bibliography style and citation style. > > Which is a questionable design choice. I was referring to

Re: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-23 Thread Edgar Lux
On Jan 23, 2023 at 12:06 PM, Ihor Radchenko wrote:Edgar Lux writes: > So, what is the problem with LATEX_HEADER approach? I thought that it would be preferable to have a native Org syntax. > I do not like passing the options as-is in #+cite_export because not all > the possible

Re: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-22 Thread Edgar Lux
January 22, 2023 at 12:15:14 PM CET Ihor Radchenko wrote:Edgar Lux writes: > Note that we have https://orgmode.org/manual/Citation-export-processors.html > Of course, the "Citations" section of the manual is not yet complete. > More examples and details will be we

Re: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-22 Thread Edgar Lux
January 22, 2023 at 12:36:32 PM CET "András Simonyi" wrote:Dear All, > There is also the customizable variable `org-cite-biblatex-options' to > pass additional options, That is very useful, indeed (I didn't know how to use it). Hopefully the e-mail which I just sent helps with the documentatio

Re: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-21 Thread Edgar Lux
For which one can use the appended patch, which may break other things, of course :P . The gain is control over biblatex options without resorting to #+latex_header: \usepackage[...]{biblatex} Cheers! Thanks. January 21, 2023 at 9:37:18 AM CET Ihor Radchenko wrote:Edgar Lux writes: I no

Re: Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-20 Thread Edgar Lux
LOL What an idio...! (sorry) January 20, 2023 at 11:59:22 AM CET Ihor Radchenko wrote:Edgar Lux writes: > I send the attached patch for your consideration. It allows to use biber for bibliographies. I tested it with this: Thanks, but could you please attach the patch? -- Ihor Radche

Patch for \usepackage[ ... natbib = true ...]{...biblatex} with org-cite

2023-01-19 Thread Edgar Lux
Dear list, I send the attached patch for your consideration. It allows to use biber for bibliographies. I tested it with this: (require 'oc-natbib) #+cite_export: natbib #+LaTeX_HEADER: \usepackage[style=numeric-comp,sorting=none, hyperref=true,backref=true,url=true,backend=biber,natbib=true]{

[O] Bug: using org-publish, `#+OPTIONS title:nil` is invalid

2016-02-04 Thread lux
first, I write a org file: #+TITLE: Just test #+OPTIONS: doc:nil title:nil num:nil * h1 hello world as you see, I define `title:nil` in #+OPTIONS. I wan't `title` just display in tag, and don't display in body. But, I did not take effect after executing `org-pub