Re: org-table in comment environments

2022-06-22 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>>> I recommend to hide such table inside drawer and set
>>> org-export-with-drawers appropriately.
>> 
>> Thanks, any type of drawer in particular?

> Feel free to consult the docstring of org-export-with-drawers


That seems to work

#+OPTIONS: d:(not "mytest")
:mytest:

| name  | test |
|---+--|
| stud1 |   10 |

:END:

Uwe 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-table in comment environments

2022-06-22 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> I have a org-table in a comment environment, since I don't want to
>> export it.
>> 
>> However you can I edit the table using org-table commands, orgtbl-mode
>> is ignored, so what shall I do?
>> 
>> That seems as a stupid question, but I can't find its obvious answer.

> Everything inside comment is considered verbatim.

> I recommend to hide such table inside drawer and set
> org-export-with-drawers appropriately.


Thanks, any type of drawer in particular?

Uwe 




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


org-table in comment environments

2022-06-21 Thread Uwe Brauer


Hi

I have a org-table in a comment environment, since I don't want to export it. 

However you can I edit the table using org-table commands, orgtbl-mode
is ignored, so what shall I do?

That seems as a stupid question, but I can't find its obvious answer.

Regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: exporting to mediawiki syntax math is not converted

2022-06-20 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>>> See org-html-with-latex. We use mathjax syntax for LaTeX export by
>>> default
>> 
>> I see, but that means, the exported wiki cannot be used say for
>> wikipedia since it uses mediawiki syntax for math.
>> 
>> Does anybody knows about a 3rd party package providing support for mediawiki?

> You just need a custom export filter for latex fragments in
> org-export-filter-latex-fragment-functions.

> Or, if you think that mediawiki math export is common enough, we may
> implement mediawiki support as an additional option in
> org-html-with-latex. But we will need other people to voice their
> support.

Fair enough. Meanwhile I got ox-pandoc to work (although I still use
pandoc 1.9 and it requires 2.X) and indeed it has an export option for
mediawiki and the math is correctly converted.

So for me that is fine, but maybe others, who can't use pandoc might
want mediawiki support?



smime.p7s
Description: S/MIME cryptographic signature


Re: exporting to mediawiki syntax math is not converted

2022-06-20 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> The following line
>> 
>> 
>> torus $\mathbb T^3$ in the Sobolev spaces $H^m(\mathbb T^3)$. 
>> 
>> Is translated to 
>> 
>> torus \(\mathbb T^3\) in the Sobolev spaces \(H^m(\mathbb T^3)\)
>> 
>> Instead of 
>> 
>> torus \mathbb T^3 in the Sobolev spaces H^m(\mathbb 
>> T^3)
>> 
>> Is this a missing feature, or do I miss something here?

> See org-html-with-latex. We use mathjax syntax for LaTeX export by
> default

I see, but that means, the exported wiki cannot be used say for
wikipedia since it uses mediawiki syntax for math.

Does anybody knows about a 3rd party package providing support for mediawiki?

I realized that pandoc supports mediawiki, but I don't need a new file I
just want to save into a buffer. I have to think about it.




smime.p7s
Description: S/MIME cryptographic signature


exporting to mediawiki syntax math is not converted

2022-06-20 Thread Uwe Brauer



Hi 

The following line


torus $\mathbb T^3$ in the Sobolev spaces $H^m(\mathbb T^3)$. 

Is translated to 

torus \(\mathbb T^3\) in the Sobolev spaces \(H^m(\mathbb T^3)\)

Instead of 

torus \mathbb T^3 in the Sobolev spaces H^m(\mathbb 
T^3)

Is this a missing feature, or do I miss something here?


Thanks

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: Org and Hyperbole

2022-06-20 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Hi,
> I've been intrigued with GNU Hyperbole for a while. I'm reading the
> documentation and trying it out a bit. It seems that its button system
> is very powerful. But Org links are also powerful (and exportable), and
> can be extended outside of Org docs. It seems that hyperbole offers some
> cool stuff that Org also has. And other things that are not in Org. I
> find some parts a bit confusing. I wonder if anyone is using hyperbole
> with Org and can put here some minimal workflow example where both
> complement each other in some way. Just in case I'm missing something
> useful...

Quite some time ago (that was at the time org mode was in its infancy) I
gave it a try and found it too confusing and difficult to handle for
every day work. 

There were other package that provided similar (well less) functionality
but were much simpler, however they were not stable that is the links
could be damaged during editing. I don't recall the details.

But I am happy with what org mode offers.

Sorry that may have been not that helpful..

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


you to copy .org-id-locations from one machine to another

2022-06-14 Thread Uwe Brauer


Hi 

My .org-id-locations file contain relative path like this
("~/ALLES/HGs/HG-Org/answer.org" "5dc7a5e5-aebd-432a-8156-c69d9c0e4740"
"ce79da39-8158-4df2-aca0-c2697bda168a"
"70b317ce-2786-45d0-a72e-99d5fad8")

I copied  a particular directory from one machine to another so the ID
concide, however when I also copy my .org-id-locations file from one
machine to the other, but on my target machine my .org-id-locations file
is basically ignored. 

I don't want to regenerate all my IDs again for that directory, so what
is the trick here?

Uwe Brauer 




orgtables should taking into account empty cells when adding

2022-06-13 Thread Uwe Brauer
Hi

Consider please
#+begin_src emacs-lisp :results silent :exports none
| Name  | Theory | Matlab | Exercises | Result |
|---+++---+|
| User1 |  5 |  2 | 1 | 8  |
| User2 ||  2 | 1 | NP |
| User3 |  4 |  1 |   | NP |
,#+TBLFM: $5=if(typeof(vsum($2..$4)) == 12 , string("NP"),vsum($2..$4)); E f-1
#+end_src

Each cell in a row that is empty results in the string NP, so far so good.
Now I want to achieve the same but only if cells in the second column are 
empty. So I thought 

#+begin_src emacs-lisp :results silent :exports none
| Name  | Theory | Matlab | Exercises | Result |
|---+++--+---|
| User1 |  5 |  2 |1 | 8 |
| User2 ||  2 |1 |NP |
| User3 |  4 |  1 |0 | 5 |
#+TBLFM: $5=if("$2" == "nan", string("NP"),vsum($2..$4)); E f-1
#+end_src

That looks ok, however when say a cell in the third column is empty, the 
problem starts
because it results in 
#+begin_src emacs-lisp :results silent :exports none
| Name  | Theory | Matlab | Exercises | Result |
|---+++---+|
| User1 |  5 |  2 | 1 |  8 |
| User2 ||  2 | 1 | NP |
| User3 |  4 |  1 |   |nan |
,#+TBLFM: $5=if("$2" == "nan", string("NP"),vsum($2..$4)); E f-1
#+end_src

Any idea how to solve this problem (I don't know how to have several ifs in 
such expression)

regards

Uwe Brauer 

   




how to edit very long columnview tables

2022-06-12 Thread Uwe Brauer



Hi

For example if I have 

#+TBLFM: @2='(identity remote(pizarro,@>$$#));::@3='(identity
 remote(angulo,@>$$#));VERY VERY LONG

I can use org-edit-special 


But if I have on the other hand 

#+BEGIN: columnview :maxlevel 2  :skip-empty-rows t  :indent nil :hlines
 1  :format "VERY VERY LONG"

Then it seems there is now convenient way to edit this very very long
line.

Anybody knows about such a function?

Thanks

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: from table to properties the inverse columview operation

2022-06-12 Thread Uwe Brauer

> Uwe Brauer  writes:

> I think it might be easier to do in awk than ELisp.  And I am better in
> Elisp than awk, but awk was made for almost exactly this sort of thing.

> Anyway, if some existing (Elisp) function exists for this, I would like
> to know about it as well[0].



It  does

 org-transform-tree-table/toggle 
 URL: https://github.com/jplindstrom/emacs-org-transform-tree-table

It is in melpa I think




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


export to odt, but #text# should be coloured

2022-06-09 Thread Uwe Brauer
Hi

a short hack of the sort

  (interactive)
  (while (re-search-forward "#\\([^#]*\\)#" nil t)
(replace-match "\\1")))
Allows me to export text like this
#important#

to HTML where the resulted text is colored in red.

Now, how can I achieve something like this for the odt export?

Reards
Uwe Brauer
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




[SOLVED] (was: org-ref-helm-insert-cite-link change the formatted citations include urls)

2022-06-07 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi

> When using org-ref-helm-insert-cite-link I would like to insert the
> urls, as in this example

