Re: [NTG-context] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Wolfgang Schuster via ntg-context



Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03:

Hello,

let's have the following sample:


\starttext
   \startitemize[packed_,][headstyle_=,]
 \item CC

 \starttabulate[|l|||]
   \NI aa \NC bb \NC\NR
 \stoptabulate

 \item AA
   \stopitemize
\stoptext


How do I make bullets (\itemtag) horizontally aligned one bellow another?

In my case - bullets within \tabulate are indented (shifted rightwards) 
somehow, which is undesired.



You can use the 'intext' keyword but this works only well for short 
texts, otherwise text continus below the bullet point.


\starttext

\startitemize[intext]
\item XXX
\starttabulate[|l|||]
\NI aa \NC bb \NC\NR
\stoptabulate
\item YYY
\stopitemize

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


[NTG-context] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Lukas/ConTeXt via ntg-context
Hello,

let's have the following sample:


\starttext
  \startitemize[packed_,][headstyle_=,]
\item CC

\starttabulate[|l|||]
  \NI aa \NC bb \NC\NR
\stoptabulate

\item AA
  \stopitemize
\stoptext


How do I make bullets (\itemtag) horizontally aligned one bellow another?

In my case - bullets within \tabulate are indented (shifted rightwards) 
somehow, which is undesired.

TIA.

Best regards,

Lukas\starttext
  \startitemize[packed_,][headstyle_=,]
\item CC

\starttabulate[|l||p|]
  \NI aa \NC bb \NC\NR
\stoptabulate

\item AA
  \stopitemize
\stoptext


t.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] Alignment with an enumeration

2021-04-12 Thread Fabrice Couvreur
Hi,
Is it possible that the first item is on the baseline of the definition
environment title ? Thank you.
Fabrice

\define\ItemCommand
{\hskip\zeropoint\relax\autoinsertnextspace}

  \setupitemgroup
[itemize]
[color=darkred,
style=bold,
 distance=\spaceamount]

  \setupitemgroup
[itemize:1]
[option={n,packed,fit,intext},
command=\ItemCommand]

  \setupitemgroup
[itemize:2]
[lefttext=,
righttext=,
option={a,text}]

\setupenumerations
  [before={},
   after={\blank},
   alternative=serried,
   number=no,
   title=yes,
   titleleft={(},
   titleright={)},
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   titlestyle=bold,
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
number=no,
headcommand=\groupedcommand{}{},
style=normal]

\starttext
\startdefinition
  \input knuth
\stopdefinition
\startdefinition
  \startitemize[n]
\startitem
  First item
\stopitem
\startitem
  Second item
\stopitem
  \stopitemize
\stopdefinition
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm

> Am 2020-01-20 um 05:57 schrieb Wolfgang Schuster 
> :
>> I already learned that \setuplayout[grid=strut] makes more problems than it 
>> solves while fontfeature dimensions=strut is good;I should avoid frames in 
>> section titles (not necessarily, but it’s more controllable without); how to 
>> get more control over makeups and that columnsets are somewhat fastidious, 
>> esp. with floats…
> 
> Use \setuplayout[grid=yes] when "grid=strut" doesn't work.

That’s what I do.

