basic issues with formulas
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
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
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 ___________________________________________________________________________________
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
On 3 Dec 2020, at 20:48, Pablo Rodriguez
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.
[...] 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$
On 12/3/20 9:23 PM, Hans Åberg wrote: 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
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
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
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
participants (4)
-
Hans Åberg
-
Otared Kavian
-
Pablo Rodriguez
-
Wolfgang Schuster