[NTG-context] Inline math spacing

2023-12-03 Thread Alexandre Christe
Dear list,

I’m facing some strange spacing with inline maths. Sometimes the space is ok 
(like around the first two fractions), but sometimes it is way too little. Do I 
miss to configure something?


Thanks in advance,

A. Christe
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Inline mathematics is stretched

2023-10-29 Thread Mia Bikey
Hi,
I was using \setupalign[verytolerant,stretch] so that the mono font does
not go inside the right inline image but after using that command the
inline math seems to spread.

Here is a Minimal Working Example:

ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupbodyfont[10pt, mono]

This is how it should look. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances. \\

\starttext

\setupalign[stretch]
This paragraph seems to look fine on 12pt. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances. \\

\setupalign[verytolerant, nothyphenated]
It looks even worse when I also use verytolerant and nothyphenated. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances.

\stoptext


Thisishowitlooks.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote:

> Many thanks. Is there a proper way to add some space (a couple of pt or em)
> to the left and the right of the text itself so the frame does not get so
> close to the text?

\framed[loffset=0.2ex, roffset=0.2ex]{...}

Also see: https://wiki.contextgarden.net/Command/setupframed

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

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


Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
Many thanks. Is there a proper way to add some space (a couple of pt or em)
to the left and the right of the text itself so the frame does not get so
close to the text?

Op vr 19 mei 2023 om 14:10 schreef Wolfgang Schuster via ntg-context <
ntg-context@ntg.nl>:

> Jeroen via ntg-context schrieb am 19.05.2023 um 14:22:
> > In order to get some inline framed verbatim text, I have in the past
> > always used the following:
> >
> > \starttext
> >
> > This is an
> > \inframed
> >   [frame=on,
> >   corner=00,
> > radius=2mm,offset=-1.5pt]
> >   {\ttx \bf example}
> >
> > \stoptext
> >
> > Since this has come-up more and more often, I created the following:
> >
> > \define[1]\infr{
> > \inframed
> > [frame=on,
> >   corner=00,
> >   radius=2mm,offset=-1.5pt]{#1}}
> >
> > \starttext
> >
> > This is an \infr{example}
> >
> > \stoptext
> >
> > This works fine except that I cannot get the text in
> > verbatim/teletype. I have tried style=mono and style={\ttx \bf} but
> > nothing seems to work.
>
> \framed has no style key, you have to use the foregroundstyle to change
> font style, size etc.
>
> To create your own \framed (or \inframed when you add location=low) you
> can use the \defineframed command:
>
> \defineframed
>[infr]
>[location=low,
> frame=on,
> corner=00,
> radius=2mm,
> %offset=-1.5pt,
> foregroundstyle=\tt\bfx]
>
> \starttext
>
> This is an \infr{example}
>
> \stoptext
>
> Wolfgang
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Wolfgang Schuster via ntg-context

Jeroen via ntg-context schrieb am 19.05.2023 um 14:22:
In order to get some inline framed verbatim text, I have in the past 
always used the following:


\starttext

This is an
\inframed
  [frame=on,
  corner=00,
radius=2mm,offset=-1.5pt]
  {\ttx \bf example}

\stoptext

Since this has come-up more and more often, I created the following:

\define[1]\infr{
\inframed
[frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]{#1}}

\starttext

This is an \infr{example}

\stoptext

This works fine except that I cannot get the text in 
verbatim/teletype. I have tried style=mono and style={\ttx \bf} but 
nothing seems to work.


\framed has no style key, you have to use the foregroundstyle to change 
font style, size etc.


To create your own \framed (or \inframed when you add location=low) you 
can use the \defineframed command:


\defineframed
  [infr]
  [location=low,
   frame=on,
   corner=00,
   radius=2mm,
   %offset=-1.5pt,
   foregroundstyle=\tt\bfx]

\starttext

This is an \infr{example}

\stoptext

Wolfgang

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

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


[NTG-context] Inline framed verbatim text

2023-05-19 Thread Jeroen via ntg-context
In order to get some inline framed verbatim text, I have in the past always
used the following:

\starttext

This is an
\inframed
  [frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]
  {\ttx \bf example}

\stoptext

Since this has come-up more and more often, I created the following:

\define[1]\infr{
\inframed
  [frame=on,
  corner=00,
  radius=2mm,offset=-1.5pt]{#1}}

\starttext

This is an \infr{example}

\stoptext

This works fine except that I cannot get the text in verbatim/teletype. I
have tried style=mono and style={\ttx \bf} but nothing seems to work.

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

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


Re: [NTG-context] Inline Fractions

2021-01-25 Thread Hans Hagen

On 1/25/2021 1:58 PM, Johann Birnick wrote:

Recently inline fractions stopped working correctly.

For example symbol spacing, sub-/superscripts, the line is too short,...

You can see the 3 named problems and how they sometimes appear and sometimes not
in this two fractions:

\starttext
$\frac{\sin(x)}{16 \pi \epsilon_0 c^2 m_e^2} \frac{\sin(x)}{\epsilon_0}$
\stoptext

Compare the output between the current LMTX version with some old version. (I
compared with mk4, because I had nothing else available. I don't know when bugs
were introduced.)
I'll check it. We're in a transition to a dual font model in math and 
it's kind of tricky to let both do the same but we'll get there 
eventually. It also has some consequences for backand code which makes 
it even more tricky. But normally, once it does work it keeps working.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___


[NTG-context] Inline Fractions

2021-01-25 Thread Johann Birnick
Recently inline fractions stopped working correctly.

For example symbol spacing, sub-/superscripts, the line is too short,...

You can see the 3 named problems and how they sometimes appear and sometimes not
in this two fractions:

\starttext
$\frac{\sin(x)}{16 \pi \epsilon_0 c^2 m_e^2} \frac{\sin(x)}{\epsilon_0}$
\stoptext

Compare the output between the current LMTX version with some old version. (I
compared with mk4, because I had nothing else available. I don't know when bugs
were introduced.)

Best regards,
Johann

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


[NTG-context] inline fractions

2019-06-26 Thread Alan Bowen
The following mwe

\definefontfeature[fraction][frac=yes]
\definehighlight[textfraction][style={\feature[+][fraction]}]

\starttext
a fraction \m{\frac{1}{n}}, \textfraction{1/n}, \vulgarfraction{1}{n} in
the text
\stoptext

works for all but \textfraction in the latest beta (luatex, luametatex).
Has something changed or have I missed something?

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


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Since it's purely a font issue I did some research on fonts. I found out that \enablemode[lmmath] does the trick (https://www.contextgarden.net/Math_fonts is useful resource). Oh well, everything is fine again and I can keep contexing stuff :) Thank you!

 

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


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Henri Menke
On 16/05/19 7:46 AM, Eric Scmidt wrote:
> Thank for your efforts to help me.  This time I used the exact code snippet 
> you 
> wrote, but the results for inline math is still not what I would like to have 
> since I do see a clear difference in the limits placement. Please see this 
> image 
> where I have tried to make more clear what I really want to achieve and what 
> the 
> code gives me:  https://i.imgur.com/AEfHxBh.png
> It might be a font issue, since examining the context and pdflatex output 
> files,  I see differences in fonts, alghough the actual glyphs look pretty 
> much 
> the same. I don't really know.

Yes, it is a different font.  If you want to use the same font in LaTeX as in
ConTeXt, you have to load the unicode-math package and use LuaLaTeX.

\documentclass{article}
\usepackage{unicode-math}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document}

Cheers, Henri


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


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Eric Scmidt
Thank for your efforts to help me.  This time I used the exact code snippet you wrote, but the results for inline math is still not what I would like to have since I do see a clear difference in the limits placement. Please see this image where I have tried to make more clear what I really want to achieve and what the code gives me:  https://i.imgur.com/AEfHxBh.png

 

It might be a font issue, since examining the context and pdflatex output files,  I see differences in fonts, alghough the actual glyphs look pretty much the same. I don't really know.

 

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


Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-12 Thread Henri Menke
To me the following two MWEs look pretty much the same:

\setupbodyfont[10pt] % same font size as LaTeX
\starttext
$\sum_{k=1}^{n} a_k$
\startformula
\sum\nolimits_{k=1}^{n} a_k
\stopformula
\stoptext


\documentclass{article}
\begin{document}
$\sum_{k=1}^{n} a_k$
\[
\sum\nolimits_{k=1}^{n} a_k
\]
\end{document} 

I tried that with versions of ConTeXt from TeX Live 2016, 2017, 2018, and 2019,
as well as the latest beta, all with the same result.

You refer to ma-cb-en page 19, but which of the two equations, the first or the
second one?  Keep in mind that the first one uses

\sum_{n=1}_^{m}

where you are using

\sum\nolimits_{k=1}^{n}

Cheers, Henri

On 11/05/19 7:42 AM, Eric Scmidt wrote:
> Hello everyone!
> So, I have some inline math in my document,and it's looking too big or 
> "airy"; a 
> bit like when \nolimits is specified in display mode but smaller. The limits 
> are 
> placed next to the symbol when using for example pdflatex, and I prefer this 
> tight way for inline math. Is the "airier" way a (new) Context standard or a 
> bug, and if it is just a standard how can I achieve the tighter style 
> (could't 
> find any pointers anywhere)? At least the latest beta exhibits this behaviour 
> (for what it is worth, Context mark IV an excursion by Ton Otten, the version 
> produced by LuaTeX-1.06.0 , has the style I want on page 19, and no special 
> tricks are discussed). All help is greatly appreciated.
> \starttext
> $\sum_{k=1}^{n} a_k$
> \startformula
> \sum\nolimits_{k=1}^{n} a_k
> \stopformula
> \stoptext
> -Eric
> 
> 
> ___
> 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
___


[NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-11 Thread Eric Scmidt
Hello everyone!

 

So, I have some inline math in my document,and it's looking too big or "airy"; a bit like when \nolimits is specified in display mode but smaller. The limits are placed next to the symbol when using for example pdflatex, and I prefer this tight way for inline math. Is the "airier" way a (new) Context standard or a bug, and if it is just a standard how can I achieve the tighter style (could't find any pointers anywhere)? At least the latest beta exhibits this behaviour (for what it is worth, Context mark IV an excursion by Ton Otten, the version produced by LuaTeX-1.06.0 , has the style I want on page 19, and no special tricks are discussed). All help is greatly appreciated.

 

\starttext

$\sum_{k=1}^{n} a_k$

 

\startformula

\sum\nolimits_{k=1}^{n} a_k

\stopformula

\stoptext

 

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


Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-16 Thread Aditya Mahajan

On Tue, 15 Jan 2019, Taco Hoekwater wrote:


On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni  wrote:

I guess it works fine for me on beta 2019.01.07 16:10.


Thanks for testing. Sorry, I should have checked myself.


On 15 Jan 2019, at 15:22, Hans Hagen  wrote:
works her ebut better is probably:

\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]


I had that earlier, but unfortunately there is also the  tag,
and this does not work the way I want:

%%%
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
\definebar[tacoover][method=1,dy=-0.4,offset=0.5,continue=yes]


Here is the start of the paragraph
{\tacobar hello! ({\tacoover this} looks fine)}
and some extra text running on to the next line
%%%

Because the \tacoover makes the \tacobar disappear :(


If the text has constant interline spacing, you can try to mimick the old 
(mkii) underbar mechanism. See https://tex.stackexchange.com/a/125486/323 
for an example. I haven't tested this with nested backgrounds, but it 
should work.


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

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Aditya Mahajan

On Tue, 15 Jan 2019, Taco Hoekwater wrote:


Hi,

Quick explanation: I am trying to implement the concept of the HTML  tag,
which is supposed to be like a font switch, but doing underlining. I have a
bunch of french clients, and this is a requirement I cannot get around. French
officials _love_ underlining and uppercasing :(


Have you tried \underbar{\input ward\endgraf}?

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

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Taco Hoekwater


> On 15 Jan 2019, at 15:08, Mohammad Hossein Bateni  wrote:
> 
> I guess it works fine for me on beta 2019.01.07 16:10.

Thanks for testing. Sorry, I should have checked myself.

> On 15 Jan 2019, at 15:22, Hans Hagen  wrote:
> works her ebut better is probably:
> 
> \definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]

I had that earlier, but unfortunately there is also the  tag,
and this does not work the way I want:

%%%
\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]
\definebar[tacoover][method=1,dy=-0.4,offset=0.5,continue=yes]


Here is the start of the paragraph
{\tacobar hello! ({\tacoover this} looks fine)}
and some extra text running on to the next line
%%%

Because the \tacoover makes the \tacobar disappear :(

Taco







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

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Hans Hagen

On 1/15/2019 2:36 PM, Taco Hoekwater wrote:

Hi,

Quick explanation: I am trying to implement the concept of the HTML  tag,
which is supposed to be like a font switch, but doing underlining. I have a
bunch of french clients, and this is a requirement I cannot get around. French
officials _love_ underlining and uppercasing :(

Because of its flexibility, I try to use text backgrounds, but that seems to
only work when the text does not break across lines: when on one line, the
background starts and stops at the right spot, great! But if there is a line
break, then it underlines complete lines, even for the first and last line.

Is there any way to have underlining + line breaks behave correctly?
(perhaps not using text backgrounds at all?)

My current code is attached.

works her ebut better is probably:

\definebar[tacobar] [method=1,dy=-0.4,offset=-0.3,continue=yes]

\starttext

Here is the start of the paragraph
{\tacobar hello! (this looks fine)}
and some extra text running on to the next line

\blank

Here is the start of the paragraph
{\tacobar \input ward }
and some extra text running on to the next line

\stoptext



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

Re: [NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Mohammad Hossein Bateni
I guess it works fine for me on beta 2019.01.07 16:10.

On Tue, Jan 15, 2019 at 8:37 AM Taco Hoekwater  wrote:

> Hi,
>
> Quick explanation: I am trying to implement the concept of the HTML 
> tag,
> which is supposed to be like a font switch, but doing underlining. I have
> a
> bunch of french clients, and this is a requirement I cannot get around.
> French
> officials _love_ underlining and uppercasing :(
>
> Because of its flexibility, I try to use text backgrounds, but that seems
> to
> only work when the text does not break across lines: when on one line, the
> background starts and stops at the right spot, great! But if there is a
> line
> break, then it underlines complete lines, even for the first and last line.
>
> Is there any way to have underlining + line breaks behave correctly?
> (perhaps not using text backgrounds at all?)
>
> My current code is attached.
>
> Best wishes,
> Taco
>
>
> ___
> 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
>
> ___


s.pdf
Description: Adobe PDF document
___
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
___

[NTG-context] inline textbackgrounds across linebreaks

2019-01-15 Thread Taco Hoekwater
Hi,

Quick explanation: I am trying to implement the concept of the HTML  tag,
which is supposed to be like a font switch, but doing underlining. I have a 
bunch of french clients, and this is a requirement I cannot get around. French
officials _love_ underlining and uppercasing :(

Because of its flexibility, I try to use text backgrounds, but that seems to
only work when the text does not break across lines: when on one line, the
background starts and stops at the right spot, great! But if there is a line 
break, then it underlines complete lines, even for the first and last line.

Is there any way to have underlining + line breaks behave correctly?
(perhaps not using text backgrounds at all?)

My current code is attached.

Best wishes,
Taco


s.pdf
Description: Adobe PDF document


s.tex
Description: Binary data

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

[NTG-context] inline code in XML

2017-07-28 Thread Pablo Rodriguez
Hans,

many  thanks for having added \xmlprettyprinttext to ConTeXt.

I have now another problem with inline code:

\definetype[TeX][option=TEX, lines=hyphenated]
\starttext
\startTEXpage[offset=1em]
This is inline code: \TeX{\command[option=value]{final text}}

\startXML
Inline code: \TeX[option=value]{final text}
\stopXML
\stopTEXpage
\stoptext

I need the \TeX command from the first text paragraph, but I have to
make it work with an XML source such as the second one (the code element).

Would it be possible to have something like \xmlprettyinlinetext (it is
essential to have consistent marking in code blocks and in inline code?

I have tried to find out a solution, but \typebuffer requires a separate
paragraph (or I didn’t know how to disable it).

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
___

Re: [NTG-context] Inline stacking of text

2017-04-14 Thread Meer, Hans van der
The following was in answer to 3/11/2017 4:52 PM, Pavneet Arora:
On 13 Mar 2017, at 00:27, Hans Hagen > 
wrote:

\starttext
   \start
   \definefont[whatever][Sans at 50pt]
\dontleavehmode\inframed
   [foregroundstyle=whatever,
frame=off,
location=middle,
align=flushleft]
   {TITLE---}%
   \dontleavehmode\inframed
   [foregroundstyle=whatever,
frame=off,
location=middle,
align=flushleft]
   {\definedfont[Sans at 25pt] SUB-TITLE}%
   \stopoverlay}
\stoptext

A question about this code. The final } is equivalent to \stop and closes to 
\start at the beginning.
But I canot see the \stopoverlay matching a \startoverlay, as I would have 
expected.
What am I missing here?

Hans van der Meer

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

Re: [NTG-context] Inline stacking of text

2017-03-12 Thread Hans Hagen

On 3/11/2017 4:52 PM, Pavneet Arora wrote:

Really simple problem that has had me bashing my head for a while, so I
thought that I would reach out and ask for help:

I need to create large type title/sub-title combinations in-line.  I
need the sub-titles to be stacked so that they share the same baseline
as the title.  Unfortunately, I cannot seem to get the baseline
alignment to work.

Also, I seem to have to add the '\setupwhitespace[-1.0em] to squish the
lines together.  Is there a better way?

Appreciate any guidance.

advTHANKSance.

MWE--8<

\setuppapersize[letter,portrait]

\definefontfamily[mainface][rm][Latin Modern]
\definefontfamily[mainface][ss][Latin Sans]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,80pt]

\setupinterlinespace[line=2.2ex]
\setupwhitespace[none]

\starttext
\definedfont[Sans at 50pt]{TITLE---}%
\framed[frame=off,location=middle,align=flushleft]{%
\definedfont[Sans at 
25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}%
\stoptext

->8

\starttext
\start
\definefont[whatever][Sans at 50pt]
\dontleavehmode\inframed
[foregroundstyle=whatever,
 frame=off,
 location=middle,
 align=flushleft]
{TITLE---}%
\dontleavehmode\inframed
[foregroundstyle=whatever,
 frame=off,
 location=middle,
 align=flushleft]
{\definedfont[Sans at 25pt] SUB-TITLE}%
\stopoverlay}
\stoptext


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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
___

[NTG-context] Inline stacking of text

2017-03-11 Thread Pavneet Arora
Really simple problem that has had me bashing my head for a while, so I 
thought that I would reach out and ask for help:

I need to create large type title/sub-title combinations in-line.  I 
need the sub-titles to be stacked so that they share the same baseline 
as the title.  Unfortunately, I cannot seem to get the baseline 
alignment to work.

Also, I seem to have to add the '\setupwhitespace[-1.0em] to squish the 
lines together.  Is there a better way?

Appreciate any guidance.

advTHANKSance.

MWE--8<

\setuppapersize[letter,portrait]

\definefontfamily[mainface][rm][Latin Modern]
\definefontfamily[mainface][ss][Latin Sans]
\definefontfamily[mainface][mm][Latin Modern Math]
\setupbodyfont[mainface,80pt]

\setupinterlinespace[line=2.2ex]
\setupwhitespace[none]

\starttext
\definedfont[Sans at 50pt]{TITLE---}%
\framed[frame=off,location=middle,align=flushleft]{%
\definedfont[Sans at 
25pt]\setupinterlinespace\setupwhitespace[-1.0em]{SUB-TITLE\\ SUB-TITLE}}%
\stoptext

->8


-- 
Pavneet Arora   m: +1 (647) 406-6843
Waroc Informatikt: +1 (416) 937-9276
___
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
___

Re: [NTG-context] inline footnotes

2015-01-30 Thread mf
 Hi Massi,
 
 Could you possibly provide a small pdf sample that illustrates exactly
 what you are looking for? Thanks and 
 
 Best wishes 
 Idris

Thanks for your reply, Idris. Here's an example:

*** traditional (stacked) footnotes ***
***

1. This is the text of the first footnote
2. This is the text of the second footnote


*** inline footnotes (one paragraph for all the footnotes) ***
**

1. first footnote --- 2. second footnote --- 3. the third
footnote, extending to the next line --- 4. fourth one


*** footnotes in columns in ConTeXt (\setupfootnotes[n=3]) ***
**

1. first footnote 2. second one 3. third one
4. fourth one, hy-phenated


Inline footnotes are good when you have a lot of short notes,
that would eat a lot of vertical space, and sometimes other
longer footnotes.
I've put an m-dash as a separator, but you could use a wide
space or another separator.

Footnotes in columns are good if they are ALL shorter than
the column width.

The LaTeX package footmisc provides the inline footnotes
by the option para. But, if I understand right, LaTeX packages
are not compatible with ConTeXt.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] inline footnotes

2015-01-30 Thread Wolfgang Schuster

 Am 30.01.2015 um 22:44 schrieb mf mass...@fastwebnet.it:
 
 Hi Massi,
 
 Could you possibly provide a small pdf sample that illustrates exactly
 what you are looking for? Thanks and 
 
 Best wishes 
 Idris
 
 Thanks for your reply, Idris. Here's an example:
 
 *** traditional (stacked) footnotes ***
 ***
 
 1. This is the text of the first footnote
 2. This is the text of the second footnote
 
 
 *** inline footnotes (one paragraph for all the footnotes) ***
 **
 
 1. first footnote --- 2. second footnote --- 3. the third
 footnote, extending to the next line --- 4. fourth one
 
 
 *** footnotes in columns in ConTeXt (\setupfootnotes[n=3]) ***
 **
 
 1. first footnote 2. second one 3. third one
 4. fourth one, hy-phenated
 
 
 Inline footnotes are good when you have a lot of short notes,
 that would eat a lot of vertical space, and sometimes other
 longer footnotes.
 I've put an m-dash as a separator, but you could use a wide
 space or another separator.
 
 Footnotes in columns are good if they are ALL shorter than
 the column width.
 
 The LaTeX package footmisc provides the inline footnotes
 by the option para. But, if I understand right, LaTeX packages
 are not compatible with ConTeXt.

\setupnotation[footnote][alternative=serried,numbercommand=,numberstopper=.]
\setupnote[footnote][paragraph=yes,inbetween=~–~]

\starttext

One\footnote{first footnote}
Two\footnote{second footnote}
Three\footnote{The third footnote, extending to the next line}
Four\footnote{fourth one}

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] inline footnotes

2015-01-30 Thread Idris Samawi Hamid ادريس سماوي حامد
Hi Massi,

Could you possibly provide a small pdf sample that illustrates exactly what you 
are looking for? Thanks and 

Best wishes 
Idris

Sent from my *awesome* BlackBerry 10 smartphone.
  Original Message  
From: mass...@fastwebnet.it
Sent: Friday, January 30, 2015 1:16 AM
To: ntg-context@ntg.nl
Reply To: mass...@fastwebnet.it
Subject: [NTG-context] inline footnotes

Hello,
I'd like to know how to get inline footnotes with ConTeXt.
There are some packages in LaTeX (option para in footmisc, manyfoot, bigfoot) 
providing that feature.
How can I do that in ConTeXt?
Thanks,
Massi
___
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] inline footnotes

2015-01-30 Thread massifr
Hello,
I'd like to know how to get inline footnotes with ConTeXt.
There are some packages in LaTeX (option para in footmisc, manyfoot, bigfoot) 
providing that feature.
How can I do that in ConTeXt?
Thanks,
Massi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Inline math in table in combination fails

2013-09-19 Thread Hans Hagen

On 9/19/2013 1:27 AM, Marco Patzer wrote:

Hi,

The following example results in the error “You can't assign a
glue_spec node to a prev field”

\starttext
   \startcombination [2*1]
 {\starttable [|c|]
  \NC \math{1} \VL\NR\HL
  \stoptable}{}
 {\starttable [|c|]
  \NC \math{2} \VL\NR
  \stoptable}{}
   \stopcombination
\stoptext

It works without the combination, without the vertical or horizontal
rule and when no math mode is used. It used to work some time ago,
so I assume it's a bug.


it went unnoticed as works in my experimental branch ... i just forgot 
to copy back a variable initialization


fixed

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Inline math in table in combination fails

2013-09-18 Thread Marco Patzer
Hi,

The following example results in the error “You can't assign a
glue_spec node to a prev field”

\starttext
  \startcombination [2*1]
{\starttable [|c|]
 \NC \math{1} \VL\NR\HL
 \stoptable}{}
{\starttable [|c|]
 \NC \math{2} \VL\NR
 \stoptable}{}
  \stopcombination
\stoptext

It works without the combination, without the vertical or horizontal
rule and when no math mode is used. It used to work some time ago,
so I assume it's a bug.

Marco


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Inline itemize

2012-01-07 Thread Hans Hagen

On 6-1-2012 00:25, Wolfgang Schuster wrote:


Am 06.01.2012 um 00:06 schrieb Wagner Macedo:


As I know, yes, this is the intended behavior. You should be thinking in a 
WYSIWYG way, but TeX, as most languages (except Python, that I know) works 
apart you write every code in one line or write pretty indented.


No, this is a bug because with the “text” keyword you can create a inline item 
which doesn’t start a new paragraph.


fixed .. also a beter default for textdistance (not uploaded yet)


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline itemize

2012-01-06 Thread Vianney le Clément
On Fri, Jan 6, 2012 at 00:25, Wolfgang Schuster
schuster.wolfg...@googlemail.com wrote:
 No, this is a bug because with the “text” keyword you can create a inline 
 item which doesn’t start a new paragraph.

 Wolfgang

Thanks for the confirmation. I hope it will be fixed soon.

Vianney
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Inline itemize

2012-01-05 Thread Vianney le Clément
Hello,

If I type

Blabla. \startitemize[a,text] \item one \item two \stopitemize Blabla.

I get a linebreak before and after the itemize. Is this the intended
behaviour? How can I get a fully inline enumeration?

Thanks,
Vianney
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline itemize

2012-01-05 Thread Wagner Macedo
As I know, yes, this is the intended behavior. You should be thinking in a
WYSIWYG way, but TeX, as most languages (except Python, that I know) works
apart you write every code in one line or write pretty indented.

I hope you understood.

--
Wagner Macedo


2012/1/5 Vianney le Clément vleclem...@gmail.com

 If I type

Blabla. \startitemize[a,text] \item one \item two \stopitemize Blabla.

 I get a linebreak before and after the itemize. Is this the intended
 behaviour? How can I get a fully inline enumeration?

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Inline itemize

2012-01-05 Thread Wolfgang Schuster

Am 06.01.2012 um 00:06 schrieb Wagner Macedo:

 As I know, yes, this is the intended behavior. You should be thinking in a 
 WYSIWYG way, but TeX, as most languages (except Python, that I know) works 
 apart you write every code in one line or write pretty indented.

No, this is a bug because with the “text” keyword you can create a inline item 
which doesn’t start a new paragraph.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline itemize

2012-01-05 Thread Wagner Macedo
Ah... sorry. I read the manual but I didn't remember this feature.

--
Wagner Macedo


On 5 January 2012 20:25, Wolfgang Schuster schuster.wolfg...@googlemail.com
 wrote:

 No, this is a bug because with the “text” keyword you can create a inline
 item which doesn’t start a new paragraph.
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting
of code fragments?

Thanks,
Alasdair
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Inline verbatim?

2011-04-27 Thread Aditya Mahajan

On Thu, 28 Apr 2011, Alasdair McAndrew wrote:


Is there a ConTeXt version of the LaTeX \verb command, for inline typsetting
of code fragments?


\type{...} or \type|...| (or any other character, just like \verb)

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline verbatim?

2011-04-27 Thread Alasdair McAndrew
Thanks very much!

-Alasdair

On Thu, Apr 28, 2011 at 1:53 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 28 Apr 2011, Alasdair McAndrew wrote:

  Is there a ConTeXt version of the LaTeX \verb command, for inline
 typsetting
 of code fragments?


 \type{...} or \type|...| (or any other character, just like \verb)

 Aditya

 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net

 ___




-- 
Blog: http://amca01.wordpress.com
Web:  http://bit.ly/Alasdair
Facebook: http://www.facebook.com/alasdair.mcandrew
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Inline enumerations

2010-10-09 Thread Marcin Borkowski
Hi,

is there an easy way to adapt ConTeXt's enumerations not to start
another paragraph?  Something like (a) this (b) is (c) a short
enumeration.

In fact, I'd like to be able to something even more tricky: I would like
to be able to prepare a teacher's version and a student's version of
a problem set.  Something like this:

Teacher's version:

1. Problem.
Hint: hint - if present.
Solution: solution - if present.
Answer: answer - if present.

2. Another problem.
Hint: hint - if present.
Solution: solution - if present.
Answer: answer - if present.

...

Student's version:

1. Problem.
(Hint: hint - if present)

2. Problem.

...

Asnwers
===

1. Answer. 2. Answer. ...

Can blocks and enumerations do this?

Regards

-- 
Marcin Borkowski (http://mbork.pl)
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline enumerations

2010-10-09 Thread Wolfgang Schuster

Am 09.10.2010 um 11:52 schrieb Marcin Borkowski:

 Hi,
 
 is there an easy way to adapt ConTeXt's enumerations not to start
 another paragraph?  Something like (a) this (b) is (c) a short
 enumeration.

\starttext

text
\startitemize[n,text][textdistance=medium,stopper=]%
\item one
\item two
\item three
\stopitemize
text

\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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline enumerations

2010-10-09 Thread Marcin Borkowski
Dnia Sat, Oct 09, 2010 at 04:51:17PM +0200, Wolfgang Schuster napisa#322;(a):
 
 Am 09.10.2010 um 11:52 schrieb Marcin Borkowski:
 
  Hi,
  
  is there an easy way to adapt ConTeXt's enumerations not to start
  another paragraph?  Something like (a) this (b) is (c) a short
  enumeration.
 
 \starttext
 
 text
 \startitemize[n,text][textdistance=medium,stopper=]%
 \item one
 \item two
 \item three
 \stopitemize
 text
 
 \stoptext
 
 Wolfgang

Thanks!

And what if (theoretically) I wanted [a] text [b] text [c] etc.?  And
can I have textdistance shorter?

Regards

-- 
Marcin Borkowski (http://mbork.pl)

We don't stop playing because we grow old;
we grow old because we stop playing.
G. B. Shaw
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Inline enumerations

2010-10-09 Thread Aditya Mahajan

On Sun, 10 Oct 2010, Marcin Borkowski wrote:


Dnia Sat, Oct 09, 2010 at 04:51:17PM +0200, Wolfgang Schuster napisa#322;(a):


Am 09.10.2010 um 11:52 schrieb Marcin Borkowski:


Hi,

is there an easy way to adapt ConTeXt's enumerations not to start
another paragraph?  Something like (a) this (b) is (c) a short
enumeration.


\starttext

text
\startitemize[n,text][textdistance=medium,stopper=]%
\item one
\item two
\item three
\stopitemize
text

\stoptext

Wolfgang


Thanks!

And what if (theoretically) I wanted [a] text [b] text [c] etc.?


lefttext={[}, righttext={]},


 And can I have textdistance shorter?


textdistance=small (or just use any dimension)

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] \inline[…]

2009-11-07 Thread Hans Hagen

Andreas Harder wrote:

Hello Hans!

If referencing to the same line, the line will be displayed twice. I 
tried Wolfgangs 
patch: http://archive.contextgarden.net/message/20091018.091419.18877aa9..en.html 
http://archive.contextgarden.net/message/20091018.091419.18877aa9.en.html but 
it did not help.


\starttext
\startlinenumbering
  \someline[a]We thrive in information--thick worlds because of our
  marvelous and everyday ca-pacity to select, …\someline[b] 
\stoplinenumbering


\inline[a] or \inline[b]
\stoptext


should work ok in beta


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] inline-graphics and unwanted line-break

2007-11-29 Thread Peter Schorsch
Hi, 

I have a small metapost graphic I like to use inline. But the arragement 
behaves a little bit unpractically. As soon there is no character in front 
of the graphic context will break the line after the graphic - but as soon 
there is a character in front of the graphic, context does not adding a 
linebreak after the graphic.

Does anyone know how to prevent the line-break after the graphic if the 
graphic is the first inline?

Thanks, P.

example-file:

\startuseMPgraphic{zo}
color schwarz ; schwarz := (.0,.0,.0) ;
draw 
(0pt,0pt)--(0pt,8pt)--(5pt,12pt)--(10pt,8pt)--(10pt,0pt)--(0pt,0pt)--cycle 
withcolor schwarz ;
\stopuseMPgraphic

\starttext

\hbox{\useMPgraphic{zo}} test text - why a line-break? How to prevent this?

a \hbox{\useMPgraphic{zo}} test text - this is fine: no line-break!

\stoptext
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline-graphics and unwanted line-break

2007-11-29 Thread Wolfgang Schuster
2007/11/29, luigi scarso [EMAIL PROTECTED]:
  write \dontleavehmode\hbox{...}, this is normal TeX bahaviour and has 
  nothing
  special to do with ConTeXt.
 also
 \hskip1sp\hbox{...}
 the invisible touch effect :))

\hskip\zeropoint\hbox{} ;-)

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline-graphics and unwanted line-break

2007-11-29 Thread luigi scarso
 write \dontleavehmode\hbox{...}, this is normal TeX bahaviour and has nothing
 special to do with ConTeXt.
also
\hskip1sp\hbox{...}
the invisible touch effect :))
-- 
luigi
...
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline-graphics and unwanted line-break