>> \setuppapersize[A6]
>> \showframe[text]
>> \setupalign[flushleft,broad,nothyphenated]
>> \define[2]\MySection{\vbox{#2}}
> 
> Put the alignment command in the box.
> 
> \define[2]\MySection
>  {\vbox{\setupalign[flushleft,broad,nothyphenated]#2}}

Oh yes, thank you!
Could have tried that myself.

Best, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 22:44:02 +0100
Henning Hraban Ramm  wrote:

> 
> > Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster 
> > :
> >>> 
>  Hi, for my section titles I’m looking for the alignment parameters that 
>  give me:
>  - left aligned
>  - no hyphenation (or only where I set breakpoints manually)
>  - no overfull hboxes
>  
>  At the moment I have
>  align={flushleft,extremestretch,nothyphenated}
>  (would use also hz and hanging, if they don’t interfere),
>  but in a few cases I still get section titles that are much wider than 
>  the text column.
> >>> 
> >>> align={flushleft,broad,nothyphenated}
> >> 
> >> Thank you, but unfortunately it makes no difference.
> > 
> > You have to provide a minimal example.
> 
> I know. My project setup is just so extensive, and there are several problems 
> that I'm trying to isolate since days…
> I was hoping for an easy solution in this case.
> 
> I already learned that \setuplayout[grid=strut] makes more problems than it 
> solves while fontfeature dimensions=strut is good;I should avoid frames in 
> section titles (not necessarily, but it’s more controllable without); how to 
> get more control over makeups and that columnsets are somewhat fastidious, 
> esp. with floats…

Use \setuplayout[grid=yes] when "grid=strut" doesn't work.

> Still open: this one, different behaviour of \blank in before vs. command, 
> chapters always starting on left pages despite page=no (a side effect of the 
> columnset, I guess), and floats, floats, floats.
> 
> But here we are:
> 
> 
> \setuppapersize[A6]
> \showframe[text]
> \setupalign[flushleft,broad,nothyphenated]
> \define[2]\MySection{\vbox{#2}}

Put the alignment command in the box.

\define[2]\MySection
  {\vbox{\setupalign[flushleft,broad,nothyphenated]#2}}

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
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm

> Am 2020-01-19 um 21:01 schrieb Wolfgang Schuster 
> :
>>> 
 Hi, for my section titles I’m looking for the alignment parameters that 
 give me:
 - left aligned
 - no hyphenation (or only where I set breakpoints manually)
 - no overfull hboxes
 
 At the moment I have
 align={flushleft,extremestretch,nothyphenated}
 (would use also hz and hanging, if they don’t interfere),
 but in a few cases I still get section titles that are much wider than the 
 text column.
>>> 
>>> align={flushleft,broad,nothyphenated}
>> 
>> Thank you, but unfortunately it makes no difference.
> 
> You have to provide a minimal example.

I know. My project setup is just so extensive, and there are several problems 
that I'm trying to isolate since days…
I was hoping for an easy solution in this case.

I already learned that \setuplayout[grid=strut] makes more problems than it 
solves while fontfeature dimensions=strut is good; I should avoid frames in 
section titles (not necessarily, but it’s more controllable without); how to 
get more control over makeups and that columnsets are somewhat fastidious, esp. 
with floats…
Still open: this one, different behaviour of \blank in before vs. command, 
chapters always starting on left pages despite page=no (a side effect of the 
columnset, I guess), and floats, floats, floats.

But here we are:


\setuppapersize[A6]
\showframe[text]
\setupalign[flushleft,broad,nothyphenated]
\define[2]\MySection{\vbox{#2}}

\setuphead[section][
  command=\MySection,
  %align={flushleft,broad,nothyphenated},
]

\starttext

\section{Rübenheimer Klimaschutz\-kommission interveniert wohlwollend.}
% It should break "Klimaschutz-komission" or put the whole word in the next 
line,
% but it keeps the first two words together.

\section{Ein Schwarzelf mit Gelatinewürfel zagt im Regen nie.}

\section{Die Donau\-dampfschifffahrts\-gesellschaft lädt zum Tanztee.}

\stoptext



Best, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 20:56:53 +0100
Henning Hraban Ramm  wrote:

> 
> > Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster 
> > :
> > 
> > On Sun, 19 Jan 2020 13:59:15 +0100
> > Henning Hraban Ramm  wrote:
> > 
> >> Hi, for my section titles I’m looking for the alignment parameters that 
> >> give me:
> >> - left aligned
> >> - no hyphenation (or only where I set breakpoints manually)
> >> - no overfull hboxes
> >> 
> >> At the moment I have
> >> align={flushleft,extremestretch,nothyphenated}
> >> (would use also hz and hanging, if they don’t interfere),
> >> but in a few cases I still get section titles that are much wider than the 
> >> text column.
> > 
> > align={flushleft,broad,nothyphenated}
> 
> Thank you, but unfortunately it makes no difference.

You have to provide a minimal example.

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
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm

> Am 2020-01-19 um 20:02 schrieb Wolfgang Schuster 
> :
> 
> On Sun, 19 Jan 2020 13:59:15 +0100
> Henning Hraban Ramm  wrote:
> 
>> Hi, for my section titles I’m looking for the alignment parameters that give 
>> me:
>> - left aligned
>> - no hyphenation (or only where I set breakpoints manually)
>> - no overfull hboxes
>> 
>> At the moment I have
>> align={flushleft,extremestretch,nothyphenated}
>> (would use also hz and hanging, if they don’t interfere),
>> but in a few cases I still get section titles that are much wider than the 
>> text column.
> 
> align={flushleft,broad,nothyphenated}

Thank you, but unfortunately it makes no difference.

Best, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] alignment parameters

2020-01-19 Thread Wolfgang Schuster
On Sun, 19 Jan 2020 13:59:15 +0100
Henning Hraban Ramm  wrote:

> Hi, for my section titles I’m looking for the alignment parameters that give 
> me:
> - left aligned
> - no hyphenation (or only where I set breakpoints manually)
> - no overfull hboxes
> 
> At the moment I have
> align={flushleft,extremestretch,nothyphenated}
> (would use also hz and hanging, if they don’t interfere),
> but in a few cases I still get section titles that are much wider than the 
> text column.

align={flushleft,broad,nothyphenated}

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
___


[NTG-context] alignment parameters

2020-01-19 Thread Henning Hraban Ramm
Hi, for my section titles I’m looking for the alignment parameters that give me:
- left aligned
- no hyphenation (or only where I set breakpoints manually)
- no overfull hboxes

At the moment I have
align={flushleft,extremestretch,nothyphenated}
(would use also hz and hanging, if they don’t interfere),
but in a few cases I still get section titles that are much wider than the text 
column.

Can I reduce the penalty for underfull hboxes? Or what else?

In case it matters, this is within a columnset.

Best, 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Alignment

2019-05-13 Thread Wolfgang Schuster



Fabrice Couvreur schrieb am 13.05.2019 um 22:45:

Hi,
Not having too many ideas, I did this: is there not a more elegant way ?

\definemathmatrix [pmatrix] [matrix:parentheses] [simplecommand=MATRIX]

\starttext

\startformula
  \startmathalignment
  \NC P \times M = P \NC \iff \MATRIX{x,y} \times 
\MATRIX{0.22,0.78;0.53,0.47} = \MATRIX{x,y} \NR

  \NC    \NC \iff
    \startmathcases
    \NC 0.22x + 0.53y = x \NR
    \NC 0.78x + 0.47y = y \NR
    \stopmathcases
  \NR
  \NC    \NC \iff 0.78x - 0.53y = 0 \NR
  \NC    \NC \iff   78x -   53y = 0 \NR
  \stopmathalignment
\stopformula

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


[NTG-context] Alignment

2019-05-13 Thread Fabrice Couvreur
Hi,
Not having too many ideas, I did this: is there not a more elegant way ?
Thank you.
Fabrice

\definemathmatrix [pmatrix][matrix:parentheses][simplecommand=MATRIX]
\starttext
\startmidaligned
\startxtable[align={middle,lohi},frame=off,offset=0.8ex]
  \startxrow
\startxcell
  \m{P\times M=P}
\stopxcell
\startxcell
  \math{\iff}
\stopxcell
\startxcell
  \m{\MATRIX{x,y}\times
\MATRIX{0.22,0.78;0.53,0.47}=\MATRIX{x,y}}
\stopxcell
  \stopxrow
  \startxrow
\startxcell

\stopxcell
\startxcell
  \m{\iff}
\stopxcell
\startxcell[align=right]
  \math{\startmathcases
 \NC 0.22x+0.53y=x\NR
 \NC 0.78x+0.47y=y \NR
 \stopmathcases}
\stopxcell
  \stopxrow
  \startxrow
\startxcell

\stopxcell
\startxcell
  \m{\iff}
\stopxcell
\startxcell[align=right]
  \m{0.78x-0.53y=0}
\stopxcell
  \stopxrow
  \startxrow
\startxcell

\stopxcell
\startxcell
  \m{\iff}
\stopxcell
\startxcell[align=right]
 \m{78x-53y=0}
\stopxcell
  \stopxrow
\stopxtable
  \stopmidaligned
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Alignment problem in a table

2017-08-22 Thread Fabrice Couvreur
Hello,
How to align the text of the seventh line to the left ?
Thanks
Fabrice

\unexpanded\def\pcent#1{\math{#1\,\%}}

\startsetups  [table:one]
   \setupTABLE[start][align={middle,lohi},width=2.2cm,offset=0.8ex]
   \setupTABLE[column][first][width=2.5cm,align={right}]
   \setupTABLE[1][1][frame=off]
   \setupTABLE[row][7][frame=off,align={left}]
\stopsetups

\starttext
  \startmidaligned
  \bTABLE[setups=table:one]
\bTR
\bTD   \eTD
\bTD 2010  \eTD
\bTD 2011  \eTD
\bTD 2012  \eTD
\bTD 2011/2010 \eTD
\bTD 2012/2011 \eTD
\eTR
\bTR
\bTD Rhône  \eTD
\bTD 61\,633\eTD
\bTD 69\,637\eTD
\bTD 77\,314\eTD
\bTD \pcent{+13,0}  \eTD
\bTD \pcent{+11,0}  \eTD
\eTR
\bTR
\bTD Seine   \eTD
\bTD 195\,467\eTD
\bTD 237\,400\eTD
\bTD 241\,004\eTD
\bTD \pcent{+21,5}   \eTD
\bTD \pcent{+5,7}\eTD
\eTR
\bTR
\bTD Nord\eTD
\bTD 50\,483 \eTD
\bTD 68\,145 \eTD
\bTD 67\,835 \eTD
\bTD \pcent{+35,0}   \eTD
\bTD \pcent{-0,5}\eTD
\eTR
\bTR
\bTD Rhin\eTD
\bTD 182\,478\eTD
\bTD 156\,818\eTD
\bTD 164\,017\eTD
\bTD \pcent{-14,1}   \eTD
\bTD \pcent{+4,6}\eTD
\eTR
\bTR
\bTH Total   \eTH
\bTH 490\,061\eTH
\bTH 532\,000\eTH
\bTH 560\,170\eTH
\bTH \pcent{+8,6}\eTH
\bTH \pcent{+5,3}\eTH
\eTR
\bTR
\bTD [nc=4] \tfx\bf Source : Voies navigables de France (VNF)\eTD
\eTR
  \eTABLE
  \stopmidaligned

 \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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___

Re: [NTG-context] alignment problem in a table

2016-07-19 Thread Alan BRASLAU
On Tue, 19 Jul 2016 15:19:11 +0200
Fabrice Couvreur  wrote:

> The third column of matrix is not centered vertically and
> horizontally.

You should note that it is NECESSARY to present a MINIMAL Working
Example, that is stripped-down to ONLY the minimum necessary to show a
problem, if you want anyone to look at it. This sometimes takes a bit of
work, but the process can also be revealing of errors that one might
make and not see in a more complicated example.

I am pointing this out as I have seen many non-minimal questions posted.

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

Re: [NTG-context] alignment problem in a table

2016-07-19 Thread Wolfgang Schuster

Fabrice Couvreur 
19. Juli 2016 um 15:19
Hello,
The third column of matrix is not centered vertically and horizontally.

Add the following two lines to your example

\setupformula  [option=frame]
\setupformulaframed[offset=0pt]

and you can see the third matrix isn’t centered (the small gab on the 
left side is the cell offset)

because it’s too wide for the cell.

BTW: It’s good style to end *each* matrix line with \NR.

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
___

[NTG-context] alignment problem in a table

2016-07-19 Thread Fabrice Couvreur
Hello,
The third column of matrix is not centered vertically and horizontally.
thank you,
Fabrice


\setupbodyfont[pagella,11pt]

\definemathmatrix
  [pmatrix]
  [left={\left(\,},right={\,\right)}]

\define[3]\coef{\math{#1_{#2, #3}}\autoinsertnextspace}

\startsetups[table:initialize]
\setupTABLE[offset=0.8ex,width=0.25\textwidth]
\setupTABLE[row][first]
   [background=color,backgroundcolor=lightgray]
\setupTABLE[start][align={middle,lohi}]
\stopsetups

\starttext

{\bf Matrices particulières}

\startlinecorrection[blank]

\startmidaligned

\switchtobodyfont[10pt]

\bTABLE[setups=table:initialize]

  \bTR
\bTD {\bf Matrice ligne} \\ Dimension \math{\left(1\times p\right)}
\eTD
\bTD {\bf Matrice colonne} \\ Dimension \math{\left(n\times 1\right)}
\eTD
\bTD {\bf Matrice carrée} \\ Dimension \math{\left(n\times n\right)}
\eTD
\bTD {\bf Matrice unité \math{\bi I_n}} \\ Dimension
\math{\left(n\times n\right)}\eTD
  \eTR

  \bTR
\bTD \startformula
 \startpmatrix
   \NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{p}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
   \NC \coef{a}{1}{1} \NR
   \NC \coef{a}{2}{1} \NR
   \NC\dots   \NR
   \NC \coef{a}{n}{1}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
\NC \coef{a}{1}{1} \NC \coef{a}{1}{2} \NC \dots \NC
\coef{a}{1}{n}\NR
\NC \coef{a}{2}{1} \NC \coef{a}{2}{2} \NC \dots \NC
\coef{a}{2}{n}\NR
\NC \dots  \NC \dots  \NC \dots \NC \dots \NR
\NC \coef{a}{n}{1} \NC \coef{a}{n}{2} \NC \dots \NC \coef{a}{n}{n}
 \stoppmatrix
 \stopformula
\eTD
\bTD \startformula
 \startpmatrix
 \NC 1 \NC 0 \NC \dots \NC 0 \NR
 \NC 0 \NC 1 \NC \dots \NC 0 \NR
 \NC \dots \NC \dots \NC \dots \NC \dots \NR
 \NC 0 \NC 0 \NC \dots \NC 1
 \stoppmatrix
 \stopformula
\eTD
  \eTR

\eTABLE

\stopmidaligned

\stoplinecorrection

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

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Thanks, Wolfgang!

\symbol[square] doesn't work for me, because the inside of the box has
to be white also when on gray background, i.e. I need a box filled
with white. I decided to do what I should've done in the first place
and brushed up enough of my MetaPost that I could create a box with
black outline and white fill (OK, I pinched most of it from the
MetaFun manual...). This seems to work:

\startuseMPgraphic{box3mm_filled}
pickup pencircle scaled .02cm ;
path p ; p := unitsquare scaled 3mm ;
fill p withcolor white ;
draw p withcolor black ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm_filled}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext


Thank you for your speedy replies!

Mari

On Thu, May 19, 2016 at 2:08 PM, Wolfgang Schuster
 wrote:
> Mari Voipio
> 19. Mai 2016 um 12:45
> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
> 1. Lower your graphic because it has margins around the lines which
> positions it too high.
>
> \definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \stoptext
>
>
>
> 2. Use a box symbol which sits lower on the baseline.
>
> \starttext
>
> \dontleavehmode\symbol[square] 1
>
> \stoptext
>
>
> 3. Use metapost to create your own box.
>
> \startuseMPgraphic{box3mm}
> draw unitsquare scaled 3mm ;
> \stopuseMPgraphic
>
> \definesymbol[box3mm][{\useMPgraphic{box3mm}}]
>
> \starttext
>
> \dontleavehmode\symbol[box3mm] 1
>
> \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
> ___
___
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] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster

Mari Voipio 
19. Mai 2016 um 12:45
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?
1. Lower your graphic because it has margins around the lines which 
positions it too high.


\definesymbol[box3mm][{\offset[y=.25ex]{\externalfigure[box3mm]}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\stoptext



2. Use a box symbol which sits lower on the baseline.

\starttext

\dontleavehmode\symbol[square] 1

\stoptext


3. Use metapost to create your own box.

\startuseMPgraphic{box3mm}
draw unitsquare scaled 3mm ;
\stopuseMPgraphic

\definesymbol[box3mm][{\useMPgraphic{box3mm}}]

\starttext

\dontleavehmode\symbol[box3mm] 1

\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] Alignment/line break in a TABLE cell

2016-05-19 Thread luigi scarso
On Thu, May 19, 2016 at 12:45 PM, Mari Voipio  wrote:

> On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
>  wrote:
> >
> > \dontleavehmode\externalfigure[box3mm]
>
> This kind of works. The box and the number are now on the same line,
> but one of them - the number, I think - is offset and that looks
> funny. Is there a trick that'd fix that?
>
>
\bTD \ruledhbox{\externalfigure[box3mm] 1}  \eTD

the border around box3mm.pdf ?


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

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
On Thu, May 19, 2016 at 1:04 PM, Wolfgang Schuster
 wrote:
>
> \dontleavehmode\externalfigure[box3mm]

This kind of works. The box and the number are now on the same line,
but one of them - the number, I think - is offset and that looks
funny. Is there a trick that'd fix that?


Thanks,

Mari


MWE:

\starttext
\bTABLE
\setupTABLE[style=\ss\tfx]
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC calibrated with raw
 measurement data, refractive index (nD) and
temperature (T) \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 2 \eTD
\bTD Multichannel user interface (MI) that calculates
and displays
 the process liquid concentration based on the
refractive index and temperature,
 installed in a stainless steel enclosure \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD PR-7610 Table top standfor Multichannel user interface,
 contains a set of four screws. \eTD
\eTR
%
\bTR
\bTD \dontleavehmode\externalfigure[box3mm] 4 \eTD
\bTD Wall mounting screws kit for mounting the
 Multichannel user interface on the wall \eTD
\eTR
%
\eTABLE


box3mm.pdf
Description: Adobe PDF document


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

Re: [NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Wolfgang Schuster

Mari Voipio 
19. Mai 2016 um 11:37
Hi,

I have a little problem with a table. It works fine otherwise, but in
the first column the box and the number should be on the same line.
This goes right with 3a, but all the other ones place the box on the
first line and the number on the second. Widening column 1 doesn't
help. How do I force the number to stay on the same line with the box?

Put \dontleavehmode before \externalfigure, e.g.

\dontleavehmode\externalfigure[box3mm]

and in case the number is still moved to the next line because there 
isn’t enough space left you can put an unbrakbale space between the 
graphic and number, e.g.


\dontleavehmode\externalfigure[box3mm]~1

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
___

[NTG-context] Alignment/line break in a TABLE cell

2016-05-19 Thread Mari Voipio
Hi,

I have a little problem with a table. It works fine otherwise, but in
the first column the box and the number should be on the same line.
This goes right with 3a, but all the other ones place the box on the
first line and the number on the second. Widening column 1 doesn't
help. How do I force the number to stay on the same line with the box?


\starttext

\bTABLE
\setupTABLE[r][odd][background=color,backgroundcolor=gray]
\setupTABLE[r][each][bottomframe=off,topframe=off,rightframe=off]
\setupTABLE[c][1][leftframe=off,width=2cm]
\bTR
\bTD \externalfigure[box3mm] 1 \eTD
\bTD Pharma refractometer PR-43-PC \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 2 \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 3\crlf
\externalfigure[box3mm] 3a \eTD
\bTD \eTD
\eTR
%
\bTR
\bTD \externalfigure[box3mm] 4 \eTD
\bTD  \eTD
\eTR
\eTABLE


\stoptext


Mari

PS. I don't think it is relevant here, but my ConTeXt is relatively
new, 2016.04.17.


box3mm.pdf
Description: Adobe PDF document


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

Re: [NTG-context] Alignment for narrower text

2016-04-03 Thread Wolfgang Schuster

Jan Tosovsky 
2. April 2016 um 23:42
I thought Hans could also mean something like example below, but while 
leftskip should 'indent' all lines inside paragraph, it works only for 
the first one. Moreover, protrusion is not applied as well. And \crlf 
doesn't seem to be soft linebreak as it behaves like normal \par 
command - which is most likely explanation for that indenting issue.


{\leftskip=2cm
“line1\crlf
line2\crlf
line3\crlf
line4.
}
Indenting the whole textblock with \leftskip (or better ConTeXt’s 
narrower environment)

doesn’t prevent protrusion as can be seen in the following example.

\definefontfeature[default][default][protrusion=quality]

\setupbodyfont[modern-designsize]

\starttext

“\vl Text\par
 \vl Text

\startnarrower
“\vl Text\par
 \vl Text
\stopnarrower

\blank[3*line]\setupalign[hanging]

“\vl Text\par
 \vl Text

\startnarrower
“\vl Text\par
 \vl Text
\stopnarrower

\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] Alignment for narrower text

2016-04-02 Thread Jan Tosovsky
On 2016-04-02 Wolfgang Schuster wrote:
> On 2016-04-01, Jan Tosovsky wrote:
> > On 2016-04-01 Hans Hagen wrote:
> > > On 2016-03-31, Jan Tosovsky wrote:
> > > >
> > > > http://tracker.luatex.org/view.php?id=884
> > > >
> > > > Use case:
> > > > - book uses global indentation
> > > > - there is poem typeset in narrower block
> > > > - there is punctuation in the first verse which disrupt
> > > >   optical margin alignment
> > >
> > > in your example you use indentation to get a narrower block 
> > > (and as each line is a paragraph each line gets an indent 
> > > box prepended) you should use leftskip (\startnarrower...) 
> > > in such cases
> >
> > I'm lost here (...example...)
>
> This is a bad example because there is no problem with \leftskip.
> 
> What he means is that protrusion at the left margin doesn’t 
> at the begin of a paragraph when you use indentation.

Thanks for examples. I'll finally use another approach - disabling indentation 
locally:

\definefontfeature[default][default][protrusion=quality]

\setupbodyfont[modern-designsize]

\setupalign[hanging]

\setupbackgrounds[text][leftframe=on]

\starttext

\setupindenting[yes,medium]

\input{tufte}

{\noindenting
\startnarrower
“line1\par
line2\par
line3\par
line4.
\stopnarrower
}

\input{tufte}

\stoptext

While protrusion in this case may look ugly, it is consistent with the rest.

I thought Hans could also mean something like example below, but while leftskip 
should 'indent' all lines inside paragraph, it works only for the first one. 
Moreover, protrusion is not applied as well. And \crlf doesn't seem to be soft 
linebreak as it behaves like normal \par command - which is most likely 
explanation for that indenting issue.

{\leftskip=2cm
“line1\crlf
line2\crlf
line3\crlf
line4.
}

Anyway, I found acceptable solution (noindenting).

Jan

___
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] Alignment for narrower text

2016-04-02 Thread Wolfgang Schuster

Hans Hagen 
1. April 2016 um 09:21
On 3/31/2016 9:28 PM, Jan Tosovsky wrote:

On 2016-03-31 Hans Hagen wrote:

On 3/30/2016 8:55 PM, Jan Tosovsky wrote:

On 2014-01-30 Jan Tosovsky wrote:


I'd expect that starting french quote sign outside the left
text edge - similarly like it is aligned the main flow when
the hanging feature is enabled.

Now I've found it works as expected when the indenting is
disabled...


http://tracker.luatex.org/view.php?id=884


indenting prohibits protrusion



Good to know, thanks. I take it rather as a limitation.

Use case:
- book uses global indentation
- there is poem typeset in narrower block
- there is punctuation in the first verse which disrupt optical 
margin alignment


Are there alternative ways?


in your example you use indentation to get a narrower block (and as 
each line is a paragraph each line gets an indent box prepended) .. 
you should use leftskip (\startnarrower...) in such cases

This is a bad example because there is no problem with \leftskip.

What he means is that protrusion at the left margin doesn’t at the begin 
of a paragraph when you use indentation.


%%% begin example
\definefontfeature[default][default][protrusion=quality]

\setupbodyfont[modern-designsize]

\setupalign[hanging]

\setupbackgrounds[text][leftframe=on]

\starttext

“How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\blank[3*line]\setupindenting[yes,medium]

“How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\blank[3*line]

\dontleavehmode\llap{“}How does this look?”

When you a short paragraph with a quotattion mark at the beginning above
another paragraph without a quotation mark the letters at the start of
both paragraph don’t align.

\stoptext
%%% end example

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] Alignment for narrower text

2016-04-01 Thread Jan Tosovsky
On 2016-04-01 Hans Hagen wrote:
> On 3/31/2016 9:28 PM, Jan Tosovsky wrote:
> > On 2016-03-31 Hans Hagen wrote:
> >> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
> >>>
> >>> http://tracker.luatex.org/view.php?id=884
> >>
> >> indenting prohibits protrusion
> >>
> > Are there alternative ways?
> 
> you should use leftskip (\startnarrower...) in such cases

thanks, but I am lost here. The following has impact on the left margin and it 
doesn't help to hang the initial quote...

\definefontfamily[palatino][rm][Palatino Linotype][features={default, quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
\setupindenting[medium, yes]

\starttext
\input{tufte}
{\leftskip=1cm
\startnarrower
\it
»this is,\par
just sample.«\par
\stopnarrower
}
\input{tufte}
\stoptext

Jan

___
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] Alignment for narrower text

2016-04-01 Thread Hans Hagen

On 3/31/2016 9:28 PM, Jan Tosovsky wrote:

On 2016-03-31 Hans Hagen wrote:

On 3/30/2016 8:55 PM, Jan Tosovsky wrote:

On 2014-01-30 Jan Tosovsky wrote:


I'd expect that starting french quote sign outside the left
text edge - similarly like it is aligned the main flow when
the hanging feature is enabled.

Now I've found it works as expected when the indenting is
disabled...


http://tracker.luatex.org/view.php?id=884


indenting prohibits protrusion



Good to know, thanks. I take it rather as a limitation.

Use case:
- book uses global indentation
- there is poem typeset in narrower block
- there is punctuation in the first verse which disrupt optical margin alignment

Are there alternative ways?


in your example you use indentation to get a narrower block (and as each 
line is a paragraph each line gets an indent box prepended) .. you 
should use leftskip (\startnarrower...) in such cases



Btw, from end user perspective I'd expect it should work by default without 
further tweaking.


so what if someone has

\hbox{some image or whatever unknonws}

should character overflow into the box?

how is tex supposed to know the intentions

so if all gets a boundary mark in the end you end up with as many 
exceptions (maybe more) than when you get now



Jan

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




--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Alignment for narrower text

2016-03-31 Thread Jan Tosovsky
On 2016-03-31 Hans Hagen wrote:
> On 3/30/2016 8:55 PM, Jan Tosovsky wrote:
> > On 2014-01-30 Jan Tosovsky wrote:
> >>
> >> I'd expect that starting french quote sign outside the left 
> >> text edge - similarly like it is aligned the main flow when 
> >> the hanging feature is enabled.
> >>
> >> Now I've found it works as expected when the indenting is
> >> disabled...
> >
> > http://tracker.luatex.org/view.php?id=884
> 
> indenting prohibits protrusion
> 

Good to know, thanks. I take it rather as a limitation.

Use case:
- book uses global indentation
- there is poem typeset in narrower block
- there is punctuation in the first verse which disrupt optical margin alignment

Are there alternative ways?

Btw, from end user perspective I'd expect it should work by default without 
further tweaking.

Jan

___
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] Alignment for narrower text

2016-03-30 Thread Hans Hagen

On 3/30/2016 8:55 PM, Jan Tosovsky wrote:

On 2014-01-30 Jan Tosovsky wrote:


I'd expect that starting french quote sign outside the left text edge -
similarly like it is aligned the main flow when the hanging feature is
enabled.

Now I've found it works as expected when the indenting is disabled...



http://tracker.luatex.org/view.php?id=884

After recent improvements I've tested this older issue, but it is still
problematic.

When that \setupindenting is uncommented, french quote is not hanged.

Just updating the status :-)


indenting prohibits protrusion

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: 038 477 53 69 | 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] Alignment for narrower text

2016-03-30 Thread Jan Tosovsky
On 2014-01-30 Jan Tosovsky wrote:
> 
> I'd expect that starting french quote sign outside the left text edge -
> similarly like it is aligned the main flow when the hanging feature is
> enabled.
> 
> Now I've found it works as expected when the indenting is disabled...
> 

http://tracker.luatex.org/view.php?id=884

After recent improvements I've tested this older issue, but it is still
problematic.

When that \setupindenting is uncommented, french quote is not hanged.

Just updating the status :-)

Jan

___
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] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-23 Thread Fabrice


Hi Wolfgang,
Thank you for these three solutions. One thing I'm missing is the role 
of grid  I did not know.

Fabrice
___
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] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Wolfgang Schuster

 Am 22.03.2015 um 13:10 schrieb Fabrice Couvreur fabrice1.couvr...@gmail.com:
 
 The alignment of the second item on the baseline is not correct if I use the 
 command \dfrac{}{}.
 How to solve this problem without using the command \framed ?
 Best regards,
 Fabrice
 
 \starttext
 \startitemize[columns,A,joinedup,three][stopper={)},style=bold]
 \item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
 \item  $f^{\prime}(x) = 1$
 \item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
 \stopitemize
 \stoptext

1. You change your formulas.

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold,grid=line]
\item  $f^{\prime}(x) = - 1 / (x + 1)^2$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = 1 / (x + 1)$
\stopitemize
\stoptext


2. You enable grid snapping for the columns in the itemize environment with the 
grid key.

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold,grid=line]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\stoptext


