ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* basic issues with formulas
@ 2020-12-03 19:48 Pablo Rodriguez
  2020-12-03 19:55 ` Otared Kavian
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2020-12-03 19:48 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

math is all Greek to me and I’m experiencing issues when typesetting the
most basic inline formulas.

  \starttext
  \startitemize[packed]
  \item Valor actual neto: $beneficios - costes$.
  \item Beneficio por euro: $\frac{beneficios}{costes}$.
  \item Beneficio obtenido el primer año.
  \stopitemize

  \startitemize[packed]
  \item Valor actual neto: $beneficios - costes$.
  \item Beneficio por euro: $beneficios - costes$.
  \item Beneficio obtenido el primer año.
  \stopitemize

  \startitemize[packed, columns, two]
  \item Valor actual neto: $beneficios - costes$.
  \item Beneficio por euro: $\frac{beneficios}{costes}$.
  \item Beneficio obtenido el primer año.
  \stopitemize

  \startitemize[packed, columns, two]
  \item Valor actual neto: $beneficios - costes$.
  \item Beneficio por euro: $beneficios - costes$.
  \item Beneficio obtenido el primer año.
  \stopitemize
  \stoptext

The issues I’m experiencing are:

1. Kernings around ligatures (fi) are wrong.

2. Is there a way to enable ligatures?

3. Packed works fine with fractions, but packed columns is wrong with
them. It adds too much space.

Again, formulas are totally foreign to my work with ConTeXt.

I don’t know whether they are bugs in latest (2020.01.30 14:13) or there
is a way to avoid the issues.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 19:48 basic issues with formulas Pablo Rodriguez
@ 2020-12-03 19:55 ` Otared Kavian
  2020-12-03 20:46   ` Pablo Rodriguez
  2020-12-03 20:23 ` Hans Åberg
  2020-12-03 20:52 ` Pablo Rodriguez
  2 siblings, 1 reply; 10+ messages in thread
From: Otared Kavian @ 2020-12-03 19:55 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Pablo,

You may use \text in math formulas as in:

 \startitemize[packed]
 \item Valor actual neto: $\text{beneficios} - \text{costes}$.
 \item Beneficio por euro: $\frac{\text{beneficios}}{\text{costes}}$.
 \item Beneficio obtenido el primer año.
 \stopitemize

Best regards: Otared

> On 3 Dec 2020, at 20:48, Pablo Rodriguez <oinos@gmx.es> wrote:
> 
> Dear list,
> 
> math is all Greek to me and I’m experiencing issues when typesetting the
> most basic inline formulas.
> 
>  \starttext
>  \startitemize[packed]
>  \item Valor actual neto: $beneficios - costes$.
>  \item Beneficio por euro: $\frac{beneficios}{costes}$.
>  \item Beneficio obtenido el primer año.
>  \stopitemize
> 
>  \startitemize[packed]
>  \item Valor actual neto: $beneficios - costes$.
>  \item Beneficio por euro: $beneficios - costes$.
>  \item Beneficio obtenido el primer año.
>  \stopitemize
> 
>  \startitemize[packed, columns, two]
>  \item Valor actual neto: $beneficios - costes$.
>  \item Beneficio por euro: $\frac{beneficios}{costes}$.
>  \item Beneficio obtenido el primer año.
>  \stopitemize
> 
>  \startitemize[packed, columns, two]
>  \item Valor actual neto: $beneficios - costes$.
>  \item Beneficio por euro: $beneficios - costes$.
>  \item Beneficio obtenido el primer año.
>  \stopitemize
>  \stoptext
> 
> The issues I’m experiencing are:
> 
> 1. Kernings around ligatures (fi) are wrong.
> 
> 2. Is there a way to enable ligatures?
> 
> 3. Packed works fine with fractions, but packed columns is wrong with
> them. It adds too much space.
> 
> Again, formulas are totally foreign to my work with ConTeXt.
> 
> I don’t know whether they are bugs in latest (2020.01.30 14:13) or there
> is a way to avoid the issues.
> 
> Many thanks for your help,
> 
> Pablo
> --
> http://www.ousia.tk
> ___________________________________________________________________________________
> If your question is of interest to others as well, please add an entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki     : http://contextgarden.net
> ___________________________________________________________________________________

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 19:48 basic issues with formulas Pablo Rodriguez
  2020-12-03 19:55 ` Otared Kavian
