Re: LaTeX export for Org Mode Documents written in Indic Languages

2023-01-06 Thread Alain . Cochard
Krishna Jani writes on Sat  7 Jan 2023 12:41:
 > 
 > Hello,
 > 
 > I have never had to write in languages other than English but an
 > assignment just came up to transcribe the Indian Penal Code in
 > simple and understandable Hindi. I have an Org file with some of my
 > transcriptions (because of Emacs's awesome language support) but I
 > am unable to org-export these files to pdf. I suppose I must
 > install some latex packages, but I have not been able to find any
 > documentation for the same. I dont really know latex, I mainly just
 > use it for Org pdf export.

When you say "I am unable ...", does it mean you tried something like
'C-c C-e l o' and it fails, whereas it works when it's plain English?
If so, what would likely help would be that you show us the relevant
content of the *Org PDF LaTeX Output* buffer (when it mentions an
error).  Perhaps also provide us with a sample of your text in Hindi
so that we can try ourselves (perhaps as an attachment to limit to
risk of contamination).



-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@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 ]




LaTeX export for Org Mode Documents written in Indic Languages

2023-01-06 Thread Krishna Jani


Hello,

I have never had to write in languages other than English but an
assignment just came up to transcribe the Indian Penal Code in
simple and understandable Hindi. I have an Org file with some of my
transcriptions (because of Emacs's awesome language support) but I am
unable to org-export these files to pdf. I suppose I must install some
latex packages, but I have not been able to find any documentation for
the same. I dont really know latex, I mainly just use it for Org pdf
export. 

Has anyone had a similar experience, or has a clue to this problem. Is
there some documentation relating to languages that I can read

-- 

Regards,

Krishna Jani,
Student Associate Member,
Free Software Foundation
kj...@member.fsf.org



Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-06 Thread Leo Butler
On Fri, Jan 06 2023, Ihor Radchenko  wrote:

> 
> Caution: This message was sent from outside the University of Manitoba.
> 
>
> Leo Butler  writes:
>
>>> Apparently, `sleep-for' 1 second was not enough, and I decided to remove
>>> checking file size completely.
>>
>> Hello Ihor,
>>
>> Is there an environment variable that could be used to determine is the
>> tests are being run on sourcehut? This would let us cut out that test on
>> sourcehut, while still keeping it elsewhere.
>
> No, we have nothing like this.
>
> In theory, we can bind something in
> https://git.sr.ht/~bzg/org-mode-tests/tree/master/item/.builds/init.el,
> but I am not sure if it is a good idea.
>
> The tests are failing not because something wrong in the CI machine, but
> simply because CI machine is slow. You can get similar issue when
> running Org tests on an actual proper old PC or simply when someone is
> running CPU-heavy process alongside with Org tests.
>
> So, I do not think that creating exceptions for CI is a good idea.

Ok.

>
>>> https://builds.sr.ht/~bzg/job/914954
>>> 2 unexpected results:
>>>FAILED  ob-octave/graphics-file  ((should-not (get-buffer "*Org-Babel
>>>Error Output*")) :form (get-buffer "*Org-Babel Error Output*") :value
>>>#) 
>>>FAILED  ob-octave/graphics-file-space  ((should-not (get-buffer
>>>"*Org-Babel Error Output*")) :form (get-buffer "*Org-Babel Error
>>>Output*") :value #) 
>>>
>>> As you can see *Org-Babel Error Output* buffer does not exist when
>>> running the test.
>>>
>>> Leo, could you please take a look?
>>
>> An earlier test is creating that *Org Babel Error Output* buffer.

I will try to look into improving the tests so that we can trap the test(s)
that is(are) creating that error buffer.

>> That is killed on the first test, before the test is actually
>> run. But GET-BUFFER behaves in an undocumented way: it returns a
>> non-nil value, #. To remedy that, I have wrapped the
>> calls in BUFFER-LIVE-P.
>
> This is not undocumented. The killed buffers still exists as Elisp
> objects:

Thanks, for pointing that out. I was relying on the docstring for
GET-BUFFER. I see that I should have looked at the Elisp
manual. Apologies.

>> See the attached patch.
>
> Thanks!
> Installed onto bugfix.
> https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=41ebc2e40

Regards,
Leo


Re: OS advice

2023-01-06 Thread briangpowell
As always great advice from Jude DaSheill:

In Emacs you can set the auto-save-interval SETQ to whatever you want;
suggest you increase that number of interval of keystrokes required before
an auto-save or maybe just turn off auto-saving altogether--if things start
to slow down

If you do try Linux; and everyone should at one point, realize that in
Linux you can easily create & mount extra "swap partitions" on your hard
drive which can be used in lieu of memory and/or in addition to it, if
indeed as you wondered, there may be a bottleneck of memory usage when you
try to use OrgMode--adding swap space may help--maybe not, I haven't looked
into it recently, don't want to get your hopes up for such a solution

In Linux you can also use exotic things like PVM--Parrallel Virtual
Memory--i.e. use memory from OTHER machines YMMV

In Linux you can also use Emacs OrgMode and/or VLFMode i.e. "Very Large
File Mode" and/or use FUSE to meld directory trees together with remote
machines & then edit with your best machine, the machine with the largest
RAM--with VLFMode in Emacs you can edit files of ANY size (since it only
puts in part of the file at a time)--or you could try VLFMode in the first
place; please tell me the results if you try that--does it speed up things
for you? Does it solve your problem?

Strongly suggest splitting up large OrgMode files when things slow down
and/or just putting a link to those other files that you may want to use
when in your main OrgMode file by using the file protocol:

[[file:~/my-OrgMode-file2][File2]] [[file:~/my-OrgMode-file3][File3]] ...

Other than that, I'd suggest trying to use CygWin on Windows first if you
haven't used CygWin yet, CygWin comes with XWindows & many other things
related to Linux that you may be familiar with can be used too--CygWin was
donated to the Free Software Communities from Red Hat--many thanks Red Hat!

What do Kill Gates' Micro$loth WindBlows users use now to run Emacs &
OrgMode?--y'all use CygWin right?

Installing CygWin on Windows is quick and easy & then so is installing
Emacs and/or OrgMode after that

On Fri, Jan 6, 2023 at 6:19 PM Jude DaShiell  wrote:

> Why not use a linux live disk and take the operating system for a spin
> without disrupting any of windows?  The live cd's allow for trial before
> installation.
>
>
>
> Jude  "There are four boxes to be used in
> defense of liberty:
>  soap, ballot, jury, and ammo. Please use in that order."
> -Ed Howdershelt (Author, 1940)
>
> .
>
> On Fri, 6 Jan 2023, orzodk wrote:
>
> > Greg Minshall  writes:
> >
> > > Ypo,
> > >
> > >> Do you think that if I install a Linux OS, Orgmode would run fast? Any
> > >> OS suggestion?
> > >
> > > it might (*).  if it's not too hard to install linux (i have no idea),
> you
> > > might figure out some sort of benchmark for your org experience, then
> > > try switching, see what happens.  (there are a lot of variables.)
> > >
> > > good luck.  Greg
> > >
> > > (*) as a linux enthusiast, and a knee-jerk windows-denier, i want to
> > > *believe* it will; that mostly unfounded belief will be of little help
> > > to you, though.
> >
> > I'm in a similar boat, Linux enthusiast, but you're at a point of
> > frustration where reinstalling an OS is an option then unless you're
> > looking for an execuse to install Linux you might start by reinstalling
> > Windows.
> >
> > If a fresh copy of Windows with years(?) of cruft removed still isn't
> > suitable then you might do as Greg suggests and try Linux to see if you
> > prefer that experience.
> >
> >
>
>


Re: OS advice

2023-01-06 Thread Tim Cross


Ypo  writes:

> Hi
>
> Orgmode is sometimes desperately slow on my PC: 
>
> Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz, 3100 Mhz
>
> (RAM)4,00 GB
>
> I am running Windows 10, everything I use works OK, but Orgmode. 
>
> Do you think that if I install a Linux OS, Orgmode would run fast? Any OS 
> suggestion?
>

Sadly, the answer is likely "that depends". There are just too many
unknown variables to provide a definitive answer. However, what I can
tell you is

- I have frequently taken hardware which users have found old and slow
  when running Windows and given it a new life running Linux. Linux can
  certainly perform better with less resources given some caveats. 

- Unlike Windows, Linux comes with a wide variety of destkop
  environments and window managers. Some are resource hungry and others
  are extremely light-weight. Selecting the right window manager will be
  crucial. For older and slower machines with only a small amount of
  memory, I would consider window managers like XFCE or maybe MATE. 

- From the specs you provide, my guess is that memory is your main
  bottle neck. This would further suggest that if you were to switch to
  Linux, avoid memory hungry desktop environments like Gnome or
  KDE. AGain, XFCE is small and fast and very reliable. It lacks the
  visual candy of other environments, but given your specs, something
  needs to be given up and visual candy seems a good starting
  point. However, this change will likely require some adjustment on
  your part. While there is little you cannot do on a Linux system, the
  level of integration and automation 'out of the box' is likely to be
  less. You will certainly be able to create an environment which is
  just as efficient and convenient as Windows, but it will likely take
  additional effort and willingness to adapt on your part. 

- Emacs and org mode can also be memory hungry. It is possible (likely
  in fact) that you could get much better performance, even under
  windows, by modifying how you use org mode. Things I would recommend
  include

- Keep your org files as small as possible. Use multiple files
  rather than one big file.
- Don't load any Emacs packages you don't actually use. Don't
  load/install any org packages you don't actually use/need.


A common error I see people make now that we have convenient emacs/elisp
packages is to install lots of packages. When I've been helping people
with Emacs performance, the first thing we do is go through all the
things they have installed/configured. Frequently, there are lots of
things installed which they never use.

What I sometimes recommend is that they comment out as much of their
Emacs and org configuration as possible and then use the system for a
few days. During this time, only enable something once you find you need
it. It is often surprising to them how much stuff they had configured or
installed which they really never used. The other benefit is that
smaller and simpler setups are less likely to have undesired side
effects or interactions with other packages, leading to fewer problems
and increased stability.

At the end of the day, a system with only 4Gb of memory is on the tight
side for a modern setup. I would argue the minimum size these days is
more like 8Gb and a 'good' setup is at least 12Gb. I personally have a
minimum of 16Gb and prefer 32Gb, but I also use a lot of VMs and other
container techniques to manage multiple stable and unrelated development
environments. On the other hand, my wife and children use small systems
running Linux XFCE with only 4Gb and find them quite adequate for what
they do (mainly email, surfing the web, basic office documents with
libre office etc). These systems are things like asus notebooks, small
form factor, slower CPU and 4Gb memory. They find them quite adequate
and appreciate the small form factor, but they also don't spend 8 hours
a day on them!



Re: OS advice

2023-01-06 Thread Jude DaShiell
i3 may be a good candidate desktop since it's supposed to be light on
resource useage.



Jude  "There are four boxes to be used in
defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Sat, 7 Jan 2023, Tim Cross wrote:

>
> Ypo  writes:
>
> > Hi
> >
> > Orgmode is sometimes desperately slow on my PC:
> >
> > Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz, 3100 Mhz
> >
> > (RAM)4,00 GB
> >
> > I am running Windows 10, everything I use works OK, but Orgmode.
> >
> > Do you think that if I install a Linux OS, Orgmode would run fast? Any OS 
> > suggestion?
> >
>
> Sadly, the answer is likely "that depends". There are just too many
> unknown variables to provide a definitive answer. However, what I can
> tell you is
>
> - I have frequently taken hardware which users have found old and slow
>   when running Windows and given it a new life running Linux. Linux can
>   certainly perform better with less resources given some caveats.
>
> - Unlike Windows, Linux comes with a wide variety of destkop
>   environments and window managers. Some are resource hungry and others
>   are extremely light-weight. Selecting the right window manager will be
>   crucial. For older and slower machines with only a small amount of
>   memory, I would consider window managers like XFCE or maybe MATE.
>
> - From the specs you provide, my guess is that memory is your main
>   bottle neck. This would further suggest that if you were to switch to
>   Linux, avoid memory hungry desktop environments like Gnome or
>   KDE. AGain, XFCE is small and fast and very reliable. It lacks the
>   visual candy of other environments, but given your specs, something
>   needs to be given up and visual candy seems a good starting
>   point. However, this change will likely require some adjustment on
>   your part. While there is little you cannot do on a Linux system, the
>   level of integration and automation 'out of the box' is likely to be
>   less. You will certainly be able to create an environment which is
>   just as efficient and convenient as Windows, but it will likely take
>   additional effort and willingness to adapt on your part.
>
> - Emacs and org mode can also be memory hungry. It is possible (likely
>   in fact) that you could get much better performance, even under
>   windows, by modifying how you use org mode. Things I would recommend
>   include
>
> - Keep your org files as small as possible. Use multiple files
>   rather than one big file.
> - Don't load any Emacs packages you don't actually use. Don't
>   load/install any org packages you don't actually use/need.
>
>
> A common error I see people make now that we have convenient emacs/elisp
> packages is to install lots of packages. When I've been helping people
> with Emacs performance, the first thing we do is go through all the
> things they have installed/configured. Frequently, there are lots of
> things installed which they never use.
>
> What I sometimes recommend is that they comment out as much of their
> Emacs and org configuration as possible and then use the system for a
> few days. During this time, only enable something once you find you need
> it. It is often surprising to them how much stuff they had configured or
> installed which they really never used. The other benefit is that
> smaller and simpler setups are less likely to have undesired side
> effects or interactions with other packages, leading to fewer problems
> and increased stability.
>
> At the end of the day, a system with only 4Gb of memory is on the tight
> side for a modern setup. I would argue the minimum size these days is
> more like 8Gb and a 'good' setup is at least 12Gb. I personally have a
> minimum of 16Gb and prefer 32Gb, but I also use a lot of VMs and other
> container techniques to manage multiple stable and unrelated development
> environments. On the other hand, my wife and children use small systems
> running Linux XFCE with only 4Gb and find them quite adequate for what
> they do (mainly email, surfing the web, basic office documents with
> libre office etc). These systems are things like asus notebooks, small
> form factor, slower CPU and 4Gb memory. They find them quite adequate
> and appreciate the small form factor, but they also don't spend 8 hours
> a day on them!
>
>



Re: [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]

2023-01-06 Thread David Masterson
Ihor Radchenko  writes:

> David Masterson  writes:
>
>> Not yet sure how to minimize my setup to build a reproducible case or
>> further debug this, but I thought I'd get the bug out to others who
>> might know better.
>
> I may consider using https://github.com/Malabarba/elisp-bug-hunter

I think I'll add this package to my setup, but I don't think it can help
in this case as it's an infinite loop bug.  Once it's locked in the
loop, I have to kill emacs, so elisp-bug-hunter would never have a
chance to report anything.

Question: does Org scan (some part of the) text *AS* you are typing?

I'm beginning to think that the answer is 'no' and, so, it was
auto-complete that tripped on a sequence of characters.  I'll have to
look at which part of auto-complete did it.

-- 
David Masterson



Re: LaTeX tutorial (focused on what Org exports) ??

2023-01-06 Thread David Masterson
William Denton  writes:

> On 5 January 2023, David Masterson wrote:
>
>> With the Org files that you create, how many levels of headers do you
>> use?  I use Org for personal task management mostly, but I'd like to
>> produce good PDFs to give to my wife (Org is too complicated).  My
>> problem is that I'll structure my documents with many (5+) header
>> levels with tasks at the bottom.  The problem is that the 'article' and
>> 'report' document classes used by Org don't look right if you go beyond
>> 3 levels -- if you know what I mean.  (NOTE: LaTeX newbie)
>
> By default the first three levels go to LaTeX headings, and then after that 
> they 
> become lists.  You can change that with the H option in a header, as 
> described 
> here, to set org-export-headline-levels:
>
> https://orgmode.org/org.html#Export-Settings
>
> So you could say:
>
> #+options: H:5
>
> Level four headings become paragraphs, and level five become subparagraphs.
>
> With that in place, you might like how the titlesec package can give a great 
> deal of control over section headings.  I use this for some reports---it 
> wraps 
> text around level three headings, which about as far as I usually go for 
> documents I export.
>
> #+LATEX_HEADER: \usepackage[]{titlesec}
> #+LATEX_HEADER: \titleformat{\section} {\centering\Large}{\thesection}{}{}
> #+LATEX_HEADER: 
> \titleformat{\subsubsection}[drop]{\itshape}{\thesection}{}{}{}
> #+LATEX_HEADER: \titlespacing{\subsubsection}{0.75in}{\baselineskip}{0.5in}

This looks interesting -- now to find some time to dig in.  Thanks.

-- 
David Masterson



Re: OS advice

2023-01-06 Thread Jude DaShiell
Why not use a linux live disk and take the operating system for a spin
without disrupting any of windows?  The live cd's allow for trial before
installation.



Jude  "There are four boxes to be used in
defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author, 1940)

.

On Fri, 6 Jan 2023, orzodk wrote:

> Greg Minshall  writes:
>
> > Ypo,
> >
> >> Do you think that if I install a Linux OS, Orgmode would run fast? Any
> >> OS suggestion?
> >
> > it might (*).  if it's not too hard to install linux (i have no idea), you
> > might figure out some sort of benchmark for your org experience, then
> > try switching, see what happens.  (there are a lot of variables.)
> >
> > good luck.  Greg
> >
> > (*) as a linux enthusiast, and a knee-jerk windows-denier, i want to
> > *believe* it will; that mostly unfounded belief will be of little help
> > to you, though.
>
> I'm in a similar boat, Linux enthusiast, but you're at a point of
> frustration where reinstalling an OS is an option then unless you're
> looking for an execuse to install Linux you might start by reinstalling
> Windows.
>
> If a fresh copy of Windows with years(?) of cruft removed still isn't
> suitable then you might do as Greg suggests and try Linux to see if you
> prefer that experience.
>
>



Documentation missing for several org-habit variables?

2023-01-06 Thread Christian Heinrich
Hi everyone,

I noticed that https://orgmode.org/manual/Tracking-your-habits.html explains 
only a few variables
that exist in org-agenda.el and that are declared via defvar.

However, in org-habit.el, more variables exist but are declared via defcustom. 
I cannot find any
documentation (online) on, e.g., org-habit-today-glyph.

Is this correct / are you aware of this or should the documentation for these 
variables be added as
well?

Best regards
Christian



Re: setting export_file_name during export

2023-01-06 Thread Alain . Cochard
Leo Butler writes on Fri  6 Jan 2023 22:52:

 > It would be a simple matter to create a filter to insert that
 > property drawer under the heading that contains point.

Well, feel free to enlighten me: I don't have any idea of even
how/where to start, but often face similar challen... err, simple
matters :-)

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@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 ]




Re: OS advice

2023-01-06 Thread orzodk
Greg Minshall  writes:

> Ypo,
>
>> Do you think that if I install a Linux OS, Orgmode would run fast? Any
>> OS suggestion?
>
> it might (*).  if it's not too hard to install linux (i have no idea), you
> might figure out some sort of benchmark for your org experience, then
> try switching, see what happens.  (there are a lot of variables.)
>
> good luck.  Greg
>
> (*) as a linux enthusiast, and a knee-jerk windows-denier, i want to
> *believe* it will; that mostly unfounded belief will be of little help
> to you, though.

I'm in a similar boat, Linux enthusiast, but you're at a point of
frustration where reinstalling an OS is an option then unless you're
looking for an execuse to install Linux you might start by reinstalling
Windows.

If a fresh copy of Windows with years(?) of cruft removed still isn't
suitable then you might do as Greg suggests and try Linux to see if you
prefer that experience. 



Re: setting export_file_name during export

2023-01-06 Thread Leo Butler
On Fri, Jan 06 2023, alain.coch...@unistra.fr wrote:

> Leo Butler writes on Fri  6 Jan 2023 21:38:
>  > Hello,
>  > 
>  > I am trying something new this semester: all my lecture notes are
>  > organized into a single org file. A minor problem: I want to export each
>  > lecture (see below) as a separate pdf file. I would like to know if
>  > anyone has ``solved'' this problem or has a suggestion on how to do it.
>  > 
>  > Ideally, I would like to have a single function that retains only the
>  > current subtree that contains point, sets EXPORT_FILE_NAME based on the
>  > top heading, and exports it as a complete beamer pdf.
>
> Hi.  Sorry if you already know this and want something more automated
> it is not too clear to me.  (What is not clear either is why you have
> '* Lecture 1' _and_ '** Lecture 1', etc., i.e., why not just
> '* Lecture 1'.)

For my setup, each heading is a separate lecture, each subheading is a
separate beamer slide, etc.

>
> So: if you insert 
>
>   :PROPERTIES:
>   :EXPORT_FILE_NAME: lecture-1.pdf
>   :END:
>

Aha! Thank you very much. I had forgotten about using property
drawers. It would be a simple matter to create a filter to insert that
property drawer under the heading that contains point.

> right after '** Lecture 1' and, with the point inside that subtree,
> do:
>
>   C-c C-e C-s l O
>
> it seems to me it does the job.

Yes, it does! Thanks again.

Leo

>
>  > #+AUTHOR: Leo Butler
>  > #+TITLE: Lectures in Math
>  > #+OPTIONS: H:2 toc:t num:t
>  > #+LATEX_CLASS: beamer
>  > #+LATEX_CLASS_OPTIONS: [presentation]
>  > #+STARTUP: beamer
>  > #+EXPORT_FILE_NAME: lectures
>  > 
>  > * Lecture 1
>  > ** Lecture 1
>  > In the beginning...This subtree should be exported to =lecture-1.pdf=.
>  > * Lecture 2
>  > ** Lecture 2
>  > Next...This subtree should be exported to =lecture-2.pdf=.


*and* that I needed to 


Tilde not expanded during latex export

2023-01-06 Thread Alain . Cochard


release_9.6-193-g30314c 

I have file '~/Org/test.org', which contains

   #+begin_src org
 * foo
 bar
   #+end_src

I do 'C-c '' from within the src block, then 'C-c C-e l o' from the
*Org Src test.org[ org ]* buffer.

The minibuffer asks for an output file:
 
   Output file: ~/Org/

I add 'foobar.tex' then  and get:

   Wrote /home/cochard/Org/foobar.tex
   Processing LaTeX file ~/Org/foobar.tex...
   Latexmk: Filename '~/Org/foobar.tex' contains character not allowed
   for TeX file.
   Latexmk: Stopping because of bad filename(s).
   Rc files read:
 /etc/latexmkrc
   Latexmk: This is Latexmk, John Collins, 17 Mar. 2022. Version 4.77,
   version: 4.77.
   if: File "/home/cochard/Org/foobar.pdf" wasn’t produced.  See "*Org
   PDF LaTeX Output*" for details

(that Output buffer just repeats the same info)

Now, if instead I write the '~' explicitly, as

   Output file: /home/cochard/Org/foobar.tex

then everything goes smoothly and the expected pdf is generated.

Is there a way to circumvent this (minor) inconvenience?

Thanks


-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@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 ]




Re: setting export_file_name during export

2023-01-06 Thread Alain . Cochard
Leo Butler writes on Fri  6 Jan 2023 21:38:
 > Hello,
 > 
 > I am trying something new this semester: all my lecture notes are
 > organized into a single org file. A minor problem: I want to export each
 > lecture (see below) as a separate pdf file. I would like to know if
 > anyone has ``solved'' this problem or has a suggestion on how to do it.
 > 
 > Ideally, I would like to have a single function that retains only the
 > current subtree that contains point, sets EXPORT_FILE_NAME based on the
 > top heading, and exports it as a complete beamer pdf.

Hi.  Sorry if you already know this and want something more automated
it is not too clear to me.  (What is not clear either is why you have
'* Lecture 1' _and_ '** Lecture 1', etc., i.e., why not just
'* Lecture 1'.)

So: if you insert 

  :PROPERTIES:
  :EXPORT_FILE_NAME: lecture-1.pdf
  :END:

right after '** Lecture 1' and, with the point inside that subtree,
do:

  C-c C-e C-s l O

it seems to me it does the job.

 > #+AUTHOR: Leo Butler
 > #+TITLE: Lectures in Math
 > #+OPTIONS: H:2 toc:t num:t
 > #+LATEX_CLASS: beamer
 > #+LATEX_CLASS_OPTIONS: [presentation]
 > #+STARTUP: beamer
 > #+EXPORT_FILE_NAME: lectures
 > 
 > * Lecture 1
 > ** Lecture 1
 > In the beginning...This subtree should be exported to =lecture-1.pdf=.
 > * Lecture 2
 > ** Lecture 2
 > Next...This subtree should be exported to =lecture-2.pdf=.

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@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 ]




setting export_file_name during export

2023-01-06 Thread Leo Butler
Hello,

I am trying something new this semester: all my lecture notes are
organized into a single org file. A minor problem: I want to export each
lecture (see below) as a separate pdf file. I would like to know if
anyone has ``solved'' this problem or has a suggestion on how to do it.

Ideally, I would like to have a single function that retains only the
current subtree that contains point, sets EXPORT_FILE_NAME based on the
top heading, and exports it as a complete beamer pdf.

TIA,
Leo

#+AUTHOR: Leo Butler
#+TITLE: Lectures in Math
#+OPTIONS: H:2 toc:t num:t
#+LATEX_CLASS: beamer
#+LATEX_CLASS_OPTIONS: [presentation]
#+STARTUP: beamer
#+EXPORT_FILE_NAME: lectures

* Lecture 1
** Lecture 1
In the beginning...This subtree should be exported to =lecture-1.pdf=.
* Lecture 2
** Lecture 2
Next...This subtree should be exported to =lecture-2.pdf=.


Re: Babel (scheme): Evaluation errors are not shown

2023-01-06 Thread Marc Nieper-Wißkirchen
Am Fr., 6. Jan. 2023 um 17:34 Uhr schrieb :
>
> On Fri, Jan 06, 2023 at 04:20:29PM +, Ihor Radchenko wrote:
> > Ihor Radchenko  writes:
> >
> > > Marc Nieper-Wißkirchen  writes:
> > > ...
> >
> > May someone forward my last email to Marc?
> > For some reason, his mail server classifies my emails as spam and
> > rejects them.
>
> Just tried. Happens for me too.

Strange.  Can you try marc.nie...@gmail.com instead?

Thanks,

Marc

>
> Cheers
> --
> t



Re: Babel (scheme): Evaluation errors are not shown

2023-01-06 Thread Rudolf Adamkovič
Bastien  writes:

> Sure, done.

Thank you for your understanding, Bastien!

> (Or write ob-fennel.el?)

It already exists, FYI:

https://gitlab.com/andreyorst/ob-fennel

Rudy
-- 
"Simplicity is complexity resolved."
-- Constantin Brâncuși, 1876-1957

Rudolf Adamkovič  [he/him]
Studenohorská 25
84103 Bratislava
Slovakia



Re: OS advice

2023-01-06 Thread Greg Minshall
Ypo,

> Do you think that if I install a Linux OS, Orgmode would run fast? Any
> OS suggestion?

it might (*).  if it's not too hard to install linux (i have no idea), you
might figure out some sort of benchmark for your org experience, then
try switching, see what happens.  (there are a lot of variables.)

good luck.  Greg

(*) as a linux enthusiast, and a knee-jerk windows-denier, i want to
*believe* it will; that mostly unfounded belief will be of little help
to you, though.



OS advice

2023-01-06 Thread Ypo

Hi

Orgmode is sometimes desperately slow on my PC:

Intel(R) Core(TM) i3-2100 CPU @ 3.10GHz, 3100 Mhz

(RAM)    4,00 GB


I am running Windows 10, everything I use works OK, but Orgmode.

Do you think that if I install a Linux OS, Orgmode would run fast? Any 
OS suggestion?


Best regards


Re: [FR] Please add writing to existing heading in org-bibtex

2023-01-06 Thread Sterling Hooten
Thanks for the instructions, this is my first patch.

I think calling  `nonew’ invalidates the argument `no-indent’ as 
`org-bibtex-put’ eventually 
calls `org-entry-put’ which uses `org-indent-line’. I’m not sure what’s the 
best way to handle that.

diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS
index d4e9b4368..8eab4cae2 100644
--- a/etc/ORG-NEWS
+++ b/etc/ORG-NEWS
@@ -513,6 +513,10 @@ use =attachment:= style links instead of the standard 
=file:= link type.
 *** New function ~org-get-title~ to get =#+TITLE:= property from buffers
 
 A function to collect the document title from the org-mode buffer.
+*** ~org-bibtex-write~ can now write to heading at point with optional 
interactive argument
+
+Previously, a new heading was created. Now with argument =nonew= the
+bibtex data will be added to properties of heading at point.
 
 *** ~org-fold-show-entry~ does not fold drawers by default anymore
 
diff --git a/lisp/ol-bibtex.el b/lisp/ol-bibtex.el
index 313b1cde8..91aa4c36e 100644
--- a/lisp/ol-bibtex.el
+++ b/lisp/ol-bibtex.el
@@ -718,29 +718,33 @@ Return the number of saved entries."
   (interactive "fFile: ")
   (org-bibtex-read-buffer (find-file-noselect file 'nowarn 'rawfile)))
 