3. You increase the line height for the columns in the itemize environment.

\setupmixedcolumns[itemgroupcolumns][before={\setupinterlinespace[big]}]

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\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
___

[NTG-context] Alignment on the baseline in a itemize environment with \dfrac{}{}

2015-03-22 Thread Fabrice Couvreur
The alignment of the second item on the baseline is not correct if I use the
command \dfrac{}{}.
How to solve this problem without using the command \framed ?
Best regards,
Fabrice

\starttext
\startitemize[columns,A,joinedup,three][stopper={)},style=bold]
\item  $f^{\prime}(x) = \dfrac{- 1}{(x + 1)^2}$
\item  $f^{\prime}(x) = 1$
\item  $f^{\prime}(x) = \dfrac{1}{x + 1}$
\stopitemize
\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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Alignment, indenting and font inside floats

2014-07-29 Thread Joshua Krämer
On 2014-07-28, 17:23, Rik Kabel wrote:
 You may be able to get away with style=ss instead of a new font 
 definition if the sans is linked to the main serif font.

This doesn't work for me, because I want the math to be typeset in the
new typeface, too.


 The contents of a float are styled according to the type of contents.

Thanks for your explanations.  I'm now using a macro, which I insert
manually at the beginning of every float, with the following definition:

\define \Figurestyle
{
\setupindenting [no]
\setupalign [center]
\switchtobodyfont [figurefamily]
}

Kind regards,
Joshua


___
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] Alignment, indenting and font inside floats

2014-07-28 Thread Joshua Krämer
Dear list,

I want to setup all my floats' contents to be middle-aligned, not
indented and typeset in a distinct font.  How can I do this?  The
attached example does not work.

Thank you and kind regards,
Joshua Krämer


\setupindenting [yes, \the\baselineskip]
\definefontfamily [figurefamily] [serif] [Latin Modern Sans]
\setupfloats [align=middle, style={\switchtobodyfont[figurefamily]},
indenting=no]

\starttext
\input knuth

\startplacefigure
Word
\stopplacefigure

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

Re: [NTG-context] Alignment, indenting and font inside floats

2014-07-28 Thread Rik Kabel

On 2014-07-28 15:29, Joshua Krämer wrote:

Dear list,

I want to setup all my floats' contents to be middle-aligned, not
indented and typeset in a distinct font.  How can I do this?  The
attached example does not work.

Thank you and kind regards,
Joshua Krämer


\setupindenting [yes, \the\baselineskip]
\definefontfamily [figurefamily] [serif] [Latin Modern Sans]
\setupfloats [align=middle, style={\switchtobodyfont[figurefamily]},
indenting=no]

\starttext
\input knuth

\startplacefigure
Word
\stopplacefigure

\stoptext




   \setupexternalfigures[location={local,default}]
   \setupindenting[yes, \the\baselineskip]
   %\definefontfamily [figurefamily] [serif] [Latin Modern Sans]
   %\setupfloats [align=middle,
   style={\switchtobodyfont[figurefamily]}, indenting=no]
   \setupcaptions [style=ss]
   \setupframed[style=it]

   \starttext
   \input knuth

   \startplacefigure[title={Not a figure}]
   Word
   \stopplacefigure

   \startplacetable[title={A table}]
   \starttable[||]
   \NC Table\NC\NR
   \stoptable
   \stopplacetable

   \startplacefigure[title={A bovine figure}]
   \externalfigure[cow][width=5cm]
   \stopplacefigure

   \startplaceintermezzo[title={An intermezzo}]
   \startframedtext
   \input ward
   \stopframedtext
   \stopplaceintermezzo

   \stoptext

Captions are styled separately from the floats, hence \setupcaptions.

Word is not a figure. \startplacefigure does not make what follows a 
figure. When a real figure is set with \startplacefigure, it is centered 
by default.


You may be able to get away with style=ss instead of a new font 
definition if the sans is linked to the main serif font.


The contents of a float are styled according to the type of float.
___
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] Alignment, indenting and font inside floats

2014-07-28 Thread Rik Kabel

On 2014-07-28 17:23, Rik Kabel wrote:

(much snipped)


The contents of a float are styled according to the type of float.

Sorry, that last statement should have been:

The contents of a float are styled according to the type of contents.

That is, if a table is floated (with placetable or startplacetable), you 
still use table-styling commands to style it.


--
Rik
___
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] Alignment for narrower text

2014-01-30 Thread Jan Tosovsky
Dear All,

how can I specify the alignment of narrower text, 'hanging' in my case?

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
\setupindenting[medium, yes]

\starttext
\input{tufte}
\setupnarrower[left=0cm] % surprisingly it is narrower
\startnarrower[left]
\setupalign[hz, hanging] % setting this again here has no effect
\it
this is,\par
just sample.\par
\stopnarrower
\input{tufte}
\stoptext

Thanks, Jan


___
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] Alignment for narrower text

2014-01-30 Thread Wolfgang Schuster

Am 30.01.2014 um 20:08 schrieb Jan Tosovsky j.tosov...@email.cz:

 Dear All,
 
 how can I specify the alignment of narrower text, 'hanging' in my case?

What do you expect from the output?

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] Alignment for narrower text

2014-01-30 Thread Jan Tosovsky
On 2014-01-30 Wolfgang Schuster wrote:
 Am 30.01.2014 um 20:08 schrieb Jan Tosovsky j.tosov...@email.cz:
 
  how can I specify the alignment of narrower text, 'hanging' in my
  case?
 
 What do you expect from the output?
 

I'd expect that starting french quote sign outside the left text edge -
similarly like it is aligned the main flow when the hanging feature is
enabled.

Now I've found it works as expected when the indenting is disabled:

\definefontfamily[palatino][rm][Palatino Linotype][features={default,
quality}]
\setupbodyfont[palatino]
\setupalign[hz, hanging]
%\setupindenting[medium, yes]  % this helped

