Re: [NTG-context] \goto links to figures are inactive

2013-02-03 Thread Alan Bowen
Thanks, Michael. But this runs into the problem about the placement of
location data that Wolfgang mentioned.

A.

On Sat, Feb 2, 2013 at 11:16 PM, Rogers, Michael K mrog...@emory.eduwrote:

  Hi Alan,

  Try something like this:

  \setupinteraction[state=start]

  \starttext
 \define[1]\MyCaptions{My caption is \quotation{#1}}
 %\define[1]\MyCaptions{} % gives empty caption
 \setupcaptions[command=\MyCaptions]
 \startplacefigure[reference=fig:cow.pdf,title=Figure
 A][here,page,force,nonumber]
 \externalfigure[cow.pdf][width=.5\textwidth]
 \stopplacefigure

  \page
 See \goto{that cow}[fig:cow.pdf]

  \stoptext


  Beware it changes all captions.  I suppose you might use setups if you
 need different kinds of captions.  You can also see from the first
 definition of \MyCaptions that the key 'command' was not intended to be
 used that way, which makes me wonder whether this will work for you or not.
  I hope it does.

  Michael


  On Feb 2, 2013, at 1:12 PM, Alan Bowen bowenala...@gmail.com
  wrote:

 Hi, Otared—

  I am using MKIV. Many thanks for the news about the changes to
 \placefigure and the sample alternative: that is very helpful and much
 appreciated.

  The only problem remaining is how to cancel the automatic
 titling/numbering. In

   \startplacefigure[reference=fig:cow.pdf,title=Figure
 A][here,page,force,nonumber]
 \externalfigure[cow.pdf][width=.5\textwidth]
 \stopplacefigure

  the output has two titles (“Figure 1” and “Figure A”).

  I have checked the wiki (which does not show this as a possibility) and
 experimented with “nonumber” and “number=no”, all without success.
 \setupcaptions[number=no] gets rid of “Figure 1” but while the links show
 properly, they do not actually work.

  Alan

 On Sat, Feb 2, 2013 at 11:16 AM, Otared Kavian ota...@gmail.com wrote:

 Hi Alan,

  I guess you are using mkiv, since in mkii your code seems to work here.
 Then, I think the way references to floats should be entered have changed
 and one should use a construction such as:

   \setupinteraction[state=start]

  \starttext
 \goto{Figure A}[fig:cow.pdf]

  Reference to Figure A on page \at[fig:cow.pdf]

  \goto{Table 1}[tab:Table01]

  \goto{Some text}[Text]

  \page
  \startplacefigure[reference=fig:cow.pdf,title=Figure
 A][here,page,force,nonumber]
 \externalfigure[cow.pdf][width=.5\textwidth]
 \stopplacefigure
 \page
 \startplacetable[reference=tab:Table01,title=Table 1][here,force,nonumber]
  {\starttabulate[| l | l |]
 \NC 1000
 \NC 2000
 \NC\NR
 \stoptabulate}
  \stopplacetable

 \page
 Some text\reference[Text]{}
 \stoptext

  which gives appropriate working links.
 There should be also a short version of \placefigure or \placetable, but
 I don't remember the correct syntax… Sorry!

  Best regards: OK

   On 2 févr. 2013, at 14:25, Alan Bowen bowenala...@gmail.com wrote:

   Sorry to keep pushing this—it is a problem for a journal that I
 publish.

  I have re-installed the ConTeXt standalone and the problem persists with

  \setupinteraction[state=start]

  \starttext
 \goto{Figure A}[fig:cow.pdf]

  Reference to Figure A on page \at[fig:cow.pdf]

  \goto{Table 1}[tab:Table01]

  \goto{Some text}[Text]

  \page
 \useexternalfigure[Graphic][cow.pdf][]
 \placefigure [here,page,force,nonumber]
 [fig:cow.pdf]
   {Figure A}
 {\externalfigure[cow.pdf][type=pdf,
 width=.5\textwidth]}
 \page
 \placetable [here,force,nonumber]
 [tab:Table01]
 {Table 1}
 {\starttabulate[| l | l |]
 \NC 1000
 \NC 2000
 \NC\NR
 \stoptabulate}

 \page
 Some text\reference[Text]{}
 \stoptext

  Only the last \goto works. Even the \at link fails, which is really
 discouraging.

  Alan



 On Thu, Jan 31, 2013 at 8:28 AM, Alan Bowen bowenala...@gmail.comwrote:

 The problem persists with the latest beta. Am I not encoding this
 properly?

  And in such cases, should one include a sample .pdf file as well?

  Alan


 On Wed, Jan 30, 2013 at 8:17 AM, Alan Bowen bowenala...@gmail.comwrote:

 The following compiles in the latest beta standalone but with dead
 links to the Figure:

  \setupinteraction[state=start]
 \starttext
 \goto{Figure A}[fig:Figure.pdf]

  \goto{Text A}[TextA]
 \page
 \useexternalfigure[Graphic][Figure.pdf][]
 \placefigure
 [here,page,force,nonumber]
 [fig:Figure.pdf]
   {Figure A}
 {\externalfigure[Figure.pdf][type=pdf,
 width=\textwidth]}

 \reference[TextA]{}
 \input knuth
 \stoptext

  Any suggestions?

  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

 ___




 ___
 If your 

Re: [NTG-context] \goto links to figures are inactive

2013-02-03 Thread Alan Bowen
Thanks, Aditya. The hack works nicely.

I will try my hand at defining a new float environment, given the
uncertainty of the timing of any fix in ConTeXt itself.

Alan

On Sat, Feb 2, 2013 at 11:48 PM, Aditya Mahajan adit...@umich.edu wrote:

 On Sat, 2 Feb 2013, Aditya Mahajan wrote:

  On Sat, 2 Feb 2013, Wolfgang Schuster wrote:

  The references/hyperlinks for floats don’t work when the float number is
 disabled because the necessary attribute for link isn’t set then.


 I would call this behavior a bug. After all, hyperlinks work correctly
 for unnumbered heads (\subject etc.)

 \setupinteraction[state=start]

 \starttext
 \subject[sub:one]{A subject}
 \startplacefigure
[
  reference=fig:cow.pdf,
  title={Figure A},
  location={here,nonumber},
]
\externalfigure[cow.pdf][**width=.5\textwidth]
 \stopplacefigure

 In \about[fig:cow.pdf], the hyperlink is not working
 In \about[sub:one], the hyperlink is working
 \stoptext


 A workaround (using a horrible hack):

 \defineconversion[gobble][\**gobbleoneargument]
 \setupcaption[figure][**numberconversion=gobble]
 \setuplabeltext[figure=]

 \startplacefigure
   [ ... location={here}, ...] % Do not add nonumber to location


 @Alan, if you need to disable numbering for a few figures, but want
 hyperlinks to work, you'll need to define a new float environment for those
 figures (and set the numberconversion and labeltext for that enironment).

 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
___

Re: [NTG-context] \goto links to figures are inactive

2013-02-03 Thread Hans Hagen

On 2/2/2013 2:25 PM, Alan Bowen wrote:

Sorry to keep pushing this—it is a problem for a journal that I publish.

I have re-installed the ConTeXt standalone and the problem persists with

\setupinteraction[state=start]

\starttext
\goto{Figure A}[fig:cow.pdf]

Reference to Figure A on page \at[fig:cow.pdf]

\goto{Table 1}[tab:Table01]

\goto{Some text}[Text]

\page
\useexternalfigure[Graphic][cow.pdf][]
\placefigure[here,page,force,nonumber]
[fig:cow.pdf]
{Figure A}
{\externalfigure[cow.pdf][type=pdf,
width=.5\textwidth]}
\page
\placetable[here,force,nonumber]
[tab:Table01]
{Table 1}
{\starttabulate[|l|l|]
\NC 1000
\NC 2000
\NC\NR
\stoptabulate}
\page
Some text\reference[Text]{}
\stoptext

Only the last \goto works. Even the \at link fails, which is really
discouraging.


You can play with this:

\def\floatcaptionattribute
  {\iflocation
%  \ifnofloatnumber
%  \else
   \ifnofloatcaption
   \else
 \ifinsidesplitfloat
\ifconditional\splitfloatfirstdone
\else
  attr \destinationattribute \currentfloatattribute
\fi
 \else
   attr \destinationattribute \currentfloatattribute
 \fi
   \fi
%  \fi
   \fi}

I have no time for testing right now so you need to check all odd cases 
before I change something.


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] Sans Serif Math Font

2013-02-03 Thread Mojca Miklavec
On Sun, Feb 3, 2013 at 2:44 AM, Troy Henderson wrote:
 What I don't know is how to properly switch to sans serif math
 globally/by default. The command \mathss gives upright instead of
 italic letters.


 \appendtoks \mathss \to \everymathematics

Except that it gives you upright letters instead of italic ones.

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
___


Re: [NTG-context] \goto links to figures are inactive

2013-02-03 Thread Otared Kavian
Hi Hans, 

After changing the definition of
\floatcaptionattribute
in the file
[/context-minimal]/tex/texmf-context/tex/context/base/strc-flt.mkvi
and remaking th eformats with
context --make --all
everything seems to work fine with the following example:
%%% begin goto-figure.tex
\starttext
\goto{Figure A}[fig:cow.pdf]

Reference to Figure A on page \at[fig:cow.pdf]

\goto{Table 1}[tab:Table01]

\goto{Some text}[Text]

\page
\startplacefigure[
reference=fig:cow.pdf,
title=Figure A,
location={here,page,force,nonumber},
]
\externalfigure[cow.pdf][width=.5\textwidth]
\stopplacefigure
\page
\startplacetable[
reference=tab:Table01,
title=Table 1,
location={here,force,nonumber},
]
{\starttabulate[|   l   |   l   |]
\NC 1000
\NC 2000
\NC\NR
\stoptabulate}
\stopplacetable
 
\page
Some text\reference[Text]{}
\page

\stoptext
%%% end goto-figure.tex

Best regards: OK

On 3 févr. 2013, at 15:29, Hans Hagen pra...@wxs.nl wrote:

 On 2/2/2013 2:25 PM, Alan Bowen wrote:
 Sorry to keep pushing this—it is a problem for a journal that I publish.
 
 I have re-installed the ConTeXt standalone and the problem persists with
 
 \setupinteraction[state=start]
 
 \starttext
 \goto{Figure A}[fig:cow.pdf]
 
 Reference to Figure A on page \at[fig:cow.pdf]
 
 \goto{Table 1}[tab:Table01]
 
 \goto{Some text}[Text]
 
 \page
 \useexternalfigure[Graphic][cow.pdf][]
 \placefigure[here,page,force,nonumber]
 [fig:cow.pdf]
 {Figure A}
 {\externalfigure[cow.pdf][type=pdf,
 width=.5\textwidth]}
 \page
 \placetable[here,force,nonumber]
 [tab:Table01]
 {Table 1}
 {\starttabulate[|l|l|]
 \NC 1000
 \NC 2000
 \NC\NR
 \stoptabulate}
 \page
 Some text\reference[Text]{}
 \stoptext
 
 Only the last \goto works. Even the \at link fails, which is really
 discouraging.
 
 You can play with this:
 
 \def\floatcaptionattribute
  {\iflocation
 %  \ifnofloatnumber
 %  \else
   \ifnofloatcaption
   \else
 \ifinsidesplitfloat
\ifconditional\splitfloatfirstdone
\else
  attr \destinationattribute \currentfloatattribute
\fi
 \else
   attr \destinationattribute \currentfloatattribute
 \fi
   \fi
 %  \fi
   \fi}
 
 I have no time for testing right now so you need to check all odd cases 
 before I change something.
 
 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] Sans Serif Math Font