-(defun org-bibtex-write ( noindent)
+(defun org-bibtex-write ( nonew noindent)
   "Insert a heading built from the first element of `org-bibtex-entries'.
+
+With prefix argument NONEW modify properties of heading at point.
 When optional argument NOINDENT is non-nil, do not indent the properties
 drawer."
-  (interactive)
+  (interactive "P")
   (unless org-bibtex-entries
 (error "No entries in `org-bibtex-entries'"))
   (let* ((entry (pop org-bibtex-entries))
 (org-special-properties nil) ; avoids errors with `org-entry-put'
 (val (lambda (field) (cdr (assoc field entry
-(togtag (lambda (tag) (org-toggle-tag tag 'on
-(org-insert-heading)
-(insert (funcall org-bibtex-headline-format-function entry))
-(insert "\n:PROPERTIES:\n")
-(org-bibtex-put "TITLE" (funcall val :title) 'insert)
+(togtag (lambda (tag) (org-toggle-tag tag 'on)))
+ (insert-raw (not nonew)))
+(unless nonew
+  (org-insert-heading)
+  (insert (funcall org-bibtex-headline-format-function entry))
+  (insert "\n:PROPERTIES:\n"))
+(org-bibtex-put "TITLE" (funcall val :title) insert-raw)
 (org-bibtex-put org-bibtex-type-property-name
(downcase (funcall val :type))
-'insert)
+insert-raw)
 (dolist (pair entry)
   (pcase (car pair)
(:titlenil)
(:type nil)
-   (:key  (org-bibtex-put org-bibtex-key-property (cdr pair) 'insert))
+   (:key  (org-bibtex-put org-bibtex-key-property (cdr pair) 
insert-raw))
(:keywords (if org-bibtex-tags-are-keywords
   (dolist (kw (split-string (cdr pair) ", *"))
 (funcall
@@ -748,9 +752,9 @@ drawer."
  (replace-regexp-in-string
   "[^[:alnum:]_@#%]" ""
   (replace-regexp-in-string "[ \t]+" "_" kw
-(org-bibtex-put (car pair) (cdr pair) 'insert)))
-   (_ (org-bibtex-put (car pair) (cdr pair) 'insert
-(insert ":END:\n")
+(org-bibtex-put (car pair) (cdr pair) insert-raw)))
+   (_ (org-bibtex-put (car pair) (cdr pair) insert-raw
+(unless nonew (insert ":END:\n"))
 (mapc togtag org-bibtex-tags)
 (unless noindent
   (org-indent-region
@@ -771,7 +775,7 @@ drawer."
   (interactive "fFile: ")
   (let ((pos (point)))
 (dotimes (_ (org-bibtex-read-file file))
-  (save-excursion (org-bibtex-write 'noindent))
+  (save-excursion (org-bibtex-write nil 'noindent))
   (re-search-forward org-property-end-re)
   (insert "\n"))
 (org-indent-region pos (point


> On 2022-12-27, at 13:34, Ihor Radchenko  wrote:
> 
> Sterling Hooten  writes:
> 
>> The default behavior of org-bibtex-write is to insert a new
>> heading with the bibliographic data in the properties. But an
>> alternative workflow would just update the properties of the heading at
>> point, rather than creating a new one. The below patch is a simple
>> implementation I’ve been using for a month. Would it be possible to
>> integrate this upstream?
> 
> Yes. It will make sense.
> 
>> -(defun org-bibtex-write ()
>> -  "Insert a heading built from the first element of `org-bibtex-entries'."
>> +(defun org-bibtex-write ( no-new)
>> +  "Insert a heading built from the first element of `org-bibtex-entries'. 
>> With non-nil optional NO-NEW write to heading at point instead of creating 
>> new."
> 
> Please put the second sentence on a separate line. By convention, first
> line is a short description of the command and should not exceed 80
> symbols. See
> https://www.gnu.org/software/emacs/manual/html_node/elisp/Documentation-Tips.html
> 
> Also, it will be a good idea to write heading at 

Re: [BUG] Org agenda misbehaves in a side window [9.5 (9.5-g0a86ad @ /home/zellerin/.emacs.d/elpa/org-9.5/)]

2023-01-06 Thread Tomas Zellerin
Ihor Radchenko  writes:

>> The reason seems that org-agenda-get-restriction-and-command calls
>> delete-other-window; however, this is not something user observes and
>> expects as effect of those commands.
>
> Sure, but what can we do in order to both fix this and also not break
> the existing behaviour?

The simplest solution seems to bind (ignore-window-parameters t) inside
the save-window-excursion in `org-agenda-get-restriction-and-command`,
see below. But I do not know what all can be broken, or whether
something cleaner is possible.

Best regards,

Tomas

--- /tmp/org-agenda.orig2023-01-06 19:43:03.528884719 +0100
+++ /tmp/org-agenda.el  2023-01-06 19:41:23.493330904 +0100
@@ -3112,13 +3112,14 @@
   c entry key type match prefixes rmheader header-end custom1 desc
   line lines left right n n1)
   (save-window-excursion
-   (delete-other-windows)
-   (org-switch-to-buffer-other-window " *Agenda Commands*")
-   (erase-buffer)
-   (insert (eval-when-compile
- (let ((header
-(copy-sequence
- "Press key for an agenda command:
+(let ((ignore-window-parameters t))
+  (delete-other-windows)
+  (org-switch-to-buffer-other-window " *Agenda Commands*")
+  (erase-buffer)
+  (insert (eval-when-compile
+(let ((header
+   (copy-sequence
+"Press key for an agenda command:
 <   Buffer, subtree/region restriction
 a   Agenda for current week or day  >   Remove restriction
 t   List of all TODO entriese   Export agenda views
@@ -3128,14 +3129,14 @@
 ?   Find :FLAGGED: entries  C   Configure custom agenda commands
 *   Toggle sticky agenda views  #   List stuck projects (!=configure)
 "))
-   (start 0))
-   (while (string-match
-   "\\(^\\|   \\|(\\)\\(\\S-\\)\\( \\|=\\)"
-   header start)
- (setq start (match-end 0))
- (add-text-properties (match-beginning 2) (match-end 2)
-  '(face bold) header))
-   header)))
+  (start 0))
+  (while (string-match
+  "\\(^\\|   \\|(\\)\\(\\S-\\)\\( \\|=\\)"
+  header start)
+(setq start (match-end 0))
+(add-text-properties (match-beginning 2) (match-end 2)
+ '(face bold) header))
+  header
(setq header-end (point-marker))
(while t
  (setq custom1 custom)



Re: LaTeX tutorial (focused on what Org exports) ??

2023-01-06 Thread William Denton

On 5 January 2023, David Masterson wrote:


With the Org files that you create, how many levels of headers do you
use?  I use Org for personal task management mostly, but I'd like to
produce good PDFs to give to my wife (Org is too complicated).  My
problem is that I'll structure my documents with many (5+) header
levels with tasks at the bottom.  The problem is that the 'article' and
'report' document classes used by Org don't look right if you go beyond
3 levels -- if you know what I mean.  (NOTE: LaTeX newbie)


By default the first three levels go to LaTeX headings, and then after that they 
become lists.  You can change that with the H option in a header, as described 
here, to set org-export-headline-levels:


https://orgmode.org/org.html#Export-Settings

So you could say:

#+options: H:5

Level four headings become paragraphs, and level five become subparagraphs.

With that in place, you might like how the titlesec package can give a great 
deal of control over section headings.  I use this for some reports---it wraps 
text around level three headings, which about as far as I usually go for 
documents I export.


#+LATEX_HEADER: \usepackage[]{titlesec}
#+LATEX_HEADER: \titleformat{\section} {\centering\Large}{\thesection}{}{}
#+LATEX_HEADER: \titleformat{\subsubsection}[drop]{\itshape}{\thesection}{}{}{}
#+LATEX_HEADER: \titlespacing{\subsubsection}{0.75in}{\baselineskip}{0.5in}


Bill

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada



Re: Problem with footnotes for sub-items in Beamer export

2023-01-06 Thread Fraga, Eric
Untested but what happens if you put \onslide within the footnote itself?
-- 
: Eric S Fraga, with org release_9.6-190-g82cc6f in Emacs 30.0.50


Re: [MAINTENANCE] Org orphanage?

2023-01-06 Thread tomas
On Fri, Jan 06, 2023 at 04:51:01PM +, Ihor Radchenko wrote:

[...]

> It is a good shelter, but I was hoping to promote Sourcehut and
> discourage people using Github to report issues in favour of Org mailing
> list.

<3

Thanks
-- 


signature.asc
Description: PGP signature


Re: [MAINTENANCE] Org orphanage?

2023-01-06 Thread Ihor Radchenko
Bastien Guerry  writes:

>> are there reasons not to punt the orphanage issue to this emacs
>> orphanage (and, point to it from the org wiki)?  on the one hand, "less
>> control".  on the other, "less work" (even "globally", if things scale).
>
> Indeed, perhaps https://github.com/emacsorphanage is a good shelter
> for Org orphan packages already.

It is a good shelter, but I was hoping to promote Sourcehut and
discourage people using Github to report issues in favour of Org mailing
list.

Otherwise, I have no objections to Jonas Bernoulli doing the background
maintenance. Less work for us at the end.

One thing we may do though is letting him know about
https://orgmode.org/worg/org-orphanage.html - he may contact us or use
GitHub mentions, and he may let us know when a new Org-related package
lands on his repo.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Problem with footnotes for sub-items in Beamer export

2023-01-06 Thread Guillaume MULLER

Hi,

Happy new year to everyone.

CONTEXT: I have an org file that I want to expert as a Beamer presentation. In 
this file, I make \items appear one after the other. For some (sub)items (2nd 
level itemize), I would like to add a footnote.

EXPECTATION: I would expect this footnote to appear at the same time as the 
item.

RESULTS:

Whatever I try, the footnote appears either at the same time as the parent item 
(1rst level itemize), i.e. way before it is useful, or at the end of the 
itemize (when it is not necessary anymore) :{

As can be seen in the attached MWE, I've tried many things :
- Using \pause vs. (\onslide) for the items
- org-style footnote vs. LaTeX \footnote
- Hacking by inserting LaTeX code (manual insertion of LaTeX \onslide 
out/in-side the \footnote)
- Putting the itemize inside Blocks or not (behavior with the various tweaks 
above is not the same!)
- Native Emacs org (9.5) or MELPA org (9.6)

Any help would be appreciated

Regards,

--
Guillaume MULLER
Assistant Professor, PhD
ISI Department - Office #426
04 77 42 02 71
École des Mines de Saint-Étienne
Espace Fauriel
29 Rue Pierre et Dominique Ponchardier
42100 Saint-Étienne
www.mines-stetienne.fr


BugFootnote.org
Description: Lotus Organizer


OpenPGP_0xF3BCAD9F46F5FADC.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: Babel (scheme): Evaluation errors are not shown

2023-01-06 Thread tomas
On Fri, Jan 06, 2023 at 04:20:29PM +, Ihor Radchenko wrote:
> Ihor Radchenko  writes:
> 
> > Marc Nieper-Wißkirchen  writes:
> > ...
> 
> May someone forward my last email to Marc?
> For some reason, his mail server classifies my emails as spam and
> rejects them.

Just tried. Happens for me too.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: Babel (scheme): Evaluation errors are not shown

2023-01-06 Thread Ihor Radchenko
Ihor Radchenko  writes:

> Marc Nieper-Wißkirchen  writes:
> ...

May someone forward my last email to Marc?
For some reason, his mail server classifies my emails as spam and
rejects them.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Babel (scheme): Evaluation errors are not shown

2023-01-06 Thread Ihor Radchenko
Marc Nieper-Wißkirchen  writes:

> Despite the unfortunate lack of a maintainer, I hope the (latest
> version of the) patch can still be applied as the current behavior of
> ob-scheme.el, namely, silencing any evaluation errors is infeasible.

Yes, it can. Can you please take a look at patch failure issue in my
last reply?

> Do you need any FSF copyright assignments from me? (I already
> contributed to GCC and Gnulib under such an assignment in the past.)

For this particular patch, your changes fall within TINYCHANGE (~15LOC),
so copyright should not be necessary.

As for GCC-related assignment, I am not sure if it is sufficient. In my
own assignment, GNU EMACS changes are mentioned explicitly. If your
assignment also mentions GCC and Gnulib only, I doubt that GNU EMACS is
also covered.

Bastien may know better.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Conflict between Org hyperlink and auto-complete (I think) [9.6 ( @ /home/dsmasterson/.emacs.d/elpa/org-9.6/)]

2023-01-06 Thread Ihor Radchenko
David Masterson  writes:

> Not yet sure how to minimize my setup to build a reproducible case or
> further debug this, but I thought I'd get the bug out to others who
> might know better.

I may consider using https://github.com/Malabarba/elisp-bug-hunter

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Package keyval Error: margins undefined. [9.6 (release_9.6-61-g63e073f @ /home/data1/protected/Programming/Software/emacs/lisp/org/)]

2023-01-06 Thread tomas
On Thu, Jan 05, 2023 at 11:30:46PM +0300, Jean Louis wrote:
> 
> 
> Remember to cover the basics, that is, what you expected to happen and
> what in fact did happen.  You don't know how to make a good report?  See
> 
>  https://orgmode.org/manual/Feedback.html#Feedback
> 
> Your bug report will be posted to the Org mailing list.
> 
> 
> Can't generate PDF file, though it worked just before days.
> 
> ERROR: Package keyval Error: margins undefined.
> 
> --- TeX said ---
> 
> See the keyval package documentation for explanation.
> Type  H   for immediate help.
>  ...  
>   
> l.1005 \ProcessOptionsKV[p]{Gm}

I think people here need to see the TeX code: this is most
definitely a (La)TeX error.

Cheers
-- 
t


signature.asc
Description: PGP signature


Re: [BUG] Package keyval Error: margins undefined. [9.6 (release_9.6-61-g63e073f @ /home/data1/protected/Programming/Software/emacs/lisp/org/)]

2023-01-06 Thread Ihor Radchenko
Jean Louis  writes:

> Can't generate PDF file, though it worked just before days.
>
> ERROR: Package keyval Error: margins undefined.
>
> --- TeX said ---
>
> See the keyval package documentation for explanation.
> Type  H   for immediate help.
>  ...  
>   
> l.1005 \ProcessOptionsKV[p]{Gm}

We don't have ProcessOptionsKV in Org. So, it is likely something to do
with your config.
Could you please provide an MWE?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [PATCH] lisp/ob-octave.el, was [PATCH] rfc: using ert-deftest with side-effects

2023-01-06 Thread Ihor Radchenko
Leo Butler  writes:

>> Apparently, `sleep-for' 1 second was not enough, and I decided to remove
>> checking file size completely.
>
> Hello Ihor,
>
> Is there an environment variable that could be used to determine is the
> tests are being run on sourcehut? This would let us cut out that test on
> sourcehut, while still keeping it elsewhere.

No, we have nothing like this.

In theory, we can bind something in
https://git.sr.ht/~bzg/org-mode-tests/tree/master/item/.builds/init.el,
but I am not sure if it is a good idea.

The tests are failing not because something wrong in the CI machine, but
simply because CI machine is slow. You can get similar issue when
running Org tests on an actual proper old PC or simply when someone is
running CPU-heavy process alongside with Org tests.

So, I do not think that creating exceptions for CI is a good idea.

>> https://builds.sr.ht/~bzg/job/914954
>> 2 unexpected results:
>>FAILED  ob-octave/graphics-file  ((should-not (get-buffer "*Org-Babel
>>Error Output*")) :form (get-buffer "*Org-Babel Error Output*") :value
>>#) 
>>FAILED  ob-octave/graphics-file-space  ((should-not (get-buffer
>>"*Org-Babel Error Output*")) :form (get-buffer "*Org-Babel Error
>>Output*") :value #) 
>>
>> As you can see *Org-Babel Error Output* buffer does not exist when
>> running the test.
>>
>> Leo, could you please take a look?
>
> An earlier test is creating that *Org Babel Error Output* buffer. That
> is killed on the first test, before the test is actually run. But
> GET-BUFFER behaves in an undocumented way: it returns a non-nil value,
> #. To remedy that, I have wrapped the calls in
> BUFFER-LIVE-P.

This is not undocumented. The killed buffers still exists as Elisp
objects:

28.10 Killing Buffers
=

“Killing a buffer” makes its name unknown to Emacs and makes the memory
space it occupied available for other use.

   The buffer object for the buffer that has been killed remains in
existence as long as anything refers to it, but it is specially marked
so that you cannot make it current or display it.  Killed buffers retain
their identity, however; if you kill two distinct buffers, they remain
distinct according to ‘eq’ although both are dead.


> See the attached patch.

Thanks!
Installed onto bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=41ebc2e40

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: [BUG] Org agenda misbehaves in a side window [9.5 (9.5-g0a86ad @ /home/zellerin/.emacs.d/elpa/org-9.5/)]

2023-01-06 Thread Ihor Radchenko
Tomas Zellerin  writes:

> When Agenda buffer is in a side window, several actions fail with
> "Cannot make side window the only window".
>
> Example:
>
> emacs -Q
> in *scratch*, (setq display-buffer-alist '(("\\*Org Agenda\\*"
> display-buffer-in-side-window)))
> M-x org-agenda t to display Todo agenda
> in org-agenda buffer, another M-x org-agenda is observed fails with error 
> above,
> expected is display the menu to select agenda command

Confirmed.

> Other failing commands are for example changes of todo state in agenda
> buffer.
>
> The reason seems that org-agenda-get-restriction-and-command calls
> delete-other-window; however, this is not something user observes and
> expects as effect of those commands.

Sure, but what can we do in order to both fix this and also not break
the existing behaviour?

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Is function 'org-insert-property-drawer' usable?

2023-01-06 Thread Ihor Radchenko
Bastien Guerry  writes:

>> If not making `org-insert-property-drawer' a command back, we can amend
>> the manual, as suggested.
>
> Yes, I think amending the manual is good enough!

Applied, onto bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=28a966484

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at .
Support Org development at ,
or support my work at 



Re: Strange thing on emacs master exporting to LaTeX

2023-01-06 Thread Pedro Andres Aranda Gutierrez
Yep, one isn't getting younger ;-)

Sorry for the noise...
/PA

On Fri, 6 Jan 2023 at 13:43,  wrote:

> Pedro Andres Aranda Gutierrez writes on Fri  6 Jan 2023 13:10:
>  > Calling with `emacs -Q` on the following MWE:
>  >
>  > ```
>  > #+TITLE: Test
>  > #+SUBTITLE: MWE for section* bug
>  > #+LATEX_CLASS: article
>  > # +LATEX_CLASS: scrreprt
>  > #+LATEX_CLASS_OPTIONS:
> [english,a4paper,fontsize=11pt,oneside,headinclude]
>  > # +OPTIONS: toc:nil H:4
>  > # +LATEX_HEADER: \input{scrbook-extras}
>  >
>  > * Introduction
>  >   :PROPERTIES:
>  >   :UNNMBERED: t
>
> Didn't you forget the U in UNNUMBERED?
>
> --
> EOST (École et Observatoire des Sciences de la Terre)
> ITE (Institut Terre & Environnement) | alain.coch...@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 ]
>
>

-- 
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


Re: Strange thing on emacs master exporting to LaTeX

2023-01-06 Thread Alain . Cochard
Pedro Andres Aranda Gutierrez writes on Fri  6 Jan 2023 13:10:
 > Calling with `emacs -Q` on the following MWE:
 > 
 > ```
 > #+TITLE: Test
 > #+SUBTITLE: MWE for section* bug
 > #+LATEX_CLASS: article
 > # +LATEX_CLASS: scrreprt
 > #+LATEX_CLASS_OPTIONS: [english,a4paper,fontsize=11pt,oneside,headinclude]
 > # +OPTIONS: toc:nil H:4
 > # +LATEX_HEADER: \input{scrbook-extras}
 > 
 > * Introduction
 >   :PROPERTIES:
 >   :UNNMBERED: t

Didn't you forget the U in UNNUMBERED?

-- 
EOST (École et Observatoire des Sciences de la Terre) 
ITE (Institut Terre & Environnement) | alain.coch...@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 ]




Strange thing on emacs master exporting to LaTeX

2023-01-06 Thread Pedro Andres Aranda Gutierrez
Calling with `emacs -Q` on the following MWE:

```
#+TITLE: Test
#+SUBTITLE: MWE for section* bug
#+LATEX_CLASS: article
# +LATEX_CLASS: scrreprt
#+LATEX_CLASS_OPTIONS: [english,a4paper,fontsize=11pt,oneside,headinclude]
# +OPTIONS: toc:nil H:4
# +LATEX_HEADER: \input{scrbook-extras}

* Introduction
  :PROPERTIES:
  :UNNMBERED: t
  :END:

A stupid introduction

** Prerequisites
```
Results in
```
% Created 2023-01-06 vie 12:41
% Intended LaTeX compiler: pdflatex
\documentclass[english,a4paper,fontsize=11pt,oneside,headinclude]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{wrapfig}
\usepackage{rotating}
\usepackage[normalem]{ulem}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{capt-of}
\usepackage{hyperref}
\author{Pedro Andrés Aranda Gutiérrez}
\date{\today}
\title{Test\\\medskip
\large MWE for section* bug}
\hypersetup{
 pdfauthor={Pedro Andrés Aranda Gutiérrez},
 pdftitle={Test},
 pdfkeywords={},
 pdfsubject={},
 pdfcreator={Emacs 30.0.50 (Org mode 9.6)},
 pdflang={English}}
\begin{document}

\maketitle
\tableofcontents


\section{Introduction}
\label{sec:org3c8c3ba}
A stupid introduction

\subsection{Prerequisites}
\label{sec:org0ecaa5c}
\end{document}
```

I was expecting `\section*{Introduction}` or am I wrong?

Thanks, /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


Re: [BUG] issue with texmathp [9.6 (release_9.6-22-g78d283 @ /home/jds6696/.emacs.d/straight/build/org-mode/)]

2023-01-06 Thread Daniel Fleischer
I just found this thread after math-related things stopped working. I
have two use cases that don't work now:

1. Inserting a dollar pair $$ using `cdlatex-dollar` (it thinks we're
inside a math environment).

2. Inserting of cdlatex environments using their built-in completions, e.g.
ali
eqn
   stopped working.

Previously org-cdlatex worked perfectly, you could insert \alpha using
`a and it compiled to HTML/latex (without $$), have $...$ compiled into
an inline equation and insert latex environment like
\begin{align}...\end{align} without explicit math environment and was
also compiled perfectly to HTML/latex.

-- 
Daniel Fleischer



Re: [MAINTENANCE] Org orphanage?

2023-01-06 Thread Bastien Guerry
Hi Greg,

Greg Minshall  writes:

> but, recently i was looking at org-grep, and found its new home:
> 
> https://github.com/emacsorphanage/org-grep

thanks - I added this to the org-orphanage.org page on Worg:
https://orgmode.org/worg/org-orphanage.html

Contributing to Worg is as easy as editing some Org files, committing
and pushing: don't hesitate to contribute.

> are there reasons not to punt the orphanage issue to this emacs
> orphanage (and, point to it from the org wiki)?  on the one hand, "less
> control".  on the other, "less work" (even "globally", if things scale).

Indeed, perhaps https://github.com/emacsorphanage is a good shelter
for Org orphan packages already.

Best,

-- 
 Bastien



Re: [MAINTENANCE] Org orphanage?

2023-01-06 Thread Greg Minshall
Ihor, Bastien, et al.,

i am not really following this conversation.

but, recently i was looking at org-grep, and found its new home:

https://github.com/emacsorphanage/org-grep


Ihor mentions the emacs orphange:
> Should we extend the org-contrib's current idea to other Org-related
> packages that are seeking a maintainer? Similar to
> https://github.com/emacsorphanage

are there reasons not to punt the orphanage issue to this emacs
orphanage (and, point to it from the org wiki)?  on the one hand, "less
control".  on the other, "less work" (even "globally", if things scale).

cheers, Greg