Re: [NTG-context] hypertarget and hyperlink in ConTeXt?

2019-08-31 Thread Jon Wong
Hi all,

I’m having trouble getting \textreference to show up.

MWE:

\starttext

\textreference[bleh]{\bf Ref One}.

\page

\textreference[blah]{\bf Ref Two}.

\at[bleh].

\at[blah].

\stoptext


Regards
Jon


> On Aug 28, 2019, at 7:40 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> Any way to do hypertarget and hyperlink in ConTeXt?
> 
> From https://www.contextgarden.net/Command/textreference: 
>  I see that the name of 
> the anchor is also the displayed text (“houses”).
> 
> Regards
> Jon
> 

___
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] tikz problem with fontsize

2019-08-31 Thread Hans Hagen

On 8/31/2019 9:44 PM, Martin Althoff wrote:

Hello all, I am trying to set the fontsize in a tikz image and that is failing. 
Strangely
at the \node line with : ! Undefined control sequence.

As the MWE stands now, it will fail. The now commented line works.

main context file: 
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
current version: 2019.08.24 22:42

The fontsize statement work in kTikz.

What to do? Are there other ways to change font size in the Context TikZ?

Thanks for any input!

Martin


\usemodule[tikz]
\starttext

\starttikzpicture

\tikzstyle{label}=[minimum size=30mm,line
width=2mm,draw=blue!50,align=center,font=\fontsize{60}{60}\selectfont]
%\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center]

\node[label]  at  (1,1)  {88} ;
\stoptikzpicture
\stoptext

just use context font commands, like

\tikzstyle{label}=[minimum size=30mm,line 
width=2mm,draw=blue!50,align=center,

font=\bfx]

but i think you can also do more, like

\tikzstyle{label}=[minimum size=30mm,line 
width=2mm,draw=blue!50,align=center,

font=\bfx\red\setstrut]

and such

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] tikz problem with fontsize

2019-08-31 Thread Martin Althoff
Hello all, I am trying to set the fontsize in a tikz image and that is failing. 
Strangely
at the \node line with : ! Undefined control sequence.

As the MWE stands now, it will fail. The now commented line works.

main context file: 
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
current version: 2019.08.24 22:42

The fontsize statement work in kTikz.

What to do? Are there other ways to change font size in the Context TikZ?

Thanks for any input!

Martin


\usemodule[tikz]
\starttext

\starttikzpicture

\tikzstyle{label}=[minimum size=30mm,line
width=2mm,draw=blue!50,align=center,font=\fontsize{60}{60}\selectfont]
%\tikzstyle{label}=[minimum size=30mm,line width=2mm,draw=blue!50,align=center]

\node[label]  at  (1,1)  {88} ;
\stoptikzpicture
\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] My own marks

2019-08-31 Thread Jon Wong
Hi all,

Sorry, I corrected my MWE. As you can see, \currentitemnumber seems strange 
when used for \marking inside a nested itemize.

MWE:

\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]

\setuppagenumbering[location=footer]

\starttext

\startitemize[a]

\item
  \startitemize[n]
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \stopitemize

\item
  \startitemize[n]
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \stopitemize

\item
  \startitemize[n]
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \item \marking[M]{\currentitemnumber} \input{knuth}
  \item \marking[M]{\currentitemnumber} \input{zapf}
  \stopitemize

\stopitemize

\stoptext


Regards
Jon


> On Aug 31, 2019, at 9:28 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> It seems that \currentitemnumber won’t work for \marking if inside a nested 
> itemize?
> 
> MWE:
> 
> \definemarking[M]
> 
> \startsetups S
>  default=(\getmarking[M])~
>  first=(\getmarking[M][first])~
>  last=(\getmarking[M][last])~
>  previous=(\getmarking[M][previous])~
>  both=(\getmarking[M][both])~
>  all=(\getmarking[M][all])~
>  current=(\getmarking[M][current])
> \stopsetups
> 
> \setupheadertexts[text]
>  [\setups{S}][]
>  [\setups{S}][]
> 
> \setuppagenumbering[location=footer]
> 
> \starttext
> 
> \startitemize[n]
> 
> \item
>  \startitemize[a]
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{zapf}
>  \stopitemize
> 
> \item
>  \startitemize[a]
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
>  \item \marking{\currentitemnumber} [\currentitemnumber] \input{zapf}
>  \stopitemize
> 
> \stopitemize
> 
> \stoptext
> 
> 
> Regards
> Jon
> 
> 
>> On Aug 31, 2019, at 8:46 PM, Jon Wong  wrote:
>> 
>> Hi all,
>> 
>> How does \marking really work? Can’t seem to get \currentitemnumber into it.
>> 
>> MWE:
>> 
>> \definemarking[M]
>> 
>> \startsetups S
>> \getmarking[M]
>> \stopsetups
>> 
>> \setupheadertexts[\setups{S}][][][\setups{S}]
>> 
>> \starttext
>> 
>> \startitemize[n]
>> 
>> \item First item
>> \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
>> \page
>> 
>> \item Second item
>> \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
>> \page
>> 
>> \item Third item
>> \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
>> 
>> \stopitemize
>> 
>> \stoptext
>> 
>> Regards
>> Jon
>> 
> 

___
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] My own marks

2019-08-31 Thread Jon Wong
Hi all,

It seems that \currentitemnumber won’t work for \marking if inside a nested 
itemize?