2013-02-03 Thread Troy Henderson
 Except that it gives you upright letters instead of italic ones.


Indeed.  If you figure out how to fix this, I would really appreciate it.

Troy
___
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] Using num and authornum bibliography style simultaneously

2013-02-03 Thread Devendra Ghate

Hi,

I want to use *num* and *authornum* bibliiography style simultaneously 
in my

document.

\setuppublications[alternative=num] 
--- [1].
\setuppublications[alternative=num, refcommand=authornum]  -- Author 
name [1].


So I have defined a macro as:

\define[1]\citet{%
  \setuppublications[alternative=num, refcommand=authornum]
  \cite[#1]
  \setuppublications[alternative=num]
}

to give me the *authornum* format and default \cite behaviour is *num*. 
This works.


However, I have a feeling that this is not the recommended way of doing 
things in

ConTeXt. Do let me know.

Regards,
Devendra
___
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] Using num and authornum bibliography style simultaneously

2013-02-03 Thread Devendra Ghate


On 02/04/2013 11:13 AM, Devendra Ghate wrote:

Hi,

I want to use *num* and *authornum* bibliiography style simultaneously 
in my

document.

\setuppublications[alternative=num] 
--- [1].
\setuppublications[alternative=num, refcommand=authornum]  -- Author 
name [1].