2007-11-29 Thread luigi scarso
\dontleavehmode
is
 \dontleavehmode=\quitvmode.
and \quitvmode is a primitive
stricly speacking we don't see a space, but a command that switch to a
mode to another.
And it's also sound good: you have put a command to change status.

\hskip\zeropoint\hbox{} ;-)
here we see a space of 0pt.
Can be a bit embarassing that a horiz. space of 0pt make  difference
between status,
because one can think hey, a space of 0pt is nothing and should do nothing!
(Of course, \hskip0t has sense )

\hskip1sp\hbox{...}
here we see a space of 1sp, ie (1/2^16) * 1pt which is invisible to human eye.
Here my invisible touch effect.
It's more human because i can say hey, you have inserted a hor.
space very small, so small that you can see it,
but it's always a hor,. space not null, so it's reasonable  a change of state.

btw,
the context way is
\dontleavehmode

-- 
luigi
...
it's new .
it's powerful .
it's luatex .
http://www.luatex.org
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline diagrams/charts?

2007-08-17 Thread Henning Hraban Ramm
2007/8/16, Wolfgang Schuster [EMAIL PROTECTED]:
   sparklines?
  Thank you, that's what I meant.
  I had in mind there was some TeX solution? But never mind, I need them
  in an InDesign layout anyway.
 there was a pgf solution on Tuftes page:
 http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=Lktopic_id=1topic=Ask+E%2eT%2e