@ 2020-12-03 20:23 ` Hans Åberg
  2020-12-03 20:49   ` Pablo Rodriguez
  2020-12-03 20:52 ` Pablo Rodriguez
  2 siblings, 1 reply; 10+ messages in thread
From: Hans Åberg @ 2020-12-03 20:23 UTC (permalink / raw)
  To: mailing list for ConTeXt users


> On 3 Dec 2020, at 20:48, Pablo Rodriguez <oinos@gmx.es> wrote:
> 
> math is all Greek to me and I’m experiencing issues when typesetting the
> most basic inline formulas.
> The issues I’m experiencing are:
> 
> 1. Kernings around ligatures (fi) are wrong.
> 
> 2. Is there a way to enable ligatures?
> 
> 3. Packed works fine with fractions, but packed columns is wrong with
> them. It adds too much space.
> 
> Again, formulas are totally foreign to my work with ConTeXt.

When you do not use \text in math mode, it means implicit multiplication, which has special spacing. Operator names use text kerning. For example $sin x$ is implicit multiplication, and $\sin x$ the function "sin" applied to the variable x.


___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 19:55 ` Otared Kavian
@ 2020-12-03 20:46   ` Pablo Rodriguez
  0 siblings, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2020-12-03 20:46 UTC (permalink / raw)
  To: ntg-context

On 12/3/20 8:55 PM, Otared Kavian wrote:
> Hi Pablo,
>
> You may use \text in math formulas as in:

Many thanks for your reply, Otared.

\text is what I needed to fix the issue with ligatures and spacing.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 20:23 ` Hans Åberg
@ 2020-12-03 20:49   ` Pablo Rodriguez
  0 siblings, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2020-12-03 20:49 UTC (permalink / raw)
  To: ntg-context

On 12/3/20 9:23 PM, Hans Åberg wrote:
>> [...]
>> Again, formulas are totally foreign to my work with ConTeXt.
>
> When you do not use \text in math mode, it means implicit
multiplication, which has special spacing. Operator names use text
kerning. For example $sin x$ is implicit multiplication, and $\sin x$
the function "sin" applied to the variable x.

Many thanks for your explanation, Hans.

Now it’s clear to me that math and text modes are different in practice.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 19:48 basic issues with formulas Pablo Rodriguez
  2020-12-03 19:55 ` Otared Kavian
  2020-12-03 20:23 ` Hans Åberg
@ 2020-12-03 20:52 ` Pablo Rodriguez
  2020-12-03 21:00   ` Wolfgang Schuster
  2 siblings, 1 reply; 10+ messages in thread
From: Pablo Rodriguez @ 2020-12-03 20:52 UTC (permalink / raw)
  To: ntg-context

On 12/3/20 8:48 PM, Pablo Rodriguez wrote:
> [...]
> 3. Packed works fine with fractions, but packed columns is wrong with
> them. It adds too much space.

After clearing the issue with text, it seems that fractions add to much
space when in list with columns.

  \showframe\showgrid
  \starttext
  list:

  \startitemize[packed, columns, four]
  \item $\text{1} - \text{2}$
  \item item
  \item $\frac{1}{2}$
  \item item
  \stopitemize

  list:

  \startitemize[columns, four]
  \item $\text{1} - \text{2}$
  \item item
  \item $\frac{1}{2}$
  \item item
  \stopitemize
  \stoptext

I don’t know whether this is a bug.

Many thanks f or your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 20:52 ` Pablo Rodriguez
@ 2020-12-03 21:00   ` Wolfgang Schuster
  2020-12-03 21:27     ` Pablo Rodriguez
  0 siblings, 1 reply; 10+ messages in thread
From: Wolfgang Schuster @ 2020-12-03 21:00 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Pablo Rodriguez

Pablo Rodriguez schrieb am 03.12.2020 um 21:52:
> On 12/3/20 8:48 PM, Pablo Rodriguez wrote:
>> [...]
>> 3. Packed works fine with fractions, but packed columns is wrong with
>> them. It adds too much space.
> After clearing the issue with text, it seems that fractions add to much
> space when in list with columns.
>
>    \showframe\showgrid
>    \starttext
>    list:
>
>    \startitemize[packed, columns, four]
>    \item $\text{1} - \text{2}$
>    \item item
>    \item $\frac{1}{2}$
>    \item item
>    \stopitemize
>
>    list:
>
>    \startitemize[columns, four]
>    \item $\text{1} - \text{2}$
>    \item item
>    \item $\frac{1}{2}$
>    \item item
>    \stopitemize
>    \stoptext
>
> I don’t know whether this is a bug.

Itemize uses the mixed columns when you enable columns with enabled grid 
snapping
as default setting. To get rid of the extra line you can either disable 
the grid setting
for itemize with

     \setupitemize[grid=no]

or you replace the mixed columns mechanism with a simpler column 
mechanism which
doesn't produce an extra line, to do this add this at the begin of your 
document

     \enableexperiments[itemize.columns]

Wolfgang

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 21:00   ` Wolfgang Schuster
@ 2020-12-03 21:27     ` Pablo Rodriguez
  0 siblings, 0 replies; 10+ messages in thread
From: Pablo Rodriguez @ 2020-12-03 21:27 UTC (permalink / raw)
  To: ntg-context