> @Misc{Author,
>   author   = {Author},
>   title= {Global existence of a nonlinear wave equation}
>   howpublished = {accepted for publication in Journal  (preprint in the 
> arXiv)},
>   eprint   = {123.456.888},
>   archivePrefix= {arXiv},
>   primaryClass = {math.AP},
>   url  = {https://arxiv.org/abs/123.456.888},
>   month= {October},
>   year = 2021
> }

(setq
 org-ref-formatted-citation-formats
   '(("text"
 ("org"
  ("misc" . "${author}, /${title}/ *${howpublished}* ${url} (${year}).")


Seems to work


smime.p7s
Description: S/MIME cryptographic signature


[SOLVED] (was: org-ref-insert-link: insert formatted entry: but mark several entries)

2022-06-07 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi 

> While using org-ref-insert-link, I obtain a list of possible entries
> (which I would like to inserted via F7 as formatted citations)

> That works well for one entry, but how can I mark several of these?


C-space is the solution


smime.p7s
Description: S/MIME cryptographic signature


org-ref-helm-insert-cite-link change the formatted citations include urls

2022-06-07 Thread Uwe Brauer


Hi

When using org-ref-helm-insert-cite-link I would like to insert the
urls, as in this example

@Misc{Author,
  author   = {Author},
  title= {Global existence of a nonlinear wave equation}
  howpublished = {accepted for publication in Journal  (preprint in the arXiv)},
  eprint   = {123.456.888},
  archivePrefix= {arXiv},
  primaryClass = {math.AP},
  url  = {https://arxiv.org/abs/123.456.888},
  month= {October},
  year = 2021
}


How can I achieve this?

Thanks and regards

Uwe Brauer 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




org-ref-insert-link: insert formatted entry: but mark several entries

2022-06-07 Thread Uwe Brauer


Hi 

While using org-ref-insert-link, I obtain a list of possible entries
(which I would like to inserted via F7 as formatted citations)

That works well for one entry, but how can I mark several of these?


Thanks and regards

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-31 Thread Uwe Brauer

> Uwe Brauer  writes:


> I think you might be working under a false expectation. A quick look at
> the exported table example and it looks to be correct to me - values are
> tab separated, with is what a tsv format is. There is no requirement
> that the columns should be aligned, only that they are separated by
> tabs. 

> With regards to more formatted output options, a common issue is with
> respect to the fonts people use. If the font being used to view th
> eoutput is a proportional font rather than a fixed width one, then all
> formatting will be broken. Most web interfaces tend to use proportional
> fonts due to their more pleasing look for most people. This is also why
> tables sent via email often don't look right for the recipient - they
> are using a proportional or condensed font. 

> As you have no control over the fonts used by those viewing your ASCII
> content, you cannot reliably make it look well formatted. Either you
> have to do HTML, some form of markdown or some other format with
> enforces tgable alignment.  

Ah, this of course is right, I did not think about it, right I checked
again, it is indeed a proportional font, so game over, sorry for the
noise.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


export a org table to ascii format (tabs) are not conserved, culprit orgtbl-to-tsv?

2022-05-30 Thread Uwe Brauer


Hi

I wanted to export a 4x4 table to ascii to insert it into a web fill in
interface. However the column get distorted. I tried to tabify or
untabify the buffer but it did not help.


The problem also occurs when I export the table using the 
orgtbl-to-tsv

#+begin_example
| Course   |   L |   M |   X |  
 J |   V |
|--+-+-+-+-+-|
| Statistics   | 10:30-11:30 | | 10:00-11:20 |  
   | 10:30-11:30 |
| Differential Equations   | 12:30-13:30 | | 13:00-14:15 |  
   | 12:30-13:30 |
| Master   | 14:30-15:30 | | 15:30-16:30 | 
14:30-15:30 | |
| Numerical Analysis :00-19:00 | 18:00-19:00 | 18:00-19:00 | 18:00-19:00 |  
   | 7.5 |
|  | | | | 
19:00-20:00 | |
|--+-+-+-+-+-|
|  | | | |  
   | |

#+end_example

Converted to 

#+begin_example
Course  L   M   X   J   V
Statistics  10:30-11:30 10:00-11:20 10:30-11:30
Differential Equations  12:30-13:30 13:00-14:15 
12:30-13:30
Master  14:30-15:30 15:30-16:30 14:30-15:30 
Numerical Analysis  18:00-19:00 18:00-19:00 18:00-19:00 
18:00-19:00 
19:00-20:00 
#+end_example


Any idea what is wrong here?


Regards

Uwe Brauer 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




a simple(r) html export format (like org-mime)

2022-05-30 Thread Uwe Brauer


Hi

Although the vanilla html export backend produces nice html, I sometimes need a 
simpler solution[1], like the one produced by org-mime (which is for email). 
Does anybody know about such an exporter?

Thanks

Uwe Brauer 


Footnotes:
[1]  I will insert the htmlised buffer in some moodle interface, since I found 
its native html editor too cumbersome.

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-28 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Uwe Brauer writes:
>> When I run it I obtain 
>> if: Symbol’s value as variable is void: my-latex-export-path
>> 
>> Another point is if I decide to export it to ods, I need to modify that
>> advice, but I agree the new function is more convenient.

> You must add the variables to the document as local variables, at the
> end of the document, like this:

> # Local Variables:
> # my-latex-export-path: "~/path/myfile.tex"
> # my-html-export-path: "~/path/myfile.html"
> # End:

Aha, I see, thanks

Just one observation, while this is more convenient your other method has the 
benefit that it allows me to export to 2 files in different locations having 
the *same* extension like


> # my-latex-export-path: "~/path/myfile1.tex"
> # my-latex-export-path: "~/path/myfile2.tex"

Which seems more complicated in the other approach. 

I have also to confess, that I usually am I bit hesitant to use defadvice since 
it changes the vanilla function, and might cause problems, but maybe this is 
just me.

In any case thanks for both solution, that was very generous and helpful.

Developers: why to include some of this code in a addon file, if Juan agrees of 
course!

Uwe 



smime.p7s
Description: S/MIME cryptographic signature


[ODT?] (was: how to export an org file, to 2 different locations (in to different formats))

2022-05-28 Thread Uwe Brauer

> Hi Uwe,
> Uwe Brauer writes:


> One (pedestrian) way to achieve it, with this function:
I tried the following 

#+begin_example
#+EXPORT_FILE_NAME: myfile-office


#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'html "~/Desktop/" "html")
#+end_src


#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'latex "./" "tex")
#+end_src


#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'odt "./" "odt")
#+end_src

* Excuses


Jim: Which was? Sir Humphrey: 

#+end_example

But then the export to odt, did not work as expected the file was too small, 
but maybe odt is not the right setting for the export to LO/OO.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-28 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Juan Manuel Macías writes:
>> One (pedestrian) way to achieve it, with this function:

> I think it can be done better this way, defining an advice around
> 'org-export-output-file-name'.

> In your org file you should add these two local variables:

> # my-latex-export-path: "~/path/to/myfile.tex"
> # my-html-export-path "~/path/to/myfile.html"

> And this is the define-advice code. It should export to one or another 
> path/file every
> time you export your document to LaTeX or html. I haven't tried it much:


Thanks, that looks even more convenient!
I tried to test it with 

#+begin_example
# my-latex-export-path: "./myfile2.tex"
# my-html-export-path "~/Desktop/myfile2.html"

,#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'html "~/Desktop/" "html")
,#+end_src


,#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'latex "./" "tex")
,#+end_src

,* Excuses


Jim: Which was? Sir Humphrey: 

#+end_example

When I run it I obtain 
if: Symbol’s value as variable is void: my-latex-export-path

Another point is if I decide to export it to ods, I need to modify that
advice, but I agree the new function is more convenient.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: how to export an org file, to 2 different locations (in to different formats)

2022-05-28 Thread Uwe Brauer

> Hi Uwe,
> Uwe Brauer writes:


> One (pedestrian) way to achieve it, with this function:

> (defun my-org/export-to-path (backend export-path extension)
>   (org-element-map (org-element-parse-buffer) 'keyword
> (lambda (k)
>   (when (string= (org-element-property :key k) "EXPORT_FILE_NAME")
>   (let ((value (org-element-property :value k)))
> (org-export-to-file backend
> (format
>  "%s%s.%s"
>  export-path
>  value extension)))

> And then you could evaluate it inside a block in your document, with the
> chosen arguments. For example:

> #+EXPORT_FILE_NAME: myfile

> #+begin_src emacs-lisp :exports none :eval never-export :results silent
>   (my-org/export-to-path 'html "~/Desktop/" "html")
> #+end_src

Very nice I run a test with 

#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'html "~/Desktop/" "html")
#+end_src



#+begin_src emacs-lisp :exports none :eval never-export :results silent
  (my-org/export-to-path 'latex "./" "tex")
#+end_src

And it works nicely, thanks a lot, simplifies my workflow quite a bit.


Uwe 


smime.p7s
Description: S/MIME cryptographic signature


how to export an org file, to 2 different locations (in to different formats)

2022-05-27 Thread Uwe Brauer



Hi

Currently I use 
#+EXPORT_FILE_NAME: /home/oub/Desktop/some-stuff.html

To export my org file in html format to that location.

But I would also like to export it as a latex file to a different
location, without modifying the above line, or to be more precise to add
a different location, like

1. if export to latex use that folder

2. If export to html use this folder

Anybody know about such a functionality?

Thanks and regards

Uwe Brauer 




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: export regions of a org files to other formats (most likely only to a buffer).

2022-05-26 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>>> Could you please clarify which part of the function docstring was not
>>> clear?
>> 
>> Well
>> | org-export-dispatch is an interactive compiled Lisp function in
>> | ‘ox.el’.
>> | 
>> | (org-export-dispatch  ARG)
>> ...
>> 
>> Does not mention, that a selected region gets exported.

> Fair enough.
> Ironically, it is not even wrong. Looking at the source code, respecting
> region is merely a convention coming from most of backends calling
> `org-export-as'.

> As one possibility, we can add something like the following to the
> docstring:

> "Usually, exporting respects current narrowing and active region, though
> individual export backends might not follow the convention.  See
> `org-export-as' for more details."

I think this is fine, at least for me. Not sure what others think.




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: export regions of a org files to other formats (most likely only to a buffer).

2022-05-25 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> It seems that I did not check this carefully enough. Indeed, if I mark a
>> region and run the export function, only the active region will be
>> exported. The docstring of that function is, however, not that clear
>> about it.

> Could you please clarify which part of the function docstring was not
> clear?

Well
,
| 
| org-export-dispatch is an interactive compiled Lisp function in
| ‘ox.el’.
| 
| (org-export-dispatch  ARG)
| 
| Export dispatcher for Org mode.
| 
| It provides an access to common export related tasks in a buffer.
| Its interface comes in two flavors: standard and expert.
| 
| While both share the same set of bindings, only the former
| displays the valid keys associations in a dedicated buffer.
| Scrolling (resp. line-wise motion) in this buffer is done with
| SPC and DEL (resp. C-n and C-p) keys.
| 
| Set variable ‘org-export-dispatch-use-expert-ui’ to switch to one
| flavor or the other.
| 
| When ARG is ‘C-u’, repeat the last export action, with the same
| set of options used back then, on the current buffer.
| 
| When ARG is ‘C-u C-u’, display the asynchronous export stack.
`

Does not mention, that a selected region gets exported.


smime.p7s
Description: S/MIME cryptographic signature


Re: export regions of a org files to other formats (most likely only to a buffer).

2022-05-25 Thread Uwe Brauer
>>> "WD" == William Denton  writes:

> On 25 May 2022, Uwe Brauer wrote:
>> Sometimes I only want to convert/export a region or a paragraph of an
>> org file to another format, most likely as html or latex.

> Is this different from subtree export?  After C-c C-e, C-s will toggle
> "export scope" between buffer and subtree.  (There's also C-v to
> toggle "visible only" export, which I've never used.)  Or would it
> work to add a heading for the paragraph temporarily, just for export?

It seems that I did not check this carefully enough. Indeed, if I mark a
region and run the export function, only the active region will be
exported. The docstring of that function is, however, not that clear
about it.

Sorry for the noise


smime.p7s
Description: S/MIME cryptographic signature


export regions of a org files to other formats (most likely only to a buffer).

2022-05-25 Thread Uwe Brauer
Hi 

Sometimes I only want to convert/export a region or a paragraph of an
org file to another format, most likely as html or latex. 
I cannot find such a functionality also not in the package system
does anybody knows about such a function?

Regards

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: problem with unwanted strikeout in src blocks

2022-05-24 Thread Uwe Brauer
>>> "JJ" == Jeremie Juste  writes:

> Hello Uwe
>> On Monday, 23 May 2022 at 19:24, Uwe Brauer wrote:

> Sorry I don't have matlab and I have never used the solutionorbox
> environment, but I believe you can generate latex directly. For example
> with R I can to the following.

> #+begin_src R :exports results  :eval yes  :results output latex
> cat("\\begin{align*}")
> cat("P(\\text{Covid19}|\\text{ + })&=\\frac{P(\\text{ + 
> }|\\text{Covid19})P(\\text{Covid19})}{P(\\text{ + } | 
> \\text{Covid19})P(\\text{Covid19}) + P(text{ + 
> }|\\text{No-Covid19})P(\\text{No-Covid19})}")
> cat("\\end{align*}")
> #+end_src

Yes but I need the solutionbox since I don't want to convert to vanilla latex, 
but to the exam class.


smime.p7s
Description: S/MIME cryptographic signature


Re: problem with unwanted strikeout in src blocks

2022-05-24 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> However when I wrap a solutionorbox around it (which I need when
>> exporting to latex) all text between the «+» 
>> gets a strikeout.
>> 
>> 
>> #+begin_solutionorbox
>> #+begin_src matlab :exports results :eval never-export :results output latex
>> disp('P(\text{Covid19}|\text{+})&=\frac{P(\text{+}|\text{Covid19})P(\text{Covid19})}{P(\text{+}|\text{Covid19})P(\text{Covid19})+P(\text{+}|\text{No-Covid19})P(\text{No-Covid19})}\\')
>> #+end_src
>> #+end_solutionorbox
>> 
>> And idea what to do?

> This is a known bug in Org fontification. The fix is not trivial. WIP.
> See https://orgmode.org/list/87ee7c9quk.fsf@localhost


Aha, thanks!
> Current development version of the fix is in
> https://github.com/yantar92/org/tree/feature/org-font-lock-element, but
> it is not yet complete and will require a lot more work.

Ok right now this is not so important for me. I might give it a try some
other time, just for testing proposes.


> Note that other than the visual appearance, your code block is not
> affected. That is, export will work just fine. No strike-through will
> be present.

That I assumed already, still it is a bit annoying, but then not that
important I say.



smime.p7s
Description: S/MIME cryptographic signature


problem with unwanted strikeout in src blocks

2022-05-23 Thread Uwe Brauer


Hi



The following code block is nicely displayed

#+begin_src matlab :exports results :eval never-export :results output latex
disp('P(\text{Covid19}|\text{+})&=\frac{P(\text{+}|\text{Covid19})P(\text{Covid19})}{P(\text{+}|\text{Covid19})P(\text{Covid19})+P(\text{+}|\text{No-Covid19})P(\text{No-Covid19})}\\')
#+end_src


However when I wrap a solutionorbox around it (which I need when
exporting to latex) all text between the «+» 
gets a strikeout.


#+begin_solutionorbox
#+begin_src matlab :exports results :eval never-export :results output latex
disp('P(\text{Covid19}|\text{+})&=\frac{P(\text{+}|\text{Covid19})P(\text{Covid19})}{P(\text{+}|\text{Covid19})P(\text{Covid19})+P(\text{+}|\text{No-Covid19})P(\text{No-Covid19})}\\')
#+end_src
#+end_solutionorbox

And idea what to do?

Thanks


Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: calculating quartils, tercils (or percentiles) Using R?

2022-05-22 Thread Uwe Brauer
Hello Jermie


> Hello Uwe,




> I would recommend checking the R documentation. 

Believe me, I tried (well I mostly googled, and I failed, I understand
now why, my column name was not consistent, with the call in src block grrr


> I believe that you might be looking for the following.

>  #+begin_src R :colnames t :var t1=TC 
>   quantile(t1$Data,c(1/3,2/3,1))
>  #+end_src

>  #+RESULTS:
>  |  x |
>  ||
>  | 14 |
>  | 25 |
>  | 35 |

Definitely! Works like charm! 

Thanks so much!

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


[SOLVED, but ] (was: how to update remote calls?)

2022-05-22 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi

> I have the following example

It seems that either 

1. org-table-recalculate-buffer-tables

2. org-table-iterate-buffer-tables

Does the job, the docstring of both function does clarify the
difference between both.

Can anybody please enlighten me?

Regards

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


calculating quartils, tercils (or percentiles) Using R?

2022-05-22 Thread Uwe Brauer


Hi

I can use R to calculate quartils 
as in 
#+begin_src 

#+tblname: TC
| Data |
|--|
|5 |
|   10 |
|   12 |
|   15 |
|   20 |
|   24 |
|   27 |
|   30 |
|   35 |




#+begin_src R :colnames t :var t1=TC 
 summary(t1)
#+end_src

#+RESULTS:
| Data  |
|---|
| Min.   : 5.00 |
| 1st Qu.:12.00 |
| Median :20.00 |
| Mean   :19.78 |
| 3rd Qu.:27.00 |
| Max.   :35.00 |
#+end_src

but I can't not find a way to calculate other percentiles, like terciles or so.

Does anybody know about this, or a org-function doing it?

regards

Uwe Brauer


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




how to update remote calls?

2022-05-22 Thread Uwe Brauer


Hi

I have the following example

#+begin_src 

,** Statistic
   :PROPERTIES:
   :ID:   test-master
   :END:


| Result|
|---|
|   7.5 |
|   4.3 |
|   7.5 |
|   5.5 |
|   8.5 |
|   7.5 |
|   8.2 |
| 9 |
|   8.5 |
| 7 |
|   7.5 |
|   8.5 |
| 7 |
| 6 |
| 7 |
|---|


| lower bound | upper bound | frequency |
|-+-+---|
|   0 | 4.9 | 1 |
|   5 |  10 |14 |
,#+TBLFM: $3='(length (org-lookup-all '($1 $2) 
'(remote(test-master,@I$1..@II$1)) nil 'in-interval));N



| Mean | Desviation | Median |
|--++|
|  7.3 |1.2 | 7.5|
,#+TBLFM: 
$1=vmean(remote(test-master,@I$1..@II$1));f-1::$2=vpsdev(remote(test-master,@I$1..@II$1));f-1::$3=vmedian(remote(test-master,@I$1..@II$1));f-1


#+end_src

Now I if I update the test-master table, is there anyway that the remote calls 
get updated as well?

Thanks and regards

Uwe Brauer 





-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 





org-table-wrap-functions

2022-05-20 Thread Uwe Brauer


Hi

I just came across 
https://github.com/analyticd/org-table-wrap-functions.git

And found it extremely useful especially the 

org-table-column-wrap-to-point function.

I opened an issue on this github page, and asked the author to include
his package into the official one.

What do others think. Are there any plans to provide a similar feature
in the official pkg, maybe?

Regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




[SOLVED] (was: problems with remote (in table) and (org-id-locations-save))

2022-05-18 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi 

> I have a strange problem. Till recently the following worked
> File x.org
> ,
> | 
> | * Table 
> | :PROPERTIES:
> | :ID:   test-table
> | :END:
> | 
> | | Nombres ||
> | |-+|
> | | User4   | 10 |
> | | User5   ||
> | | User6   | 12 |
> `

By bad, I inserted the ID manually, I should not. 

I should have 

1. Used org-id-get-create

2. Then change the hash

3. Then run org-id-update-id-locations. 

That is a bit counter-intuitive.

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


problems with remote (in table) and (org-id-locations-save)

2022-05-18 Thread Uwe Brauer


Hi 

I have a strange problem. Till recently the following worked
File x.org
,
| 
| * Table 
| :PROPERTIES:
| :ID:   test-table
| :END:
| 
| | Nombres ||
| |-+|
| | User4   | 10 |
| | User5   ||
| | User6   | 12 |
`

Running org-id-update-id-locations
and then switching to file y.org
,
| 
| | User6 ||
| |   ||
| |   ||
| | User6 | 12 |
| #+TBLFM: @4='(identity remote(test-table,@>$$#))
`

Worked fine. 


But not any more. Now running org-id-update-id-locations
does not save the id locatations

Of course I have 
,
| org-id-track-globally is a variable defined in ‘org-id.el’.
| 
| Its value is t
`

Now

,
| (org-id-locations-save) 
| 
| org-id-locations-save is a compiled Lisp function in ‘org-id.el’.
`


,
| (org-id-locations-save)
| 
| Save ‘org-id-locations’ in ‘org-id-locations-file’.
| 
| org-id-locations is a variable defined in ‘org-id.el’.
| 
| Its value is #
| 
| List of files with IDs in those files.
`
,
| 
| org-id-locations-file is a variable defined in ‘org-id.el’.
| 
| Its value is "~/.emacs.d/.org-id-locations"
| 
| The file for remembering in which file an ID was defined.
| This variable is only relevant when ‘org-id-track-globally’ is set.
`

BUT 
,
| 
| (org-id-update-id-locations  FILES SILENT)
| 
| Scan relevant files for IDs.
| Store the relation between files and corresponding IDs.
| This will scan all agenda files, all associated archives, and all
| files currently mentioned in ‘org-id-locations’.
| When FILES is given, scan also these files.
| If SILENT is non-nil, messages are suppressed.
| 
`

I circumvent the problem by adding x.org to the list of my agenda files, but 
this is not a solution


The question is what are *all associated archives*? 

And how can I check the files mentioned in org-id-localisations since it is a 
hash table?

Any help would be very much appreciated.


Uwe Brauer 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-noter

2022-05-17 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Ok, so it is my setting, sigh.
>> 
>> BTW does this mode set any sort of marker in the pdf?

> FYI, org-pdftools package allows to set links to specific coordinates in
> pdf files by creating annotations.

Thanks, works nicely.



-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-noter

2022-05-17 Thread Uwe Brauer
>>> "CB" == Colin Baxter  writes:

> Hello Uwe
>>>>>> Uwe Brauer  writes:

>> Hi I am running GNU emacs master (2 month old) and have not been
>> able to use successfully org-noter.


>> When I open a pdf file with doc-view there seems no way to add a
>> note to the file. The documentation says one should simple press
>> «️i», but either with

>> (org-noter-notes-mode 'toggle) that binding is not defined with
>> org-noter-doc-mode it is but nothing happens, only garbage
>> collecting.

> Works for me using today's pull of or-mode and emacs-29.0.50.

Now it works for me as well, no idea what is going on there.

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-noter

2022-05-15 Thread Uwe Brauer
>>> "CB" == Colin Baxter  writes:

> Hello Uwe
>>>>>> Uwe Brauer  writes:

>> Hi I am running GNU emacs master (2 month old) and have not been
>> able to use successfully org-noter.


>> When I open a pdf file with doc-view there seems no way to add a
>> note to the file. The documentation says one should simple press
>> «️i», but either with

>> (org-noter-notes-mode 'toggle) that binding is not defined with
>> org-noter-doc-mode it is but nothing happens, only garbage
>> collecting.

> Works for me using today's pull of or-mode and emacs-29.0.50.

Ok, so it is my setting, sigh.

BTW does this mode set any sort of marker in the pdf?




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


org-noter

2022-05-14 Thread Uwe Brauer
Hi

I am running GNU emacs master (2 month old) and have not been able to
use successfully org-noter.


When I open a pdf file with doc-view there seems no way to add a note to
the file. The documentation says one should simple press «i», but either
with

(org-noter-notes-mode 'toggle)
that binding is not defined
with  org-noter-doc-mode
it is but nothing happens, 
only garbage collecting.


Can anybody enlighten me please?

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




how to obtain a line to a file when using the remote command in a tabl

2022-05-13 Thread Uwe Brauer



Hi

I have the following two files

#+begin_src 

File1.org

,** Table
   :PROPERTIES:
   :ID: student1
   :END:


,#+BEGIN: columnview :maxlevel 2  :skip-empty-rows t :indent nil :hlines 2  
:format "%5TODO(Status) %5Ap(Name) %5Ej1(Ej1/20)  %5Ej2(Ej2/25)  %5Ej3(Ej3/55)  
%5Res(Result)"
| Status | Name | Ej1/20 | Ej2/25 | Ej3/55 | Result |
|+--++++|
| DONE   | Student1 | 15 | 20 | 35 |  7 |
,#+TBLFM: $6=vsum($3..$5)/10;
,#+END
#+end_src

And  after using org-id-update-id-locations 

#+begin_src 


File2.org

Create a master file with the following content

| Status | Name | Ej1/20 | Ej2/25 | Ej3/55 | Result |
|+--++++|
||  |||||
,#+TBLFM: @2='(identity remote(student1,@>$$#));
#+end_src

Is there any possibility also to obtain a (clickable link, for the file1
location) via the remote command?

Thanks and regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: export to latex: begin_example gets exported to verbatim (

2022-05-12 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Hi Uwe,
> Uwe Brauer writes:

>> Which gets exported to verbatim not lstlisting as I want

> Try adding this:

> :wrap lstlisting

It does! Thanks!


smime.p7s
Description: S/MIME cryptographic signature


Re: export to latex: begin_example gets exported to verbatim (

2022-05-12 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga  writes:

> Hi Uwe,
> should this line

>> #+begin_src matlab :results output src :exports results: exports code  :eval 
>> never-export

> not be

> #+begin_src matlab :results output :exports both :eval never-export

Hm, when I use this and Execute the code I also obtain 
#+RESULTS:
#+begin_example

sys =
 
  A = 
   x1  x2  x3
   x1   1   1   0
   x2   0   1   0
   x3   0   1   1
#+end_example

Which gets exported to verbatim not lstlisting as I want


smime.p7s
Description: S/MIME cryptographic signature


Re: export to latex: begin_example gets exported to verbatim (

2022-05-12 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi

> Please consider 

> * matlab :results output src :exports results: exports code  :eval 
> never-export

> #+begin_src matlab :results output src :exports results: exports code  :eval 
> never-export
> clear all
> A=[1 1 0; 0 1 0; 0 1 1];
> B=[0 1; 1 0; 0 1];
> C=[1 1 1];
> D=0;
> sys=ss(A,B,C,D)
> #+end_src


> #+RESULTS:

> #+begin_example

> sys =
 
>   A = 
>x1  x2  x3
>x1   1   1   0
>x2   0   1   0
>x3   0   1   1

> #+end_example

> When I export this to latex, I obtain

> \begin{verbatim}

> sys =
 
>   A = 
>x1  x2  x3
>x1   1   1   0
>x2   0   1   0
>x3   0   1   1

> \end{verbatim}

Of course I can always add

#+ATTR_LATEX: :environment lstlisting

After I executed the code, but this is a bit cumbersome


smime.p7s
Description: S/MIME cryptographic signature


export to latex: begin_example gets exported to verbatim (

2022-05-12 Thread Uwe Brauer


Hi

Please consider 

* matlab :results output src :exports results: exports code  :eval never-export
#+begin_src matlab :results output src :exports results: exports code  :eval 
never-export
clear all
A=[1 1 0; 0 1 0; 0 1 1];
B=[0 1; 1 0; 0 1];
C=[1 1 1];
D=0;
sys=ss(A,B,C,D)
#+end_src

#+RESULTS:
#+begin_example

sys =
 
  A = 
   x1  x2  x3
   x1   1   1   0
   x2   0   1   0
   x3   0   1   1

#+end_example

When I export this to latex, I obtain

\begin{verbatim}

sys =
 
  A = 
   x1  x2  x3
   x1   1   1   0
   x2   0   1   0
   x3   0   1   1

\end{verbatim}


But I would prefer 
\begin{lstlisting}

sys =
 
  A = 
   x1  x2  x3
   x1   1   1   0
   x2   0   1   0
   x3   0   1   1

\end{lstlisting}


Any idea how?

Thanks and regards

Uwe Brauer

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: [how to joint column/rows of tables that are in different files (id?)]

2022-05-11 Thread Uwe Brauer
>>> "JK" == John Kitchin  writes:

> Can you make a temporary org-buffer that copies all those tables into
> one place, and then join them?

My workflow (in case anybody finds this helpful)
#+begin_src 

* Localisation of the program files

Each file you want to correct is located in a different easy to identify 
directory (folder).

* Correction of the program files

** Run the code
In case they are Matlab file, you can use emacs powerful matlab-mode and its 
corresponding shell to check the code

** Annotate your remarks 

I recommend using org-remark-mark (3rd party package) and org-remark-open
Put your comments, and qualification as Properties. They are saved in a file 
called marginalia.org in the same directory

Here is an example

#+begin_src 
** DONE The summary of all exercises
   :PROPERTIES:
   :Ap: Student1
   :Com1: E1: Bad formatted file, no explanation of the results
   :Com2: E2: Results are ok, again the results are not interpreted.
   :Com3: E3: Only one of the ODE has been solved.
   :org-remark-beg: 5498
   :Ej1: 15
   :Ej2: 20
   :Ej3: 35
   :org-remark-end: 5460
   :org-remark-id: 50040a36
   :org-remark-label: nil
   :org-remark-link: [[file:annu_examen_mayo_student1.m::176]]
   :END:

#+end_src

Then you generate a table via
** Table
   :PROPERTIES:
   :ID: student1
   :END:


#+BEGIN: columnview :maxlevel 2  :skip-empty-rows t :indent nil :hlines 2  
:format "%5TODO(Status) %5Ap(Name) %5Ej1(Ej1/20)  %5Ej2(Ej2/25)  %5Ej3(Ej3/55)  
%5Res(Result) %5Com1(Com1) %5Com2(Com2) %5Com3(Com3)" 
| Status | Name | Ej1/20 | Ej2/25 | Ej3/55 | Result | Com1  
 | Com2 
  | Com3 |
|+--+++++++--|
| DONE   | Student1 | 15 | 20 | 35 |  7 | E1: Bad formatted 
file, no explanation of the results | E2: Results are ok, again the results are 
not interpreted. | E3: Only one of the ODE has been solved. |
#+TBLFM: $6=vsum($3..$5)/10;
#+END

** Run =org-id-update-id-locations=

* The master file

Create a master file with the following content

| Status | Name | Ej1/20 | Ej2/25 | Ej3/55 | Result | Comment1  
 | Comment2 
  | Comment3 |
|+--+++++++--|
| DONE   | Student1 | 15 | 20 | 35 |  7 | E1: Bad formatted 
file, no explanation of the results | E2: Results are ok, again the results are 
not interpreted. | E3: Only one of the ODE has been solved. |
#+TBLFM: @2='(identity remote(student1,@>$$#));




#+end_src


smime.p7s
Description: S/MIME cryptographic signature


Re: how to transpose a table but not deleting the horizontal lines

2022-05-11 Thread Uwe Brauer
>>> "t" == tbanelwebmin   writes:

> The orgtbl-arggregate package (on Melpa and GitHub) does that.
> Horizontal lines are converted to empty columns.
> Transposing again recreates the original horizontal lines.

> Beware, as opposed to org-table-transpose-table-at-point, it does not modify 
> the source table, it creates a new transposed table.

> Type C-c C-x x in an empty space in the buffer
> Then answer "transpose", and follow the wizard.

Thanks
I will have a look!



smime.p7s
Description: S/MIME cryptographic signature


Re: [how to joint column/rows of tables that are in different files (id?)]

2022-05-11 Thread Uwe Brauer
>>> "JK" == John Kitchin  writes:

> Can you make a temporary org-buffer that copies all those tables into
> one place, and then join them?

Thanks, I think will use a different approach and only copy certain
rows, via the remote function as in

** The target Rows
| Nombre | Color | Level | Quantity |
| Monday | Red   |30 |   11 |
||   |   |  |
#+TBLFM: @1=remote(test,@2$$#)::@2=remote(test,@3$$#)


smime.p7s
Description: S/MIME cryptographic signature


[how to joint column/rows of tables that are in different files (id?)] (was: how to best correct exams (code matlab) using org mode (and tables))

2022-05-10 Thread Uwe Brauer


I think I almost have a working workflow.

What I need is a functionality to join either columns or rows of tables
that are in different files.

Here is what I have in mind for tables that are in the same file


** Columns

#+NAME: T1
| col1 | col2 |
|1 | 2|
#+NAME: T2
| col3 |
| 3|
#+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2
(cl-mapcar #'append t1 t2)
#+END_SRC

#+RESULTS:
| col1 | col2 | col3 |
|1 |2 |3 |

** Rows
#+BEGIN_SRC emacs-lisp :var t1=T1 t2=T2
(append t1 t2)
#+END_SRC

#+RESULTS:
| col1 | col2 |
|1 |2 |
| col3 |  |
|3 |  |



Now the 3rd package orgtbl-aggregate allows me to aggerate column of
tables that are in different files, via an ID generated via  org-id-get-create 
and saved via org-id-update-id-locations
as in 

#+BEGIN: aggregate :table "uwe"  :cols "Level" 
#+END:

Where the table uwe is located in a different file. However it seems
only to work for one table at the time, so if you have 20 tables in 20
files that a bit complicated

Any idea how to append column or rows from different table in different
files in one go?

Thanks

Uwe 



-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




how to transpose a table but not deleting the horizontal lines

2022-05-10 Thread Uwe Brauer


Hi 

>From the docstring of 
org-table-transpose-table-at-point is
Transpose Org table at point and eliminate hlines.

Does anybody know about a, maybe, 3rd party packages that transpose the
table but leaves the horizontal lines intact?

Regards

Uwe Brauer 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




how to best correct exams (code matlab) using org mode (and tables)

2022-05-08 Thread Uwe Brauer



Hi 

I came around 
https://kitchingroup.cheme.cmu.edu/blog/2013/10/23/Writing-exams-in-org-mode/

Which is a bit outdated.

My use case are to correct of matlab files, so usually I have a single org file 
with a table and insert the results. 

However what I missing is that my comments, and observations are difficult to 
track.

I am now  experimenting with org-remark putting the remarks and marks in the 
property sections of headers and use than

columnview 
like
#+begin_src 
#+BEGIN: columnview :maxlevel 2  :skip-empty-rows t :indent nil :hlines 2  
:format "%5TODO(Status) %5Ap(Name) %5com(Comment) %5Ej1(Ej1/20) %5Ej2(Ej2/25) 
%5Ej3(Ej3/55) %5Res(Result)" 
#+END:
#+end_src

What do others use?

Regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




[Some news (nngnorb "UCMgmail")?] (was: [BUG] In recent GNU emacs master org-capture hangs [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)])

2022-05-05 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Here is one of the templates
>> ("mt" "Tutorias Headings"
>> entry (file+headline "~/ALLES/HGs/tex/vorlesungen/Tutorias/tutorias.org" 
>> "Tutorials")
>> "* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- Subject :: 
>> %:subject\n- Date :: %:date\n- Email :: %a\n\n%?\n%i")
>> 
>> So I in my gnus message 
>> 
>> 1. I fire up org-capture
>> 
>> 2. I am asked to the Task, I type but then Emacs hangs, and I have
>> to abort the operation. That did not happen with git master
>> 1f78ca45f8d534e51c1e30e9225d1da8b2e50650

> Could you please provide detailed steps how to reproduce starting from
> emacs -Q?

> I am unable to trigger the hang using your template doing the following

> 1. cd path/to/org/repo/main/branch
> 2. make cleanall; make autoloads; emacs -Q -L ./lisp/ -l org -l /tmp/bug.el 
> with bug.el:
> (setq org-capture-templates '(("m" "Tutorias Headings"
>entry (file+headline "/tmp/tutorias.org" "Tutorials")
>"* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- 
> Subject :: %:subject\n- Date ::
> %:date\n- Email :: %a\n\n%?\n%i")))

> 3. M-x gnus
> 4. m
> 5. Fill To and Subject fields of the message
> 6. M-x org-capture  m
> 7. test 
> 8. 1:test: 
> 9. C-c C-c

I did 

/opt/emacs29/bin/emacs -Q -L ./lisp/ -l org -l bug.el

With bug.el containing:

(setq org-capture-templates '(("m" "Tutorias Headings"
 entry (file+headline "/tmp/tutorias.org" "Tutorials")
 "* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- 
Subject :: %:subject\n- Date ::
%:date\n- Email :: %a\n\n%?\n%i")))

(setq gnus-select-method (list 'nnnil "")) ;Jan  1, 2005 18:21
(setq gnus-secondary-select-methods nil)
(setq gnus-secondary-select-methods
  '(
(nntp  "news.gmane.io") 
(nngnorb "UCMgmail")
(nnimap "UCMgmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-authinfo-file "~/.authinfo")
(nnimap-stream ssl)
;;(nnimap-stream starttls)
(nnimap-fetch-partial-articles "text/")
(nnir-search-engine imap))
(nnimap "gmail"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")
;;(nnimap-stream starttls))
(nnimap-fetch-partial-articles "text/")
;(nnimap-fetch-partial-articles t)
(nnimap-stream ssl))
(nnimap "Gisi"
(nnimap-address "imap.gmail.com")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")
;;(nnimap-stream starttls))
(nnimap-stream ssl))
(nnimap "gmx"
(nnimap-address "imap.gmx.de")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")
(nnimap-stream ssl))
(nnimap "GmxUwe"
(nnimap-address "imap.gmx.net")
(nnimap-server-port 993)
(nnimap-stream ssl)
(nnimap-authinfo-file "~/.authinfo")
(nnimap-stream ssl))
))

That did not work, however when removing 

(nngnorb "UCMgmail")
it worked.

I also removed this from my gnus-init file and for the moment everything seems 
to work.

Good @Eric (Eric Abrahamsen)

When you read this, any idea what is going on here?

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


org-capture problems again, the evil %from, %subject

2022-05-05 Thread Uwe Brauer


Hi 

I am again facing the problem that org-capture hangs even with my
recovered old setting.

I investigated it a bit, org-capture is mostly ok, but not for those
templates that contain gnus specific commands like %from %subject etc

How can I debug this?

Regards

Uwe Brauer

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: [BUG] In recent GNU emacs master org-capture hangs [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-03 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Here is one of the templates
>> ("mt" "Tutorias Headings"
>> entry (file+headline "~/ALLES/HGs/tex/vorlesungen/Tutorias/tutorias.org" 
>> "Tutorials")
>> "* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- Subject :: 
>> %:subject\n- Date :: %:date\n- Email :: %a\n\n%?\n%i")
>> 
>> So I in my gnus message 
>> 
>> 1. I fire up org-capture
>> 
>> 2. I am asked to the Task, I type but then Emacs hangs, and I have
>> to abort the operation. That did not happen with git master
>> 1f78ca45f8d534e51c1e30e9225d1da8b2e50650

> Could you please provide detailed steps how to reproduce starting from
> emacs -Q?

I recovered a working version. For this I downgraded emacs and org mod
and all my lisp packages installed via the emacs package system.

Then I upgraded org to the actual git master/main version. It still worked.

When I upgrade GNU emacs to the actual master, I encountered problems
with some of the packages (I recall having this problem a couple of days
ago) so I needed to upgrade some packages and that triggered the
problem.

So I downgraded to the GNU emacs version from November and the working
emacs package version. Everything is fine.

I need this org functionality now and have to time to fiddle around but I
try to find out the culprit by the end of June.


Regards

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] In recent GNU emacs master org-capture hangs [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-03 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Here is one of the templates
>> ("mt" "Tutorias Headings"
>> entry (file+headline "~/ALLES/HGs/tex/vorlesungen/Tutorias/tutorias.org" 
>> "Tutorials")
>> "* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- Subject :: 
>> %:subject\n- Date :: %:date\n- Email :: %a\n\n%?\n%i")
>> 
>> So I in my gnus message 
>> 
>> 1. I fire up org-capture
>> 
>> 2. I am asked to the Task, I type but then Emacs hangs, and I have
>> to abort the operation. That did not happen with git master
>> 1f78ca45f8d534e51c1e30e9225d1da8b2e50650

> Could you please provide detailed steps how to reproduce starting from
> emacs -Q?

My apologies, I downgraded both Emacs and org and the problem still
persists, so either it is a package I installed in the meantime or some
change in my settings.

I try to debug this and report back

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] In recent GNU emacs master org-capture hangs [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-03 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> And org-mode to a3dac4d20a37c51393f191d01e0ec2170bb260a3
>> 
>> However when using org-capture, emacs hangs and I can't finish sending the 
>> template?
>> 
>> Can anybody confirm this?

> Could you provide more details? Reproducer?

> Capture is certainly working on my side - I use org-capture regularly
> and frequently.

Here is one of the templates
("mt" "Tutorias Headings"
 entry (file+headline 
"~/ALLES/HGs/tex/vorlesungen/Tutorias/tutorias.org" "Tutorials")
 "* TODO %^{Task} %T : %:from %:subject %^G\n- From :: %:from\n- 
Subject :: %:subject\n- Date :: %:date\n- Email :: %a\n\n%?\n%i")

So I in my gnus message 

1. I fire up org-capture

2. I am asked to the Task, I type but then Emacs hangs, and I have
       to abort the operation. That did not happen with git master
   1f78ca45f8d534e51c1e30e9225d1da8b2e50650



Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


[Culprit is org] (was: [BUG] In recent GNU emacs master org-capture hangs [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)])

2022-05-03 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi
> Not sure who is the culprit here. 
> I upgraded GNU emacs to 
> ,
> | emacs-repository-version is a variable defined in ‘version.el’.
> | 
> | Its value is "7bf17ceee8c2d347917541e143ce25609e90ebbb"
> `

> And org-mode to a3dac4d20a37c51393f191d01e0ec2170bb260a3

> However when using org-capture, emacs hangs and I can't finish sending the 
> template?

> Can anybody confirm this?

I downgroaded emacs to an earlier git version and I still cannot send
the org-capture template. So it is a org bug. I try out now the latest 
org-master


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-02 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>>> This is most likely done by your personal customisation or by
>>> third-party package (`link-message' function).
>> 
>> I see, most likely orglink (available in melpa)
>> ;; Homepage: https://github.com/tarsius/orglink
>> 
>> Was the culprit, I upgraded the package and have not seen that message so 
>> far anymore.

> I am not sure. I searched through commit history of orglink and there is
> no instance of org-element-context.

> So, beware that the observed issue might be related to some other package.

I see, thanks for pointing that out. I run a grep -r in my .emacs.d/elpa
directory and indeed still a lot of packages use that function, but in
my understanding all of them refer to org files. Hm, strange.

I do use a bit old version of org-ref though (since I have difficulties
with the new interface and no time to get acquainted now).

I will try later to dig more into the issue.


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] Warning (org-element-cache): org-element--cache: Org parser error in suma-por-fila.tex::1585. Resetting. [9.5.3 (release_9.5.3-465-gd7dc62 @ /home/oub/emacs/site-lisp/packages/org/)]

2022-05-02 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Org-mode git version.
>> a3dac4d20a37c51393f191d01e0ec2170bb260a3
>> 
>> Opening a tex file I receive the following error message
>> ,
>> | Warning (org-element-cache): org-element--cache: Org parser error in 
>> suma-por-fila.tex::1585. Resetting.
>> |  The error was: (error "rx ‘**’ range error")
>> |  Backtrace:
>> | "  backtrace-to-string(nil)
>> |   org-element-at-point()
>> |   org-element-context()
>> |   link-message()

> Thanks for reporting!
> As warning indicates, you are trying to run Org function
> (org-element-context) in TeX buffer.
> org-element-context does not work anymore in non-Org buffers.

> This is most likely done by your personal customisation or by
> third-party package (`link-message' function).

I see, most likely orglink (available in melpa)
;; Homepage: https://github.com/tarsius/orglink

Was the culprit, I upgraded the package and have not seen that message so far 
anymore.

Regards

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


Re: [BUG] org parser error [N/A (N/A @ /home/oub/emacs/site-lisp/packages/org/)]

2022-04-30 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Running org master 1f78ca45f8d534e51c1e30e9225d1da8b2e50650
>> 
>> And opening an org file I received the following message:
>> 
>> 
>> Please report this to Org mode mailing list (M-x
>> org-submit-bug-report). Disable showing Disable logging Warning
>> (org-element-cache): org-element--cache: Org parser error in
>> README.org::15975. Resetting. The error was: (error "Invalid search
>> bound (wrong side of point)")

> Do you also get the message if you update to the latest main?

I compiled two hours ago, and tested it, so far no problems, so maybe
this error is gone

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: [the culprit]

2022-04-27 Thread Uwe Brauer
>>> "JK" == John Kitchin  writes:

> This seems like something that could (should?) go in a personal config, as
> a custom function, or advice.

> You could, for example do something like this (lightly tested)

> #+BEGIN_SRC emacs-lisp
> (defun my-put (property value here)
>   (interactive (list nil nil current-prefix-arg))
>   (if (null here)
>   (org-set-property property value)
> (let* ((property (or property (org-read-property-name)))
>   (value (or value (org-read-property-value property
>   (save-excursion
> (beginning-of-line)
> (search-forward ":")
> (backward-char)
> (insert (format ":%s: %s\n" property value))
> #+END_SRC

I tested it, and for my org files this is slightly better:


#+BEGIN_SRC emacs-lisp
(defun my-put (property value here)
  (interactive (list nil nil current-prefix-arg))
  (if (null here)
  (org-set-property property value)
(let* ((property (or property (org-read-property-name)))
   (value (or value (org-read-property-value property
  (save-excursion
(beginning-of-line)
(search-forward ":")
(backward-char)
(insert (format ":%s: %s\n" property value))
(indent-for-tab-command nil)
#+END_SRC


But this might be just me. In any case I think this functionality is
very helpful.

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


Re: [the culprit]

2022-04-27 Thread Uwe Brauer
>>> "JK" == John Kitchin  writes:

> This seems like something that could (should?) go in a personal config, as
> a custom function, or advice.

> You could, for example do something like this (lightly tested)

> #+BEGIN_SRC emacs-lisp
> (defun my-put (property value here)
>   (interactive (list nil nil current-prefix-arg))
>   (if (null here)
>   (org-set-property property value)
> (let* ((property (or property (org-read-property-name)))
>   (value (or value (org-read-property-value property
>   (save-excursion
> (beginning-of-line)
> (search-forward ":")
> (backward-char)
> (insert (format ":%s: %s\n" property value))
> #+END_SRC

Thanks very much. I will test it and report back as soon as possible.



smime.p7s
Description: S/MIME cryptographic signature


Re: [the culprit]

2022-04-26 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>>> But it does not help, org-set-property sets always a new property at the
>>> end of the property list.
>> 
>>> Any idea what to do (besides touching the function itself)
>> 
>> 
>> It seems that the culprit is the function 
>> org-entry-put
>> which always puts a new entry at the end of the property section.

> You are right, org-set-property adds the property to the end of property
> drawer. I do not think that its docstring suggests anything different.

> Do you want to propose a new feature request? I guess patches are welcome.

The question is what would be the best solution?

1. Change the behavior for org-entry-put

2. Or just for org-set-property.

If it is the first option, then maybe a variable should be added
org-set-property-at-line say, what could be t or nil.

Recently I use drawers that have a lot of properties, that I want a bit
organised, but if new properties are added always at the end, that
complicates things. What do others think (I don't have the feeling that
large drawers are very common).


smime.p7s
Description: S/MIME cryptographic signature


[the culprit] (was: org-set-property (at point)? Save-excursion seems not to work)

2022-04-25 Thread Uwe Brauer
>>> "UB" == Uwe Brauer  writes:

> Hi 
> I tried 

> (defun my-org-set-property ()
>   (interactive)
>   (save-excursion 
> (org-set-property nil nil)))

> Or 

> (defun my-org-set-property ()
>   (interactive)
>   (save-excursion 
> (call-interactively #'org-set-property)))


> But it does not help, org-set-property sets always a new property at the
> end of the property list.

> Any idea what to do (besides touching the function itself)


It seems that the culprit is the function 
org-entry-put
which always puts a new entry at the end of the property section.

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


org-set-property (at point)? Save-excursion seems not to work

2022-04-25 Thread Uwe Brauer
Hi 

I tried 

(defun my-org-set-property ()
  (interactive)
  (save-excursion 
(org-set-property nil nil)))

Or 

(defun my-org-set-property ()
  (interactive)
  (save-excursion 
(call-interactively #'org-set-property)))


But it does not help, org-set-property sets always a new property at the
end of the property list.

Any idea what to do (besides touching the function itself)

Regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




Re: org table: generate a weekly calendar with column that represents the hours

2022-04-22 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga  writes:

> Something to play with:
> | start | duration |   end | notes |
> |---+--+---+---|
> | 08:00 | 1:00 | 09:00 |   |
> | 09:00 |01:00 | 10:00 |   |
> | 10:00 |01:00 | 11:00 |   |
> | 11:00 |01:00 | 12:00 |   |
> | 12:00 |01:00 | 13:00 |   |
> | 13:00 |01:00 | 14:00 |   |
> | 14:00 |01:00 | 15:00 |   |
> | 15:00 |01:00 | 16:00 |   |
> | 16:00 |01:00 | 17:00 |   |
> | 17:00 |01:00 | 18:00 |   |
> | 18:00 |01:00 | 19:00 |   |
> | 19:00 |01:00 | 20:00 |   |
> | 20:00 |01:00 | 21:00 |   |

> #+TBLFM: @<<<$2..@>$2=@-1;U::@<<<$1..@>$1=@-1+@-1$+1;U::$3=$1+$2;U
Thanks very much let me see whether I understand its logic

I tried

| start | duration |   end | notes |
|---+--+---+---|
| 08:00 | 1:00 | 09:00 |   |
#+TBLFM: @<<<$2..@>$2=@-1;U::@<<<$1..@>$1=@-1+@-1$+1;U::$3=$1+$2;U

I put the cursor say on the word «start»
And then fire up  C-c C-c, nothing happens. I fire up C-u C-u C-c C-c and it 
complains because the expression 
points outside the table

| start | duration |   end | notes |
|---+--+---+---|
| 08:00 | 1:00 | 09:00 |   |
|   |  |   |   |
#+TBLFM: @<<<$2..@>$2=@-1;U::@<<<$1..@>$1=@-1+@-1$+1;U::$3=$1+$2;U

Now C-u C-u C-c C-c gives

| start | duration |   end | notes |
|---+--+---+---|
| 08:00 | 1:00 | 09:00 |   |
| 09:00 |01:00 | 10:00 |   |
#+TBLFM: @<<<$2..@>$2=@-1;U::@<<<$1..@>$1=@-1+@-1$+1;U::$3=$1+$2;U

Very very nice, so I can proceed like this.


Thanks a lot!

Uwe 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


org table: generate a weekly calendar with column that represents the hours

2022-04-22 Thread Uwe Brauer

Hi

I am looking for  convenient method to generate a weekly calendar in
table form that looks like
#+begin_src 

|   Hours | Mon | Tue | Wed | Thu | Fri |
|   8:00-9:00 | | | | | |
|  9:00-10:00 | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| 19:00-20:00 | | | | | |
#+end_src

But, of course the missing hours should be inserted automatically.

A poor man's solution would be to do it manually and to save the table as a 
template, but is there a way to generate it using org's table functionality?

Thanks and regards

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


org-set-property does not add property at point, but at the end.

2022-04-22 Thread Uwe Brauer

Hi

Given a header with properties, to which I want to add a new property
via org-set-property. That works but the new property is added at the
end of all properties not directly below by cursor.

#+begin_src 

* Properties
   :PROPERTIES:
   :ID:   f76a5b78-919c-4375-a5d5-b0d0f3f071da
   :StEnv1:   [X]
   :H1:   2 (error de redondeo)
   :P1:   10
   :StEnv2:   [X]
^ cursor
   :H2:   2 (Euler-Trapecio)
   :P2:   40
   :FH2:  <2022-04-20 mié> 
   :H5:   1 (sistema rígido)
   :P5:   10
   :End:
#+end_src

gives

#+begin_src 

* Properties
   :PROPERTIES:
   :ID:   f76a5b78-919c-4375-a5d5-b0d0f3f071da
   :StEnv1:   [X]
   :H1:   2 (error de redondeo)
   :P1:   10
   :StEnv2:   [X]
   :H2:   2 (Euler-Trapecio)
   :P2:   40
   :FH2:  <2022-04-20 mié> 
   :H5:   1 (sistema rígido)
   :P5:   10
   :TH1:  [ ]
   :End:
#+end_src

Can this behaviour be changed? I'd like to that the new property close to the 
cursor!

Thanks 

Uwe Brauer 
-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 


smime.p7s
Description: S/MIME cryptographic signature


Re: when exporting latex how to set with in the includegraphics command

2022-04-03 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

Hi Juan Manuel
> Hi Uwe,
> Uwe Brauer writes:

>> But I would like a smaller width say 0.5, how can I achieve that?

> #+ATTR_LaTeX: :float nil
> #+ATTR_LaTeX: :width 

Thanks very much, that was very helpful

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


when exporting latex how to set with in the includegraphics command

2022-04-03 Thread Uwe Brauer
Hi

The org syntaxes
#+ATTR_LaTeX: :float nil
#+CAPTION: El método del Trapecio  punto fijo vs PC
[[./diagram-trapfix-vs-trapfixpc-norigid.png]]

Gets translated to 

\begin{center}
\includegraphics[width=.9\linewidth]{./diagram-trapnwt-vs-trapnwtpc-norigid.png}
\captionof{figure}{\label{Eulimpfix}El método del Trapecio Nwt vs Trapecio 
Nwt-PC}
\end{center}

But I would like a smaller width say 0.5, how can I achieve that?

Thanks 

Uwe Brauer 

-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 




when exporting to odt or html, latex equations are not exported when in soure block: BUG?

2022-03-15 Thread Uwe Brauer


Hi 

I run a relative recent GNU Emacs and org master, however please
consider the following example:

When exporting to html or odt (using dvipng in both cases) the first set
of equations in the source block are ignored.

Can somebody please confirm this, and tell me whether I should open a
BUG report.

Thanks

Uwe Brauer 

* A source block provides to export latex equations
#+begin_src latex :results latex replace :exports results :eval t

\begin{equation}
\label{eq:doc1:1}
\begin{matrix}
  \mathit{s}^{3}: & 1 & \mathit{K} - 6 \\
  \mathit{s}^{2}: & 5 & \mathit{K} \\
  \mathit{s}: & \frac{(4\mathit{K} - 30)}{5} & \\
  \mathit{s}^{0}: & \mathit{K}. 
  & \\
\end{matrix}
\end{equation}

So we see that 
\[
\frac{4K - 30}{5} > 0 \quad\mbox{and}\quad K > 0,
\]

\[
  K > 7.5\quad \mbox{and}\quad K > 0
\]
#+end_src

* Without the source block
\begin{equation}
\label{eq:doc1:1}
\begin{matrix}
  \mathit{s}^{3}: & 1 & \mathit{K} - 6 \\
  \mathit{s}^{2}: & 5 & \mathit{K} \\
  \mathit{s}: & \frac{(4\mathit{K} - 30)}{5} & \\
  \mathit{s}^{0}: & \mathit{K}. 
  & \\
\end{matrix}
\end{equation}

So we see that 
\[
\frac{4K - 30}{5} > 0 \quad\mbox{and}\quad K > 0,
\]

\[
  K > 7.5\quad \mbox{and}\quad K > 0
\]




-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine.
https://how-to-help-ukraine-now.super.site/




from table to properties the inverse columview operation

2022-03-06 Thread Uwe Brauer


Hi

I have for example 

* Grupos   :noexport:
  :PROPERTIES:
  :EXPORT_OPTIONS: num:t
  :COLUMNS:  %10GRP(Grupos) %10HOJA(Hoja Nr) %10EJ(Ejericio Nr) %17DATE(Date) 
%7STATUS(Status){X/}
  :ID:   Grupos
  :END:

** WAIT 1 <2022-02-03 jue 16:30> :Annu22: User
   :PROPERTIES:
   :ID:   6c53abda-5351-4651-8ec0-60138b248baa
   :Email:u...@gmail.com
   :Grp:  Gr1
   :Usuario1: User1
   :Email1:   us...@gmail.com
   :Usuario2: User2
   :Email2:   us...@gmail.com
   :StEnv1:   [X]
   :H1:   9 
   :P1:   5
   :End:

** <2022-03-06 dom 18:16> : Ejercicios elegidos de la Hoja1: quien puede hablar 
el día <2022-03-07 lun>
#+TBLNAME: hoja1
#+BEGIN: columnview :maxlevel 2 :skip-empty-rows t :indent nil :hlines 1  
:format "%5TODO(Status) %5Grp(Grupo) %5Usuario1(Miembro1) %5H1(Ejercicio 
elegido) %5P1(Porcentaje) %7StEnv1(Solución enviado){X/}"
| Status | Grupo | Miembro1 | Ejercicio elegido | Porcentaje | Solución enviado 
|
|+---+--+---++--|
||   |  |   || [1/1]
|
| WAIT   | Gr1   | User1| 9 |  5 | [X]  
|
#+END


So a table is generated based on earlier entries. 

Is there the inverse operation? Given a table I recover the original
properties?

Regards

Uwe Brauer 

-- 
I strongly condem Putin's war of agression against the Ukraine.
I support to deliver weapons to Ukraine’s military. 
I support the ban of Russia from SWIFT. I support the EU membership of the 
Ukraine. https://how-to-help-ukraine-now.super.site/





Re: Move or rename a file in a link

2022-03-06 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

Hi Juan Manuel 


> Hi all,
> I have written this simple function to move or rename a destination file
> in an external link at point. I share it here in case it is useful to
> someone.

Thanks, that looks very useful, I tend to reorder files in
subdirectories and therefore «destroying links»

Uwe Brauer 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html

2022-02-17 Thread Uwe Brauer
>>> "JK" == John Kitchin  writes:

> I guess you are using the older org-ref version 2 here. If so, there isn't
> a real way to customize that, it comes from org-ref-get-html-bibliography
> which hard codes an unordered list.

This kludge «solves» it 

(defun org-ref-get-html-bibliography ( sort)
  "Create an html bibliography when there are keys.
If one of SORT and `org-ref-bib-html-sorted' is non-nil,
the bibliography is alphabetically sorted."
  (let ((keys (org-ref-get-bibtex-keys (or sort org-ref-bib-html-sorted
(when keys
  (concat org-ref-bib-html ""
  "\n\n" ; a kludge to obtain a numbered list 
UB:18.02.2022:
  (mapconcat (lambda (x) (org-ref-get-bibtex-entry-html x)) keys 
"\n")
  "\n" ;second part of the kludge 
UB:18.02.2022:
  "\n"


> In version 3, you can use csl for this.

I remember running into issues with version 3. But in the future, if time
permits, I have to try it again.



smime.p7s
Description: S/MIME cryptographic signature


Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html

2022-02-17 Thread Uwe Brauer
The correct conversion should be 

* An example

cite:MR2980528

cite:MR2779087

cite:MR2608125

bibliographystyle:amsalpha-url
bibliography:/home/oub/ALLES/HGs/tex/bib/free.bib



Re: org-ref-helm-insert-cite-link (using bibtex) when exporting to html

2022-02-17 Thread Uwe Brauer

>>> "JK" == John Kitchin  writes:

> There aren't enough details here to figure out what you mean.
> The bibliography formatting should be determined by the CSL style.

I am not sure whether I should send here all my settings, but I convert the org 
file either with the standard org exporter or as in this example using 
org-mime-htmlize the result is an unnumbered list.



cite:MR2980528

cite:MR2779087

cite:MR2608125

bibliographystyle:amsalpha-url
bibliography:/home/oub/ALLES/HGs/tex/bib/free.bib






smime.p7s
Description: S/MIME cryptographic signature


org-ref-helm-insert-cite-link (using bibtex) when exporting to html

2022-02-17 Thread Uwe Brauer


Hi

I have a small org file with some bibtex references I insert using 
org-ref-helm-insert-cite-link.

When I export the file to html, the list of reference gets a bullet
list.

Any change to get a numerated list (I am not sure I asked that in the
past...)?

Regards

Uwe Brauer 




[SOLVED] (was: [BUG] loading ol-gnus returns an error [9.5 (release_9.5-194-gdb302d @ /home/oub/emacs/site-lisp/packages/org/)])

2022-02-05 Thread Uwe Brauer
>>> "IR" == Ihor Radchenko  writes:

> Uwe Brauer  writes:
>> Running a more or less recent master commit of org-mode and GNU emacs
>> when loading the ol-gnus file I receive the following error
>> 
>> 
>> Debugger entered--Lisp error: (void-variable file)
>> (load file "/home/oub/emacs/site-lisp/packages/org/ol-gnus.el")
>> eval((load file "/home/oub/emacs/site-lisp/packages/org/ol-gnus.el") nil)
>> elisp--eval-last-sexp(nil)
>> eval-last-sexp(nil)
>> funcall-interactively(eval-last-sexp nil)
>> call-interactively(eval-last-sexp nil nil)
>> command-execute(eval-last-sexp)

> When does the error occur? Judging from the backtrace, you tried to
> evaluate some kind of elisp expression manually with eval-last-sexp. The
> expression appears to be
> (load file "/home/oub/emacs/site-lisp/packages/org/ol-gnus.el")

Shame on me: it should be load-file

I am very sorry. Forget it


smime.p7s
Description: S/MIME cryptographic signature


Re: A callygraphy notebook environment

2022-01-31 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Hi Uwe,
> Thanks for testing the document.

> Uwe Brauer writes:

>> Interesting I like them all. I converted your org file to latex and run
>> it with lualatex but the font used there does not correspond to all the
>> three screenshots.

> The default font for the environment 'mynotebook" is qtmerryscript
> (shown in the third screenshot, if I remember correctly). I chose that
> one because it is included in TeX live 2021.

>> Now I am not really acquainted with lualatex but with xelatex, I
>> converted QTMerryScript.otf to ttf and run it with xelatex. Nice.

> But with XelaTeX the 'mynotebook' environment will not work, since it uses
> a function in Lua to generate the grids in a notebook way.

Right. That is true, at some point I have to learn lualatex, I am
afraid..

>> What are the other otf fonts you are using for these screenshots?

> The document itself includes some links to download the other typefaces. Look
> in the non-exportable section, named 'Conf', where it says "The different 
> options
> for the environment...". Anyway, I paste it here too:

> - Vladimir Script :: https://fontzone.net/font-details/vladimir-script
> - Anke Calligraphic :: https://fontzone.net/font-details/anke-calligraphic-fg
> - Studio Script :: https://fontzone.net/download/studioscriptctt

Thanks, that was helpful.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: A callygraphy notebook environment

2022-01-30 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:
Hi Juan
> Hi all,

> This is more related to LaTeX than Org, but I'm sharing it here in case
> anyone is interested. For a work I'm doing I've written a LaTeX
> environment that tries to mimic the look of a calligraphy notebook. By
> default it uses the qtmerryscript font, included in TeX live, but this
> can be changed to any other calligraphic-style font. It works only with
> LuaTeX, since it uses a function in Lua to add the grids.

> An screenshots:

> https://i.imgur.com/tgrgaWM.png

> https://i.imgur.com/AIolze2.png

> https://i.imgur.com/v2Mzyx5.png

Interesting I like them all. I converted your org file to latex and run
it with lualatex but the font used there does not correspond to all the
three screenshots.

Now I am not really acquainted with lualatex but with xelatex, I
converted QTMerryScript.otf to ttf and run it with xelatex. Nice. 

What are the other otf fonts you are using for these screenshots?

Thanks

Uwe


smime.p7s
Description: S/MIME cryptographic signature


Re: date format in agenda view

2022-01-28 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Hi Uwe,
> Uwe Brauer writes:

>> How can I obtain the Spanish week names?

> I have this in my init:

> #+begin_src emacs-lisp
> (setq calendar-week-start-day 1
>   calendar-day-name-array ["domingo" "lunes" "martes" "miércoles"
>  "jueves" "viernes" "sábado"]
>   calendar-month-name-array ["enero" "febrero" "marzo" "abril" "mayo"
>"junio" "julio" "agosto" "septiembre"
>"octubre" "noviembre" "diciembre"])
> #+end_src

Ha, thanks, I just realized I have this setting but embedded in a function in 
order to switch between English, Spanish and German. Memory☹️


smime.p7s
Description: S/MIME cryptographic signature


couldn't org-table-create-with-table\.el respect hline

2022-01-28 Thread Uwe Brauer
Hi

I start with 



| Example | Text| Dates| other   |
|-+-+--+-|
| this| comment | <2022-01-28 vie> | nothing |


That is converted to 



+-+-+--+-+
| Example | Text| Dates| other   |
+-+-+--+-+
| this| comment | <2022-01-28 vie> | nothing |
+-+-+--+-+


And is converted back to 


| Example | Text| Dates| other   |
| this| comment | <2022-01-28 vie> | nothing |


Couldn't in the last step the hlines be respected?

Regards

Uwe Brauer 




date format in agenda view

2022-01-28 Thread Uwe Brauer


Hi

I have set my language environment to spanish
and indeed org-time-stamp inserts <2022-01-28 vie>
Viernes=Friday

However I have an agenda file with entries like this 

* <2022-01-28 vie> dinner

But in agenda view it is displayed as 

Friday 28 January 2022
  file:   dinner


How can I obtain the Spanish week names?

Thanks 

Uwe Brauer 




Re: change the fontsize when exporting to HTML, header not really changed

2022-01-21 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Uwe Brauer writes:
>> But it did not work neither. Did you test it? I am on GNU Emacs master
>> and git master (ok several weeks old, but still recent enough I'd say)

> I hadn't seen Eric's message, but what he says makes a lot of sense: are
> you applying a separate style sheet, perhaps with a *.setup document
> that already has a header style defined? It looks like one style
> overlaps another.


No I did not, but as I said in a different message, the problem is
solved thanks to you

#+HTML_HEAD_EXTRA:  body {font-size:150%}

Was the correct setting but deleting all the others I had left


smime.p7s
Description: S/MIME cryptographic signature


[Solved] (was: change the fontsize when exporting to HTML, header not really changed)

2022-01-20 Thread Uwe Brauer
>>> "T" == Timothy   writes:

Hi Timothy


> Hi Uwe,
>> | #+HTML_HEAD_EXTRA: *{font-size: 108%;}
>> 
>> Now some text is changed as expected the text in the header not really.
>> 
>> Any idea what would be a more appropriate setting?

> Try changing the body font size. This /should/ change everything. If not the
> default CSS should be adjusted (let me know and I will do so).

#+HTML_HEAD_EXTRA:  body {font-size:150%}

Works as expected, please forget my earlier message, I did not test it
enough.

Thanks 

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: how to copy a column of a table (with content)

2022-01-20 Thread Uwe Brauer
Hi Marco
> Uwe Brauer  writes:

> I use the following function occasionally.  Possibly it helps in your case.

> (defun mw-org-table-mark-column ()
>   "Mark the column containing point."
>   (interactive)
>   (unless (org-at-table-p) (user-error "Not at a table"))
>   (org-table-find-dataline)
>   (org-table-check-inside-data-field)
>   (let* ((col (org-table-current-column))
>  (beg (org-table-begin))
>(end (org-table-end)))
> (goto-char beg)
> (org-table-goto-column col)
> (re-search-backward "|" nil t)
> (push-mark)
> (goto-char (1- end))
> (org-table-goto-column (1+ col))
> (re-search-backward "|" nil t)
> (exchange-point-and-mark)
> (forward-char)))
very nice, !!!

> Copy a column would be:

> 1. Put the cursor into that column.
> 2. M-x mw-org-table-mark-column
> 3. Move the cursor onto the |.  E.g. { C-b }.
> 4. M-x copy-rectangle-as-kill
> 5. Move the cursor to a suitable position in the first line of the table.
> 6. M-x yank-rectangle

> BTW rectangle-mark-mode -- possibly activated with { C-x SPC } -- can
> help with the copy and yank in this case.
Right, I completely forgot that mode! Thanks



> HTH,
very much so. Why not include the code into master?

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: change the fontsize when exporting to HTML, header not really changed

2022-01-20 Thread Uwe Brauer
>>> "T" == Timothy   writes:

Hi Timothy,

> Hi Uwe,
>> | #+HTML_HEAD_EXTRA: *{font-size: 108%;}
>> 
>> Now some text is changed as expected the text in the header not really.
>> 
>> Any idea what would be a more appropriate setting?

> Try changing the body font size. This /should/ change everything. 

Do you mean 

#+HTML_HEAD_EXTRA:  body {font-size:108%}

Not


#+HTML_HEAD_EXTRA:   {font-size:108%}

I presume?

In any case the first does not work, and the second neither.


> If not the default CSS should be adjusted (let me know and I will do so).

Do you mean on a per file base?

Thanks

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: change the fontsize when exporting to HTML, header not really changed

2022-01-20 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

Hi Juan


> Hi Uwe
> Uwe Brauer writes:

>> Now some text is changed as expected the text in the header not really.
>> 
>> Any idea what would be a more appropriate setting?

> Taking into account that h1 is the title, h2, h3, etc. are the classes
> for the different header levels. You can put something like this:

> #+HTML_HEAD:  h2 {font-size:108%}
> #+HTML_HEAD:  body {font-size:108%}

thanks very much but it seems not to work, I also tried 


#+HTML_HEAD_EXTRA: *{font-size: 108%;}
#+HTML_HEAD_EXTRA:  h1 {font-size:108%}
#+HTML_HEAD_EXTRA:  h2 {font-size:108%}

But it did not work neither. Did you test it? I am on GNU Emacs master and git 
master (ok several weeks old, but still recent enough I'd say)

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


change the fontsize when exporting to HTML, header not really changed

2022-01-20 Thread Uwe Brauer


Hi

I am using something like this in my org files that I want to export to
HTML:
,
| 
| #+LANGUAGE: 
| #+EXPORT_FILE_NAME: /home/oub/Desktop/blabla
| #+OPTIONS: toc:nil
| #+HTML_HEAD_EXTRA: *{font-size: 108%;}
| 
| * This is the first header
| 
| Some text
`

Now some text is changed as expected the text in the header not really.

Any idea what would be a more appropriate setting?

Thanks and regards

Uwe Brauer




how to copy a column of a table (with content)

2022-01-20 Thread Uwe Brauer


Hi 

I sometime have to deal with table that contains large columns and I
want to copy that columns and modify them a bit.

So I usually just insert an empty column and use kill-rectangle and 
yank-rectangle.

I am wondering, there seems no 
org-table-kill-this-column and org-table-yank-this-column.

I found 

https://emacs.stackexchange.com/questions/28270/how-to-select-and-copy-a-column-of-an-org-table-without-rectangle-selection#:~:text=Just%20mark%20the%20beginning%20of,table%2Dpaste%2Drectangle%20).

But it did not work for me.

Any ideas?

Regards

Uwe Brauer 




Re: org-->html text between @ should be red.

2022-01-15 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> I think this would work:
> (setq org-export-filter-plain-text-functions
>   (remove 'my-html-red org-export-filter-plain-text-functions))

> Anyway, I recommend that you take a look at the documentation on filters
> that Timothy pointed you to, as custom filters are tremendously useful
> and versatile, and very "surgical". I use them a lot!

> You can also apply a filter only in a document, by using the #+bind
> keyword and including the function in a non-exportable code block:

> #+begin_src emacs-lisp :exports results :results none
>   (defun my-html-red (text backend info)
> (when (org-export-derived-backend-p backend 'html)
>   (replace-regexp-in-string "@\\([^@]*\\)@"
>   "\\1"
>   text)))
> #+end_src

> #+bind: org-export-filter-plain-text-functions (my-html-red)

> (You need to set org-export-allow-bind-keywords to non-nil)

Thanks very much!!!

Regards

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-->html text between @ should be red.

2022-01-15 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Uwe Brauer writes:
>> Thanks very much it works as expected. However I just realized (and
>> this is true also for the org-mime filter that the reg-exp has a flaw.
>> 
>> I used the text 
>> 
>> 
>> =email:o...@mat.ucm.es=
>> 
>> So there is only one @, nevertheless the exporter translated that to 
>> email:oubmat.ucm.es
>> 
>> But this is wrong in my view.
>> 
>> Any ideas how to deal with such a situation?

> You can bind the function to org-export-filter-plain-text-functions
> instead of ...-final-output-functions.

Perfect, thanks.

Just out of curiosity because google does not know the answer

There is 
(add-hook 'some-hook 'some-function)
(remove-hook 'some-hook 'some-function)

So if I have 

(add-to-list 'org-export-filter-plain-text-functions 'my-html-red)

How could I remove something from a list?

Regards

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


Re: org-->html text between @ should be red.

2022-01-15 Thread Uwe Brauer
>>> "T" == Timothy   writes:
Hi Timothy
> Hi Uwe,
>> And every text between @ appears red.
>> 
>> Can I have a similar setting when exporting an org file to html via the
>> «normal» html exporter?

> Have a look at the filter functions, such as
> `org-export-filter-final-output-functions'. See
> .

Thanks, Juan already solved it, thanks.


smime.p7s
Description: S/MIME cryptographic signature


Re: org-->html text between @ should be red.

2022-01-15 Thread Uwe Brauer
>>> "JMM" == Juan Manuel Macías  writes:

> Uwe Brauer writes:
>> Can I have a similar setting when exporting an org file to html via the
>> «normal» html exporter?

> Using a custom filter?

> #+begin_src emacs-lisp

> (defun foo (text backend info)
> (when (org-export-derived-backend-p backend 'html)
>   (replace-regexp-in-string "@\\([^@]*\\)@"
>   "\\1"
>   text)))

> (add-to-list 'org-export-filter-final-output-functions 'foo)

> #+end_src

Thanks very much it works as expected. However I just realized (and this is 
true also for the org-mime filter that the reg-exp has a flaw.

I used the text 


 =email:o...@mat.ucm.es=

So there is only one @, nevertheless the exporter translated that to 
email:oubmat.ucm.es

But this is wrong in my view.

Any ideas how to deal with such a situation?

Thanks

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


org-->html text between @ should be red.

2022-01-15 Thread Uwe Brauer


Hi 

When I use org-mime-htmlize, then I can use the setting 

Render text between "@" in red color, you can use =org-mime-html-hook=,
#+begin_src elisp
(add-hook 'org-mime-html-hook
  (lambda ()
(while (re-search-forward "@\\([^@]*\\)@" nil t)
  (replace-match "\\1"
#+end_src

And every text between @ appears red.

Can I have a similar setting when exporting an org file to html via the
«normal» html exporter?

Thanks 

Uwe Brauer 




Re: org-store-link does not work in gnus article mode (messages)

2022-01-02 Thread Uwe Brauer
>>> "KM" == Kyle Meyer  writes:

> Uwe Brauer writes:
>> Hi  
>> 
>> I thought this worked a while ago, but in a gnus article buffer I tried to 
>> use org-store-link and received
>> 
>> (Running Emacs Master and org-mode master (some weeks old))
>> 
>> Debugger entered--Lisp error: (void-function org-fixup-message-id-for-http)
>> org-fixup-message-id-for-http("8ad92378cff625ebc8020dc45afdaadef484a3a3.ca...@web.de")

> org-fixup-message-id-for-http was removed from Org before the 9.3
> release (more specifically a486d9c, 2019-03-10) so your assumption that
> a recent Org is at the front of your load-path is invalid.

It is, but F...
There is also another path to a directory that contains old versions of
org mode, great, what a stupid mistakes.

Thanks


smime.p7s
Description: S/MIME cryptographic signature


org-store-link does not work in gnus article mode (messages)

2022-01-01 Thread Uwe Brauer
Hi  

I thought this worked a while ago, but in a gnus article buffer I tried to use 
org-store-link and received

(Running Emacs Master and org-mode master (some weeks old))

Debugger entered--Lisp error: (void-function org-fixup-message-id-for-http)
  
org-fixup-message-id-for-http("8ad92378cff625ebc8020dc45afdaadef484a3a3.ca...@web.de")
  org-gnus-article-link("nntp+news.gmane.io:gmane.comp.finance.ledger.general" 
"gmane.comp.finance.ledger.general" 
"8ad92378cff625ebc8020dc45afdaadef484a3a3.camel@web..." nil)
  org-gnus-store-link()
  org-store-link(nil 1)
  funcall-interactively(org-store-link nil 1)
  call-interactively(org-store-link nil nil)
  command-execute(org-store-link)




Re: ascii-timestamps like 31.12.2021 to iso(org) format <2020-12-31> and back

2021-12-31 Thread Uwe Brauer
>>> "ESF" == Eric S Fraga  writes:

> On Friday, 31 Dec 2021 at 14:21, Uwe Brauer wrote:
>> ⚠️ Caution: External sender
>> 
>> 
>> Hi
>> 
>> Does anybody know about a function that would convert between
>> date format  like 31.12.2021 to  <2020-12-31> and back?

> This is Emacs, of course, so you could use query-replace-regexp (M-%)
> with, for instance

> \([0-9][0-9]\)\.\([0-9][0-9]\)\.\([0-9]\{4\}\)

> as the pattern to search for and

> <\3-\2-\1>

> as the replacement.  The converse is left as an exercise for the
> reader. ;-)

Thanks the \{4\} surprise me. I tried

(query-replace-regexp "\\(\\<[0-9]*\\)\\([\\.]\\)\\([0-9]*\\>\\)" "\\3\\2\\1")

And that did not work.

Uwe 


smime.p7s
Description: S/MIME cryptographic signature


  1   2   3   4   5   6   7   8   9   10   >