Thank you.
Actually, I only seem to need some percentage bars for my poll results
(% of yes, perhaps and no for about 50 questions).
So I wrote a python script that gets the data from my database and
writes an EPS of the bar (fortunately I learned how to handcode PS).
This is converted to PDF, and I'm set. As I mentioned, my magazine is
made with InDesign, so I can't calculate on the fly.

Looking at all the beautiful sparklines, I thought how I could utilize
the higher data density, but had no idea yet.
But my inline bars (with a scale) are already better than the pie
charts that I had in mind first.

Greetlings, Hraban
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline diagrams/charts?

2007-08-16 Thread Henning Hraban Ramm
 sparklines?
 http://en.wikipedia.org/wiki/Sparkline

Thank you, that's what I meant.
I had in mind there was some TeX solution? But never mind, I need them
in an InDesign layout anyway.

Greetlings from Lake Constance!
Hraban
___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline diagrams/charts?

2007-08-16 Thread Wolfgang Schuster
2007/8/16, Henning Hraban Ramm [EMAIL PROTECTED]:
  sparklines?
  http://en.wikipedia.org/wiki/Sparkline

 Thank you, that's what I meant.
 I had in mind there was some TeX solution? But never mind, I need them
 in an InDesign layout anyway.

 Greetlings from Lake Constance!
 Hraban

