[NTG-context] Shift tabulate into margin and center

2020-05-04 Thread Tim Steenvoorden
Hi all,

I’ve a page layout with a broad left margin. I’d like to create frames in the 
text which utilize the margin and the typearea with centered contents. I 
managed to do this with the following code, but I wonder if there is an easier 
and more elegant way to do this in ConTeXt, especially the centering of the 
tabulation.

Cheers,
Tim


\startproduct test-tabulate

\setuppapersize[B5]
\setuplayout
[backspace=13pc,
leftmargin=8pc,
leftmargindistance=1pc,
width=24.5pc,
rightmargin=0pc,
%%
topspace=4pc,
header=0pc,
height=49pc,
footer=0pc,
bottomdistance=2.5pc,
bottom=1pc,
location=middle]

\define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)}

\section{First}
\subsection{First first}

\input tufte

\setupnarrower[left=-9pc]
\startnarrower[left]
\startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth]
The whole frame should be shifted to the left.
As the text, this table should centered in the box.
\placefigure[none,force]{}
\starttabulate[|l|r|]
\NC 0 \NC 1 \NR
\NC 2 \NC 3 \NR
\NC 4 \NC 5 \NR
\NC 6 \NC 7 \NR
\NC 8 \NC 9 \NR
\stoptabulate
\startformula
E=mc^2
\stopformula
\stopframedtext
\stopnarrower

\input tufte

\stopproduct



test-tabulate.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Shift tabulate into margin and center

2020-05-05 Thread Tim Steenvoorden
Hi all,

Apparently the solution does not work with multiple blocks on the same page. 
Table floats get ill aligned and frame rules are drawn double (see attachment). 
How should I fix this?

Cheers,
Tim
On 4 May 2020, 20:42 +0200, Tim Steenvoorden , 
wrote:
> Hi all,
>
> I’ve a page layout with a broad left margin. I’d like to create frames in the 
> text which utilize the margin and the typearea with centered contents. I 
> managed to do this with the following code, but I wonder if there is an 
> easier and more elegant way to do this in ConTeXt, especially the centering 
> of the tabulation.
>
> Cheers,
> Tim
>
>
> \startproduct test-tabulate
>
> \setuppapersize[B5]
> \setuplayout
> [backspace=13pc,
> leftmargin=8pc,
> leftmargindistance=1pc,
> width=24.5pc,
> rightmargin=0pc,
> %%
> topspace=4pc,
> header=0pc,
> height=49pc,
> footer=0pc,
> bottomdistance=2.5pc,
> bottom=1pc,
> location=middle]
>
> \define\fullwidth{\dimexpr(\leftmargindistance+\leftmarginwidth+\textwidth)}
>
> \section{First}
> \subsection{First first}
>
> \input tufte
>
> \setupnarrower[left=-9pc]
> \startnarrower[left]
> \startframedtext[frame=off,topframe=on,bottomframe=on,align=middle,width=\fullwidth]
> The whole frame should be shifted to the left.
> As the text, this table should centered in the box.
> \placefigure[none,force]{}
> \starttabulate[|l|r|]
> \NC 0 \NC 1 \NR
> \NC 2 \NC 3 \NR
> \NC 4 \NC 5 \NR
> \NC 6 \NC 7 \NR
> \NC 8 \NC 9 \NR
> \stoptabulate
> \startformula
> E=mc^2
> \stopformula
> \stopframedtext
> \stopnarrower
>
> \input tufte
>
> \stopproduct
>


test-tabulate.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Same counter for figures as theorems

2020-08-11 Thread Tim Steenvoorden
Hi all,

I’ve a text where chapters are numbered 1, 2, 3, … and sections 1.1, 1.2, 1.3, …
Now I’d like all elements (figures, tables, examples, definitions, theorems, …) 
to be numbered consecutively prefixed by the chapter and section number, so 
1.1.1, 1.1.2, 1.2.1, ...

I’ve managed to change figure/table captions to do this by:

\setupcaptions[
  way=bysection,
  prefixsegments=chapter:section,
]

And I’ve setup my enumerations by:

\setupenumerations[
  way=bysection,
  prefix=yes,
  prefixsegments=chapter:section,
]

But how do I use the same counter for figures, tables, and all enumerations?
Trying to share a counter with:

\definecounter[object][
  way=bysection,
  prefix=yes,
  prefixsegments=chapter:section,
]
\setupenumerations[
  counter=object,
]
\setupcaptions[
  counter=object,
]

Results in enumerations numbered 1, 2, 3, ... instead of 1.1.1, 1.1.2, 1.1.3, … 
And figures and tables are still numbered in the default way.

Cheers,
Tim
___
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] Same counter for figures as theorems

2020-08-13 Thread Tim Steenvoorden
Hi all,

Anybody some pointers?

Cheers,
Tim
On 11 Aug 2020, 11:41 +0200, Tim Steenvoorden , 
wrote:
> Hi all,
>
> I’ve a text where chapters are numbered 1, 2, 3, … and sections 1.1, 1.2, 
> 1.3, …
> Now I’d like all elements (figures, tables, examples, definitions, theorems, 
> …) to be numbered consecutively prefixed by the chapter and section number, 
> so 1.1.1, 1.1.2, 1.2.1, ...
>
> I’ve managed to change figure/table captions to do this by:
>
> \setupcaptions[
>   way=bysection,
>   prefixsegments=chapter:section,
> ]
>
> And I’ve setup my enumerations by:
>
> \setupenumerations[
>   way=bysection,
>   prefix=yes,
>   prefixsegments=chapter:section,
> ]
>
> But how do I use the same counter for figures, tables, and all enumerations?
> Trying to share a counter with:
>
> \definecounter[object][
>   way=bysection,
>   prefix=yes,
>   prefixsegments=chapter:section,
> ]
> \setupenumerations[
>   counter=object,
> ]
> \setupcaptions[
>   counter=object,
> ]
>
> Results in enumerations numbered 1, 2, 3, ... instead of 1.1.1, 1.1.2, 1.1.3, 
> … And figures and tables are still numbered in the default way.
>
> Cheers,
> Tim
___
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] Same counter for figures as theorems

2020-08-14 Thread Tim Steenvoorden
Hi Taco,

Thanks for your example and the pointer to make a MWE.

Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and the 
first figure _also_ 1.1.1, which I’d like to be 1.1.2.

This time, you’ll find the code and the output pdf in the attachment!

Cheers,
Tim


P.S. I’m on Context MacTeX/TeXLive 2020:

mtx-context     | ConTeXt Process Management 1.03
mtx-context     |
mtx-context     | main context file: 
/usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2020.03.10 14:44
mtx-context     | main context file: 
/usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkxl
mtx-context     | current version: 2020.03.10 14:44
On 13 Aug 2020, 13:12 +0200, Taco Hoekwater , wrote:
>
>
> > On 13 Aug 2020, at 10:06, Tim Steenvoorden  
> > wrote:
> >
> > Hi all,
> >
> > Anybody some pointers?
>
> Next time, prepare a minimal (non)working example. Because the attachment 
> works for me.
>
> Best wishes,
> Taco
>
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___