MWE:

\definemarking[M]

\startsetups S
  default=(\getmarking[M])~
  first=(\getmarking[M][first])~
  last=(\getmarking[M][last])~
  previous=(\getmarking[M][previous])~
  both=(\getmarking[M][both])~
  all=(\getmarking[M][all])~
  current=(\getmarking[M][current])
\stopsetups

\setupheadertexts[text]
  [\setups{S}][]
  [\setups{S}][]

\setuppagenumbering[location=footer]

\starttext

\startitemize[n]

\item
  \startitemize[a]
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{zapf}
  \stopitemize

\item
  \startitemize[a]
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{knuth}
  \item \marking{\currentitemnumber} [\currentitemnumber] \input{zapf}
  \stopitemize

\stopitemize

\stoptext


Regards
Jon


> On Aug 31, 2019, at 8:46 PM, Jon Wong  wrote:
> 
> Hi all,
> 
> How does \marking really work? Can’t seem to get \currentitemnumber into it.
> 
> MWE:
> 
> \definemarking[M]
> 
> \startsetups S
>  \getmarking[M]
> \stopsetups
> 
> \setupheadertexts[\setups{S}][][][\setups{S}]
> 
> \starttext
> 
> \startitemize[n]
> 
>  \item First item
>  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
>  \page
> 
>  \item Second item
>  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
>  \page
> 
>  \item Third item
>  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
> 
> \stopitemize
> 
> \stoptext
> 
> Regards
> Jon
> 

___
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] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi Wolfgang!

Sadly, it still didn’t work:

\startsetups[headertext]
  \startframed[frame=off,align=flushright,width=fit]
\setuplocalinterlinespace[12pt]
\the\baselineskip\\
abc
  \stopframed
\stopsetups

\setupheadertexts[\directsetup{headertext}]

\starttext

\setupinterlinespace[12pt]

{
\setuplocalinterlinespace[24pt]

\input{knuth}

\page

\input{knuth}

\page

\input{knuth}

}

\stoptext


Regards
Jon


> On Aug 31, 2019, at 9:05 PM, Wolfgang Schuster 
>  wrote:
> 
> Jon Wong schrieb am 31.08.2019 um 14:59:
>> Hi,
>> 
>> Yikes! Erm…
> For a local change of the interlinespace in the document use the 
> \setuplocalinterlinespace 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
___


Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Wolfgang Schuster

Jon Wong schrieb am 31.08.2019 um 14:59:

Hi,

Yikes! Erm…
For a local change of the interlinespace in the document use the 
\setuplocalinterlinespace 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
___


Re: [NTG-context] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi,

Yikes! Erm…

MWE:

\startsetups[headertext]
  \startframed[frame=off,align=flushright,width=fit]
{
\setupinterlinespace[12pt]
\the\baselineskip\\
abc

}
  \stopframed
\stopsetups

\setupheadertexts[\directsetup{headertext}]

\starttext

{
\setupinterlinespace[24pt]

\input{knuth}

\page

\input{knuth}

\page

\input{knuth}

}

\stoptext

Only the last page is immune to the double-spacing.

Regards
Jon


> On Aug 31, 2019, at 8:54 PM, Wolfgang Schuster 
>  wrote:
> 
> Jon Wong schrieb am 31.08.2019 um 09:25:
>> Hi all,
>> 
>> Can I limit \setupinterlinespace to body text only?
> 
> 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] setupinterlinespace affects headers and footers

2019-08-31 Thread Wolfgang Schuster

Jon Wong schrieb am 31.08.2019 um 09:25:

Hi all,

Can I limit \setupinterlinespace to body text only?


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
___


[NTG-context] My own marks

2019-08-31 Thread Jon Wong
Hi all,

How does \marking really work? Can’t seem to get \currentitemnumber into it.

MWE:

\definemarking[M]

\startsetups S
  \getmarking[M]
\stopsetups

\setupheadertexts[\setups{S}][][][\setups{S}]

\starttext

\startitemize[n]

  \item First item
  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
  \page

  \item Second item
  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]
  \page

  \item Third item
  \marking[M]{Really? \currentitemnumber}[\currentitemnumber]

\stopitemize

\stoptext

Regards
Jon

___
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] line numbering disappears in custom column layout

2019-08-31 Thread Damien Thiriet
Hi,



Line numbering disappears when called inside custom columns defined with
defineparagraph.

This works fine

\defineparagraphs[Colonne][n=2]
\starttext
\startlinenumbering 
\input knuth
\stoplinenumbering

\input knuth
\stoptext

Whereas this does not work as expected

\defineparagraphs[Colonne][n=2]
\starttext
\startColonne
\startlinenumbering 
\input knuth
\stoplinenumbering
\Colonne

\input knuth
\stopColonne
\stoptext

Playing with \setuplinenumbering (location=text and so on) didn't help.
Maybe this has to do with setting margins in defineparagraphs, but I
can't figure out how to do it.

Greetings,


Damien Thiriet 

PS: This is exactly the unanswered question I asked a few days ago on TeX SE 
https://tex.stackexchange.com/questions/505238/context-line-numbering-disappears-in-custom-column-layout

- End forwarded message -
___
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] setupinterlinespace affects headers and footers

2019-08-31 Thread Jon Wong
Hi all,

Can I limit \setupinterlinespace to body text only?

Regards
Jon

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