\starttext
\input{tufte}
\setupnarrower[left=1cm]
\startnarrower[left]
\it
this is,\par
just sample.\par
\stopnarrower
\input{tufte}
\stoptext

Can I have both the main flow indentation and the proper alignment of the
narrow text block?

Thanks for any hint,

Jan

___
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] Alignment table with comma, and long long space after

2013-10-05 Thread Hans Hagen

On 10/5/2013 5:37 AM, hwit...@gmail.com wrote:


I'd like to try out the new experimental mechanism for tables mentioned below.

Is it correct that I need the standalone version to do this?


indeed


If standalone, are there differenct versions that I must select between?
For example a stable standalone, verses experimental by date or name.


beta (which is default)

-
  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] Alignment table with comma, and long long space after

2013-10-04 Thread Hans Hagen

On 9/23/2013 8:11 PM, Wolfgang Schuster wrote:


Am 23.09.2013 um 15:45 schrieb Xan dxpubl...@telefonica.net:


On Sun, 22 Sep 2013 19:31:33 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:


You can show us a *complete* minimal example.

Wolfgang


What is at final?


It’s a bug in the alignment mechanism and looking for a solution.


I decided to replace the old mechanism by a new one .. still somewhat 
experimental ...


\starttext

% \enabletrackers[typesetters.characteralign]

\starttabulate[|l|g{,}|r|]
\NC test \NC 1.234.456,99 \NC \NC test \NR
\NC test \NC   234.456,9  \NC \NC test \NR
\NC test \NC   234.456\NC \NC test \NR
\NC test \NC   456\NC \NC test \NR
\NC test \NC \bf default  \NC \NC test \NR
\stoptabulate

\starttabulate[|l|rg{,}|]
\NC test \NC 1.234.456,99 \NC \NR
\NC test \NC   234.456,9  \NC \NR
\NC test \NC  ,9  \NC \NR
\NC test \NC   234.456,   \NC \NR
\NC test \NC   234.456\NC \NR
\NC test \NC   456\NC \NR
\NC test \NC \bf right\NC \NR
\stoptabulate

\starttabulate[|l|lg{,}|]
\NC test \NC -1.234.456,99 \NC \NR
\NC test \NC +1.234.456,99 \NC \NR
\NC test \NC  1.234.456,99 \NC \NR
\NC test \NC234.456,9  \NC \NR
\NC test \NC234.456\NC \NR
\NC test \NC456\NC \NR
\NC test \NC \bf left  \NC \NR
\stoptabulate

\starttabulate[|l|cg{,}|cg{.}|]
\NC test \NC 1.234.456,99 \NC 1,234,456.99 \NR
\NC test \NC   234.456,9  \NC   234,456.9  \NR
\NC test \NC   234.456\NC   234,456\NR
\NC test \NC   456\NC   456\NR
\NC test \NC \bf center   \NC \bf center   \NR
\stoptabulate

\starttabulate[|l|cg{,}w(10em)|lg{,}|]
\NC test \NC €  1,1 \NC 
1.234.456,99 \NC \NR
\NC test \NC € 11,11\NC 
234.456,9  \NC \NR
\NC test \NC € 12\punctuationspace111,11\NC 
234\punctuationspace456,9  \NC \NR
\NC test \NC € 12 111,11\NC 
234 456,9  \NC \NR
\NC test \NC €  1.234.451,2 \NC 
234.456\NC \NR
\NC test \NC €234.451,2 \NC 
  456\NC \NR
\NC test \NC €234.451   \NC 
 \NC \NR
\NC test \NC €451   \NC 
 \NC \NR
\NC test \NC \bf center+width   \NC \bf center 
 \NC \NR

\stoptabulate

\page

\bTABLE
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
 1,1 \eTD \bTD[aligncharacter=yes]1.234.456,99 \eTD 
\eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
11,11\eTD \bTD[aligncharacter=yes]  234.456,9  \eTD \eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
12\punctuationspace111,11\eTD \bTD[aligncharacter=yes] 
234\punctuationspace456,9  \eTD \eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 12 
111,11\eTD \bTD[aligncharacter=yes]  234 456,9  \eTD 
\eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
1.234.451,2 \eTD \bTD[aligncharacter=yes]  234.456 
  \eTD \eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
234.451,2 \eTD \bTD[aligncharacter=yes]  456 
\eTD \eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
234.451   \eTD \bTD[aligncharacter=yes] 
\eTD \eTR
\bTR \bTD test \eTD \bTD[aligncharacter=yes] € 
451   \eTD \bTD[aligncharacter=yes] \eTD 
\eTR
\bTR \bTD test \eTD \bTD \bf center+width 
 \eTD \bTD \bf center  \eTD 
\eTR

\eTABLE

\startcharacteralign
\checkcharacteralign{123.456,78}
\blank[small]
\checkcharacteralign{456}
\blank[small]
\checkcharacteralign{23.456}
\blank[small]
\checkcharacteralign{78,9}
\stopcharacteralign

\stoptext


-
  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] Alignment table with comma, and long long space after

2013-10-04 Thread hwitloc

I'd like to try out the new experimental mechanism for tables mentioned below.

Is it correct that I need the standalone version to do this?

If standalone, are there differenct versions that I must select between? 
For example a stable standalone, verses experimental by date or name.

Thanks

Re: - below 
Hans Hagen pra...@wxs.nl wrote:

 On 9/23/2013 8:11 PM, Wolfgang Schuster wrote:
 
  Am 23.09.2013 um 15:45 schrieb Xan dxpubl...@telefonica.net:
 
  On Sun, 22 Sep 2013 19:31:33 +0200
  Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:
 
  You can show us a *complete* minimal example.
 
  Wolfgang
 
  What is at final?
 
  It’s a bug in the alignment mechanism and looking for a solution.
 
 I decided to replace the old mechanism by a new one .. still somewhat
 experimental ...
 
 \starttext
 
 % \enabletrackers[typesetters.characteralign]
 
 \starttabulate[|l|g{,}|r|]
 \NC test \NC 1.234.456,99 \NC \NC test \NR
 \NC test \NC   234.456,9  \NC \NC test \NR
 \NC test \NC   234.456\NC \NC test \NR
 \NC test \NC   456\NC \NC test \NR
 \NC test \NC \bf default  \NC \NC test \NR
 \stoptabulate
 
 \starttabulate[|l|rg{,}|]
 \NC test \NC 1.234.456,99 \NC \NR
 \NC test \NC   234.456,9  \NC \NR
 \NC test \NC  ,9  \NC \NR
 \NC test \NC   234.456,   \NC \NR
 \NC test \NC   234.456\NC \NR
 \NC test \NC   456\NC \NR
 \NC test \NC \bf right\NC \NR
 \stoptabulate
 
 \starttabulate[|l|lg{,}|]
 \NC test \NC -1.234.456,99 \NC \NR
 \NC test \NC +1.234.456,99 \NC \NR
 \NC test \NC  1.234.456,99 \NC \NR
 \NC test \NC234.456,9  \NC \NR
 \NC test \NC234.456\NC \NR
 \NC test \NC456\NC \NR
 \NC test \NC \bf left  \NC \NR
 \stoptabulate
 
 \starttabulate[|l|cg{,}|cg{.}|]
 \NC test \NC 1.234.456,99 \NC 1,234,456.99 \NR
 \NC test \NC   234.456,9  \NC   234,456.9  \NR
 \NC test \NC   234.456\NC   234,456\NR
 \NC test \NC   456\NC   456\NR
 \NC test \NC \bf center   \NC \bf center   \NR
 \stoptabulate
 
 \starttabulate[|l|cg{,}w(10em)|lg{,}|]
 \NC test \NC €  1,1 \NC 1.234.456,99 \NC
 \NR
 \NC test \NC € 11,11\NC 234.456,9  \NC \NR
 \NC test \NC € 12\punctuationspace111,11\NC
 234\punctuationspace456,9  \NC \NR
 \NC test \NC € 12 111,11\NC 234 456,9  \NC \NR
 \NC test \NC €  1.234.451,2 \NC 234.456\NC \NR
 \NC test \NC €234.451,2 \NC 456\NC \NR
 \NC test \NC €234.451   \NC\NC \NR
 \NC test \NC €451   \NC\NC \NR
 \NC test \NC \bf center+width   \NC \bf center
 \NC \NR
 \stoptabulate
 
 \page
 
 \bTABLE
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 1,1 \eTD
 \bTD[aligncharacter=yes]1.234.456,99 \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 11,11\eTD
 \bTD[aligncharacter=yes]  234.456,9  \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] €
 12\punctuationspace111,11\eTD \bTD[aligncharacter=yes]
 234\punctuationspace456,9  \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 12
 111,11\eTD \bTD[aligncharacter=yes]  234 456,9
 \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 1.234.451,2
 \eTD \bTD[aligncharacter=yes]  234.456 \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 234.451,2 \eTD
 \bTD[aligncharacter=yes]  456 \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 234.451   \eTD
 \bTD[aligncharacter=yes] \eTD \eTR
 \bTR \bTD test \eTD \bTD[aligncharacter=yes] € 451   \eTD
 \bTD[aligncharacter=yes] \eTD \eTR
 \bTR \bTD test \eTD \bTD \bf center+width
 \eTD \bTD \bf center  \eTD \eTR
 \eTABLE
 
 \startcharacteralign
 \checkcharacteralign{123.456,78}
 \blank[small]
 \checkcharacteralign{456}
 \blank[small]
 \checkcharacteralign{23.456}
 \blank[small]
 \checkcharacteralign{78,9}
 \stopcharacteralign
 
 \stoptext
 
 
 -
   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 / 

Re: [NTG-context] Alignment table with comma, and long long space after

2013-09-24 Thread Xan
On Mon, 23 Sep 2013 20:11:01 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:

 
 Am 23.09.2013 um 15:45 schrieb Xan dxpubl...@telefonica.net:
 
  On Sun, 22 Sep 2013 19:31:33 +0200
  Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:
  
  You can show us a *complete* minimal example.
  
  Wolfgang
  
  What is at final?
 
 It’s a bug in the alignment mechanism and looking for a solution.
 
 Wolfgang

Thanks. Please notice me when you (sure) have the solution

Xan.
___
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] Alignment table with comma, and long long space after

2013-09-23 Thread Xan
On Sun, 22 Sep 2013 19:31:33 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:

 

 You can show us a *complete* minimal example.
 
 Wolfgang

What is at final?

Xan
___
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] Alignment table with comma, and long long space after

2013-09-23 Thread Wolfgang Schuster

Am 23.09.2013 um 15:45 schrieb Xan dxpubl...@telefonica.net:

 On Sun, 22 Sep 2013 19:31:33 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:
 
 You can show us a *complete* minimal example.
 
 Wolfgang
 
 What is at final?

It’s a bug in the alignment mechanism and looking for a solution.

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] Alignment table with comma, and long long space after

2013-09-22 Thread Xan
It does not work with that:

%%% Per a què les taules se me puguin alinear amb les comes
\chardef\characteralignmentmode=2
\chardef\characteralignmentmode\plustwo

%%% 
http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/
\startsetups table:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, 
color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  
\setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
%  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
\stopsetups


What can I do?

Xan.
On Sat, 21 Sep 2013 18:55:51 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com ha escrit:

 
 Am 21.09.2013 um 16:22 schrieb Xan dxpubl...@telefonica.net:
 
  Hi,
  
  I have this
  
  \startsetups table:style
   \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, 
  color=black, align={middle,lohi},style=ss]
   \setupTABLE[column][1][align={right,lohi}]
   
  \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
  %  \setupTABLE[column][2][width=.20\textwidth]
   \setupTABLE[loffset=1mm,roffset=1mm]
   \setupTABLE[frame=off]
   \setupTABLE[topframe=on,bottomframe=on]
   \setupTABLE[column][first][leftframe=on]
   \setupTABLE[column][last][rightframe=on]
  \stopsetups
  
  \placefigure[here]{Diverses mesures}{
  \bTABLE[setups={table:header, table:frame, table:style}]
  \bTABLEhead
  \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR
  \eTABLEhead
  \bTABLEbody
  \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR
  \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR
  \bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR
  \bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR
  \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR
  \bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 
  40.790.494.000.000.000 \eTD \eTR
  \eTABLEbody
  \eTABLE}
  
  
  but ConTeXt produces a lot of space after 1,75.
  
  How can I do for second column fits the content?
 
 Add the following line to your setups for the table.
 
 \chardef\characteralignmentmode\plustwo
 
 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] Alignment table with comma, and long long space after

2013-09-22 Thread Wolfgang Schuster

Am 22.09.2013 um 19:13 schrieb Xan dxpubl...@telefonica.net:

 It does not work with that:
 
 %%% Per a què les taules se me puguin alinear amb les comes
 \chardef\characteralignmentmode=2
 \chardef\characteralignmentmode\plustwo
 
 %%% 
 http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/
 \startsetups table:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, 
 color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  
 \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
 %  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
 \stopsetups
 
 
 What can I do?

You can show us a *complete* minimal example.

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] Alignment table with comma, and long long space after

2013-09-22 Thread Xan
Yes:



 You can show us a *complete* minimal example.
 
 Wolfgang
