Re: Overlining troubles

2021-09-19 Thread Max Nikulin

On 19/09/2021 00:51, Ypo wrote:


I use orgmode to read and study directly but I am not able to set up 
LaTeX preview. So I need something "direct", but I can't renounce to 
exporting it.


For some letters accented characters exist: "ā".

Inline LaTeX preview just works for me (Linux), so I can suggest nothing 
besides to check "*Org Preview LaTeX Output*" buffer for errors.



El 18/09/2021 a las 19:32, Timothy escribió:


If you’re thinking of maths, why not just write inline LaTeX, e.g. 
\(\bar{x}\) ?


I think, you should follow this recomendations. Typography rules for 
math expressions substantially differ from ones for prose (italic font 
for variables, LaTeX cares concerning proper spaces, etc.).


When I was writing docs containing math, I had PDF (earlier DVI or PS) 
viewer window open along with LaTeX sources, so I could read formatted 
text. Anyway that time math in WYSIWYG was rather ugly (maybe besides 
texmacs), required heavy mouse work, and such editors had various 
problems with more or less complex documents that were easier for me to 
solve in LaTeX. That is why I never had expectation that source document 
should look like formatted one. Editing of sufficiently complex 
equations in LaTeX is not always convenient though.





Re: Overlining troubles

2021-09-18 Thread Ypo

Hi!

I use orgmode to read and study directly but I am not able to set up 
LaTeX preview. So I need something "direct", but I can't renounce to 
exporting it.



So that you have an idea of what I'm dealing with, I am able to set up 
LaTeX exporting on my home computer, but I can't make it work at my work 
computer. LaTeX preview is almost a dream to me.


Best regards

El 18/09/2021 a las 19:32, Timothy escribió:


Hi Ypo,

If you’re thinking of maths, why not just write inline LaTeX, e.g. 
\(\bar{x}\) ?


All the best,
*Timothy*

*From*: Ypo <mailto:"Ypo; >
*Subject*: Re: Overlining troubles
*To*: emacs-orgmode@gnu.org <mailto:"emacs-orgmode@gnu.org; 
>

*Date*: Sun, 19 Sep 2021 01:14:52 +0800

Thanks, Timothy and Max. I'll try to explain myself better.

Overlining is quite useful in math expressions, for example I needed 
it to represent the arithmetic mean.


I need to be able to overline text and to export it overlined. The 
only dirty solution I found was to change the =verbatim= mark, but now 
I can't use verbatim on orgmode, and the overlined text isn't 
exported, so unsustainable "solution".


The perfect solution? To be able to add a new marker to overline text 
that can be exported overlined.


Best regards

:-)

El 18/09/2021 a las 18:00, emacs-orgmode-requ...@gnu.org escribió:
Message: 7 Date: Sat, 18 Sep 2021 20:48:36 +0800 From: Timothy 
 To: Ypo  Cc: 
emacs-orgmode@gnu.org Subject: Re: Overlining troubles Message-ID: 
<87ee9mdp5i@gmail.com> Content-Type: text/plain; charset="utf-8" 
Hi Ypo, You’ll likely want to override `org-html-verbatim' and 
`org-latex-verbatim' to produce overlines in exports. All the best, 
Timothy -- next part -- An HTML attachment 
was scrubbed... URL: 
<https://lists.gnu.org/archive/html/emacs-orgmode/attachments/20210918/78086bf1/attachment.html> 
-- Message: 8 Date: Sat, 18 Sep 2021 
19:50:31 +0700 From: Max Nikulin  To: 
emacs-orgmode@gnu.org Subject: Re: Overlining troubles Message-ID: 
 Content-Type: text/plain; charset=utf-8; 
format=flowed On 18/09/2021 15:14, Ypo wrote:

I have tried many times in different ways to "overline" text. I am able
to overline it on orgmode (I sacrificed the =verbatim= marker to achieve
it), but it doesn't export overlined (nor HTML, nor LaTeX).

I tried in the past to add it to "Org Emphasis Alist" but it didn't work.

Is it possible to add overlining and to export it?

Just to avoid confusion, `org-emphasis-alist' is not designed to change
or to*add*  new markers:

https://orgmode.org/list/87blatodir@nicolasgoaziou.fr/  (Nicolas
Goaziou, Mon, 05 Apr 2021 01:06:52 +0200, Re: Using backticks for the
inline code delimeter?)

If you wish to export =verbatim= text as text with line above, perhaps,
you can define custom "verbatim" export filter
"info (org) Advanced Export Configuration"
https://orgmode.org/manual/Advanced-Export-Configuration.html

A macro expanded with markup for particular backend (e.g. @@latex:
...@@) may be a better option
"info (org) Macro Replacement"
https://orgmode.org/manual/Macro-Replacement.html

Some people experimenting with custom link types with associated
handlers for particular export backends:
https://orgmode.org/list/87mtq9zatr@posteo.net/  (Juan Manuel Macías,
Mon, 26 Jul 2021 09:25:04 +, Multilingual quotes inside paragraphs).

Unfortunately you described what you have tried in too general words to
suggest something more specific.




Re: Overlining troubles

2021-09-18 Thread Timothy
Hi Ypo,

If you’re thinking of maths, why not just write inline LaTeX, e.g. 
`\(\bar{x}\)' ?

