emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Re: Re: Problems with LaTeX export for $x\text{foo $x$}$-like construts?
@ 2022-12-30  9:08 Pedro Andres Aranda Gutierrez
  2022-12-31 14:23 ` Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2022-12-30  9:08 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

> From: Ihor Radchenko <yantar92@posteo.net>
> To: alain.cochard@unistra.fr
> Cc: emacs-orgmode@gnu.org
> Subject: Re: Problems with LaTeX export for $x\text{foo $x$}$-like
>         construts?
> Message-ID: <87wn6av84v.fsf@localhost>
> Content-Type: text/plain
>
> Alain.Cochard@unistra.fr writes:
>
> > Version used: release_9.6-149-g554935
> >
> > With an org file containing only
> >
> >    #+begin_export latex
> >    $x \text{foo $y$}$
> >
> >    \(x \text{foo \(y\)}\)
> >
> >    $x \text{foo \(y\)}$
> >
> >    \(x \text{foo $y$}\)
> >    #+end_export
> >
> > the pdf generated upon latex export gives as expected, i.e., with 'x'
> > and 'y' in mathematical font.
>
> This is to be expected because of how Org parser works.

In my experience, this also applies for some situations while creating
listings.
My question is if there would be space for a `:raw t` in the
`#+begin_export latex` to produce a _verbatim_ copy of the contents of the
environment.

All the best, freedom and just(=justa, gerecht) peace in 2023,

/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: 09:17:36 WARNING juju.worker.uniter.operation we should run
a leader-deposed hook here, but we can't yet