% Regime
\enableregime[utf]

% Choose a language, and associated hyphenation rules.
\mainlanguage[ca]

% AMSTHM equivalent
%% Exercici
%% Mirar http://wiki.contextgarden.net/Command/setupdescriptions
%%% posar alternative=left per identar tots els continguts | alternative=serried per tractar el contingut com un paràgraf ordinari
\defineenumeration
  [exercici]
  [alternative=serried,text={\startcolor[darkblue]Exercici\stopcolor},stopper={.\space},left={\bgroup},right={\egroup},width=fit,headstyle=\ss,distance=0.25em,width=fit]

%\defineenumeration
%  [exerciciimportant]
%  [text={Exercici},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
%stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,before={\bgroup\startframedtext[background=screen,frame=off,width=broad]},after={\stopframedtext\egroup}]

% Intent fer una comanda per a fer requadres a les coses importants
% http://www.ntg.nl/pipermail/ntg-context/2013/074823.html
\def\important{\dodoubleempty\doimportant}
\def\doimportant[#1][#2]{\bgroup
\ifsecondargument
   \startframedtext[background=color,backgroundcolor=#2,frame=off,width=broad]%
   #1
\else
   \startframedtext[background=screen,frame=off,width=broad]%
   #1
\fi
\stopframedtext
\egroup}

\defineframedtext
  [important]
  [background=screen,
   frame=off,
   width=broad]

% Per a veure què falla amb els símbols
\enabletrackers [fonts.missing]


% Choose a font
%\usetypescript[pagella][ec]
%\setupbodyfont[pagella,11pt]
\setupbodyfont [cmr,11pt] % cmr, 11pt

% Margins
%\setuplayout[topspace=2cm, backspace=2cm, header=1.5cm,margin=2cm,width=middle,footer=1cm]

% Colors
\definecolor[headingcolor][c=1,m=0.5431,y=0,k=0.5451]
\definecolor[tablecolor][b=1,t=.5,a=1]

% Page number
\setuppagenumbering [location={header,right}]

% Paper size
\setuppapersize [A4]

% Italic in emph (by default is slanted)
\setupbodyfontenvironment[default][em=italic]

% Headers and footers
\setupfooter[text][style={\ss\tfx},color=headingcolor,before={\hrule}]
\setupheader[text][style={\ss},color=headingcolor,after={\hrule}]

%% Display of headers
\setuphead[title][style={\tfd},align=middle,before={\begingroup},after={\bigskip\endgroup}]
\setupheads[section,subject][style={\tfc}]
\setupheads[subsubject,subsection][style={\tfb}]
\setuphead[title,chapter,subject,section,subsubject,subsection][color=headingcolor]

%% Per veure els enllaços
\setupinteraction[state=start]

%% Per a BibTeX
\setuppublications[alternative=ams]


%% Taules: estils

%%% Per a què les taules se me puguin alinear amb les comes
\chardef\characteralignmentmode=2
\chardef\characteralignmentmode\plustwo

%%% http://randomdeterminism.wordpress.com/2012/11/18/separation-of-content-and-presentation-for-tables-part-1/
\startsetups table:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
%  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
\stopsetups

%% Normal
\startsetups table2:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  \setupTABLE[column][2][align={left,lohi}]
%  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
\stopsetups


%% ConTeXt MIV

%% Capçaleres i peus

%%% Prenc els primers 5 caràcters del sha256 del fitxer (requereix ConTeXt MIV)
\setupfootertexts[\jobname\space(versió \ctxlua{context(os.resultof(sha256sum \jobname.tex | cut -c  -5))}, \currentdate)][]

\starttext


\placefigure[here]{Diverses mesures}{
\bTABLE[setups={table:header, table:frame, table:style}]
\bTABLEhead
\bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR
\bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR
\bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR
\bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR
\bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR
\bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 40.790.494.000.000.000 \eTD \eTR
\eTABLEbody
\eTABLE}

\stoptext


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

[NTG-context] Alignment table with comma, and long long space after

2013-09-21 Thread Xan
Hi,

I have this

\startsetups table:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, 
color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  
\setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
%  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
\stopsetups

\placefigure[here]{Diverses mesures}{
\bTABLE[setups={table:header, table:frame, table:style}]
\bTABLEhead
\bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR
\eTABLEhead
\bTABLEbody
\bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR
\bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR
\bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR
\bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR
\bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR
\bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 
40.790.494.000.000.000 \eTD \eTR
\eTABLEbody
\eTABLE}


but ConTeXt produces a lot of space after 1,75.

How can I do for second column fits the content?

Thanks in advance,
Xan.

PS: Please CCme
___
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] Alignment table with comma, and long long space after

2013-09-21 Thread Wolfgang Schuster

Am 21.09.2013 um 16:22 schrieb Xan dxpubl...@telefonica.net:

 Hi,
 
 I have this
 
 \startsetups table:style
  \setupTABLE[row][first][background=color, backgroundcolor=tablecolor, 
 color=black, align={middle,lohi},style=ss]
  \setupTABLE[column][1][align={right,lohi}]
  
 \setupTABLE[column][2][align={left,lohi},alignmentcharacter={,},aligncharacter=yes]
 %  \setupTABLE[column][2][width=.20\textwidth]
  \setupTABLE[loffset=1mm,roffset=1mm]
  \setupTABLE[frame=off]
  \setupTABLE[topframe=on,bottomframe=on]
  \setupTABLE[column][first][leftframe=on]
  \setupTABLE[column][last][rightframe=on]
 \stopsetups
 
 \placefigure[here]{Diverses mesures}{
 \bTABLE[setups={table:header, table:frame, table:style}]
 \bTABLEhead
 \bTR \bTD Esdeveniment \eTD \bTD Mesura (m) \eTD \eTR
 \eTABLEhead
 \bTABLEbody
 \bTR \bTD Distància mitjana Terra-Lluna \eTD \bTD 150.000.000.000 \eTD \eTR
 \bTR \bTD Diàmetre mitjà terrestre \eTD \bTD 12 800.000 \eTD \eTR
 \bTR \bTD Distància Palma-Alcúdia \eTD \bTD 75.000 \eTD \eTR
 \bTR \bTD Diàmetre mitjà de Júpiter \eTD \bTD 140.000.000 \eTD \eTR
 \bTR \bTD L'altura d'una persona \eTD \bTD 1,75 \eTD \eTR
 \bTR \bTD La distància mitjana entre el Sol i Alfa-Centauri \eTD \bTD 
 40.790.494.000.000.000 \eTD \eTR
 \eTABLEbody
 \eTABLE}
 
 
 but ConTeXt produces a lot of space after 1,75.
 
 How can I do for second column fits the content?

Add the following line to your setups for the table.

\chardef\characteralignmentmode\plustwo

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] Alignment of inmframed

2013-06-15 Thread Aditya Mahajan

On Sat, 15 Jun 2013, Hans Hagen wrote:


On 6/14/2013 9:06 PM, Aditya Mahajan wrote:

\inmframed (and by extension \definemathframed[...][location=low,...])
does not get the right vertical space. For example,

\starttext
\startformula
   \ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots.
\stopformula
\stoptext

Note that the two fractions do not align at the horizontal bar.

Is it possible for all expressions to be aligned at the math axis? Aditya


I'll add it


Thanks.

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
___


[NTG-context] Alignment of inmframed

2013-06-14 Thread Aditya Mahajan
\inmframed (and by extension \definemathframed[...][location=low,...]) 
does not get the right vertical space. For example,


\starttext
\startformula
  \ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots.
\stopformula
\stoptext

Note that the two fractions do not align at the horizontal bar.

Is it possible for all expressions to be aligned at the math axis? 
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] Alignment of inmframed

2013-06-14 Thread Hans Hagen

On 6/14/2013 9:06 PM, Aditya Mahajan wrote:

\inmframed (and by extension \definemathframed[...][location=low,...])
does not get the right vertical space. For example,

\starttext
\startformula
   \ln (1+x) = \inmframed{x - {\frac {x^2}{2}}} + \frac{x^3}{3}-\cdots.
\stopformula
\stoptext

Note that the two fractions do not align at the horizontal bar.

Is it possible for all expressions to be aligned at the math axis? Aditya


like this?

\unprotect

\newcount\c_pack_framed_mc

\unexpanded\def\mcframed
  {\doifnextoptionalelse\pack_framed_mc_yes\pack_framed_mc_nop}

\unexpanded\def\pack_framed_mc_begin
  {\bgroup
   \global\advance\c_pack_framed_mc\plusone
   \edef\pack_framed_mc_one{mcf:1:\number\c_pack_framed_mc}%
   \edef\pack_framed_mc_two{mcf:2:\number\c_pack_framed_mc}%
   \lower\dimexpr\MPy\pack_framed_mc_two-\MPy\pack_framed_mc_one\relax
   \hbox\bgroup
   \xypos\pack_framed_mc_one}

\unexpanded\def\pack_framed_mc_end
  {\egroup
   \egroup}