Hi Hraban,

there was a pgf solution on Tuftes page:

http://www.edwardtufte.com/bboard/q-and-a-fetch-msg?msg_id=Lktopic_id=1topic=Ask+E%2eT%2e

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline diagrams/charts?

2007-08-16 Thread luigi scarso
On 8/16/07, Adam Lindsay [EMAIL PROTECTED] wrote:
 sparklines?
 http://en.wikipedia.org/wiki/Sparkline
Welcome back ?

-- 
luigi

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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] inline diagrams/charts?

2007-08-15 Thread Henning Hraban Ramm
Hi there!

A long time ago there was a discussion about some kind of tiny block  
charts that run within the text. Now I would need such for the  
summary of a poll.
But I can't remember the name, and thus I can't find the thread and  
website.
Can you help me?

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://wiki.contextgarden.net
https://www.cacert.org (I'm an assurer)

___
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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline diagrams/charts?

2007-08-15 Thread Adam Lindsay
sparklines?
http://en.wikipedia.org/wiki/Sparkline

Henning Hraban Ramm wrote:
 Hi there!
 
 A long time ago there was a discussion about some kind of tiny block  
 charts that run within the text. Now I would need such for the  
 summary of a poll.
 But I can't remember the name, and thus I can't find the thread and  
 website.
 Can you help me?
 
 Greetlings from Lake Constance!
 Hraban
 ---
 http://www.fiee.net/texnique/
 http://wiki.contextgarden.net
 https://www.cacert.org (I'm an assurer)
 
 ___
 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://tex.aanhet.net
 archive  : https://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : https://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] inline MP refresh problem