[-- Attachment #2: Type: text/html, Size: 2080 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Re: Problems with LaTeX export for $x\text{foo $x$}$-like construts?
  2022-12-30  9:08 Re: Problems with LaTeX export for $x\text{foo $x$}$-like construts? Pedro Andres Aranda Gutierrez
@ 2022-12-31 14:23 ` Ihor Radchenko
  2022-12-31 15:10   ` [org-promote-subtree + undo] adds one star Alain.Cochard
  0 siblings, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2022-12-31 14:23 UTC (permalink / raw)
  To: Pedro Andres Aranda Gutierrez; +Cc: Org Mode List

Pedro Andres Aranda Gutierrez <paaguti@gmail.com> writes:

>> This is to be expected because of how Org parser works.
>
> In my experience, this also applies for some situations while creating
> listings.
> My question is if there would be space for a `:raw t` in the
> `#+begin_export latex` to produce a _verbatim_ copy of the contents of the
> environment.

Listings should be different.
Please provide a problematic example.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [org-promote-subtree + undo] adds one star
  2022-12-31 14:23 ` Ihor Radchenko
@ 2022-12-31 15:10   ` Alain.Cochard
  2023-01-01 13:44     ` Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Alain.Cochard @ 2022-12-31 15:10 UTC (permalink / raw)
  To: Org Mode List


Under release_9.6-173-g24740a

I have file

#+begin_src org
,* h1
,** h2
#+end_src

I do

   M-x org-promote-subtree

on h2, which works as expected; then

   M-x undo

The file becomes

#+begin_src org
,* h1
,** * h2
#+end_src

and I have the message

   primitive-undo: Changes to be undone by function different from
   announced


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | [ slot available for rent ]



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2022-12-31 15:10   ` [org-promote-subtree + undo] adds one star Alain.Cochard
@ 2023-01-01 13:44     ` Ihor Radchenko
  2023-01-01 14:05       ` Alain.Cochard
  0 siblings, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2023-01-01 13:44 UTC (permalink / raw)
  To: alain.cochard; +Cc: Org Mode List

Alain.Cochard@unistra.fr writes:

> Under release_9.6-173-g24740a
>
> I have file
>
> #+begin_src org
> ,* h1
> ,** h2
> #+end_src
>
> I do
>
>    M-x org-promote-subtree
>
> on h2, which works as expected; then
>
>    M-x undo
> ...
> and I have the message
>
>    primitive-undo: Changes to be undone by function different from
>    announced

Confirmed.

https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60467

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2023-01-01 13:44     ` Ihor Radchenko
@ 2023-01-01 14:05       ` Alain.Cochard
  2023-01-01 14:13         ` Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Alain.Cochard @ 2023-01-01 14:05 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: alain.cochard, Org Mode List


 > Confirmed.
 > 
 > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60467

Funny: since the problem was not present in previous versions of org,
I would have thought it was an org 9.6 issue...

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | [ slot available for rent ]



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2023-01-01 14:05       ` Alain.Cochard
@ 2023-01-01 14:13         ` Ihor Radchenko
  2023-01-01 15:09           ` Alain.Cochard
  0 siblings, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2023-01-01 14:13 UTC (permalink / raw)
  To: Alain.Cochard; +Cc: Org Mode List

Alain.Cochard@unistra.fr writes:

>  > Confirmed.
>  > 
>  > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60467
>
> Funny: since the problem was not present in previous versions of org,
> I would have thought it was an org 9.6 issue...

It is indeed Org 9.6 issue. Likely related to some obscure interaction
between what Org does and `combine-after-change-calls'.

Note that I am reporting for Emacs master, which ships with Org 9.6.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2023-01-01 14:13         ` Ihor Radchenko
@ 2023-01-01 15:09           ` Alain.Cochard
  2023-01-01 15:56             ` Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Alain.Cochard @ 2023-01-01 15:09 UTC (permalink / raw)
  To: Ihor Radchenko; +Cc: Alain.Cochard, Org Mode List

Ihor Radchenko writes on Sun  1 Jan 2023 14:13:

 > It is indeed Org 9.6 issue. Likely related to some obscure
 > interaction between what Org does and `combine-after-change-calls'.
 > 
 > Note that I am reporting for Emacs master, which ships with Org
 > 9.6.

I'm afraid it is a bit complicated for me :-)

I fear that, even if the emacs people fix the problem, it still won't
work with, say, emacs 27 or 28.

Oh, well...

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.cochard@unistra.fr
5 rue René Descartes   [bureau 110]  | Phone: +33 (0)3 68 85 50 44 
F-67084 Strasbourg Cedex, France     | [ slot available for rent ]



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2023-01-01 15:09           ` Alain.Cochard
@ 2023-01-01 15:56             ` Ihor Radchenko
  2023-02-10 11:44               ` Ihor Radchenko
  0 siblings, 1 reply; 9+ messages in thread
From: Ihor Radchenko @ 2023-01-01 15:56 UTC (permalink / raw)
  To: alain.cochard; +Cc: Org Mode List

Alain.Cochard@unistra.fr writes:

> I fear that, even if the emacs people fix the problem, it still won't
> work with, say, emacs 27 or 28.
>
> Oh, well...

If they fix this, we will at least have a clue what is causing it.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [org-promote-subtree + undo] adds one star
  2023-01-01 15:56             ` Ihor Radchenko
@ 2023-02-10 11:44               ` Ihor Radchenko
  0 siblings, 0 replies; 9+ messages in thread
From: Ihor Radchenko @ 2023-02-10 11:44 UTC (permalink / raw)
  To: alain.cochard; +Cc: Org Mode List

Ihor Radchenko <yantar92@posteo.net> writes:

> Alain.Cochard@unistra.fr writes:
>
>> I fear that, even if the emacs people fix the problem, it still won't
>> work with, say, emacs 27 or 28.
>>
>> Oh, well...
>
> If they fix this, we will at least have a clue what is causing it.

The bug has been fixed for Emacs 29.
Earlier Emacs will still suffer.
I committed a workaround onto bugfix.
Fixed.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=af1bb1b06

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2023-02-10 11:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-30  9:08 Re: Problems with LaTeX export for $x\text{foo $x$}$-like construts? Pedro Andres Aranda Gutierrez
2022-12-31 14:23 ` Ihor Radchenko
2022-12-31 15:10   ` [org-promote-subtree + undo] adds one star Alain.Cochard
2023-01-01 13:44     ` Ihor Radchenko
2023-01-01 14:05       ` Alain.Cochard
2023-01-01 14:13         ` Ihor Radchenko
2023-01-01 15:09           ` Alain.Cochard
2023-01-01 15:56             ` Ihor Radchenko
2023-02-10 11:44               ` Ihor Radchenko

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).