\unexpanded\def\pack_framed_mc_nop#1%
  {\pack_framed_mc_begin
   \mframed{\xypos\pack_framed_mc_two#1}%
   \pack_framed_mc_end}

\unexpanded\def\pack_framed_mc_yes[#1]#2%
  {\pack_framed_mc_begin
   \mframed[#1]{\xypos\pack_framed_mc_two#2}%
   \pack_framed_mc_end}

\protect

\starttext

\startformula
\ln (1+x) = \mcframed{x - {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} 
+ \frac{x^3}{3}-\cdots.

\stopformula

\startformula
\ln (1+x) = 
\mcframed[background=color,backgroundcolor=red,foregroundcolor=white,frame=off]{x 
- {\frac {x^2}{\frac{x^3}{\frac{x^3}{3} + \frac{x^3}{3}-\cdots.

\stopformula

\stoptext


-
  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] Alignment problem with labels and textext

2013-02-13 Thread Alan BRASLAU
On Wed, 13 Feb 2013 06:54:18 +0100
Lutz Haseloff lutz.hasel...@gmail.com wrote:

 Hi Hans, hi all,
 
 with the most recent ConTeXt
 (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
 there is an alignment problem with labels using textext.
 Labels without textext work ok.
 
 Small example showing the problem:
 
 -
 \starttext
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (textext(right) , point 0 of p) ;
 label.top (textext(top) , point 2 of p) ;
 label.lft (textext(left) , point 4 of p) ;
 label.bot (textext(bottom) , point 6 of p) ;
 \stopMPpage
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (right , point 0 of p) ;
 label.top (top , point 2 of p) ;
 label.lft (left , point 4 of p) ;
 label.bot (bottom , point 6 of p) ;
 \stopMPpage
 \stoptext
 -
 
 Greetings
 
 Lutz

Looks OK with
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.12  int: english/english

___
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] Alignment problem with labels and textext

2013-02-13 Thread Keith J. Schultz
Hi Lutz,

With
This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) 
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english

Things look fine. Actually, without textext the left and right seem to be 
aligned 
on the baseline. Where with textext it is aligned in the middle of the text, 
which
I find to be the correct way. 

regards
Keith



Am 13.02.2013 um 06:54 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Hans, hi all,
 
 with the most recent ConTeXt
 (This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
 there is an alignment problem with labels using textext.
 Labels without textext work ok.
 
 Small example showing the problem:
 
 -
 \starttext
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (textext(right) , point 0 of p) ;
 label.top (textext(top) , point 2 of p) ;
 label.lft (textext(left) , point 4 of p) ;
 label.bot (textext(bottom) , point 6 of p) ;
 \stopMPpage
 \startMPpage
 pickup pencircle scaled 1mm ;
 path p ; p := fullcircle scaled 3cm ;
 draw p withcolor .625yellow ;
 label.rt (right , point 0 of p) ;
 label.top (top , point 2 of p) ;
 label.lft (left , point 4 of p) ;
 label.bot (bottom , point 6 of p) ;
 \stopMPpage
 \stoptext
 -
 
 Greetings
 
 Lutz
 ___
 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
___

Re: [NTG-context] Alignment problem with labels and textext

2013-02-13 Thread Lutz Haseloff
Hi Keith,

following testfile perhaps describes my problem better:

\starttext
\startMPpage
drawdot (origin);
label.rt (textext(right) , origin) ;
label.top (textext(top) , origin) ;
label.lft (textext(left) , origin) ;
label.bot (textext(bottom) , origin) ;
\stopMPpage
\stoptext

If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
overlap.

I try to add the problematic mkiv pdf.

Greetings Lutz


2013/2/13 Keith J. Schultz keithjschu...@web.de

 Hi Lutz,

 With
 This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english

 Things look fine. Actually, without textext the left and right seem to be
 aligned
 on the baseline. Where with textext it is aligned in the middle of the
 text, which
 I find to be the correct way.

 regards
 Keith




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

Re: [NTG-context] Alignment problem with labels and textext

2013-02-13 Thread Alan BRASLAU
On Wed, 13 Feb 2013 11:11:23 +0100
Lutz Haseloff lutz.hasel...@gmail.com wrote:

 Hi Keith,
 
 following testfile perhaps describes my problem better:
 
 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext
 
 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
 overlap.

I do not know what you expect exactly.
Each textext() label has a bounding box.
This bounding box is then aligned in the case of rt, top, lft, bot
with its appropriate edge centered at the origin.
The lft and rt text thus will not have their baselines aligned, unless you add 
a \strut.

(This is an issue with the chemical macros.)

Try label.rt (texttext(\strut right), origin) ;

By the way, you can use:
draw textext.rt (\strut right) ;
draw textext.top(\strut top) ;
draw textext.lft(\strut left) ;
draw textext.bot(\strut bottom) ;
which gives a tighter fit than label().



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


Re: [NTG-context] Alignment problem with labels and textext

2013-02-13 Thread Keith J. Schultz
Hi Lutz,

Just updated, to make sure I have the latest.

I see the problems. 
top  bottom labels are not centered correctly
bottom label not low enough
left and right labels are not aligned at the same height

Sorry, no ansers.

regards
Keith.

Am 13.02.2013 um 11:11 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Keith,
 
 following testfile perhaps describes my problem better:
 
 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext
 
 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels 
 overlap.
 
 I try to add the problematic mkiv pdf.
 
 Greetings Lutz
 
 
 2013/2/13 Keith J. Schultz keithjschu...@web.de
 Hi Lutz,
 
 With
 This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541) 
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english
 
 Things look fine. Actually, without textext the left and right seem to be 
 aligned 
 on the baseline. Where with textext it is aligned in the middle of the text, 
 which
 I find to be the correct way. 
 
 regards
   Keith
 

___
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] Alignment problem with labels and textext

2013-02-13 Thread Lutz Haseloff
It seems to me, that the label.xx mechanism is completely broken.
the results of label, label.rt and label.lft are exactly the same if i set
labeloffset := 0bp ;
(default is 3bp)


2013/2/13 Keith J. Schultz keithjschu...@web.de

 Hi Lutz,

 Just updated, to make sure I have the latest.

 I see the problems.
 top  bottom labels are not centered correctly
 bottom label not low enough
 left and right labels are not aligned at the same height

 Sorry, no ansers.

 regards
 Keith.

 Am 13.02.2013 um 11:11 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Keith,

 following testfile perhaps describes my problem better:

 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext

 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
 overlap.

 I try to add the problematic mkiv pdf.

 Greetings Lutz


 2013/2/13 Keith J. Schultz keithjschu...@web.de

 Hi Lutz,

 With
 This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english

 Things look fine. Actually, without textext the left and right seem to be
 aligned
 on the baseline. Where with textext it is aligned in the middle of the
 text, which
 I find to be the correct way.

 regards
 Keith




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

Re: [NTG-context] Alignment problem with labels and textext

2013-02-13 Thread Lutz Haseloff
It seems, that my ConTeXt installation was broken in this point.
A complete new installation of the standalone heped.
Sorry for the noise.


2013/2/13 Lutz Haseloff lutz.hasel...@gmail.com

 It seems to me, that the label.xx mechanism is completely broken.
 the results of label, label.rt and label.lft are exactly the same if i set
 labeloffset := 0bp ;
 (default is 3bp)


 2013/2/13 Keith J. Schultz keithjschu...@web.de

 Hi Lutz,

 Just updated, to make sure I have the latest.

 I see the problems.
 top  bottom labels are not centered correctly
  bottom label not low enough
 left and right labels are not aligned at the same height

 Sorry, no ansers.

 regards
 Keith.

 Am 13.02.2013 um 11:11 schrieb Lutz Haseloff lutz.hasel...@gmail.com:

 Hi Keith,

 following testfile perhaps describes my problem better:

 \starttext
 \startMPpage
 drawdot (origin);
 label.rt (textext(right) , origin) ;
 label.top (textext(top) , origin) ;
 label.lft (textext(left) , origin) ;
 label.bot (textext(bottom) , origin) ;
 \stopMPpage
 \stoptext

 If i run it by texexec(mkii), all is ok, with context(mkiv) the labels
 overlap.

 I try to add the problematic mkiv pdf.

 Greetings Lutz


 2013/2/13 Keith J. Schultz keithjschu...@web.de

 Hi Lutz,

 With
 This is LuaTeX, Version beta-0.74.0-2012122517 (rev 4541)
 ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.9  int: english/english

 Things look fine. Actually, without textext the left and right seem to
 be aligned
 on the baseline. Where with textext it is aligned in the middle of the
 text, which
 I find to be the correct way.

 regards
 Keith




 ___
 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] Alignment problem with labels and textext

2013-02-12 Thread Lutz Haseloff
Hi Hans, hi all,

with the most recent ConTeXt
(This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
there is an alignment problem with labels using textext.
Labels without textext work ok.

Small example showing the problem:

-
\starttext
\startMPpage
pickup pencircle scaled 1mm ;
path p ; p := fullcircle scaled 3cm ;
draw p withcolor .625yellow ;
label.rt (textext(right) , point 0 of p) ;
label.top (textext(top) , point 2 of p) ;
label.lft (textext(left) , point 4 of p) ;
label.bot (textext(bottom) , point 6 of p) ;
\stopMPpage
\startMPpage
pickup pencircle scaled 1mm ;
path p ; p := fullcircle scaled 3cm ;
draw p withcolor .625yellow ;
label.rt (right , point 0 of p) ;
label.top (top , point 2 of p) ;
label.lft (left , point 4 of p) ;
label.bot (bottom , point 6 of p) ;
\stopMPpage
\stoptext
-

Greetings

Lutz
___
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] Alignment problem with labels and textext

2013-02-11 Thread Lutz Haseloff
Hi Hans, hi all,

with the most recent ConTeXt
(This is LuaTeX, Version beta-0.75.0-2013021110 (rev 4576)
ConTeXt  ver: 2013.02.05 22:32 MKIV  fmt: 2013.2.11  int: english/english)
there is an alignment problem with labels using textext.
Labels without textext work ok.

Small example showing the problem:

-
\starttext
\startMPpage
pickup pencircle scaled 1mm ;
path p ; p := fullcircle scaled 3cm ;
draw p withcolor .625yellow ;
label.rt (textext(right) , point 0 of p) ;
label.top (textext(top) , point 2 of p) ;
label.lft (textext(left) , point 4 of p) ;
label.bot (textext(bottom) , point 6 of p) ;
\stopMPpage
\startMPpage
pickup pencircle scaled 1mm ;
path p ; p := fullcircle scaled 3cm ;
draw p withcolor .625yellow ;
label.rt (right , point 0 of p) ;
label.top (top , point 2 of p) ;
label.lft (left , point 4 of p) ;
label.bot (bottom , point 6 of p) ;
\stopMPpage
\stoptext
-

Greetings

Lutz
___
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] Alignment in combination

2012-10-03 Thread Wolfgang Schuster

Am 03.10.2012 um 13:47 schrieb Marco Patzer home...@lavabit.com:

 Hi,
 
 how to left align the elements of a combination?
 
 \useMPlibrary [dum]
 \setupexternalfigures [height=2cm]
 \starttext
 
 %% does nothing: \setupcombinations [align=flushleft]
 \startcombination [2*2]
  {\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=4cm]} {}
  {\externalfigure[dummy][width=3cm]} {}
 \stopcombination \blank[2cm]
 
 %% desired:
 \startcombination [2*2]
  {\kern-2cm\externalfigure[dummy][width=2cm]} {}
  {\kern-1cm\externalfigure[dummy][width=2cm]} {}
  {\externalfigure[dummy][width=4cm]} {}
  {\externalfigure[dummy][width=3cm]} {}
 \stopcombination
 
 \stoptext

The align key controls the alignment of the caption, to change the position
of the content you need the location key, e.g. \setupcombination [location=left]

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] alignment in TABLE (solved)

2012-07-25 Thread Peter Münster
On Wed, Jul 25 2012, Aditya Mahajan wrote:

 Each cell of a TABLE is already a \frame, so you don't need to add a \framed
 inside a cell.

Indeed, but at some point during my experimentation, I found
differences with or without inner frame...

I think, I've found, what had bothered me: strut=yes has no effect when
offset=overlay. A strut has to be added manually. This is what I have
now, and it finally works:

\starttext
\framed[height=5cm, offset=overlay]{%
  \bTABLE[offset=overlay]
  \bTR
  \bTD \strut 1~ \eTD
  \bTD[height=max, align=flushleft]
  \strut 1 Über\crlf 1 and 1 are aligned! \vfill \rightaligned{bla} \eTD \eTR
\eTABLE}
\stoptext

-- 
   Peter
___
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] alignment in TABLE (solved)

2012-07-25 Thread Hans Hagen

On 25-7-2012 12:31, Peter Münster wrote:

On Wed, Jul 25 2012, Aditya Mahajan wrote:


Each cell of a TABLE is already a \frame, so you don't need to add a \framed
inside a cell.


Indeed, but at some point during my experimentation, I found
differences with or without inner frame...

I think, I've found, what had bothered me: strut=yes has no effect when
offset=overlay. A strut has to be added manually. This is what I have
now, and it finally works:

\starttext
\framed[height=5cm, offset=overlay]{%
   \bTABLE[offset=overlay]
   \bTR
   \bTD \strut 1~ \eTD
   \bTD[height=max, align=flushleft]
   \strut 1 Über\crlf 1 and 1 are aligned! \vfill \rightaligned{bla} \eTD \eTR
\eTABLE}
\stoptext


in that case \begstrut ... \endstrut

(you can also play with overlay=0pt or none)

-
  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] alignment in TABLE (solved)

2012-07-25 Thread Wolfgang Schuster

Am 25.07.2012 um 12:31 schrieb Peter Münster:

 On Wed, Jul 25 2012, Aditya Mahajan wrote:
 
 Each cell of a TABLE is already a \frame, so you don't need to add a \framed
 inside a cell.
 
 Indeed, but at some point during my experimentation, I found
 differences with or without inner frame...
 
 I think, I've found, what had bothered me: strut=yes has no effect when
 offset=overlay. A strut has to be added manually. This is what I have
 now, and it finally works:

The strut option is disabled when you use offset=overlay, you want offset=none 
or offset=0pt.

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
___


[NTG-context] alignment in TABLE

2012-07-24 Thread Peter Münster
Hi,

How could I please align vertically the 2 table cells in the following
example:

--8---cut here---start-8---
\starttext
\bTABLE
\bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
\eTABLE
\stoptext
--8---cut here---end---8---

I've tried various combination with offset=0pt/overlay, strut=yes/no,
rulethickness=0pt, but without success...

TIA for any help!
-- 
   Peter
___
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] alignment in TABLE

2012-07-24 Thread Rogers, Michael K

On Jul 24, 2012, at 5:45 PM, Peter Münster wrote:

 Hi,

 How could I please align vertically the 2 table cells in the following
 example:

 --8---cut here---start-8---
 \starttext
 \bTABLE
 \bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
 \eTABLE
 \stoptext
 --8---cut here---end---8---

 I've tried various combination with offset=0pt/overlay, strut=yes/no,
 rulethickness=0pt, but without success...

 TIA for any help!
 --
   Peter

Try \inframed instead of \framed.  See

http://wiki.contextgarden.net/Framed#Inline_Frames

Michael




This e-mail message (including any attachments) is for the sole use of
the intended recipient(s) and may contain confidential and privileged
information. If the reader of this message is not the intended
recipient, you are hereby notified that any dissemination, distribution
or copying of this message (including any attachments) is strictly
prohibited.

If you have received this message in error, please contact
the sender by reply e-mail message and destroy all copies of the
original message (including attachments).
___
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] alignment in TABLE

2012-07-24 Thread Aditya Mahajan

On Tue, 24 Jul 2012, Peter Münster wrote:


Hi,

How could I please align vertically the 2 table cells in the following
example:

--8---cut here---start-8---
\starttext
\bTABLE
\bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
\eTABLE
\stoptext
--8---cut here---end---8---


Each cell of a TABLE is already a \frame, so you don't need to add a 
\framed inside a cell.


You can use location=(bottom|low|lohi|high|top) (as part of \setupTABLE) 
to vertically align frames.


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] alignment in TABLE

2012-07-24 Thread luigi scarso
On Tue, Jul 24, 2012 at 11:49 PM, Rogers, Michael K mrog...@emory.eduwrote:


 On Jul 24, 2012, at 5:45 PM, Peter Münster wrote:

  Hi,
 
  How could I please align vertically the 2 table cells in the following
  example:
 
  --8---cut here---start-8---
  \starttext
  \bTABLE
  \bTR \bTD 1 \eTD \bTD \framed{1 Über} \eTD \eTR
  \eTABLE
  \stoptext
  --8---cut here---end---8---
 
  I've tried various combination with offset=0pt/overlay, strut=yes/no,
  rulethickness=0pt, but without success...
 
  TIA for any help!
  --
Peter

 Try \inframed instead of \framed.  See

 http://wiki.contextgarden.net/Framed#Inline_Frames

 Michael




\starttext
\bTABLE
\bTR[offset=1ex] \bTD 1 \eTD \bTD \inframed{1 Über} \eTD \eTR
\eTABLE
\stoptext