2005-07-26 Thread Taco Hoekwater



It still doesn't work here. There have been complaints about arguments
not numeric on line 1889, but changing == to eq had no influence on the
final result. Still need an additional run.
As you said, the problem does not occur when you use runtime MP
processing, and would have gone unnoticed if I had not forgotten to
switch it on..


I remember that the old checksumming code checked every other line,
not all lines. Is that the problem perhaps?

Taco



___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] inline MP refresh problem

2005-07-26 Thread Eckhart Guthöhrlein
On Mon, 25 Jul 2005 at 23:56:53+0200, Hans Hagen wrote:
 how do you define the graphic? 
 
 \startreusableMPgraphic{kreis}
  fill fullcircle scaled 1cm withcolor red;
 \stopreusableMPgraphic
 \starttext
  \reuseMPgraphic{kreis}
 \stoptext
 
 When I remove 'withcolor red', nothing changes until the second texexec
 invocation.
  
 it runs ok in newtexexec -) 
 
 it has to do with the rather weak checksum calculation (i took that code 
 from an example which - in retrospect- was crap, i.e. it does not really 
 calculate a checksum -) 
 i rewrote that part of texexec (assuming that nowadays the md5 library is 
 part of perl distributions) 
 i'll send you a file to test 

It still doesn't work here. There have been complaints about arguments
not numeric on line 1889, but changing == to eq had no influence on the
final result. Still need an additional run.
As you said, the problem does not occur when you use runtime MP
processing, and would have gone unnoticed if I had not forgotten to
switch it on..