test-counters.tex
Description: Binary data


test-counters.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Same counter for figures as theorems

2020-08-18 Thread Tim Steenvoorden
Hi Taco,

Thanks! This works for me.

It indeed seems at least inconsistent. Also, using
\definecounter[enumeration][object]
instead of
\setupenumeration[enumeration][counter=object]
Numbers figures correctly but forgets the object counter in enumerations, it 
numbers 1.1., 1.1., 1.1., ...

Hans: is this indeed the intended way it should work?

Cheers,
Tim


T.J. Steenvoorden, MSc

PhD Candidate | Radboud University Nijmegen
Faculty of Science | Department of Software Science
Mercator 1 Building | Room 01.08
Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands
+31 24 365 22 91 | t...@cs.ru.nl
On 14 Aug 2020, 23:12 +0200, Taco Hoekwater , wrote:
> Hi Tim,
>
> I misunderstood your goal, sorry. Proposed setup below.
>
>
> But first, what I think is a bug in ConTeXt:
>
> Neither
> \setupcaptions
> [counter=object]
> nor
> \setupcaption
> [figure]
> [counter=object]
>
> work. the caption always falls back to the ‘current float counter’; figure or 
> table or …
>
> For the singular explicit \setupcaption[figure], I think this is a bug.
>
>
> The solution I found is to blatantly redefine the ‘figure’ counter, that 
> works!
>
>
> Second, it seems that \setupenumerations does not modify the counter of an 
> explicit defined enumeration, so you need to use the explicit 
> \setupenumeration[enumeration] form. This may be intentional, I do not know 
> for sure.
>
>
>
> Here is what I believe is the required code for your desired effect 
> (re-indented for Hans' style):
>
> \setupcaptions
> [way=bysection,
> prefixsegments=chapter:section]
>
> \setupenumerations
> [prefix=yes,
> prefixsegments=chapter:section]
>
> \defineenumeration
> [enumeration]
> [text=Enumeration]
>
> \definecounter
> [object]
> [way=bysection]
>
> \setupenumeration
> [enumeration]
> [counter=object]
>
> \definecounter
> [figure]
> [object]
>
> Best wishes,
> Taco
>
>
> > On 14 Aug 2020, at 09:49, Tim Steenvoorden  
> > wrote:
> >
> > Hi Taco,
> >
> > Thanks for your example and the pointer to make a MWE.
> >
> > Sadly, it doesn’t work for me. It numbers the first enumeration 1.1.1 and 
> > the first figure _also_ 1.1.1, which I’d like to be 1.1.2.
> >
> > This time, you’ll find the code and the output pdf in the attachment!
> >
> > Cheers,
> > Tim
> >
> >
> > P.S. I’m on Context MacTeX/TeXLive 2020:
> >
> > mtx-context | ConTeXt Process Management 1.03
> > mtx-context |
> > mtx-context | main context file: 
> > /usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkiv
> > mtx-context | current version: 2020.03.10 14:44
> > mtx-context | main context file: 
> > /usr/local/texlive/2020basic/texmf-dist/tex/context/base/mkiv/context.mkxl
> > mtx-context | current version: 2020.03.10 14:44
> > On 13 Aug 2020, 13:12 +0200, Taco Hoekwater , wrote:
> > >
> > >
> > > > On 13 Aug 2020, at 10:06, Tim Steenvoorden  
> > > > wrote:
> > > >
> > > > Hi all,
> > > >
> > > > Anybody some pointers?
> > >
> > > Next time, prepare a minimal (non)working example. Because the attachment 
> > > works for me.
> > >
> > > Best wishes,
> > > Taco
> > >
> > >
> > >
> > >
> > >
> > > ___
> > > If your question is of interest to others as well, please add an entry to 
> > > the Wiki!
> > >
> > > maillist : ntg-context@ntg.nl / 
> > > http://www.ntg.nl/mailman/listinfo/ntg-context
> > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net
> > > archive : https://bitbucket.org/phg/context-mirror/commits/
> > > wiki : http://contextgarden.net
> > > ___
> > ___
> > 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
> > ___
>
> Taco Hoekwater
> Elvenkind BV
>
>
>
>
> 

[NTG-context] Unexpected emergency stop

2018-02-09 Thread Tim Steenvoorden
Dear all,

After some time I’m back to ConTeXt and I dug up some old macros. I used to
define a \see macro to automatically insert labels like “chapter”, "figure"
etc. in front of a reference based on the structure of the label. Below
you'll find its definition.

It worked in MKIV about two years ago, nevertheless, now ConTeXt hangs when
placing punctuation after the command. I.e. TeX hangs with an emergency
stop (“*" on the terminal) after all files have been processed (after
cont-yes.mkiv is closed).

What am I doing wrong that such a thing happens?

I’m on macOS 10.13.3 with minimals beta 2018.02.09 00:04.

Cheers,
Tim


––

\starttext

\definemacro\see[#1:#2]
  {\dosee{#1}{#2}}

\starttexdefinition dosee #1#2
  \doifdefinedelse{in#1}
{\getvalue{in#1}[#1:#2]}
{\writestatus{references}{reference format in#1 not defined}
 \in[#1:#2]}
\stoptexdefinition % #3 is optional and gobbled by \in

\definereferenceformat[inchp]
  [text=\word{\labeltext{chapter}}]

\setuplabeltext[en]
  [chapter=Chapter~]

\chapter[chp:first]{First}

Works:
\see[chp:first]

Hangs:
\see[chp:first],

\stoptext

––
-- 

T.J. Steenvoorden, MSc

PhD Candidate | Radboud University Nijmegen
Faculty of Science | Department of Software Science
Mercator 1 Building | Room 01.08
Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands
+31 24 365 22 91 | t.steenvoor...@cs.ru.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Tim Steenvoorden
Thanks Otared! Works like a charm!

Out of curiosity, could you explain the mechanics behind this? I know it is
a commonly used trick in TeX macro definitions, but I don’t know how it
changes TeX’s understanding of the tokes it parses.

Cheers,
Tim

Op vr 9 feb. 2018 om 20:50 schreef Otared Kavian :

> Hi Tim,
>
> Welcome back to ConTeXt!
> When one defines a command, in particular when using the brackets […], it
> is wise to put a percent sign at the end of the line if one changes the
> line on which the macro is defined.
> In your case, saying
>
> \definemacro\see[#1:#2]%
> {\dosee{#1}{#2}}
>
> suppresses the problem you are reporting (at least here on my machine
> running MacOS 10.13.3 and the latest beta as yours).
>
> Best regards: OK
>
> On 9 Feb 2018, at 19:03, Tim Steenvoorden 
> wrote:
>
> Dear all,
>
> After some time I’m back to ConTeXt and I dug up some old macros. I used
> to define a \see macro to automatically insert labels like “chapter”,
> "figure" etc. in front of a reference based on the structure of the label.
> Below you'll find its definition.
>
> It worked in MKIV about two years ago, nevertheless, now ConTeXt hangs
> when placing punctuation after the command. I.e. TeX hangs with an
> emergency stop (“*" on the terminal) after all files have been processed
> (after cont-yes.mkiv is closed).
>
> What am I doing wrong that such a thing happens?
>
> I’m on macOS 10.13.3 with minimals beta 2018.02.09 00:04.
>
> Cheers,
> Tim
>
>
> ––
>
> \starttext
>
> \definemacro\see[#1:#2]
>   {\dosee{#1}{#2}}
>
> \starttexdefinition dosee #1#2
>   \doifdefinedelse{in#1}
> {\getvalue{in#1}[#1:#2]}
> {\writestatus{references}{reference format in#1 not defined}
>  \in[#1:#2]}
> \stoptexdefinition % #3 is optional and gobbled by \in
>
> \definereferenceformat[inchp]
>   [text=\word{\labeltext{chapter}}]
>
> \setuplabeltext[en]
>   [chapter=Chapter~]
>
> \chapter[chp:first]{First}
>
> Works:
> \see[chp:first]
>
> Hangs:
> \see[chp:first],
>
> \stoptext
>
> ––
> --
> 
> T.J. Steenvoorden, MSc
>
> PhD Candidate | Radboud University Nijmegen
> Faculty of Science | Department of Software Science
> Mercator 1 Building | Room 01.08
> Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands
> +31 24 365 22 91 | t.steenvoor...@cs.ru.nl
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
>
>
> ___
> 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
>
> ___

-- 

T.J. Steenvoorden, MSc

PhD Candidate | Radboud University Nijmegen
Faculty of Science | Department of Software Science
Mercator 1 Building | Room 01.08
Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands
+31 24 365 22 91 | t.steenvoor...@cs.ru.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

Re: [NTG-context] Unexpected emergency stop

2018-02-10 Thread Tim Steenvoorden
Thanks Wolfgang, that’s a clear and easy explanation!

Cheers,
Tim
Op za 10 feb. 2018 om 13:46 schreef Wolfgang Schuster <
schuster.wolfg...@gmail.com>

>
> Tim Steenvoorden 
> 10. Februar 2018 um 12:44
>
> Thanks Otared! Works like a charm!
>
> Out of curiosity, could you explain the mechanics behind this? I know it
> is a commonly used trick in TeX macro definitions, but I don’t know how it
> changes TeX’s understanding of the tokes it parses.
>
>
> When you create a new commands like this
>
> \def\mycommand[#1]{...}
>
> the brackets are delimiters for the argument of the command, i.e. when TeX
> sees
> \mycommand it looks for [ and grabs everything intill ] as as argument.
> When you
> out now a space (or start a new line) after ] in your definition of the
> command, e.g.
>
> \def\mycommand[#1] {...}
>
> TeX looks now for “] ” (right bracket followed by a space) as delimiter for
> the argument of your command.
>
>
> 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
>
> ___

-- 

T.J. Steenvoorden, MSc

PhD Candidate | Radboud University Nijmegen
Faculty of Science | Department of Software Science
Mercator 1 Building | Room 01.08
Toernooiveld 212 | 6525 EC | Nijmegen | The Netherlands
+31 24 365 22 91 | t.steenvoor...@cs.ru.nl
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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

[NTG-context] Pagenumbering

2013-06-05 Thread Tim Steenvoorden
I doing something wrong is this a bug? 

\starttext
\setupcounter[userpage][10]
\dorecurse{3}{
\input tufte
\page
}
\stoptext



current version: 2013.05.28 00:36
=> Doesn't start at page 10 but at page 1

Cheers,
Tim


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

2013-06-05 Thread Tim Steenvoorden
Oh god, stupid me.  

Thanks, Marco!

Cheers,
Tim


Op woensdag 5 juni 2013, om 12:54 heeft Marco Patzer het volgende geschreven:

> On 2013–06–05 Tim Steenvoorden wrote:
>  
> > I doing something wrong is this a bug?  
> >  
> > \starttext
> > \setupcounter[userpage][10]
>  
>  
>  
> \setcounter [userpage] [10]
>  
>  
> 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
> ___



___
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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Hi all! 

This worked in MkII but doesn't in MkIV. Did something changed?

Cheers,
Tim



\starttext
\input knuth
\placefigure[left]{}{\externalfigure[figurename]}
\input knuth
\placefigure[inner]{}{\externalfigure[figurename]}
\input knuth
\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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
No. I want to place the figure to the left of the text if it is on a
odd page and to the right of the text if it is on a even page. Thus
the same effect "left" and "right" have as keywords, but depending on
the page it is on.

Cheers,
Tim

2013/8/4 Marco Patzer :
> On 2013–08–04 Tim Steenvoorden wrote:
>
>> \starttext
>> \input knuth
>> \placefigure[left]{}{\externalfigure[figurename]}
>> \input knuth
>> \placefigure[inner]{}{\externalfigure[figurename]}
>
> What do you want to do? Place it in the margin?
>
>   \placefigure[inleft]{}{\externalfigure[figurename]}
>
> 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
> ___
___
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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
fixed someday?

2013/8/4 Wolfgang Schuster :
>
> Am 04.08.2013 um 22:40 schrieb Marco Patzer :
>
>> On 2013–08–04 Tim Steenvoorden wrote:
>>
>>> \starttext
>>> \input knuth
>>> \placefigure[left]{}{\externalfigure[figurename]}
>>> \input knuth
>>> \placefigure[inner]{}{\externalfigure[figurename]}
>>
>> What do you want to do? Place it in the margin?
>>
>>  \placefigure[inleft]{}{\externalfigure[figurename]}
>
> With the “inner” and “outer” keywords context uses
> the “left” and “right” locations dependent on the page.
>
> The feature doesn’t work in MkIV because two commands
> are processed in the wrong order.
>
> 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] Placefigure inner/outer

2013-08-04 Thread Tim Steenvoorden
Thanks Wolfgang!

2013/8/4 Wolfgang Schuster :
>
> Am 04.08.2013 um 22:53 schrieb Tim Steenvoorden :
>
>> Pitty. I used it a lot in a project I'm porting to MkIV. Will it be
>> fixed someday?
>
> It depends on Hans, I’ll send him a mail about the problem.
>
> 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
___

[NTG-context] Part numbers

2013-08-11 Thread Tim Steenvoorden
Hi all,

I have a document with parts and chapters. I'd like to number the chapters 
continuously through the whole document. Figured out this has to be done with 
\definestructureresetset instead of the resetnumber=no option in \setuphead. 
But I don't want to include the number of the part in chapters and sections. 
How do I do that?

Cheers,
Tim



% Used to be: \setuphead[part][resetnumber=no]
\defineresetset[default][1,0][1]% do not reset chapters after parts, reset 
anything else

\starttext

\part{ONE}
\chapter{one}
\chapter{two}

\part{TWO}
\chapter{three}
\chapter{four}

\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] Part numbers

2013-08-12 Thread Tim Steenvoorden
Thanks Pablo! Works like a charm.

Cheers,
Tim

On 11 augustus 2013 at 19:02:40, Pablo Rodríguez (oi...@web.de) wrote:

On 08/11/2013 03:08 PM, Tim Steenvoorden wrote:  
> Hi all,  
>  
> I have a document with parts and chapters. I'd like to number the  
> chapters continuously through the whole document. Figured out this has  
> to be done with \definestructureresetset instead of the resetnumber=no  
> option in \setuphead. But I don't want to include the number of the part  
> in chapters and sections. How do I do that?  

Hi Tim,  

I think this is what you need:  

\definestructureresetset[default][1,0,1][1]  
\setuphead[chapter][sectionsegments=chapter]  
\setuphead[section][sectionsegments=chapter:section]  
\starttext  
\completecontent  
\dorecurse{5}{\part{Part}  
\dorecurse{2}{\chapter{Chapter}  
\dorecurse{2}{\section{Section  
\stoptext  

I hope it helps,  


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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context  
webpage : http://www.pragma-ade.nl / http://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] outer floats on doublesided pages UNSOLVED

2013-09-17 Thread Tim Steenvoorden
Hi Robert,

As far as I know this is not (yet) possible in MkIV. Depends on Hans
if he adds it. See the conversation "Placefigure inner/outer" from
August. (http://thread.gmane.org/gmane.comp.tex.context/83680/focus=83684)

@Hans/Wolfgang: any idea it will be added in the (near) future?

Cheers,
Tim

2013/9/14 R. Ermers :
> Hi Contexters,
>
> Does anyone know whether it is possible in mkiv to position figures 
> protruding in the outer margin?
> In mkii it used to work.
>
> It seems to me that this simple feature does not work in mkiv. See minimal 
> example below. Is this a bug?
>
> Regards,
>
> Robert
>
>
> Op 10 sep. 2013, om 22:05 heeft R. Ermers het volgende geschreven:
>
>> Hi,
>>
>> Does anyone know if positioning figures  protruding into the outer margin 
>> can be done in mkiv?
>>
>> Regards,
>>
>> Robert
>>
>>
>>> Hi Jörg and Marco,
>>>
>>> Thanks for your replies.
>>>
>>> I have tried the chemistry textbook examples too, especially vignette seems 
>>> to do what I want. I noticed you used mkii at the time, but I have mkiv 
>>> now. Should I return to mkii if I want to obtain this?
>>>
>>> Regards,
>>>
>>> Robert
>>>
>>>
>>> Op 10 sep. 2013, om 15:18 heeft Jörg Hagmann het volgende geschreven:
>>>
 Maybe what I did helps: see "Figures III" on
 http://wiki.contextgarden.net/Biochemistry_textbook.  Although I used
 mkII at the time.

 Cheers, Jörg

 R. Ermers writes:

> Hi Marco,
>
> Thank you very much indeed for your reply. This topic apparently does not 
> interest many people.
>
> In your suggestion the figures are put in the outer margin in a vertical 
> row below one another close to the top of the page, and not near the 
> position in the text.
>
> I want them positioned close to the place in the text which should flow 
> around them. I have seen examples of this made by Context. This can be 
> obtained by specifying default=left, or default=right, only I need the 
> figures to protrude into the (outer) margin. This for some reason does 
> not work under mkiv.
>
> I still have some time, but my deadline is approaching.
>
> Thanks again!
>
> Kind regards,
>
> Robert
>
>
> Op 10 sep. 2013, om 09:59 heeft Marco Patzer het volgende geschreven:
>
>> On 2013–09–10 R. Ermers wrote:
>>
>>> I have problems with the placement of floats. I need them to be
>>> placed in the outer edge of the text, but Context puts them in the
>>> middle of the page. The outer, inner, outeredge, inneredge,
>>> commands do not work. Right and left do work.
>>
>> You probably confused edge and margin. By default the edge has zero
>> width and has to be enabled using \setuplayout.
>>
>>> Preferably the criterium option should also work
>>
>> \setupexternalfigures
>> [location=default]
>>
>> \setuppagenumbering
>> [alternative=doublesided]
>>
>> \definefloat
>> [marginfigure]
>> [marginfigures]
>> [figure]
>>
>> \setupfloat
>> [marginfigure]
>> [default=margin,
>> criterium=\marginwidth]
>>
>> \setupcaption
>> [marginfigure]
>> [number=no]
>>
>> \showframe
>> \starttext
>> \dorecurse{9}{%%
>> \input knuth
>> \startplacemarginfigure
>>   \externalfigure [cow] [width=\recurselevel cm]
>> \stopplacemarginfigure}
>> \stoptext
>>
>> 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
 ___
>>>
>>> ___
>>> 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] outer floats on doublesided pages UNSOLVED

2013-09-18 Thread Tim Steenvoorden
Thanks Hans!Cheers,Tim On 17 september 2013 at 17:29:31, Hans Hagen (pra...@wxs.nl) wrote: On 9/14/2013 7:25 AM, R. Ermers wrote:
> Hi Contexters,
>
> Does anyone know whether it is possible in mkiv to position figures protruding in the outer margin?
> In mkii it used to work

there is a check missing .. fixed in next beta


-
   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
___
 ___
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] outer floats on doublesided pages UNSOLVED

2013-10-01 Thread Tim Steenvoorden
Hi Hans,Is it possible to fix the "inouter" and "ininner" directives too? "inright" and "inleft" work as expected.Cheers,Tim On 18 september 2013 at 10:51:29, Tim Steenvoorden (tim.steenvoor...@gmail.com) wrote: Thanks Hans!Cheers,Tim On 17 september 2013 at 17:29:31, Hans Hagen (pra...@wxs.nl) wrote: On 9/14/2013 7:25 AM, R. Ermers wrote:
> Hi Contexters,
>
> Does anyone know whether it is possible in mkiv to position figures protruding in the outer margin?
> In mkii it used to work

there is a check missing .. fixed in next beta


-
   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
___
  ___
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] Fwd: Re: outer floats on doublesided pages UNSOLVED

2013-10-02 Thread Tim Steenvoorden
Thanks Hans. I used "ininner" instead of "innermargin" and "inouter" instead of "outermargin" as keys.Is there a difference between "inright" and "rightmargin"?Cheers,Tim On 1 oktober 2013 at 22:35:29, Hans Hagen (pra...@wxs.nl) wrote: btw ... uppercasing in the subject triggers a delay in response


 Original Message 
Subject: Re: [NTG-context] outer floats on doublesided pages UNSOLVED
Date: Tue, 01 Oct 2013 22:34:02 +0200
From: Hans Hagen 
To: Tim Steenvoorden 

On 10/1/2013 11:46 AM, Tim Steenvoorden wrote:
> Hi Hans,
>
> Is it possible to fix the "inouter" and "ininner" directives too?
> "inright" and "inleft" work as expected.

afaik

\setuppagenumbering
   [alternative=doublesided]

\setuplayout
   [backspace=5cm,
width=middle]

\starttext

 \dorecurse{4}{
 \placefigure[left]   {left}
{\framed[height=1cm,width=4cm]{}} test
 \placefigure[right]
{right}{\framed[height=1cm,width=4cm]{}} test
 \placefigure[inner]
{inner}{\framed[height=1cm,width=4cm]{}} test
 \placefigure[outer]
{outer}{\framed[height=1cm,width=4cm]{}} test
 \placefigure[leftmargin] {left}
{\framed[height=1cm,width=4cm]{}} test

\placefigure[rightmargin]{right}{\framed[height=1cm,width=4cm]{}} test

\placefigure[innermargin]{inner}{\framed[height=1cm,width=4cm]{}} test

\placefigure[outermargin]{outer}{\framed[height=1cm,width=4cm]{}} test
 \page
 }

\stoptext


works ok

-
   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
___
 ___
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] Position of MetaPost graphics

2011-04-03 Thread Tim Steenvoorden
Dear list,

I'm trying to make some fancy chapter headers. With MetaPost I drew a
wave, which I'd like to place in the margin. I've read details.pdf and
metafun.pdf, but I don't manage to get the positioning right. The wave
should begin where the bottomframe ends and move on to the page
border. Also, the graphic is placed in the page background layer, but
nevertheless the text after the the graphic is shifted down.

\startuniqueMPgraphic{wave}
numeric periods, width;
path wave;
periods := 3 + 1/4;
width   := periods * 2*pi;
wave:= origin for x=0 step 0.1 until width:
 -- (x,x*sin(x))
   endfor;
pickup pencircle scaled 1pt;
draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width));
\stopuniqueMPgraphic

\definelayer[decorations][position=yes,option=test,location=r]
\setupbackgrounds[page][background=decorations]
\defineoverlay[wave][\uniqueMPgraphic{wave}]

\starttext

{\ss\bfc A chapter title}
\blank[small]
\framed[frame=off,bottomframe=on,width=broad,rulethickness=1pt]
 {\ss\bfx \date \hfill Author Name}
\setlayer[decorations]{\framed[background=wave,frame=off,width=\cutspace,height=2\lineheight]{}}

\input knuth

\stoptext

What am I doing wrong? Is it a better idea to draw the bottomframe in
MetaPost too? How do I take care of positioning in that case? Absolute
positioning is not an option, because the length of the chapterheads
can be two lines. It should also work on other paper sizes (A5 in
particular).

Kind regards,
Tim Steenvoorden
___
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] Position of MetaPost graphics

2011-04-03 Thread Tim Steenvoorden
Thanks Peter! You are right it is easier to draw both the wave and the
line in Metapost. And the dx=-\cutspace is just what I needed for left
pages!

I striped the frames out of the code and placed just the graphics in
the layer with a reuseMPgraphic. Also, I pulled out the definition of
the wave into a MPinclusions. I have to do LoadPageState in each
graphic though.

%\showframe
\setuppapersize[A5][A5]
\setuppagenumbering[alternative=doublesided]

\startMPinclusions
numeric periods, width;
path wave;
periods := 3 + 1/4;
width   := periods * 2*pi;
wave:= origin for x=0 step 0.1 until width:
 .. (x,x*sin(x))
   endfor;
\stopMPinclusions

\startreusableMPgraphic{rightwave}
LoadPageState;
pickup pencircle scaled 1pt;
draw origin -- (TextWidth,0) -- wave xscaled (CutSpace/width) yscaled
(LineHeight/width) shifted (TextWidth,0);
%setbounds currentpicture to unitsquare xscaled (TextWidth+CutSpace);
\stopreusableMPgraphic

\startreusableMPgraphic{leftwave}
LoadPageState;
pickup pencircle scaled 1pt;
draw reverse wave xscaled (-1*CutSpace/width) yscaled
(LineHeight/width) -- (TextWidth,0);
\stopreusableMPgraphic

\definelayer[decorations][position=yes,option=test]
\setupbackgrounds[page][background=decorations]

\starttext

{\ss\bfc A chapter title}
\blank[small]
{\ss\bfx \date \hfill Author Name}
\setlayer[decorations][location=r]{\reuseMPgraphic{rightwave}}

\input knuth

\page

{\ss\bfc A very long chapter title on two or more lines}
\blank[small]
{\ss\bfx \date \hfill Author Name}
\setlayer[decorations][location=r,dx=-\cutspace]{\reuseMPgraphic{leftwave}}

\input knuth

\stoptext

Just one problem is left. The graphic occupies space in the text layer
as if the location was set to rb. If you place it with the position=no
option, it is properly placed in the background and it doesn't disturb
the text. Is this a bug or a feature?

I tried to play a bit with the bounding boxes, but I think I don't
understand them that well.

Regards,
Tim


2011/4/3 Hans Hagen :
> On 1-4-2011 11:39, Tim Steenvoorden wrote:
>>
>> Dear list,
>>
>> I'm trying to make some fancy chapter headers. With MetaPost I drew a
>> wave, which I'd like to place in the margin. I've read details.pdf and
>> metafun.pdf, but I don't manage to get the positioning right. The wave
>> should begin where the bottomframe ends and move on to the page
>> border. Also, the graphic is placed in the page background layer, but
>> nevertheless the text after the the graphic is shifted down.
>>
>> \startuniqueMPgraphic{wave}
>> numeric periods, width;
>> path wave;
>> periods := 3 + 1/4;
>> width   := periods * 2*pi;
>> wave    := origin for x=0 step 0.1 until width:
>>              -- (x,x*sin(x))
>>            endfor;
>> pickup pencircle scaled 1pt;
>> draw wave xscaled (OverlayWidth/width) yscaled (OverlayHeight/(2*width));
>> \stopuniqueMPgraphic
>>
>> \definelayer[decorations][position=yes,option=test,location=r]
>> \setupbackgrounds[page][background=decorations]
>> \defineoverlay[wave][\uniqueMPgraphic{wave}]
>>
>> \starttext
>>
>> {\ss\bfc A chapter title}
>> \blank[small]
>> \framed[frame=off,bottomframe=on,width=broad,rulethickness=1pt]
>>  {\ss\bfx \date \hfill Author Name}
>>
>> \setlayer[decorations]{\framed[background=wave,frame=off,width=\cutspace,height=2\lineheight]{}}
>>
>> \input knuth
>>
>> \stoptext
>>
>> What am I doing wrong? Is it a better idea to draw the bottomframe in
>> MetaPost too? How do I take care of positioning in that case? Absolute
>> positioning is not an option, because the length of the chapterheads
>> can be two lines. It should also work on other paper sizes (A5 in
>> particular).
>
> you probably need to set the boundingbopx of your picture to something
> reasonable (you can use the OverlayWidth and OverlayHeight variables)
>
> -
>                                          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] Position of MetaPost graphics

2011-04-06 Thread Tim Steenvoorden
Thanks for your tips Wolfgang! I switched to a solution as on the
wiki, using overlays and frames in place of layers. After setting the
boudingboxes right it works! I have to increase the \objectoffset
though, because otherwise the graphic is chopped of:

\setuppapersize[A5][A5]
\setuppagenumbering[alternative=doublesided]

\def\objectoffset{\cutspace}

\startMPinclusions
numeric CutSpace, wavePeriods, waveWidth;
path unitwave;
CutSpace:= \the\cutspace;
wavePeriods := 3 + 1/4;
waveSize:= wavePeriods * 2*pi;
unitwave:= (origin for x=0 step 0.1 until waveSize:
 .. (x,x*sin(x))
   endfor) scaled (1/waveSize);
\stopMPinclusions

\startuniqueMPgraphic{rightwave}
pickup pencircle scaled 1pt;
draw origin -- (OverlayWidth,0) -- unitwave xscaled CutSpace yscaled
(LineHeight/2) shifted (OverlayWidth,0);
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic

\startuniqueMPgraphic{leftwave}
pickup pencircle scaled 1pt;
draw reverse unitwave xscaled (-1*CutSpace) yscaled (LineHeight/2) --
(OverlayWidth,0);
setbounds currentpicture to boundingbox OverlayBox;
\stopuniqueMPgraphic

\defineoverlay[rightwave]
  [\uniqueMPgraphic{rightwave}]
\defineoverlay[leftwave]
  [\uniqueMPgraphic{leftwave}]

\setuphead[chapter]
  [style=\ss\bfc,
   page=yes,
   after={\PlaceDecoration\blank[big]}]

\define\PlaceDecoration
  {\framed
 [width=broad,
  frame=off,
  offset=0pt,
  background=\doifoddpageelse{rightwave}{leftwave}]
 {\ss\bfx \date \hfill Author Name}}

\starttext

\chapter{A very long chapter title on two or more lines}

\input knuth

\chapter{A very long chapter title on two or more lines}

\input knuth

\stoptext

The \startchapter[] solution on the wiki is very neat, but it doesn't
work with MKII. Get errors with MKIV to... (Using TeXLive 2010) But
I'll use \setvariables.

Thanks for all your help!
Tim


2011/4/4 Wolfgang Schuster :
> Your problem is that you use {\ss\bfc …} etc. to place the title
> rather than contexts \title command where you can define your own
> command. With such a command you can put all text in a frame with
> your graphic a background.
>
> - http://wiki.contextgarden.net/Generate_Authorlist_from_Head_Content
> - 
> http://wiki.contextgarden.net/Titles#A_complex_graphical_element_under_the_chapter_title
>
> 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] \definecolor and TikZ

2012-05-20 Thread Tim Steenvoorden
Hi again,

The bug about \definecolor and TikZ is back again in the latest beta.
The minimal example in the attachment worked in version 2012.05.14
(both MKII and MKIV).

Regards,
Tim


tikzcolor.tex
Description: TeX 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] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
Hi Hans,

Thanks, your solution works well. Do I have to put it in every
document when using TikZ? I'm afraid it still doesn't work out of the
box in 2012.05.24.

Regards,
Tim


2012/5/20 Hans Hagen :
> On 20-5-2012 12:59, Tim Steenvoorden wrote:
>>
>> Hi again,
>>
>> The bug about \definecolor and TikZ is back again in the latest beta.
>> The minimal example in the attachment worked in version 2012.05.14
>> (both MKII and MKIV).
>
>
> A solution was posted a few mails ago.
>
> Anyhow, as it seems to be a persistent issue, I've added a helper to mkii
> and mkiv so that the tikz can do:
>
> \ifdefined\pgf@context@registercolor
>    \let\pgfutil@registercolor\pgf@context@registercolor
> \fi
>
>
> Hans
>
> -
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Small integral signes with Palatino

2012-05-24 Thread Tim Steenvoorden
Hi all,

I'm still struggling with the same issue in 2012.05.24. Anyone?

Cheers,
Tim


2012/5/20 Tim Steenvoorden :
> Dear list,
>
> Have some problems with the latest beta. I get small integral signs
> when using Palatino math (see minimal example in attachment). Any
> clou?
>
> ConTeXt version: 2012.05.18 23:50, Mac OS X 10.6.8
>
> Regards,
> Tim
___
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] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
Thanks Marco! Hope it will be in TeXLive 2012.

Cheers,
Tim


2012/5/24 Marco :
> On 2012-05-24 Tim Steenvoorden  wrote:
>
>> Thanks, your solution works well. Do I have to put it in every
>> document when using TikZ? I'm afraid it still doesn't work out of the
>> box in 2012.05.24.
>
> It's already fixed upstream. I don't know how and when the changes
> propagate into context standalone.
>
> http://pgf.cvs.sourceforge.net/viewvc/pgf/pgf/generic/pgf/utilities/pgfutil-context.def?revision=1.32&view=markup
>
>
> 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
> ___
___
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] \definecolor and TikZ

2012-05-24 Thread Tim Steenvoorden
Updated again, worked like a charm!

Cheers,
Tim


2012/5/24 Marco :
> On 2012-05-24 Marco  wrote:
>
>> It's already fixed upstream. I don't know how and when the changes
>> propagate into context standalone.
>
> Apparently you have to update with ./first-setup.sh --modules=all,
> instead of plain ./first-setup.sh to apply the changes. I thought
> the choice is remembered and the modules are updated automatically
> with ./first-setup.sh
>
> However, it works for me with a current 2012.05.24 09:57
>
>
> 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
> ___
___
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] Citations in a frontmatter fail when placed in a component

2012-05-24 Thread Tim Steenvoorden
Also doesn't work with sections between \cite and \placepublications.
When specifying alternatives like "apa" you get no publicationlist and
with "ams" even "[[error 2]]"'s with \cite. You can play a little bit
with the example in the attachment.

It would be nice to have a working version in TeXLive 2012. I would be
glad to help with any of these problems, but my LuaTeX knowledge is
very low I'm afraid.

Cheers,
Tim


2012/5/24 Marco :
> On 2012-05-20 Marco  wrote:
>
>> It works with beta 2011.09.27 20:05 and fails with
>> beta 2011.10.01 10:48.
>
> Still failing with a current 2012.05.24 09:57
>
> 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
> ___


bib.tex
Description: TeX document


sample.bib
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Small integral signes with Palatino

2012-05-24 Thread Tim Steenvoorden
Sorry, can't help with that. The first ConTeXt beta I tested for
TeXLive 2012 is 2012.05.14. Before that I used 2011.05.18 from TeXLive
2011.

Tim


2012/5/24 Aditya Mahajan :
> On Thu, 24 May 2012, luigi scarso wrote:
>
>> On Thu, May 24, 2012 at 10:05 AM, Tim Steenvoorden
>>  wrote:
>>>
>>> Hi all,
>>>
>>> I'm still struggling with the same issue in 2012.05.24. Anyone?
>>>
>>> Cheers,
>>> Tim
>>
>> Yes ---  sorry, I can only confirm your issue.
>
>
> Any idea when this was introduced (or if this bug was always present)? I
> think that adding a patch to px-math.cfg to scale DisplayOperatorMinHeight
> should fix it; but I don't have the time to look into this right now.
>
> 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
> ___
___
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] Math fonts in TeXLive 2012

2012-05-27 Thread Tim Steenvoorden
Hi all,

I'm testing some math fonts with ConTeXt in the current TeXLive
pretest (2012.05.25 18:21). I'm not sure which are supposed to work
with MKIV, but I found typescripts for the following ones in
type-imp-*.mkiv which are also included in TeXLive:

* Latin Modern
* Euler
* Asana
* Palatino (px)
* Times (tx)
* Utopia (mathdesign)
* Charter (mathdesign)
* Garamond (mathdesign)
* Antykwa Torunska
* Iwona
* Kurier
* Xits

Compiling the example in the attachment I found than Euler and all
Mathdesign derivatives are not working.

Does anyone know if Millenial will be supported by TeXLive 2012? Also
MKII supported Fourier (for Utopia and Schoolbook). What is the status
of this font in MKIV?

Cheers,
Tim


P.S. Euler is working in the 2012.05.26 16:40 Standalone version.


fonts.tex
Description: TeX 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] Small integral signes with Palatino

2012-05-27 Thread Tim Steenvoorden
Still get a small integral sign in the latest beta (2012.05.26 16:40).
Times works perfectly. Am I doing something wrong here?

\definetypeface[palatino][rm][serif][palatino]
\definetypeface[palatino][mm][math][palatino]

\setupbodyfont[palatino]

\starttext

\startformula
\int_0^\infty \frac{1}{x} {\rm d} x
\stopformula

\stoptext

Cheers,
Tim


2012/5/25 Hans Hagen :
> On 25-5-2012 00:43, Aditya Mahajan wrote:
>
>> It's more complicated because tx-fonts behaves correctly.
>
>
> indeed, and I always thought that these fonts were similar in setup
>
>
> Hans
>
> -
>                                          Hans Hagen | PRAGMA ADE
>              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>    tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
>                                             | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki     : http://contextgarden.net
> ___
___
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] Math fonts in TeXLive 2012

2012-05-28 Thread Tim Steenvoorden
Hi Mojca and Khaled,

You're right about Kurier, I've overlooked it. Asana is also not
installed with Standalone.

I've always found it regrettable Fourier is not longer supported in
MKIV, so I hoped Utopia+Mathdesign would be a nice replacement. There
are typescripts for Mathdesign+{Utopia,Charter,Garamond}, but both the
roman font and the math font are not loaded.

Shouldn't we have to support the Type1 version of Euler in TeXLive if
the OTF version won't be included? I missed Fourier but maybe others
will mis Euler when they switch to MKIV.

Regards,
Tim


2012/5/28 Mojca Miklavec :
> Another weird observation: Kurier is not working at all.
> Plus, Asana-Math and Xits are not installed as part of ConTeXt scheme.
> Should I add them? (It's size is 0.5 + 1.5 MB while in tar.xz.)
>
> Hans, maybe you could add Tim's example into your testsuite (but each
> math font should be surrounded with \bgroup...\egroup or start/stop).
>
> Mojca
>
> ___
> 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] Small integral signes with Palatino

2012-05-29 Thread Tim Steenvoorden
The integral sign is now big enough, but spacing between the sign and
its bounds is too large... (In the px-font.)

Cheers,
Tim


2012/5/29 Herbert Voss :
>
> Steve Peter schrieb:
>>
>> On May 27, 2012, at 7:27 PM, Aditya Mahajan wrote:
>>
>>> BTW, what is the status of Pagella Math?
>>
>>  Nearly complete from what I hear.
>
> it is available from CTAN:
> http://CTAN.ORG/tex-archive/fonts/tex-gyre-math
>
> Herbert
>
>
> ___
> 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] Small integral signes with Palatino

2012-05-29 Thread Tim Steenvoorden
The same is true for other mathfonts discussed in the thread "Math
fonts in TeXLive 2012".

Cheers,
Tim


2012/5/29 Tim Steenvoorden :
> The integral sign is now big enough, but spacing between the sign and
> its bounds is too large... (In the px-font.)
>
> Cheers,
> Tim
>
>
> 2012/5/29 Herbert Voss :
>>
>> Steve Peter schrieb:
>>>
>>> On May 27, 2012, at 7:27 PM, Aditya Mahajan wrote:
>>>
>>>> BTW, what is the status of Pagella Math?
>>>
>>>  Nearly complete from what I hear.
>>
>> it is available from CTAN:
>> http://CTAN.ORG/tex-archive/fonts/tex-gyre-math
>>
>> Herbert
>>
>>
>> ___
>> 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] Math & other issues for TL 2012

2012-06-01 Thread Tim Steenvoorden
Hi Mojca,

This is the status with 2012.05.30 11:26:

[HIGH] The integral signs in PX-fonts now work correctly. Only the
distance between the integral sign and the bounds are to big.
[HIGH] TX, XITS, Antykwa and Iwona have the same problem. (It's OK in
Asana and Euler).
[MID] The Kurier-font is not working at all (math and text).
[MID] The Mathdesign fonts (Utopia, Charter and Garamond) are not
working at all (both math and text).
[LOW] Pagella-Math is in TeXLive now, but the typescript is commented
out in type-imp-texgyre.mkiv.

I didn't had much time to look at it, have a deadline for a paper.
Sorry about that.

Regards,
Tim


2012/6/1 Mojca Miklavec :
> Hello,
>
> With TL freeze that is probably going to happen tomorrow (plus a few
> days of grace period): what is the current state of problems with math
> fonts, and possibly any other issues (apart from the known crash on
> mipsel & armel)? Is there anything else that doesn't work in minimals,
> but should be high on priority list to fix?
>
> Mojca
> ___
> 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
> ___


fonts.tex
Description: TeX 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
___

[NTG-context] Primes far too high in Lucida Type1

2020-03-22 Thread Tim Steenvoorden
Hi all,

I’m trying to typeset a document using Lucida Type1 fonts. Primes are put way 
too high. Also, kerning with punctuation characters placed after a prime are 
too wide. This can be seen in attached rendering of below example.

 $e,\sigma \rightarrow e',\sigma’$

Is there a quick way to fix this? I don’t have access tot the OTF 
unfortunately. Running ConTeXt TeXlive 2019 on macOS 10.15.3.

Cheers,
Tim




context --version
mtx-context     | ConTeXt Process Management 1.02
mtx-context     |
mtx-context     | main context file: 
/usr/local/texlive/2019basic/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context     | current version: 2019.03.21 21:39


test.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Primes far too high in Lucida Type1

2020-03-22 Thread Tim Steenvoorden
P.S. Same thing happens with math placed on top of arrows, like here

 $e,\sigma \xrightarrow{i} e',\sigma’$

Like to fix that too.


Cheers,
Tim

On 22 Mar 2020, 12:10 +0100, Tim Steenvoorden , 
wrote:
> Hi all,
>
> I’m trying to typeset a document using Lucida Type1 fonts. Primes are put way 
> too high. Also, kerning with punctuation characters placed after a prime are 
> too wide. This can be seen in attached rendering of below example.
>
>  $e,\sigma \rightarrow e',\sigma’$
>
> Is there a quick way to fix this? I don’t have access tot the OTF 
> unfortunately. Running ConTeXt TeXlive 2019 on macOS 10.15.3.
>
> Cheers,
> Tim
>
>
> 
>
> context --version
> mtx-context     | ConTeXt Process Management 1.02
> mtx-context     |
> mtx-context     | main context file: 
> /usr/local/texlive/2019basic/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context     | current version: 2019.03.21 21:39


test.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Distance between table rows

2020-03-25 Thread Tim Steenvoorden
Hi all,

Trying to make my life a bit easier to add distances between tabulate rows. 
Found the \TB macro on the wiki. But why does below code _not_ add extra space 
when using the freshly defined \SR command below. So between the _second_ and 
_third_ row? Some TeX expansion thing going on here?

```
\define\SR
  {\NC\NR\TB[halfline]}

\starttabulate[|r|l|]
  \NC one   \NC two   \NC\NR
  \NC two   \NC three \SR
  \NC four  \NC five  \NC\NR
  \TB[halfline]
  \NC five  \NC six \NC\NR
\stoptabulate
```

Cheers,
Tim
___
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] Primes far too high in Lucida Type1

2020-03-25 Thread Tim Steenvoorden
Hi all,

Nobody a clue on this?

Cheers,
Tim

On 22 Mar 2020, 12:14 +0100, Tim Steenvoorden , 
wrote:
> P.S. Same thing happens with math placed on top of arrows, like here
>
>  $e,\sigma \xrightarrow{i} e',\sigma’$
>
> Like to fix that too.
>
>
> Cheers,
> Tim
>
> On 22 Mar 2020, 12:10 +0100, Tim Steenvoorden , 
> wrote:
> > Hi all,
> >
> > I’m trying to typeset a document using Lucida Type1 fonts. Primes are put 
> > way too high. Also, kerning with punctuation characters placed after a 
> > prime are too wide. This can be seen in attached rendering of below example.
> >
> >  $e,\sigma \rightarrow e',\sigma’$
> >
> > Is there a quick way to fix this? I don’t have access tot the OTF 
> > unfortunately. Running ConTeXt TeXlive 2019 on macOS 10.15.3.
> >
> > Cheers,
> > Tim
> >
> >
> > 
> >
> > context --version
> > mtx-context     | ConTeXt Process Management 1.02
> > mtx-context     |
> > mtx-context     | main context file: 
> > /usr/local/texlive/2019basic/texmf-dist/tex/context/base/mkiv/context.mkiv
> > mtx-context     | current version: 2019.03.21 21:39
___
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] Distance between table rows

2020-03-25 Thread Tim Steenvoorden
Could have known that :-O

Thanks Wolfgang for pointing that out!

Cheers,
Tim
On 25 Mar 2020, 14:36 +0100, Wolfgang Schuster 
, wrote:
> Tim Steenvoorden schrieb am 25.03.2020 um 10:31:
> > Hi all,
> >
> > Trying to make my life a bit easier to add distances between tabulate
> > rows. Found the \TB macro on the wiki. But why does below code _not_ add
> > extra space when using the freshly defined \SR command below. So between
> > the _second_ and _third_ row? Some TeX expansion thing going on here?
>
> No, the command already exists but is local to the tabulate environment
> and your custom command is just overwritten.
>
> 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] Primes far too high in Lucida Type1

2020-03-31 Thread Tim Steenvoorden
Hi Wolfgang,

That 's a pity indeed. I played around a bit and found a dirty hack
using catcodes. Maybe not the best solution, but it works for me.
Posting it here for future reference.

```
\define\textprime{'}
\makecharacteractive '
\define'{\lowerbox{0.3ex}\hbox{\math{\textprime}}}
```

Cheers,
Tim

Op zo 29 mrt. 2020 om 21:04 schreef Wolfgang Schuster
:
>
> Tim Steenvoorden schrieb am 22.03.2020 um 12:10:
> > Hi all,
> >
> > I’m trying to typeset a document using Lucida Type1 fonts. Primes are
> > put way too high. Also, kerning with punctuation characters placed after
> > a prime are too wide. This can be seen in attached rendering of below
> > example.
> >
> > $e,\sigma \rightarrow e',\sigma’$
> >
> > Is there a quick way to fix this? I don’t have access tot the OTF
> > unfortunately. Running ConTeXt TeXlive 2019 on macOS 10.15.3.
>
> I'm sorry for the bad news but without a patch for the font (which can
> probably applied with a goodies file) there is nothing which can be
> done. As the Type 1 version of the Lucida fonts had a few problems in
> the last few years with ConTeXt MkIV I don't think Hans has much
> interest to fix them again (especially when you can expect new problems
> in the future).
>
> The best way here is to use another font or spend the money for the
> OpenType version.
>
> 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] Fontfallbacks using typescripts

2020-04-04 Thread Tim Steenvoorden
Hi all,

I’d like to use Lucida (Type1) as my main font for text and math, but fallback 
on arrows from Pagella. Especially, I’d like to use the `\downzigzagarrow` 
which is not defined by Lucida.

Although direct lookup of the zigzag symbol in Pagella works, below typescripts 
do not seem to work. Can somebody give me a hint?

Cheers,
Tim

\startproduct test

\definefontfallback[pagellaarrows][texgyrepagella-math][arrows][check=yes,force=yes]
\definefontfallback[pagellaarrows][texgyrepagella-math][0x021AF][check=yes,force=yes]

\starttypescript[math][main]
\loadfontgoodies[lucida-typeone-math]
\definefontsynonym[MathRoman][lucidamath@lucida-math][fallbacks=pagellaarrows]
\stoptypescript

\starttypescript [main]
\definetypeface [main] [rm] [serif] [lucida] [default] [features=default]
\definetypeface [main] [ss] [sans] [lucida] [default] [features=default]
\definetypeface [main] [tt] [mono] [lucida] [default] [features=none]
\definetypeface [main] [hw] [handwriting] [lucida] [default] [features=default]
\definetypeface [main] [cg] [calligraphy] [lucida] [default] [features=default]
\definetypeface [main] [mm] [math] [main] [default]%[fallbacks=pagellaarrows]
\stoptypescript

\setupbodyfont[main,9pt]

$\downzigzagarrow,↯,\downarrow$

{\switchtobodyfont[pagella,10pt]↯}

\stopproduct

___
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] Geometric math symbols in Lucida OT

2020-04-11 Thread Tim Steenvoorden
Hi all,

I decided to switch to Lucida OpenType, but now I’ve another problem. In the 
Type1 variant, all geometric shapes (\square, \triangleright, 
\blacktriangleright, etc.) had the same size as math operators (\boxplus, 
\boxdot). This appears not to be the case any more in the OpenType variant, 
they are way too big! (See attachment.) Pagella and Latin Modern do this right.

Is this a font issue or a ConTeXt issue? Anything I can do about this without 
redefining every symbol I need by hand?

Cheers,
Tim


\startproduct test
\setupbodyfont[lucidaot,10pt]

$\square\boxtimes$

\stopproduct


test.pdf
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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