\starttext
\bTABLE
\bTR \bTD \framed[frame=off]{1} \eTD \bTD \framed{1 Über} \eTD \eTR
\eTABLE
\stoptext


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

[NTG-context] Alignment in \framed

2012-06-04 Thread Marcin Borkowski
Hi,

I'd like to have a big \framed with a small text, positioned at the
bottom left corner.  I tried something like this:

\starttext

\framed[width=100mm,height=100mm,align={bottom,left}]{text}

\stoptext

but text appears in the exact opposite corner.

What am I doing wrong?

TIA

-- 
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] Alignment in \framed

2012-06-04 Thread Hans Hagen

On 4-6-2012 23:15, Marcin Borkowski wrote:

Hi,

I'd like to have a big \framed with a small text, positioned at the
bottom left corner.  I tried something like this:

\starttext

\framed[width=100mm,height=100mm,align={bottom,left}]{text}

\stoptext

but text appears in the exact opposite corner.

What am I doing wrong?


left == raggedleft

you can use flushright

-
  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] Alignment in \framed

2012-06-04 Thread Marcin Borkowski
Dnia 2012-06-04, pon o godzinie 23:26 +0200, Hans Hagen pisze:
 On 4-6-2012 23:15, Marcin Borkowski wrote:
  Hi,
 
  I'd like to have a big \framed with a small text, positioned at the
  bottom left corner.  I tried something like this:
 
  \starttext
 
  \framed[width=100mm,height=100mm,align={bottom,left}]{text}
 
  \stoptext
 
  but text appears in the exact opposite corner.
 
  What am I doing wrong?
 
 left == raggedleft
 
 you can use flushright

Thanks a lot!

But what about vertical alignment?

-- 
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] Alignment in \framed

2012-06-04 Thread Marcin Borkowski
Dnia 2012-06-04, pon o godzinie 23:31 +0200, Marcin Borkowski pisze:
 Dnia 2012-06-04, pon o godzinie 23:26 +0200, Hans Hagen pisze:
  On 4-6-2012 23:15, Marcin Borkowski wrote:
   Hi,
  
   I'd like to have a big \framed with a small text, positioned at the
   bottom left corner.  I tried something like this:
  
   \starttext
  
   \framed[width=100mm,height=100mm,align={bottom,left}]{text}
  
   \stoptext
  
   but text appears in the exact opposite corner.
  
   What am I doing wrong?
  
  left == raggedleft
  
  you can use flushright
 
 Thanks a lot!
 
 But what about vertical alignment?
 

OK, I've got it!
[top=\vss,bottom=]

-- 
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] Alignment in \framed

2012-06-04 Thread Marco
On 2012-06-04 Marcin Borkowski mb...@wmi.amu.edu.pl wrote:

   What am I doing wrong?
  
  left == raggedleft
  
  you can use flushright
 
 Thanks a lot!
 
 But what about vertical alignment?

\framed[width=100mm,height=100mm,align={low,flushleft}]{text}

I don't know if the alignment key “bottom” is even supported. At
least it doesn't seem to be documented anywhere.

Marco


___
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] alignment in a footer

2012-05-31 Thread Jan Pohanka

Thank you for answer,
I have discovered, that \tbox does the job for me.

\startoverlay
{\leftaligned{nazev}}
{\midaligned{\pagenumber /\totalnumberofpages}}
{\rightaligned{\tbox{\externalfigure[jc_logo_small][width=4cm]}}}
\stopoverlay

regards
Jan

Dne Wed, 30 May 2012 17:21:07 +0200 Willi Egger cont...@boede.nl  
napsal(a):


In such cases I define a layer and put the individual pieces into the  
right spot. The layer can be used as a background then.


Willi



On May 30, 2012, at 2:19 PM, Jan Pohanka wrote:


Hello,
I'm making a template for company documents and we need to have  
something similar in the footer


\framed[frame=off,bottomframe=on,width=broad,align=flushleft]{\ss No  
part of this document may be reproduced, modified or disclosed to third  
parties in any form without the prior written permission of COMPANY.  
This document is copyrighted by COMPANY with all rights reserved.}

\startoverlay
{\leftaligned{title}}
{\midaligned{1/1}}
{\rightaligned{\externalfigure[jc_logo_small][width=4cm]}}
\stopoverlay

Unfortunately I have two problems with code above. I need to have the  
text and figure in overlay top aligned and also the text in the frame  
should have the exactly same width as the overlay.

How can I achieve this please?

best regards
Jan

--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

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



--
Tato zpráva byla vytvořena převratnou poštovní aplikací Opery:  
http://www.opera.com/mail/

___
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] alignment in a footer

2012-05-30 Thread Willi Egger
In such cases I define a layer and put the individual pieces into the right 
spot. The layer can be used as a background then.

Willi



On May 30, 2012, at 2:19 PM, Jan Pohanka wrote:

 Hello,
 I'm making a template for company documents and we need to have something 
 similar in the footer
 
 \framed[frame=off,bottomframe=on,width=broad,align=flushleft]{\ss No part of 
 this document may be reproduced, modified or disclosed to third parties in 
 any form without the prior written permission of COMPANY. This document is 
 copyrighted by COMPANY with all rights reserved.}
 \startoverlay
   {\leftaligned{title}}
   {\midaligned{1/1}}
   {\rightaligned{\externalfigure[jc_logo_small][width=4cm]}}
 \stopoverlay
 
 Unfortunately I have two problems with code above. I need to have the text 
 and figure in overlay top aligned and also the text in the frame should have 
 the exactly same width as the overlay.
 How can I achieve this please?
 
 best regards
 Jan
 
 -- 
 Tato zpráva byla vytvořena převratnou poštovní aplikací Opery: 
 http://www.opera.com/mail/
 ___
 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] Alignment of arrows and spacing of indices

2011-04-16 Thread Mathieu Boespflug
Hi,

in the following document,

\starttext
foo $a \longrightarrow_\sigma b$ bar.
\stoptext

the arrow doesn't look right and the spacing of the \sigma is wrong.
Latest beta (2011.04.13).

Regards,

Mathieu
___
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] alignment in TABLE

2010-06-15 Thread Peter Münster
Hello,

Here is an alignment problem due to the rulethickness.
Is there a cleaner and more elegant solution?

\starttext
\section{First line shifted to the right by a bit less
  than 2pt}
\setupTABLE[offset=0pt, frame=off]
\setupTABLE[r][1][bottomframe=on, rulethickness=2pt]
\bTABLE
\bTR\bTD bla \eTD \eTR
\bTR\bTD bla \eTD \eTR
\eTABLE

\section{Workaround}
\setupTABLE[offset=0pt, frame=off, rulethickness=0pt]
\setupTABLE[r][1][bottomframe=on, rulethickness=2pt, loffset=-2pt]
\bTABLE
\bTR\bTD bla \eTD \eTR
\bTR\bTD bla \eTD \eTR
\eTABLE
\stoptext

TIA for any help!
Cheers, Peter

-- 
Contact information: http://pmrb.free.fr/contact/


___
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] alignment explanation

2010-03-15 Thread Mehdi Omidali

On 3/15/2010 2:21 AM, Aditya Mahajan wrote:

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

   

Hi,
Finally, after reading source code of math-ali.mkiv, I found the best way to
typeset my multiline equation as follows

\starttext
\placeformula

\startformula

\startalign[n=3]
 

This means that you must have three columns in each line


   

\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]

\NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr
 

This has 4 columns. You do not get an error message because you use \cr
instead of \NR. That also messes up the alignment of the next equation.
   

but I don't know what is going on here. Exactly, eq:2 and eq:3 has the same
output but they can not be interchanged. Can someone explain this code?
 

This is how I would do this.

\placeformula \startformula \startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC 
\NR[eq:1]
\NC   \NC = w^2 + u^2   \NC \text{(by \in{Equation}[eq:2])} \NR
\NC   \NC \quad + v^2 + r^2 \NC 
\NR[eq:2]
\NC   \NC \quad + v^2 + r^2 \NC 
\NR[eq:3]
\NC   \NC = v^2 + r^2   \NC 
\NR[eq:4]
\stopalign \stopformula

Aditya
   
Thanks, but your output is not the same as mine. The comment by 
Equation 2 must be right aligned exactly where formula number is. Also 
I don't like manual alignment like \quad. AMS-TEX provide commands for 
automatic alignment. It would be nice if context supports that too.

___
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] alignment explanation

2010-03-15 Thread Aditya Mahajan
On Mon, 15 Mar 2010, Mehdi Omidali wrote:

 On 3/15/2010 2:21 AM, Aditya Mahajan wrote:
 On Mon, 15 Mar 2010, Mehdi Omidali wrote:

 
 Hi,
 Finally, after reading source code of math-ali.mkiv, I found the best way 
 to
 typeset my multiline equation as follows
 
 \starttext
 \placeformula
 
 \startformula
 
 \startalign[n=3]
 
 This means that you must have three columns in each line
 

 
 \NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
 
 \NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr
 
 This has 4 columns. You do not get an error message because you use \cr
 instead of \NR. That also messes up the alignment of the next equation.
 
 but I don't know what is going on here. Exactly, eq:2 and eq:3 has the 
 same
 output but they can not be interchanged. Can someone explain this code?
 
 This is how I would do this.
 
 \placeformula \startformula \startalign[n=3]
 \NC x^2 + y^2 \NC = z^2 \NC 
 \NR[eq:1]
 \NC   \NC = w^2 + u^2   \NC \text{(by \in{Equation}[eq:2])} \NR
 \NC   \NC \quad + v^2 + r^2 \NC 
 \NR[eq:2]
 \NC   \NC \quad + v^2 + r^2 \NC 
 \NR[eq:3]
 \NC   \NC = v^2 + r^2   \NC 
 \NR[eq:4]
 \stopalign \stopformula
 
 Aditya
 
 Thanks, but your output is not the same as mine. The comment by Equation 2 
 must be right aligned exactly where formula number is.

ConTeXt does not support that directly, but you can fake it.

\def\NRtag{\global\let\doalignNC\dodoalignNC\doalignNRtag}%

\def\doalignNRtag[#1]%
  {#1\crcr}

\starttext
\placeformula
\startformula
\startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
\NC   \NC = w^2 \NC + u^2   \NRtag[\text{(by \in{Equation}[eq:2])}]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:2]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:3]
\NC   \NC = v^2 \NC + r^2   \NR[eq:4]
\stopalign
\stopformula
\stoptext


 Also I don't like 
 manual alignment like \quad. AMS-TEX provide commands for automatic 
 alignment. It would be nice if context supports that too.

ConTeXt does support that (see above); but aligning at the + sign makes 
sense only for specific types of equations. In general, using \quad is 
considered good typography. (Imagine what would happen if the first term 
in one of the equations was very big).

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] alignment explanation

2010-03-15 Thread Mehdi Omidali

On 3/15/2010 8:10 PM, Aditya Mahajan wrote:

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

   


ConTeXt does not support that directly, but you can fake it.

\def\NRtag{\global\let\doalignNC\dodoalignNC\doalignNRtag}%

\def\doalignNRtag[#1]%
   {#1\crcr}

\starttext
\placeformula
\startformula
\startalign[n=3]
\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]
\NC   \NC = w^2 \NC + u^2   \NRtag[\text{(by \in{Equation}[eq:2])}]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:2]
\NC   \NC   \NC + v^2 + r^2 \NR[eq:3]
\NC   \NC = v^2 \NC + r^2   \NR[eq:4]
\stopalign
\stopformula
\stoptext

ConTeXt does support that (see above); but aligning at the + sign makes
sense only for specific types of equations. In general, using \quad is
considered good typography. (Imagine what would happen if the first term
in one of the equations was very big).

Aditya
   
Thank you. It is perfect now. I think this solution deserve appearing in 
your MyWay manual. In fact, it deserves to be supported directly in MKIV.

Mehdi
___
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] alignment explanation

2010-03-15 Thread Aditya Mahajan

On Mon, 15 Mar 2010, Mehdi Omidali wrote:

Thank you. It is perfect now. I think this solution deserve appearing in your 
MyWay manual. In fact, it deserves to be supported directly in MKIV.


I'll add it to the MyWay. MkIV will support it when we eventually get down 
to an overhaul of display math.


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
___


[NTG-context] alignment explanation

2010-03-14 Thread Mehdi Omidali

Hi,
Finally, after reading source code of math-ali.mkiv, I found the best 
way to typeset my multiline equation as follows


\starttext
\placeformula

\startformula

\startalign[n=3]

\NC x^2 + y^2 \NC = z^2 \NC \NR[eq:1]

\NC\NC = w^2 \NC + u^2\NC \text{(by \in{Equation}[eq:2])} \cr

\NC\NC + v^2 + r^2 \NR[eq:2]

\NC\NC\NC + v^2 + r^2 \NR[eq:3]

\NC\NC = v^2\NC + r^2 \NR[eq:4]

\stopalign

\stopformula
\stoptext


but I don't know what is going on here. Exactly, eq:2 and eq:3 has the 
same output but they can not be interchanged. Can someone explain this code?

MO


___
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] Alignment in tables