So I have defined a macro as:

\define[1]\citet{%
  \setuppublications[alternative=num, refcommand=authornum]
  \cite[#1]
  \setuppublications[alternative=num]
}

to give me the *authornum* format and default \cite behaviour is 
*num*. This works.


However, I have a feeling that this is not the recommended way of 
doing things in

ConTeXt. Do let me know.

Regards,
Devendra

After finding the bibliography manual for MkII, I realised that I should use

\cite[alternative=authornum][]  and \cite[alternative=num][].

Sorry for the spam,
Devendra
___
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] No interaction for publications with author-year style

2013-02-03 Thread Martin Rimmler

Hi all,

I cannot get interactive publication references with author-year styles, 
i.e. all apa  and ssa alternatives. See below:



\setupbibtex[database={sample}]
\setuppublications[alternative=apa]

\setupinteraction[state=start,color=blue]
\setupcombinedlist[publications][interaction=all]


\starttext

Here I reference Ref1 \cite[ref1] and Ref2 \cite[ref2].
\page[yes]

\placepublications[criterium=all]

\stoptext


It works, however, with \setuppublications[alternative=ams] or with the 
num alternatives. In short, author-year styles do not work, but number 
styles do.

Any clues as to what might help?
I attached the bib file.
Thanks in advance.

Best,

Martin
@Article{	  ref1,
  author	= {{Author 1}},
  title		= {Title 1},
  journal	= {Journal 1},
  volume	= {1},
  number	= {1},
  pages		= {1-11},
  year		= {2001}
}

@Article{	  ref2,
  author	= {{Author 2}},
  title		= {Title 2},
  journal	= {Journal 2},
  volume	= {2},
  number	= {2},
  pages		= {2-22},
  year		= {2002}
}___
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
___