-- 
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] inline MP refresh problem

2005-07-25 Thread Eckhart Guthöhrlein
Hi all,

when I change inline MP graphics, these are not recreated during the
subsequent texexec run. I need to call texexec once again to have them
refreshed.
I have just installed a new box, but I think I have thought of the usual
stuff in texmf.cnf and cont-sys.tex, and I am a little clueless at the
moment. So thanks for any hints what might be the problem.
My versions:
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) from tetex 3.0
ConTeXt  ver: 2005.07.21  fmt: 2005.7.25  int: english  mes: english

Greetings,
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] inline MP refresh problem

2005-07-25 Thread Eckhart Guthöhrlein
On Mon, 25 Jul 2005 at 17:21:56+0200, Hans Hagen wrote:
 when I change inline MP graphics, these are not recreated during the
 subsequent texexec run. I need to call texexec once again to have them
 refreshed.
 I have just installed a new box, but I think I have thought of the usual
 stuff in texmf.cnf and cont-sys.tex, and I am a little clueless at the
 moment. So thanks for any hints what might be the problem.
 My versions:
 pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) from tetex 3.0
 ConTeXt  ver: 2005.07.21  fmt: 2005.7.25  int: english  mes: english
 
 how do you define the graphic? 

\startreusableMPgraphic{kreis}
fill fullcircle scaled 1cm withcolor red;
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{kreis}
\stoptext