On 12/3/20 10:00 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 03.12.2020 um 21:52:
>> On 12/3/20 8:48 PM, Pablo Rodriguez wrote:
>>> [...]
>>> 3. Packed works fine with fractions, but packed columns is wrong with
>>> them. It adds too much space.
>> After clearing the issue with text, it seems that fractions add to much
>> space when in list with columns.
>> [...]
>> I don’t know whether this is a bug.
>
> Itemize uses the mixed columns when you enable columns with enabled
> grid snapping as default setting. To get rid of the extra line you
> can either disable the grid setting for itemize with
>
>      \setupitemize[grid=no]

Many thanks with your reply, Wolfgang.

This solves the issue.

> or you replace the mixed columns mechanism with a simpler column
> mechanism which doesn't produce an extra line, to do this add this at
> the begin of your document
>
>      \enableexperiments[itemize.columns]

This avoids the extra line, but columns are wrong: 3 columps with option
"four" and it split items in 3 for the first column and 1 for the second
column with option "two".

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
  2020-12-03 20:58 ` Andres Conrado Montoya
@ 2020-12-03 21:40   ` Wolfgang Schuster
  0 siblings, 0 replies; 10+ messages in thread
From: Wolfgang Schuster @ 2020-12-03 21:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Andres Conrado Montoya

Andres Conrado Montoya schrieb am 03.12.2020 um 21:58:
> Hi pablo, regaring 1) TeX assumes that each character is a variable on 
> math mode. You need to tell it that each "word" is, well, a "word":
> 
> \starttext
>    \startitemize[packed]
>    \item Valor actual neto: $\text{\em beneficios} - \text{\em costes}$. 
> % you can use typographical variations inside \text: \em, \bf, etc
>    \item Beneficio por euro: $\frac{\text{\em beneficios}}{\text{\em 
> costes}}$.
>    \item Beneficio obtenido el primer año.
>    \stopitemize
> \stoptext

There are additional commands for italic, bold etc. text

\starttext

\startlines
$\mathtexttf{upright text}$
$\mathtextit{italic text}$
$\mathtextsl{slanted text}$
$\mathtextbf{bold text}$
$\mathtextbi{bolditalic text}$
$\mathtextbs{boldslanted text}$
\stoplines

\startlines
$\mathwordtf{upright word}$
$\mathwordit{italic word}$
$\mathwordsl{slanted word}$
$\mathwordbf{bold word}$
$\mathwordbi{bolditalic word}$
$\mathwordbs{boldslanted word}$
\stoplines

\stoptext

Wolfgang
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: basic issues with formulas
       [not found] <mailman.1514.1607024916.1206.ntg-context@ntg.nl>
@ 2020-12-03 20:58 ` Andres Conrado Montoya
  2020-12-03 21:40   ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Andres Conrado Montoya @ 2020-12-03 20:58 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 1371 bytes --]

Hi pablo, regaring 1) TeX assumes that each character is a variable on math
mode. You need to tell it that each "word" is, well, a "word":

\starttext
  \startitemize[packed]
  \item Valor actual neto: $\text{\em beneficios} - \text{\em costes}$. %
you can use typographical variations inside \text: \em, \bf, etc
  \item Beneficio por euro: $\frac{\text{\em beneficios}}{\text{\em
costes}}$.
  \item Beneficio obtenido el primer año.
  \stopitemize
\stoptext

2) will solve itself ather this. 3, I don't know.



-- 
Andrés Conrado Montoya
Andi Kú
andresconrado@gmail.com
http://sesentaycuatro.com
http://messier87.com
http://chiquitico.org
----------------------------------------
Los fines no justifican los medios, porque la medida verdadera de nuestro
carácter está dada por los medios que estamos dispuestos a utilizar, no por
los fines que proclamamos.
----------------------------------------

“You develop an instant global consciousness, a people orientation, an
intense dissatisfaction with the state of the world, and a compulsion to do
something about it. From out there on the moon, international politics look
so petty. You want to grab a politician by the scruff of the neck and drag
him a quarter of a million miles out and say, ‘Look at that, you son of a
bitch.’” — Apollo 14 astronaut Edgar Mitchell

[-- Attachment #1.2: Type: text/html, Size: 1944 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2020-12-03 21:40 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-03 19:48 basic issues with formulas Pablo Rodriguez
2020-12-03 19:55 ` Otared Kavian
2020-12-03 20:46   ` Pablo Rodriguez
2020-12-03 20:23 ` Hans Åberg
2020-12-03 20:49   ` Pablo Rodriguez
2020-12-03 20:52 ` Pablo Rodriguez
2020-12-03 21:00   ` Wolfgang Schuster
2020-12-03 21:27     ` Pablo Rodriguez
     [not found] <mailman.1514.1607024916.1206.ntg-context@ntg.nl>
2020-12-03 20:58 ` Andres Conrado Montoya
2020-12-03 21:40   ` Wolfgang Schuster

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