All the best,
Timothy


Re: Overlining troubles

2021-09-18 Thread Ypo

Thanks, Timothy and Max. I'll try to explain myself better.

Overlining is quite useful in math expressions, for example I needed it 
to represent the arithmetic mean.


I need to be able to overline text and to export it overlined. The only 
dirty solution I found was to change the =verbatim= mark, but now I 
can't use verbatim on orgmode, and the overlined text isn't exported, so 
unsustainable "solution".


The perfect solution? To be able to add a new marker to overline text 
that can be exported overlined.


Best regards

:-)

El 18/09/2021 a las 18:00, emacs-orgmode-requ...@gnu.org escribió:
Message: 7 Date: Sat, 18 Sep 2021 20:48:36 +0800 From: Timothy 
 To: Ypo  Cc: 
emacs-orgmode@gnu.org Subject: Re: Overlining troubles Message-ID: 
<87ee9mdp5i@gmail.com> Content-Type: text/plain; charset="utf-8" 
Hi Ypo, You’ll likely want to override `org-html-verbatim' and 
`org-latex-verbatim' to produce overlines in exports. All the best, 
Timothy -- next part -- An HTML attachment was 
scrubbed... URL: 
<https://lists.gnu.org/archive/html/emacs-orgmode/attachments/20210918/78086bf1/attachment.html> 
-- Message: 8 Date: Sat, 18 Sep 2021 
19:50:31 +0700 From: Max Nikulin  To: 
emacs-orgmode@gnu.org Subject: Re: Overlining troubles Message-ID: 
 Content-Type: text/plain; charset=utf-8; 
format=flowed On 18/09/2021 15:14, Ypo wrote:

I have tried many times in different ways to "overline" text. I am able
to overline it on orgmode (I sacrificed the =verbatim= marker to achieve
it), but it doesn't export overlined (nor HTML, nor LaTeX).

I tried in the past to add it to "Org Emphasis Alist" but it didn't work.

Is it possible to add overlining and to export it?

Just to avoid confusion, `org-emphasis-alist' is not designed to change
or to*add*  new markers:

https://orgmode.org/list/87blatodir@nicolasgoaziou.fr/  (Nicolas
Goaziou, Mon, 05 Apr 2021 01:06:52 +0200, Re: Using backticks for the
inline code delimeter?)

If you wish to export =verbatim= text as text with line above, perhaps,
you can define custom "verbatim" export filter
"info (org) Advanced Export Configuration"
https://orgmode.org/manual/Advanced-Export-Configuration.html

A macro expanded with markup for particular backend (e.g. @@latex:
...@@) may be a better option
"info (org) Macro Replacement"
https://orgmode.org/manual/Macro-Replacement.html

Some people experimenting with custom link types with associated
handlers for particular export backends:
https://orgmode.org/list/87mtq9zatr@posteo.net/  (Juan Manuel Macías,
Mon, 26 Jul 2021 09:25:04 +, Multilingual quotes inside paragraphs).

Unfortunately you described what you have tried in too general words to
suggest something more specific.




Re: Overlining troubles

2021-09-18 Thread Max Nikulin

On 18/09/2021 15:14, Ypo wrote:


I have tried many times in different ways to "overline" text. I am able 
to overline it on orgmode (I sacrificed the =verbatim= marker to achieve 
it), but it doesn't export overlined (nor HTML, nor LaTeX).


I tried in the past to add it to "Org Emphasis Alist" but it didn't work.

Is it possible to add overlining and to export it?


Just to avoid confusion, `org-emphasis-alist' is not designed to change 
or to *add* new markers:


https://orgmode.org/list/87blatodir@nicolasgoaziou.fr/ (Nicolas 
Goaziou, Mon, 05 Apr 2021 01:06:52 +0200, Re: Using backticks for the 
inline code delimeter?)


If you wish to export =verbatim= text as text with line above, perhaps, 
you can define custom "verbatim" export filter

"info (org) Advanced Export Configuration"
https://orgmode.org/manual/Advanced-Export-Configuration.html

A macro expanded with markup for particular backend (e.g. @@latex: 
...@@) may be a better option

"info (org) Macro Replacement"
https://orgmode.org/manual/Macro-Replacement.html

Some people experimenting with custom link types with associated 
handlers for particular export backends:
https://orgmode.org/list/87mtq9zatr@posteo.net/ (Juan Manuel Macías, 
Mon, 26 Jul 2021 09:25:04 +, Multilingual quotes inside paragraphs).


Unfortunately you described what you have tried in too general words to 
suggest something more specific.





Re: Overlining troubles

2021-09-18 Thread Timothy
Hi Ypo,

You’ll likely want to override `org-html-verbatim' and `org-latex-verbatim' to
produce overlines in exports.

All the best,
Timothy


Overlining troubles

2021-09-18 Thread Ypo

Hi

I have tried many times in different ways to "overline" text. I am able 
to overline it on orgmode (I sacrificed the =verbatim= marker to achieve 
it), but it doesn't export overlined (nor HTML, nor LaTeX).


I tried in the past to add it to "Org Emphasis Alist" but it didn't work.

Is it possible to add overlining and to export it?

Best regards