When I remove 'withcolor red', nothing changes until the second texexec
invocation.

-- 
Eckhart
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] inline MP refresh problem

2005-07-25 Thread Hans Hagen

Eckhart Guthöhrlein wrote:


On Mon, 25 Jul 2005 at 17:21:56+0200, Hans Hagen wrote:
 


when I change inline MP graphics, these are not recreated during the
subsequent texexec run. I need to call texexec once again to have them
refreshed.
I have just installed a new box, but I think I have thought of the usual
stuff in texmf.cnf and cont-sys.tex, and I am a little clueless at the
moment. So thanks for any hints what might be the problem.
My versions:
pdfeTeX 3.141592-1.21a-2.2 (Web2C 7.5.4) from tetex 3.0
ConTeXt  ver: 2005.07.21  fmt: 2005.7.25  int: english  mes: english

 

how do you define the graphic? 
   



\startreusableMPgraphic{kreis}
fill fullcircle scaled 1cm withcolor red;
\stopreusableMPgraphic
\starttext
\reuseMPgraphic{kreis}
\stoptext

When I remove 'withcolor red', nothing changes until the second texexec
invocation.
 

it runs ok in newtexexec -) 

it has to do with the rather weak checksum calculation (i took that code from an example which - in retrospect- was crap, i.e. it does not really calculate a checksum -) 

i rewrote that part of texexec (assuming that nowadays the md5 library is part of perl distributions) 

i'll send you a file to test 

Hans 



-
 Hans Hagen | PRAGMA ADE
 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
| www.pragma-pod.nl
-

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context