2009-08-14 Thread Curiouslearn
Can someone please tell me why the following does not center the text in the
first row?
Thanks in advance.


\setupTABLE[row][1][align={middle}]
\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]

\bTABLE
\bTR
\bTD {\bf Concept} \eTD
\bTD {\bf Definition} \eTD
\eTR
\bTR
\bTD {\bf Closure} of a set $ E \subset M $ ($ \text{cl}(E) $) \eTD
\bTD \hskip 1em $ \text{cl}(E) = \cap\{ F : E \subset F, F \text{ is
closed} \}$ \eTD
\eTR
\bTR
\bTD $ x $ is a {\bf contact point} or {\bf accumulation point} of $
E $ if \eTD
\bTD \hskip 1em $ \forall \varepsilon  0, B_{\varepsilon}(x) \cap E
\neq \emptyset $ \eTD
\eTR
\eTABLE
___
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] Alignment in tables

2009-08-14 Thread Wolfgang Schuster


Am 14.08.2009 um 14:55 schrieb Curiouslearn:

Can someone please tell me why the following does not center the  
text in the first row?

Thanks in advance.

\setupTABLE[row][1][align={middle}]
\setupTABLE[column][1][width=2.5in,align={lohi}]



This setup overwrites the previous one, write them in reverse order  
and it will work.


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] Alignment in tables

2009-08-14 Thread Curiouslearn
 Can someone please tell me why the following does not center the text in
 the first row?
 Thanks in advance.

 \setupTABLE[row][1][align={middle}]
 \setupTABLE[column][1][width=2.5in,align={lohi}]



 This setup overwrites the previous one, write them in reverse order and it
 will work.

 Wolfgang


I tried

\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]
\setupTABLE[row][1][align={middle}]

But that does not work either.

Thanks for any help.
___
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] Alignment in tables

2009-08-14 Thread Wolfgang Schuster


Am 14.08.2009 um 15:04 schrieb Curiouslearn:


I tried

\setupTABLE[column][1][width=2.5in,align={lohi}]
\setupTABLE[column][2][width=3in,align={lohi}]
\setupTABLE[row][1][align={middle}]

But that does not work either.


weird but this works

\setupTABLE[row][first][align=middle,style=bold]

and you can now write

\bTR
\bTD Concept \eTD
\bTD Definition \eTD
\eTR

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] Alignment in tables

2009-08-14 Thread Curiouslearn
Yes, that worked great. After looking at your solution, I vaguely remember
that this had happened before. For the first row, first has worked 1 did
not. It was so long back that I had forgotten about it.

Thanks for the solution.

On Fri, Aug 14, 2009 at 9:15 AM, Wolfgang Schuster 
schuster.wolfg...@googlemail.com wrote:


 Am 14.08.2009 um 15:04 schrieb Curiouslearn:

  I tried

 \setupTABLE[column][1][width=2.5in,align={lohi}]
 \setupTABLE[column][2][width=3in,align={lohi}]
 \setupTABLE[row][1][align={middle}]

 But that does not work either.


 weird but this works

 \setupTABLE[row][first][align=middle,style=bold]

 and you can now write

\bTR
\bTD Concept \eTD
\bTD Definition \eTD
\eTR


 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

 ___

___
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] Alignment of Itemize

2008-05-15 Thread Olivier Guéry
On Thu, May 15, 2008 at 8:42 AM, Wolfgang Schuster
[EMAIL PROTECTED] wrote:
 On Wed, May 14, 2008 at 10:36 PM,  [EMAIL PROTECTED] wrote:

 I have put this in my source file:

 \startitemize[R][4*broad,stopper=---]

 \startitemize[R,4*broad][stopper=---]

 And in the output the m rule (---) was overlapped by the roman
 numeral. By the way I would like to align the roman numeral to the
 right more or less like this (it is difficult to do in text format)

 I --- blablablablablablabla
II --- blablablablablablabla
   III --- blablablablablablabla
   IV --- blablablablablablabla

 V --- blablablablablablabla
VI --- blablablablablablabla
   VII --- blablablablablablabla

 VIII ---  blablablablablablabla

 Thank you very much for your help

 \starttext
 \startitemize[R,fit][itemalign=flushright,stopper={ --- }]
 \dorecurse{8}{\item blablabla}
 \stopitemize
 \stoptext


Damned :o) Is there something ConTeXt can't do ?

Cheers,
Olivier.

-- 
[Message tapé sur un clavier Bépo : http://www.clavier-dvorak.org ]
Olivier [EMAIL PROTECTED] http://nemolivier.blogspot.com
___
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] Alignment of Itemize

2008-05-15 Thread Wolfgang Schuster
On Wed, May 14, 2008 at 10:36 PM,  [EMAIL PROTECTED] wrote:

 I have put this in my source file:

 \startitemize[R][4*broad,stopper=---]

\startitemize[R,4*broad][stopper=---]

 And in the output the m rule (---) was overlapped by the roman
 numeral. By the way I would like to align the roman numeral to the
 right more or less like this (it is difficult to do in text format)

 I --- blablablablablablabla
II --- blablablablablablabla
   III --- blablablablablablabla
   IV --- blablablablablablabla

 V --- blablablablablablabla
VI --- blablablablablablabla
   VII --- blablablablablablabla

 VIII ---  blablablablablablabla

 Thank you very much for your help

\starttext
\startitemize[R,fit][itemalign=flushright,stopper={ --- }]
\dorecurse{8}{\item blablabla}
\stopitemize
\stoptext

 Armando

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
___


[NTG-context] Alignment of Itemize

2008-05-14 Thread cidadaum

I have put this in my source file:

\startitemize[R][4*broad,stopper=---]

And in the output the m rule (---) was overlapped by the roman  
numeral. By the way I would like to align the roman numeral to the  
right more or less like this (it is difficult to do in text format)

 I --- blablablablablablabla
II --- blablablablablablabla
   III --- blablablablablablabla
   IV --- blablablablablablabla
VIII ---  blablablablablablabla

Thank you very much for your help

Armando
___
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] alignment

2006-07-10 Thread Hans Hagen
Hans van der Meer wrote:
 Question:� Why does this gives an error
 \midaligned{%
 \starttabulate[|r|c|l|]
 \NC abc \NC : \NC PQR \NC\NR
 \NC def \NC : \NC XYZ \NC\NR
 \stoptabulate
 }
 ! Missing } inserted.
 inserted text
 � � � � � � � � }
 to be read again
 � � � � � � � � �� \vskip
 \whitespace ...\parskip \zeropoint \relax \vskip
 � � � � � � � � � � � � � � � � � � � � � � � � � \parskip \fi
 \dofinalstarttabulate ...efloat \else \whitespace
 � � � � � � � � � � � � � � � � � � � � � � � � � \getvalue {\??tt 
 \currentt...
 to be read again
 � � � � � � � � �� \NC
 l.22 \NC
 � � � � � abc \NC : \NC PQR \NC\NR

 Without the \midaligned the tabulate works out ok.

this obscure tex message means that you do something v in h mode or vise 
versa

\midaligned{\vbox{...}}

will work

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


[NTG-context] alignment

2006-07-06 Thread Hans van der Meer
Question:  Why does this gives an error	\midaligned{%	\starttabulate[|r|c|l|]	\NC abc \NC : \NC PQR \NC\NR	\NC def \NC : \NC XYZ \NC\NR	\stoptabulate	}! Missing } inserted.inserted text                 }to be read again                    \vskip \whitespace ...\parskip \zeropoint \relax \vskip                                                   \parskip \fi \dofinalstarttabulate ...efloat \else \whitespace                                                   \getvalue {\??tt \currentt...to be read again                    \NC l.22 	\NC          abc \NC : \NC PQR \NC\NRWithout the \midaligned the tabulate works out ok.Hans van der Meer ___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] alignment problems of units in table

2006-04-13 Thread Wolfgang
Hello

I get the units always left aligned in my table while the rest gets the 
correct alignement. What do I do wrong?

\starttable[|l|r|r|r|r|r|]
\HL
\NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR
\NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC 
\Kilo \Gram \Per \Cubic \Meter \LR
\HL
\NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR
\NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR
\NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR
\NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR
\NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR
\NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR
\NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR
\NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR
\NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR
\NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR
\HL
\NC \NC \NC \NC \NC average \NC 421.3 \SR
\HL
\stoptable

Thanks
Wolfgang

  texexec : TeXExec 5.4.3 - ConTeXt / PRAGMA ADE 1997-2005
  texutil : TeXUtil 9.0.0 - ConTeXt / PRAGMA ADE 1992-2004
  tex : pdfeTeX, 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded for
mat=cont-en 2006.3.23)  13 APR 2006 11:44
  context : ver: 2006.02.15 17:41
  cont-en : ver: 2006.02.15 17:41  fmt: 2006.3.23  mes: english

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


Re: [NTG-context] alignment problems of units in table

2006-04-13 Thread Hans Hagen
Wolfgang wrote:
 Hello

 I get the units always left aligned in my table while the rest gets the 
 correct alignement. What do I do wrong?

 \starttable[|l|r|r|r|r|r|]
 \HL
 \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR
 \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC 
 \Kilo \Gram \Per \Cubic \Meter \LR
 \HL
 \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR
 \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR
 \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR
 \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR
 \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR
 \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR
 \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR
 \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR
 \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR
 \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR
 \HL
 \NC \NC \NC \NC \NC average \NC 421.3 \SR
 \HL
 \stoptable
   
units act upon signals that they insert in the text, in this case (no 
quantity given) you need to start the unit sequence using \Unit

\NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC 
\Unit \Gram \NC
\Unit \Kilo \Gram \Per \Cubic \Meter \LR

needs wikifying 

-
  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


Re: [NTG-context] alignment problems of units in table

2006-04-13 Thread Wolfgang
Hello,

thanks a lot! I will have a look at the wiki and try to add this (will 
be my first addition).

Wolfgang

Hans Hagen schrieb:
 Wolfgang wrote:
 Hello

 I get the units always left aligned in my table while the rest gets the 
 correct alignement. What do I do wrong?

 \starttable[|l|r|r|r|r|r|]
 \HL
 \NC sample \NC length \NC width \NC height \NC dry weight \NC density \FR
 \NC \NC \Milli \Meter \NC \Milli \Meter \NC \Milli \Meter \NC \Gram \NC 
 \Kilo \Gram \Per \Cubic \Meter \LR
 \HL
 \NC H905\_T1 \NC 99.9 \NC 97.2 \NC 11.3\NC 43.44 \NC 395.8 \AR
 \NC H905\_T2 \NC 100.0 \NC 96.8 \NC 10.9\NC 41.95 \NC 397.6 \AR
 \NC H905\_T3 \NC 99.9 \NC 96.7 \NC 10.9\NC 41.47 \NC 393.8 \AR
 \NC H905\_T4 \NC 99.9 \NC 96.9 \NC 10.9\NC 41.56 \NC 393.9 \AR
 \NC H905\_T5 \NC 99.9 \NC 97.0 \NC 11.0\NC 42.34 \NC 397.2 \AR
 \NC H905\_L1 \NC 148.3 \NC 49.3 \NC 10.8\NC 32.11 \NC 406.7 \AR
 \NC H905\_L2 \NC 147.9 \NC 49.2 \NC 11.0\NC 32.44 \NC 405.3 \AR
 \NC H905\_L3 \NC 147.4 \NC 49.1 \NC 10.6\NC 33.62 \NC 438.3 \AR
 \NC H905\_L4 \NC 148.1 \NC 49.1 \NC 10.6\NC 32.05 \NC 415.8 \AR
 \NC H905\_L5 \NC 147.9 \NC 49.3 \NC 10.5\NC 33.16 \NC 433.1 \LR
 \HL
 \NC \NC \NC \NC \NC average \NC 421.3 \SR
 \HL
 \stoptable
   
 units act upon signals that they insert in the text, in this case (no 
 quantity given) you need to start the unit sequence using \Unit
 
 \NC \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter \NC \Unit \Milli \Meter 
 \NC \Unit \Gram \NC
 \Unit \Kilo \Gram \Per \Cubic \Meter \LR
 
 needs wikifying 
 
 -
   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


[NTG-context] alignment

2006-02-17 Thread Hans van der Meer
There is something I do not understand with alignment.
My idea was to put a small text in the middle of the line.
The minimal example below does center he first but not the second  
alignment.
Is this intentionale or an unforseen interaction between alignment  
and framed?

\starttext
\startalignment[middle]
middle? yes!
\stopalignment
\startalignment[middle]
\framed{middle? no!}
\stopalignment
\stoptext

yours sincerely,
dr. H. van der Meer



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


Re: [NTG-context] alignment

2006-02-17 Thread Taco Hoekwater
Hans van der Meer wrote:
 There is something I do not understand with alignment.
 My idea was to put a small text in the middle of the line.
 The minimal example below does center he first but not the second  
 alignment.
 Is this intentionale or an unforseen interaction between alignment  
 and framed?

It is a somewhat unexpected side-effect of \framed being a \hbox.
Try this:

  \startalignment[middle]
\leavevmode\framed{middle? no!}
  \stopalignment


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


  1   2   >