Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Pedro Andres Aranda Gutierrez
PS: This is a very limited example. It would be nice to have more control on fontenc. AFAIK there is not alphabeta for cyrillic encodings and typesetting 'War and Peace' with its passages in French embedded in the Russian text is sort of a headache ;-) /PA On Mon, 22 Jan 2024 at 07:30, Pedro

Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Pedro Andres Aranda Gutierrez
HI Juan Manuel, you are absolutely right. There are many things that should improve in the LaTeX exporter and simplifying language treatment is one of them. What I show in my example is how to circumvent all the limitations in the exporter and give a working example for people who need it.

Re: Slowness of org-agenda-redo in org 9.7 vs 9.6.7

2024-01-21 Thread dark . key8799
On Fri, Jan 19, 2024, at 23:15, Ihor Radchenko wrote: > I think that the missing lambdas should come from org.el. > So, may you M-x eval-buffer org-agenda.el, org-element.el, and org.el. > > And do the same in Org 9.6. (there are also cryptic lambdas there in the > profile) > > (In theory, you

Re: Patch to allow adjusting latex fragment display scale factor

2024-01-21 Thread Matt Huszagh
Timothy writes: > Hi Matt and Ihor, > I must admit that with the new system, I don’t see much value in accepting a > function: we now scale the previews based on a combination of the :scale > parameter and their actual LaTeX display size. Yep, we can close/cancel this patch. I had been using

Re: Patch to allow adjusting latex fragment display scale factor

2024-01-21 Thread Timothy
Hi Matt and Ihor, >> Any thoughts? I have not yet updated it for the most recent changes to >> main, but I can do that. > > As you found in another thread, we have a WIP overhaul of the whole > LaTeX preview system. I hope that it can be merged in the coming few > months. > > AFAIU, the new

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-21 Thread Juan Manuel Macías
Ihor Radchenko writes: > Upon looking closer into selective removal, it turned out to be more > tricky than I thought. I'm afraid that using \\[0pt] only in some places > may become a bit of headache to maintain - we may accidentally break > certain regexp replacements in `org-latex-verse-block'.

Re: [PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-21 Thread Sparapani, Rodney
Hi Idor: I’ve test that and it works for me per your prescription below. And, I have committed it to the ESS git repo. Thanks! 1. create and open test.R file containing x = "foo" 2. M-: (setq-local ess-gen-proc-buffer-name-function (lambda (_) "session1")) 3. M-x ess-eval-line 4. Observe

Re: [BUG] org-open-at-point-global fails on links with multiline descriptions in org-mode buffers [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2024-01-21 Thread Omar Antolín Camarena
Thank you for the quick fix! And I'm happily surprised you decided to check the whole paragraph. I hadn't dared suggest that because I thought the decision to check only the current line was made for performance reasons. On the other hand, I had not thought through my proposal carefully and in

Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Juan Manuel Macías
Pedro Andres Aranda Gutierrez writes: > +#+begin_example > +,#+latex_class_options: [greek,spanish,oneside] > +,#+language: es > +,#+latex_header: \PassOptionsToPackage{main=spanish}{babel} > +,#+latex_header: \usepackage{alphabeta} % to support greek script > +#+end_example I think this example

Re: [Pre-PATCH] Overhaul of the LaTeX preview system

2024-01-21 Thread Timothy
Hi Matt, Thanks for taking this branch for a spin and reporting back. I’m a bit mystified by the difference you see between `$$' and `\(\)' delimiters (I can’t detect any difference my end). Regarding the specific comments in your last email though: Matt Huszagh writes: > When using \(\)

Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Pedro Andres Aranda Gutierrez
Thanks for the feedback, attached is a new version Best, /PA On Sun, 21 Jan 2024 at 13:59, Ihor Radchenko wrote: > Pedro Andres Aranda Gutierrez writes: > > > hopefully this is more informative. It complements the =polyglossia= > > example with some =babel= that can be compiled with pdflatex.

Re: org-->latex and beamer, avoid blocks

2024-01-21 Thread Fraga, Eric
On Friday, 19 Jan 2024 at 08:01, Uwe Brauer via "General discussions about Org-mode." wrote: > Well, right. I just realized that for example > when I export the document to LatReX article, then cosntructs like > > > *** Code > :PROPERTIES: > :BEAMER_env: ignoreheading > :END: > > Get

Re: Org mode MIME type

2024-01-21 Thread Timothy
Hi Max, > However shouldn’t it be “text/x-org”, not just “text/org”? (I am against > “application/*” variants since it is a text based format). As per the de-facto mime type for Org is `text/org'. Why not `text/x-org'? Among other reasons, the `x-' prefix is

Re: org-publish-sitemap-file-entry-format documented despite being obsolete

2024-01-21 Thread Stefan Kangas
Ihor Radchenko writes: > Stefan Kangas writes: > >> The variable `org-publish-sitemap-file-entry-format' is documented in >> org.org in emacs.git, but that variable is obsolete. Perhaps it should >> be removed and/or updated. > > My grepping through Emacs sources does not show anything: > > 3

Re: org-publish-sitemap-file-entry-format documented despite being obsolete

2024-01-21 Thread Ihor Radchenko
Stefan Kangas writes: > The variable `org-publish-sitemap-file-entry-format' is documented in > org.org in emacs.git, but that variable is obsolete. Perhaps it should > be removed and/or updated. My grepping through Emacs sources does not show anything: 3 matches total for

org-publish-sitemap-file-entry-format documented despite being obsolete

2024-01-21 Thread Stefan Kangas
The variable `org-publish-sitemap-file-entry-format' is documented in org.org in emacs.git, but that variable is obsolete. Perhaps it should be removed and/or updated.

Org mode MIME type

2024-01-21 Thread Max Nikulin
Hi, I have been surprised when I got xdg-mime query filetype /tmp/test.org text/org for a following file cat /tmp/test.org * A section An example of Org mode file It is pleasant, however shouldn't it be "text/x-org", not just "text/org"? (I am against "application/*"

Re: [possible patch] Remove the '\\[0pt]' string from the last line of a verse block in LaTeX export

2024-01-21 Thread Ihor Radchenko
Juan Manuel Macías writes: >> Although I am still a bit hesitant to remove >> `org-latex-line-break-safe'. >> What would be the benefit of removing it? For now, I mostly just see >> that it will make the life harder for users in Scenario B. > > It's a complicated situation, because we now have

Re: [BUG] org-open-at-point-global fails on links with multiline descriptions in org-mode buffers [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2024-01-21 Thread Ihor Radchenko
Gregor Zattler writes: > But how about this idea of Omar: > > "I would like to suggest that org-open-at-point-global > check to see if it is being run in an Org mode buffer > and if so just call org-open-at-point. That way users > can bind org-open-at-point-global and use that key > binding

Re: [BUG] org-open-at-point-global fails on links with multiline descriptions in org-mode buffers [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2024-01-21 Thread Gregor Zattler
Hi Ihor, Omar, * Ihor Radchenko [2024-01-21; 12:18 GMT]: > Omar Antolín Camarena writes: > >> If you have an org link with a newline embedded in the description in an >> org-mode buffer and put point on it, org-open-at-point correctly follows the >> link but org-open-at-point-global does not,

Re: New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Ihor Radchenko
Pedro Andres Aranda Gutierrez writes: > hopefully this is more informative. It complements the =polyglossia= > example with some =babel= that can be compiled with pdflatex. Thanks! Several minor comments. > From 4d0dcde4f8f149d3d028164c3cd3c8e9bff2a060 Mon Sep 17 00:00:00 2001 > From: "Pedro

Re: Basic citations: problems with quotes in LaTeX export

2024-01-21 Thread Ihor Radchenko
William Denton writes: > While trying out more about basic citations, with quotes to mark strings so I > can see where whitespace matters, I found that when exporting to LaTeX some > regular quote marks (") turn into fancy ones (“”) but others don't. > > Let's say we have Basic.bib (now in

Re: [BUG] FAQ asnwer for "How can I use arbitrary colors for words/sentences in HTML export?" is outdated

2024-01-21 Thread Ihor Radchenko
Suhail Singh Canary writes: > Ihor Radchenko writes: > >> Max Nikulin writes: >> >>> https://list.orgmode.org/87bl21vazj@posteo.net >>> >>> Likely should be modified a bit to support derived backends. >> >> I think we do not do this in any of the examples for :export link >> property in

Re: [BUG] org-open-at-point-global fails on links with multiline descriptions in org-mode buffers [9.6.6 (release_9.6.6 @ /usr/share/emacs/29.1/lisp/org/)]

2024-01-21 Thread Ihor Radchenko
Omar Antolín Camarena writes: > If you have an org link with a newline embedded in the description in an > org-mode buffer and put point on it, org-open-at-point correctly follows the > link but org-open-at-point-global does not, it instead reports "No link > found". (I have plenty of org

Re: [PATCH] Unindentation fixup for code blocks

2024-01-21 Thread Ihor Radchenko
Ihor Radchenko writes: > Thanks! This patch does apply. > I am not yet sure if I like this patch or the previous one more. I am > thinking about combining them and implementing something like > `org-move-to-text-column'. I do not see immediate use of `org-move-to-text-column', so let's keep

[PATCH] Add buffer-local setting to request specific ESS process/session name (was: [PATCH] Set Python shell in Org edit buffer)

2024-01-21 Thread Ihor Radchenko
Ihor Radchenko writes: > We recently discovered `ess-gen-proc-buffer-name-function', but it does > not work as we expected, unfortunately. (which is either because we > misunderstand something or because there is a bug). I am attaching tentative patch that will make `ess-request-a-process' obey

Re: [BUG] FAQ asnwer for "How can I use arbitrary colors for words/sentences in HTML export?" is outdated

2024-01-21 Thread Bastien Guerry
Hi Max, Max Nikulin writes: > Bastien, could you, please, have a look at the CI configuration. I do > not see recent builds in > https://builds.sr.ht/~bzg/worg Thanks for the heads up. I've triggered the build for Worg. There is something wrong with the CI configuration, not sure what yet, I

New try at multi-lingual export to latex/pdf using pdflatex and babel

2024-01-21 Thread Pedro Andres Aranda Gutierrez
Hi, hopefully this is more informative. It complements the =polyglossia= example with some =babel= that can be compiled with pdflatex. Cheers, /PA -- Fragen sind nicht da, um beantwortet zu werden, Fragen sind da um gestellt zu werden Georg Kreisler Headaches with a Juju log: unit-basic-16: