Re: [NTG-context] Help regarding IEEE citation style

2011-01-27 Thread Aditya Mahajan

On Fri, 28 Jan 2011, Mojca Miklavec wrote:


On Wed, Jan 26, 2011 at 16:10, Julius Canute wrote:


I wan to cite references in my ConTeXt document using IEEE citation 
style. Specifically for Web URL. How to do that using ConTeXt and 
BiBTeX?


It is quite possible that nobody has used IEEE citation style in
ConTeXt (I didn't check how it should look like).


I am attaching a file that I used a couple of years ago. I haven't checked 
it with the latest version of the bib module.


Aditya%D \module

%D   [   file=bibl-ieee,

%Dversion=2007.06.25,

%D  title=IEEE bibliography style,

%D   subtitle=IEEE Publications,

%D author={Aditya Mahajan},

%D   date=\currentdate,

%D  copyright={Aditya Mahajan}]



\unprotect



%D The default mnemonics are not compatible with IEEE style.



\setuplabeltext [\s!en] [\v!january  :\s!mnem=Jan.]

\setuplabeltext [\s!en] [\v!february :\s!mnem=Feb.]

\setuplabeltext [\s!en] [\v!march:\s!mnem=Mar.]

\setuplabeltext [\s!en] [\v!april:\s!mnem=Apr.]

\setuplabeltext [\s!en] [\v!may  :\s!mnem=May]

\setuplabeltext [\s!en] [\v!june :\s!mnem=Jun.]

\setuplabeltext [\s!en] [\v!july :\s!mnem=Jul.]

\setuplabeltext [\s!en] [\v!august   :\s!mnem=Aug.]

\setuplabeltext [\s!en] [\v!september:\s!mnem=Sep.]

\setuplabeltext [\s!en] [\v!october  :\s!mnem=Oct.]

\setuplabeltext [\s!en] [\v!november :\s!mnem=Nov.]

\setuplabeltext [\s!en] [\v!december :\s!mnem=Dec.]



\setupbibtex  [sort=author]

\setuppublicationlist [maybeyear=off]



\setuplistalternative

  [ieee]

  [\c!distance=1em,

  \c!width=2em,

\c!stretch=0em,

\c!command=,

  ]



\setuppublicationlist 

  [\c!numbercommand=\!!ieee@brackets,

   \c!width=2em,

 \c!alternative=ieee,

  \c!samplesize={99},

  ]





%D This should probably go into the core.



\def\doverysimplebibnumref#1#2%

   {\refsep

\ifcase#1\relax \unknownreference{#1}\else

  \def\tempa{#2}\ifx\empty\tempa#1\else#1\docommaordash{#1}{#2}#2\fi

\fi}%



\def\docommaordash#1#2%

   {\doifelse{\the\numexpr#1+1-#2\relax}{0}%

 {\bibalternative\c!pubsep}%

 {\bibalternative\c!inbetween}}%



\setupcite

   [author,year]

   [\c!andtext={ and },

\c!otherstext={ et al.},

\c!pubsep={, },

\c!lastpubsep={ and },

\c!compress=\v!no,

\c!inbetween={ },

\c!left={(},

\c!right={)}]



\setupcite

   [authoryear]

   [\c!andtext={ and },

\c!otherstext={ et al.},

\c!pubsep={, },

\c!lastpubsep={ and },

\c!compress=\v!no,

\c!inbetween={ },

\c!left={(},

\c!right={)}]



\setupcite

   [authoryears]

   [\c!andtext={ and },

\c!otherstext={ et al.},

\c!pubsep={, },

\c!lastpubsep={ and },

\c!compress=\v!no,

\c!inbetween={, },

\c!left={(},

\c!right={)}]



\setupcite

   [key,serial,authornum,page,short,type,doi,url]

   [\c!andtext={ and },

\c!otherstext={ et al.},

\c!pubsep={, },

\c!lastpubsep={ and },

\c!compress=\v!no,

\c!inbetween={ },

\c!left={[},

\c!right={]}]



\setupcite

   [num]

   [\c!andtext={ and },

\c!otherstext={ et al.},

\c!pubsep={, },

\c!lastpubsep={ and },

\c!compress=\v!yes,

\c!inbetween={]--[},

\c!left={[},

\c!right={]}]



%D This is the ugliest way to make sure that the number is right justified.

%D The trouble is that \filename{core-lst.tex} contains an explicit

%D \type|\hfill|.



\def\!!ieee@brackets#1%

  {\hbox \ifdim\!!widtha\zeropoint to \!!widtha \fi

   {\hss[#1]\hskip 0.5em}}



\setuppublications

   [\c!sorttype=cite,

\c!criterium=,

\c!refcommand=num,

\c!numbering=\v!yes,

\c!numbercommand=\!!ieee@brackets,

monthconversion=month:mnem]



\setuppublicationlist

   [\c!artauthor=\normalshortauthor,

\c!editor=\normalshortauthor,

\c!author=\normalshortauthor,

\c!namesep={, },

\c!lastnamesep={ and },

\c!finalnamesep={, and },

\c!firstnamesep={ },

\c!juniorsep={ },

\c!vonsep={ },

\c!surnamesep={ },

\c!authoretallimit=5,

\c!editoretallimit=5,

\c!artauthoretallimit=5,

\c!authoretaldisplay=5,

\c!editoretaldisplay=5,

\c!artauthoretaldisplay=5,

\c!authoretaltext={ et al.},

\c!editoretaltext={ et al.},

\c!artauthoretaltext={ et al.},

artauthorcommand=\!!ieee@repeatedauthors,

authorcommand=\!!ieee@repeatedauthors,

]



%D Just to be sure



\def\maybeyear#1{}

\def\etalchar#1{#1}



%D Show repeated authors by --



\def\!!ieee@oldauthors{}



\def\!!ieee@repeatedauthors#1#2#3%

{\xdef\!!ieee@newauthors{#3}%

  \ifx\!!ieee@oldauthors\!!ieee@newauthors

  --%

   \else

 \dospecialbibinsert{#1}{#2}{#3}%

 \global\let

[NTG-context] Help regarding IEEE citation style

2011-01-26 Thread Julius Canute
I wan to cite references in my ConTeXt document using IEEE citation style. 
Specifically for Web URL. How to do that using ConTeXt and BiBTeX?
Regards
A.Julius Canute
___
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] help with citation please (mkiv)

2011-01-13 Thread Steffen Wolfrum

Am 13.01.2011 um 07:42 schrieb Steffen Wolfrum:

 
 Am 12.01.2011 um 20:19 schrieb Aditya Mahajan:
 
 On Wed, 12 Jan 2011, Steffen Wolfrum wrote:
 
 Hi friends,
 
 I am a bit confused with the use of citation/bibliographies in MkIV.
 Maybe someone can help me?
 
 Say, I have a bib-file containing entries like ...
 
 @BOOK{mb:Wassermann1990,
 title = {Alternativkommentar zum Strafgesetzbuch},
 year = {1990 (Bd. 1), 1986 (Bd. 3)},
 editor = {Wassermann, Rudolph},
 % address = {Neuwied},
 howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB},
 juratitle = {AK-StGB},
 owner = {mascha},
 timestamp = {2006.10.02}
 }
 
 In the typeset document I need an entry like this:
 \emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, 
 §\,94, Rn. 4.
 
 In a Latex document I saw the usage like this:
 \cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990}
 
 
 Who do I do it in ConTeXt MkIV??
 
 \cite[extras={, §\,94, Rn. 4}][mb:Wassermann1998]
 
 (or \cite[mb:Was...][extras={...}], I do not remember the order)
 
 
 I though it should be the first one, too.
 But the citation doesn't work (see example attached).
 
 Steffen
 ---
 bib_steffen.pdfbib_steffen.texsamplex.bib___



does the example work on other machines?!
could someone please check

thank you, steffen
___
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] help with citation please (mkiv)

2011-01-12 Thread Steffen Wolfrum
Hi friends,

I am a bit confused with the use of citation/bibliographies in MkIV.
Maybe someone can help me?

Say, I have a bib-file containing entries like ...

@BOOK{mb:Wassermann1990,
  title = {Alternativkommentar zum Strafgesetzbuch},
  year = {1990 (Bd. 1), 1986 (Bd. 3)},
  editor = {Wassermann, Rudolph},
  % address = {Neuwied},
  howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB},
  juratitle = {AK-StGB},
  owner = {mascha},
  timestamp = {2006.10.02}
}

In the typeset document I need an entry like this:
\emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, §\,94, 
Rn. 4.

In a Latex document I saw the usage like this:
\cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990}


Who do I do it in ConTeXt MkIV??


Any help very welcome!!

Thank you, Steffen
___
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] help with citation please (mkiv)

2011-01-12 Thread Aditya Mahajan

On Wed, 12 Jan 2011, Steffen Wolfrum wrote:


Hi friends,

I am a bit confused with the use of citation/bibliographies in MkIV.
Maybe someone can help me?

Say, I have a bib-file containing entries like ...

@BOOK{mb:Wassermann1990,
 title = {Alternativkommentar zum Strafgesetzbuch},
 year = {1990 (Bd. 1), 1986 (Bd. 3)},
 editor = {Wassermann, Rudolph},
 % address = {Neuwied},
 howcited = {\emph{Bearbeiter}, in: Wassermann, AK-StGB},
 juratitle = {AK-StGB},
 owner = {mascha},
 timestamp = {2006.10.02}
}

In the typeset document I need an entry like this:
\emph{Amelung} in Wassermann, Alternativkommentar zum Strafgesetzbuch, §\,94, 
Rn. 4.

In a Latex document I saw the usage like this:
\cite[Amelung][§\,94, Rn. 4]{mb:Wassermann1990}


Who do I do it in ConTeXt MkIV??


\cite[extras={, §\,94, Rn. 4}][mb:Wassermann1998]

(or \cite[mb:Was...][extras={...}], I do not remember the order)

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

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


Re: [NTG-context] bib problem

2010-12-24 Thread Emanuele Sacco
Thanks, but what about this:

%-

\usemodule[bib]
\setupbibtex[database=biblio]
\setuppublications[alternative=ams,
 criterium=cite,
 numbering=yes]
\setuppublicationlist[finalnamesep={ and }]

\starttext
%\startbodymatter
\part{First Part}
\chapter{First Chapter}
Look at this \cite[num][heinsch]
\starttabulate[|l|l|p|]
\NC \type{key}\NC\type{\cite[key][heinsch]}\NC   \NC\NR
\NC author\NC  \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
\NC doi\NC \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
\NC key\NC \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
\NC serial\NC  \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
\NC short\NC   \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
\NC type\NC\cite[type][heinsch]\NC (from `t')\hfil\NC\NR
\NC year\NC\cite[year][heinsch]\NC (from `y')\hfil\NC\NR
\NC url\NC \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
\NC num\NC \cite[num][heinsch]\NC (this is a reference to
  the sequence number used in
the publication list)\hfil\NC\NR
\NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
%\NC data\NC\vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
The data content of the entry\hfil\NC\NR
\NC page\NC\cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
\stoptabulate

\part{Second Part}
\chapter{Second Chapter}
Look at this \cite[num][heinsch]
\starttabulate[|l|l|p|]
\NC \type{key}\NC\type{\cite[key][heinsch]}\NC   \NC\NR
\NC author\NC  \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
\NC doi\NC \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
\NC key\NC \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
\NC serial\NC  \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
\NC short\NC   \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
\NC type\NC\cite[type][heinsch]\NC (from `t')\hfil\NC\NR
\NC year\NC\cite[year][heinsch]\NC (from `y')\hfil\NC\NR
\NC url\NC \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
\NC num\NC \cite[num][heinsch]\NC (this is a reference to
  the sequence number used in
the publication list)\hfil\NC\NR
\NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
%\NC data\NC\vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
The data content of the entry\hfil\NC\NR
\NC page\NC\cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
\stoptabulate



%\stopbodymatter

%\startbackmatter
\completepublications
%\stopbackmatter

\stoptext

%--


2010/12/24 luigi scarso luigi.sca...@gmail.com:
 On Thu, Dec 23, 2010 at 3:33 PM, Emanuele Sacco emanuelesa...@gmail.com 
 wrote:
 Hi all

 with this code

 %--

 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,criterium=cite,numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]


 \starttext
 \startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 Look at this \cite[heinsch]

 \part{Secon Part}
 \chapter{Secon Chapter}
 Look at this \cite[heinsch]

 \stopbodymatter

 \startbackmatter
 \completepublications
 \stopbackmatter

 \stoptext

 %---

 where

 biblio.bib is


 %--

 @book{heinsch,
        Address = {Mineola},
        Author = {H. K. Henisch},
        Date-Added = {2010-09-30 14:07:14 +0200},
        Date-Modified = {2010-09-30 14:14:49 +0200},
        Publisher = {Dover Publications},
        Title = {Crystal Growth in Gels},
        Year = {1996}}

 %--


 I don't have the number inside the [].


 Emanuele



 --
 Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
 binario e quelli che non lo conoscono.
 ___
 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
 ___

 It seems that bib doesn't play well with *matter:
 just uncomment %\start*matter
 and the result is different
 %---
 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,
                  criterium=cite,
                  numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]

 \starttext
 %\startbodymatter
 %\part{First Part}
 \chapter{First Chapter}
 Look at this \cite[num][heinsch

Re: [NTG-context] bib problem

2010-12-24 Thread luigi scarso
On Fri, Dec 24, 2010 at 10:13 AM, Emanuele Sacco
emanuelesa...@gmail.com wrote:
 Thanks, but what about this:

 %-

 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,
                 criterium=cite,
                 numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]

 \starttext
 %\startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 Look at this \cite[num][heinsch]
 \starttabulate[|l|l|p|]
 \NC \type{key}\NC    \type{\cite[key][heinsch]}\NC               \NC\NR
 \NC author\NC      \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
 \NC doi\NC         \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
 \NC key\NC         \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
 \NC serial\NC      \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
 \NC short\NC       \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
 \NC type\NC        \cite[type][heinsch]\NC (from `t')\hfil\NC\NR
 \NC year\NC        \cite[year][heinsch]\NC (from `y')\hfil\NC\NR
 \NC url\NC         \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
 \NC num\NC         \cite[num][heinsch]\NC (this is a reference to
                                      the sequence number used in
 the publication list)\hfil\NC\NR
 \NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
 %\NC data\NC        \vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
 The data content of the entry\hfil\NC\NR
 \NC page\NC        \cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
 \stoptabulate

 \part{Second Part}
 \chapter{Second Chapter}
 Look at this \cite[num][heinsch]
 \starttabulate[|l|l|p|]
 \NC \type{key}\NC    \type{\cite[key][heinsch]}\NC               \NC\NR
 \NC author\NC      \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
 \NC doi\NC         \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
 \NC key\NC         \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
 \NC serial\NC      \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
 \NC short\NC       \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
 \NC type\NC        \cite[type][heinsch]\NC (from `t')\hfil\NC\NR
 \NC year\NC        \cite[year][heinsch]\NC (from `y')\hfil\NC\NR
 \NC url\NC         \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
 \NC num\NC         \cite[num][heinsch]\NC (this is a reference to
                                      the sequence number used in
 the publication list)\hfil\NC\NR
 \NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
 %\NC data\NC        \vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
 The data content of the entry\hfil\NC\NR
 \NC page\NC        \cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
 \stoptabulate



 %\stopbodymatter

 %\startbackmatter
 \completepublications
 %\stopbackmatter

 \stoptext

 %--
Yes, it seems that bib acts correctly only inside a \part sectioning.

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

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


Re: [NTG-context] bib problem

2010-12-24 Thread Emanuele Sacco
Not all bib, but the alternatives different from the default one. If I
remove alternative=ams all works for me olso with *matters.

2010/12/24 luigi scarso luigi.sca...@gmail.com:
 On Fri, Dec 24, 2010 at 10:13 AM, Emanuele Sacco
 emanuelesa...@gmail.com wrote:
 Thanks, but what about this:

 %-

 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,
                 criterium=cite,
                 numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]

 \starttext
 %\startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 Look at this \cite[num][heinsch]
 \starttabulate[|l|l|p|]
 \NC \type{key}\NC    \type{\cite[key][heinsch]}\NC               \NC\NR
 \NC author\NC      \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
 \NC doi\NC         \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
 \NC key\NC         \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
 \NC serial\NC      \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
 \NC short\NC       \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
 \NC type\NC        \cite[type][heinsch]\NC (from `t')\hfil\NC\NR
 \NC year\NC        \cite[year][heinsch]\NC (from `y')\hfil\NC\NR
 \NC url\NC         \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
 \NC num\NC         \cite[num][heinsch]\NC (this is a reference to
                                      the sequence number used in
 the publication list)\hfil\NC\NR
 \NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and 
 `y')\hfil\NC\NR
 \NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
 %\NC data\NC        \vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
 The data content of the entry\hfil\NC\NR
 \NC page\NC        \cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
 \stoptabulate

 \part{Second Part}
 \chapter{Second Chapter}
 Look at this \cite[num][heinsch]
 \starttabulate[|l|l|p|]
 \NC \type{key}\NC    \type{\cite[key][heinsch]}\NC               \NC\NR
 \NC author\NC      \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
 \NC doi\NC         \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
 \NC key\NC         \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
 \NC serial\NC      \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
 \NC short\NC       \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
 \NC type\NC        \cite[type][heinsch]\NC (from `t')\hfil\NC\NR
 \NC year\NC        \cite[year][heinsch]\NC (from `y')\hfil\NC\NR
 \NC url\NC         \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
 \NC num\NC         \cite[num][heinsch]\NC (this is a reference to
                                      the sequence number used in
 the publication list)\hfil\NC\NR
 \NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
 \NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and 
 `y')\hfil\NC\NR
 \NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
 %\NC data\NC        \vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
 The data content of the entry\hfil\NC\NR
 \NC page\NC        \cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
 \stoptabulate



 %\stopbodymatter

 %\startbackmatter
 \completepublications
 %\stopbackmatter

 \stoptext

 %--
 Yes, it seems that bib acts correctly only inside a \part sectioning.

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

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




-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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] bib problem

2010-12-24 Thread luigi scarso
On Fri, Dec 24, 2010 at 11:07 AM, luigi scarso luigi.sca...@gmail.com wrote:
 On Fri, Dec 24, 2010 at 11:06 AM, Emanuele Sacco
 emanuelesa...@gmail.com wrote:
 Not all bib, but the alternatives different from the default one. If I
 remove alternative=ams all works for me olso with *matters.
 still experimenting

 --
 luigi

It seems that
\cite[num][me] are
valid only inside a *matter
while \cite[author][me]
work ok.

\usemodule[bib]
\setuppublications[alternative=ams,
   criterium=cite,
   numbering=yes]
\setuppublicationlist[finalnamesep={ and }]
\startpublication[k=me,
  t=manual,
  a=Hoekwater,
  y=2006,
  s=TH2006,
  n=1,
  u=http://contextgarden.net/Bibliography]
\author{Taco}[T.]{}{Hoekwater}
\title{\CONTEXT\ Publication Module, The user documententation}
\pubyear{2006}
\note{In case you didn't know: it's the document you are reading now}
\pages{14}
\stoppublication

\starttext
\startbodymatter
\part{First Part}
\chapter{First Chapter I part}
Look at this \cite[num][me]\cite[author][me]
\part{Second Part}
\chapter{First Chapter II part}
Look at this \cite[num][me]\cite[author][me]
\part{Appendix}
%% Here is ok
%\completepublications
\stopbodymatter

\startbackmatter
%% Here references nums are missing
\completepublications
\stopbackmatter
\stoptext



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

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


[NTG-context] bib problem

2010-12-23 Thread Emanuele Sacco
Hi all

with this code

%--

\usemodule[bib]
\setupbibtex[database=biblio]
\setuppublications[alternative=ams,criterium=cite,numbering=yes]
\setuppublicationlist[finalnamesep={ and }]


\starttext
\startbodymatter
\part{First Part}
\chapter{First Chapter}
Look at this \cite[heinsch]

\part{Secon Part}
\chapter{Secon Chapter}
Look at this \cite[heinsch]

\stopbodymatter

\startbackmatter
\completepublications
\stopbackmatter

\stoptext

%---

where

biblio.bib is


%--

@book{heinsch,
Address = {Mineola},
Author = {H. K. Henisch},
Date-Added = {2010-09-30 14:07:14 +0200},
Date-Modified = {2010-09-30 14:14:49 +0200},
Publisher = {Dover Publications},
Title = {Crystal Growth in Gels},
Year = {1996}}

%--


I don't have the number inside the [].


Emanuele



-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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] bib problem

2010-12-23 Thread Emanuele Sacco
I'm using MKII.

2010/12/23 Emanuele Sacco emanuelesa...@gmail.com:
 Hi all

 with this code

 %--

 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,criterium=cite,numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]


 \starttext
 \startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 Look at this \cite[heinsch]

 \part{Secon Part}
 \chapter{Secon Chapter}
 Look at this \cite[heinsch]

 \stopbodymatter

 \startbackmatter
 \completepublications
 \stopbackmatter

 \stoptext

 %---

 where

 biblio.bib is


 %--

 @book{heinsch,
        Address = {Mineola},
        Author = {H. K. Henisch},
        Date-Added = {2010-09-30 14:07:14 +0200},
        Date-Modified = {2010-09-30 14:14:49 +0200},
        Publisher = {Dover Publications},
        Title = {Crystal Growth in Gels},
        Year = {1996}}

 %--


 I don't have the number inside the [].


 Emanuele



 --
 Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
 binario e quelli che non lo conoscono.




-- 
Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
binario e quelli che non lo conoscono.
___
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] bib problem

2010-12-23 Thread luigi scarso
On Thu, Dec 23, 2010 at 3:33 PM, Emanuele Sacco emanuelesa...@gmail.com wrote:
 Hi all

 with this code

 %--

 \usemodule[bib]
 \setupbibtex[database=biblio]
 \setuppublications[alternative=ams,criterium=cite,numbering=yes]
 \setuppublicationlist[finalnamesep={ and }]


 \starttext
 \startbodymatter
 \part{First Part}
 \chapter{First Chapter}
 Look at this \cite[heinsch]

 \part{Secon Part}
 \chapter{Secon Chapter}
 Look at this \cite[heinsch]

 \stopbodymatter

 \startbackmatter
 \completepublications
 \stopbackmatter

 \stoptext

 %---

 where

 biblio.bib is


 %--

 @book{heinsch,
        Address = {Mineola},
        Author = {H. K. Henisch},
        Date-Added = {2010-09-30 14:07:14 +0200},
        Date-Modified = {2010-09-30 14:14:49 +0200},
        Publisher = {Dover Publications},
        Title = {Crystal Growth in Gels},
        Year = {1996}}

 %--


 I don't have the number inside the [].


 Emanuele



 --
 Al mondo ci sono 10 tipi di persone: quelli che conoscono il sistema
 binario e quelli che non lo conoscono.
 ___
 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
 ___

It seems that bib doesn't play well with *matter:
just uncomment %\start*matter
and the result is different
%---
\usemodule[bib]
\setupbibtex[database=biblio]
\setuppublications[alternative=ams,
  criterium=cite,
  numbering=yes]
\setuppublicationlist[finalnamesep={ and }]

\starttext
%\startbodymatter
%\part{First Part}
\chapter{First Chapter}
Look at this \cite[num][heinsch]
\starttabulate[|l|l|p|]
\NC \type{key}\NC\type{\cite[key][heinsch]}\NC   \NC\NR
\NC author\NC  \cite[author][heinsch] \NC(from `a')\hfil\NC\NR
\NC doi\NC \cite[doi][heinsch]\NC (from `d')\hfil\NC\NR
\NC key\NC \cite[key][heinsch]\NC (from `k')\hfil\NC\NR
\NC serial\NC  \cite[serial][heinsch]\NC (from `n')\hfil\NC\NR
\NC short\NC   \cite[short][heinsch]\NC (from `s')\hfil\NC\NR
\NC type\NC\cite[type][heinsch]\NC (from `t')\hfil\NC\NR
\NC year\NC\cite[year][heinsch]\NC (from `y')\hfil\NC\NR
\NC url\NC \cite[url][heinsch]\NC (from `u')\hfil\NC\NR
\NC num\NC \cite[num][heinsch]\NC (this is a reference to
   the sequence number used in
the publication list)\hfil\NC\NR
\NC authoryear\NC  \cite[authoryear][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authoryears\NC \cite[authoryears][heinsch]\NC(from `a' and `y')\hfil\NC\NR
\NC authornum\NC  \cite[authornum][heinsch]\NC(from `a' and `num')\hfil\NC\NR
%\NC data\NC\vtop{\hsize .45\hsize \cite[data][heinsch]}\NC
The data content of the entry\hfil\NC\NR
\NC page\NC\cite[page][heinsch]\NC (a page reference)\hfil\NC\NR
\stoptabulate




%\stopbodymatter

%\startbackmatter
\completepublications
%\stopbackmatter

\stoptext

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

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


Re: [NTG-context] Help: tweaking bibliography style

2010-12-15 Thread Nicola
In article nvitacolonna-f968f4.10292114122...@news.gmane.org,
 Nicola nvitacolo...@gmail.com wrote:

 Hi,
 currently, in my document, an article reference looks like this:
 
 [1] Thor, A. U. (2010). ConTeXt is great. My Own Publishing, 2(4), 23-34.
 
 with the title in italics. How to make the year appear at the end and 
 how to make the publisher in italics, too? I would like such changes to 
 apply to other types of references as well (books, inproceedings, etc...)
 
 Second, \cite[Thor:2010,Bar:2009] produces something like [6 and 9]. How 
 do I get rid of 'and' and get simply [6,9]?

Sorry for the noise: somehow, I hadn't noticed that a fairly complete 
bib manual exists. Now I realise how flexible the module is.

As for bibltx, I assume that it is deprecated.

Nicola

___
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] Help: tweaking bibliography style

2010-12-14 Thread Nicola
Hi,
currently, in my document, an article reference looks like this:

[1] Thor, A. U. (2010). ConTeXt is great. My Own Publishing, 2(4), 23-34.

with the title in italics. How to make the year appear at the end and 
how to make the publisher in italics, too? I would like such changes to 
apply to other types of references as well (books, inproceedings, etc...)

Second, \cite[Thor:2010,Bar:2009] produces something like [6 and 9]. How 
do I get rid of 'and' and get simply [6,9]?

This is my current setup (mainly code copied from the Wiki):

\usemodule[bib]
\setupbibtex[database=my-biblio,sort=author]
\def\bracketed#1{\hbox to 20pt{\hfill [{#1}]}}
\setuppublications[
   sorttype=bib,
   numbering=yes,
   numbercommand=\bracketed
]
\unprotect\def\UCauthor#1#2#3#4#5%
{\bf\bibdoif{#2}{#2\bibalternative\c!vonsep}%
   #3\bibalternative\c!surnamesep
\bibdoif{#5}{#5\bibalternative\c!juniorsep}%
\bibdoif{#4}{#4\unskip}}
\protect
\setuppublicationlist[
   artauthor=\UCauthor,
   editor=\UCauthor,
   author=\UCauthor,
   namesep={, },
   lastnamesep={, },
   finalnamesep={, }
]

A last, less important, question: the Wiki suggests to 
\usemodule[bibltx]. If I do so, I get the warning “module bibltx not 
found”. It seems that omitting that module has no consequences. Is it 
needed at all? If so, for what?

Nicola

___
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] bib problems

2010-12-10 Thread Mojca Miklavec
On Tue, Dec 7, 2010 at 16:01, Hans Hagen pra...@wxs.nl wrote:
 On 7-12-2010 3:26, Mojca Miklavec wrote:

 I have a tiny feature request.

 I would like to have a separate bibliography for, say, list of
 figures. Basically all I ask for is the ability to have a separate
 named bibliography as opposed to a single list.

 no big deal in mkiv i guess

 But maybe I need to elaborate a bit more before sending request. It
 makes no sense to implement it in the wrong and unstatisfactory way.

  Just to mention it before I forget.

 so how would that look at the input end? an extra key?

I should think about it a bit. But just a few possibilities ... At the
moment I use:
\startpublication
  [k=xy,
   t=xy]
  
\stoppublication

Options are:

1.)
\startpublicationlist[images] or \startpublications[images] or ...
\startpublication[k=xy,t=xy]
  
\stoppublication
...
\stoppublicationlist

2.)
\startpublication[k=xy,t=xy,list=images]
  
\stoppublication

3.)
\startpublication[images][k=xy,t=xy]
  
\stoppublication

And then
\placepublications[list=images]

Then \cite would work in exactly the same way (one would not need to
provide any extra key to cite itself).

But one would need to think of a proper model to number the
references. That is: it would have to be configurable to be able to
either number images with roman instead of arabic numerals (or with a,
b, c, ...), or to prepend something, like [img1], [img2], [img3]
instead of [1], [2], [3]. Or simply let the user do in
\cite{figure}[xy], or to number images with numbers bigger than other
references. For example:

Books:
[1]
[2]
[3]
Articles:
[4]
[5]
[6]
[7]
Images:
[8]
[9]

or

Books:
[1]
[2]
[3]
Articles:
[a1]
[a2]
[a3]
[a3]
Images:
[i1]
[i2]

or any other user-configurable option for numbering ...

However, having a properly designed model is better than having some
ad-hoc solution that turns out not flexible enough or clumsy to use
and buggy later on ...

And yes, something that would allow splitting references across
sections could just as well be used for this. It just needs to be
designed properly ... (But section-based bibliography could work
without any extra key, right?)

And no, please don't count it as bug report. I just mentioned it
because Hans wanted to have a big bunch of everything at a single
place.

I suggest to reopen the topic and create exact specification before
the actual implementation.

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] bib problems

2010-12-10 Thread Thomas Schmitz

On Fri, 10 Dec 2010 14:18:20 +0100
 Mojca Miklavec mojca.miklavec.li...@gmail.com wrote:
I should think about it a bit. But just a few 
possibilities ... At the

moment I use:
   \startpublication
 [k=xy,
  t=xy]
 
   \stoppublication

Options are:


When we think from the bibtex side, it would boil down to 
processing the keyword= key (which is already there in 
the bibtex specification). You could then order your 
publications with terms such as keyword=image 
keyword=article etc.




1.)
\startpublicationlist[images] or 
\startpublications[images] or ...

   \startpublication[k=xy,t=xy]
 
   \stoppublication
...
\stoppublicationlist

2.)
   \startpublication[k=xy,t=xy,list=images]
 
   \stoppublication

3.)
   \startpublication[images][k=xy,t=xy]
 
   \stoppublication

And then
   \placepublications[list=images]

Then \cite would work in exactly the same way (one would 
not need to

provide any extra key to cite itself).

But one would need to think of a proper model to number 
the
references. That is: it would have to be configurable to 
be able to
either number images with roman instead of arabic 
numerals (or with a,
b, c, ...), or to prepend something, like [img1], 
[img2], [img3]

instead of [1], [2], [3]. Or simply let the user do in
\cite{figure}[xy], or to number images with numbers 
bigger than other

references. For example:

Books:
[1]
[2]
[3]
Articles:
[4]
[5]
[6]
[7]
Images:
[8]
[9]

or

Books:
[1]
[2]
[3]
Articles:
[a1]
[a2]
[a3]
[a3]
Images:
[i1]
[i2]

or any other user-configurable option for numbering ...

However, having a properly designed model is better than 
having some
ad-hoc solution that turns out not flexible enough or 
clumsy to use

and buggy later on ...


One syntax would be

\placepublications[filter=image,prefix={img.},option=continue,numberconversion=romannumbers]



And yes, something that would allow splitting references 
across
sections could just as well be used for this. It just 
needs to be
designed properly ... (But section-based bibliography 
could work

without any extra key, right?)

And no, please don't count it as bug report. I just 
mentioned it
because Hans wanted to have a big bunch of everything 
at a single

place.

I suggest to reopen the topic and create exact 
specification before

the actual implementation.


Yes, we can discuss it (on or off list) when it will be 
implemented.


Thomas
___
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] bib problems

2010-12-08 Thread Robert Blackstone
On Tue, Dec 7, 2010 at 2:00 PM,  thomas.schm...@uni-bonn.de wrote:

 I've begun summarizing the bibliography problems. Could you all see if your 
 particular problem is mentioned here? If I missed something, please send your 
 test files to the list or to me, please use the sample.bib which is now 
 included in the minimals, and please make the test cases as short as possible.

Hi,
I have another problem: the ELECTRONIC publication, hh2010, never gets
returned or printed, even with \placepublications[criterium=all].
I noted however that ConTeXt somehow is aware of this item since it
leaves an open space where this item should have been.
This is my test file, identical to that of example 1 except for the
addition of \cite[hh2010].

\setuppublications[state=start,refcommand=authoryear]
\setupbibtex[database=sample]

\starttext
\section{Test}
This \cite[hh2010a]

and that \cite[Eijkhout1991]

and also this one \cite[hh2010].

\section{References}
\placepublications[criterium=all]
\stoptext

Best regards,
Robert Blackstone
___
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] bib problems

2010-12-07 Thread Thomas A. Schmitz
All,

I've begun summarizing the bibliography problems. Could you all see if your 
particular problem is mentioned here? If I missed something, please send your 
test files to the list or to me, please use the sample.bib which is now 
included in the minimals, and please make the test cases as short as possible. 

Hans and Taco, one general remark: one thing that is confusing is that the 
key/value pair criterium=XXX is present for the \setuppublications and for 
the \setuppublicationlist and for the \placepublications command, yet seems to 
do slightly different things in each. Maybe that's a place where the interface 
should be changed? 

Here's what I have so far:

% Example 1, posted in a slightly different form by Curiouslearn on
% 2010-11-25: Hagen 2010c is not quoted and should not be in the list of
% references. On 2010-11-26, Mathieu Boespflug made a further observation on
% the original testfile which I can't reproduce because it's too complex. Can
% you show the effect by modifying this simple case?

\setuppublications[state=start,refcommand=authoryear]
\setupbibtex[database=sample]

\starttext
\section{Test}
This \cite[hh2010a]

and that \cite[Eijkhout1991]

\section{References}
\placepublications[criterium=all]
\stoptext 

% Example 2: a spurious entry [4] in the list of references.

\setuppublications[state=start,alternative=num]
\setupbibtex[database=sample]

\starttext
\section{Test}
This \cite[hh2010a]

and that \cite[Eijkhout1991]

\section{References}
\placepublications[criterium=all]
\stoptext 

% Example 3, posted by Mojca on 2010-11-29: horizontal spacing of list of
% references is insufficient

\setuppublications
[alternative=num]

\setuppublicationlayout[web]{%
{\sc url}: \inserturl{}{}{}%
}

\dorecurse{1200}{\startpublication[k=a\recurselevel,t=web]
\biburl{http://pragma-ade.nl}\stoppublication}

\starttext
\placepublications[criterium=all]
\stoptext 

% Example 4, posted by Charles Doherty on 2010-10-20: no references are typeset

\setuppublications[criterium=all,numbering=no]

\setupbibtex[database=sample,sort=author]

\starttext

\section{References}

\placepublications

\stoptext 

Please add further short examples; I will aggregate and send everything to Hans.


Thomas
___
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] One more (?) bib problem

2010-12-03 Thread Jean Magnan de Bornier
Hi all,

A small variation on the bib test file from the wiki:


\setupbibtex[database=/home/jean/bibmkiv/bib.bib]
\starttext 
\section{section one}
\cite[authoryear][hh2010,hh2010b]
\section{section two}
\cite[authoryear][Eijkhout1991]
\placepublications[criterium=cite]
\stoptext 


Unfortunately, placepublications only takes into account the refs of the
section where it is located, it seems weird to me. Sorry if this has been
already reported.

regards,



test.pdf
Description: biblio test 
-- 
Jean
___
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] One more (?) bib problem

2010-12-03 Thread seasoul
\placepublications[criterium=all]

this will place all the references. If only cited publications are in need,
use
\setuppublications[criterium=cite]

I also experimented on this for a long time, then i found this solution from
one of Aditya's posts.
It works to me now. Hans is in the process to develop a new bib module, I am
waiting the new powerful version :).



On Sat, Dec 4, 2010 at 1:44 AM, Jean Magnan de Bornier
jm.born...@free.frwrote:

 Hi all,

 A small variation on the bib test file from the wiki:

 
 \setupbibtex[database=/home/jean/bibmkiv/bib.bib]
 \starttext
 \section{section one}
 \cite[authoryear][hh2010,hh2010b]
 \section{section two}
 \cite[authoryear][Eijkhout1991]
 \placepublications[criterium=cite]
 \stoptext
 

 Unfortunately, placepublications only takes into account the refs of the
 section where it is located, it seems weird to me. Sorry if this has been
 already reported.

 regards,


 --
 Jean


 ___
 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

 ___




-- 
Yours Sincerely
Ba Te
___
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] One more (?) bib problem

2010-12-03 Thread Jean Magnan de Bornier
Le 04 décembre à 04:23:14 seasoul bioseas...@gmail.com écrit notamment:

| \placepublications[criterium=all]

| this will place all the references. If only cited publications are in need,
| use
| \setuppublications[criterium=cite]

| I also experimented on this for a long time, then i found this solution from
| one of Aditya's posts.
| It works to me now. Hans is in the process to develop a new bib module, I am
| waiting the new powerful version :).


Hi,
I've tried that solution of course, but then *all* bibtex entries appear
in the reference list, not only the ones cited!

thx anyway,


| On Sat, Dec 4, 2010 at 1:44 AM, Jean Magnan de Bornier
| jm.born...@free.frwrote:

|  Hi all,
| 
|  A small variation on the bib test file from the wiki:
| 
|  
|  \setupbibtex[database=/home/jean/bibmkiv/bib.bib]
|  \starttext
|  \section{section one}
|  \cite[authoryear][hh2010,hh2010b]
|  \section{section two}
|  \cite[authoryear][Eijkhout1991]
|  \placepublications[criterium=cite]
|  \stoptext
|  
| 
|  Unfortunately, placepublications only takes into account the refs of the
|  section where it is located, it seems weird to me. Sorry if this has been
|  already reported.
| 
|  regards,
| 
| 
|  --
|  Jean
| 
| 
|  
___
|  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
| 
|  
___
| 
| 

-- 
Jean
___
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] conference type broken in bibliography module [was: Bibliography contains references not cited in the text]

2010-11-29 Thread Mathieu Boespflug
On Fri, Nov 26, 2010 at 1:07 PM, Mathieu Boespflug mb...@tweag.net wrote:
 [...]
 Also, there is another bug in the bib module, which i find very
 strange. If we augment the OP's .bib file with two more entries, and
 cite those, then one of them does *not* appear in the bibliography
 despite being cited. It also creates a big blank in the bibliography.
 Here's a minimal example. bib file attached. In my real thesis
 bibliography (over 200 entries), there are several such entries
 missing and several big blanks of varying sizes in the Bibliography
 section.

To follow up on this: after further investigation it seems the bibtex
@conference entry type is broken. All such entries in my bibtex
database appear as blanks in the bibliography. Below is a minimal
example with an attached bibtex database.

Any idea how to solve this or where to look?

\setuppapersize[letter][letter]
\setuplayout[backspace=1.25in,
width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in]
\setupwhitespace[medium]
\setuppagenumbering[location=footer]


\setuphead[section][textstyle=bold, numberstyle=bold, continue=yes]


\setupbibtex[database=references,sort=author]
\setuppublications[refcommand=authoryear,sorttype=bbl]
\setupcite[authoryears][left=,right=]


\starttext
\section{Main Body}
This file is for testing whether the bibliography works. There seems
to be some problem.

Let's cite a conference article: \cite[reynolds:defints1972].

And another conference article: \cite[maranget:cpm].

Let's cite a journal article: \cite[reynolds:defints].

Let's cite a book: \cite[gordon:holbook].

Let's cite something unpublished: \cite[geuvers:gammainf].

Let's cite a miscellaneous item: \cite[coq].

\section{references}
\placepublications
\stoptext
@misc{coq,
  title={{The {\sc Coq} proof assistant}},
  key={Coq},
  note={http://coq.inria.fr}
}

@conference{reynolds:defints1972,
  author= {John C. Reynolds},
  title = {Definitional interpreters for higher-order programming languages},
  booktitle = {{Proceedings of the ACM Annual Conference}},
  year  = {1972},
  month = {august},
  pages = {717--740},
  volume= {2},
  publisher = {ACM, New York},
  note  = {Republié en tant que \cite[reynolds:defints].}
}

@article{reynolds:defints,
  title={{Definitional interpreters for higher-order programming languages}},
  author={Reynolds, J.C.},
  journal={Higher-order and symbolic computation},
  volume={11},
  number={4},
  pages={363--397},
  issn={1388-3690},
  year={1998},
  publisher={Springer}
}

@book{gordon:holbook,
  title={{Introduction to HOL: A theorem proving environment for higher order logic}},
  author={Gordon, M. and Melham, T.},
  year={1993},
  publisher={Cambridge University Press New York, NY, USA}
}

@unpublished{geuvers:gammainf,
  author = {Herman Geuvers and James McKinna and Freek Wiedijk},
  title = {{Pure Type Systems without Explicit Contexts}},
  month = {january},
  year = {2009},
  note = {Submitted}
}

@conference{maranget:cpm,
  title={{Compiling pattern matching to good decision trees}},
  author={Maranget, L.},
  booktitle={Proceedings of the 2008 ACM SIGPLAN workshop on ML},
  pages={35--46},
  year={2008},
  organization={ACM New York, NY, USA}
}
___
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] bib: ignoring 'criterium=cite'

2010-11-29 Thread Mojca Miklavec
Hans,

and here is a minimal example for another problem - not enough space
between the number and bibliography listing (it only shows
misbehaviour in MKIV; I yet need to test what happens in MKII). In
this particular case it only becomes a problem when the number reaches
3 places (100 items), but with my font settings it's already a problem
at number 10.

\usemodule
[bib]
\setuppublications
[alternative=num]

\setuppublicationlayout[web]{%
{\sc url}: \inserturl{}{}{}%
}

\dorecurse{1200}{\startpublication[k=a\recurselevel,t=web]
\biburl{http://pragma-ade.nl}\stoppublication}

\starttext
\placepublications[criterium=all]
\stoptext

Thanks,
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] Bibliography contains references not cited in the text

2010-11-26 Thread Mathieu Boespflug
Hi,

 I am having trouble with the bib module. The bibliography section of
 my article contains references that I have not cited in the text.
 These are in my .bib file, but it seems to me that references that
 were not cited in the text were ignored when constructing the
 bibliography.

 Hi,
 When you add

 \nocite[Aucremanne2005]
 \nocite[Fabiani2007]


 before \section{References}
 these non cited publications will show up in your bibliography. (At
 least it does here with Minimals of 24 november)

... which is the way it should be, no? The problem of the original
poster is that these entries should not appear in the bibliography
despite being in the .bib file, because they aren't mentionned at all
in the main text.

I can confirm this issue. I have run into myself in typesetting my thesis.

Taco, if it can help you track down the bug, IIRC, this problem
appeared sometime around beginning of October, though the bib module
of previous versions of mkIV had other bugs that made it unusable
(such as sorting by author not working).

Also, there is another bug in the bib module, which i find very
strange. If we augment the OP's .bib file with two more entries, and
cite those, then one of them does *not* appear in the bibliography
despite being cited. It also creates a big blank in the bibliography.
Here's a minimal example. bib file attached. In my real thesis
bibliography (over 200 entries), there are several such entries
missing and several big blanks of varying sizes in the Bibliography
section.

Regards,

Mathieu


\setuppapersize[letter][letter]
\setuplayout[backspace=1.25in,
width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in]
\setupwhitespace[medium]
\setuppagenumbering[location=footer]


\setuphead[section][textstyle=bold, numberstyle=bold, continue=yes]


\usemodule[bib]
\setupbibtex[database=templib]
\setuppublications[refcommand=authoryear]
\setupcite[authoryears][left=,right=]


\starttext
\section{Main Body}
This file is for testing whether the bibliography works. There seems
to be some problem.

Let us first cite \cite[Aghion1991], then we will cite
\cite[authoryears][Trefler1993].

In the new para we cite: \cite[Segal2003]

Now let's cite two more articles: the old  \cite[reynolds:defints1972]
and the new \cite[reynolds:defints].

\section{References}
\placepublications[criterium=all]
\stoptext
@article{Trefler1993,
author = {Trefler, Daniel},
doi = {10.2307/2527182},
file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Trefler - 1993 - The Ignorant Monopolist Optimal Learning with Endogenous Information.pdf:pdf},
issn = {00206598},
journal = {International Economic Review},
keywords = {Demand uncertainty,Monopoly,Unknown demand},
mendeley-tags = {Demand uncertainty,Monopoly,Unknown demand},
month = aug,
number = {3},
pages = {565},
title = {{The Ignorant Monopolist: Optimal Learning with Endogenous Information}},
url = {http://www.jstor.org/stable/2527182?origin=crossref},
volume = {34},
year = {1993}
}
@article{Segal2003,
author = {Segal, Ilya R.},
file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand(2).pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand.pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Segal - 2003 - Optimal Pricing Mechanisms with Unknown Demand.tex:tex},
issn = {1556-5068},
journal = {American Economic Review},
number = {3},
pages = {509--529},
title = {{Optimal Pricing Mechanisms with Unknown Demand}},
volume = {93},
year = {2003}
}
@article{Aghion1991,
author = {Aghion, Philippe and Bolton, Patrick and Harris, Christopher and Jullien, Bruno},
doi = {10.2307/2297825},
file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Aghion et al. - 1991 - Optimal Learning by Experimentation(2).pdf:pdf;:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Aghion et al. - 1991 - Optimal Learning by Experimentation.pdf:pdf},
issn = {00346527},
journal = {The Review of Economic Studies},
month = jun,
number = {4},
pages = {621},
title = {{Optimal Learning by Experimentation}},
url = {http://www.jstor.org/stable/2297825?origin=crossref},
volume = {58},
year = {1991}
}
@article{Aucremanne2005,
author = {Aucremanne, L. and Druant, M.},
file = {:Users/blbgse/Library/Application Support/Mendeley Desktop/Downloaded/Be et al. - Unknown - WO R K I N G PA P E R S E R I E S N O . 4 4 8 M A R C H 2 0 0 5 BEHAVIOUR IN BELGIUM WHAT CAN BE LEARNED FROM AN AD HOC SURVEY by Luc Aucremanne and Martine Druant WO R K I N G PA P E R S E R I E S WHAT CAN BE LEARNED FROM.pdf:pdf},
journal = {National Bank of Belgium Working Paper No. 65 - Research Series},
title = {{Price-Setting Behavior in Belgium: What can be learned from an ad-hoc survey?}},
url = {http://papers.ssrn.com/sol3/papers.cfm?abstract\_id=668248

[NTG-context] bib: ignoring 'criterium=cite'

2010-11-26 Thread Mojca Miklavec
Dear Taco/Hans,

In MKIV the argument criterium=cite is ignored: I get the complete
list of publications even though some of them are never cited
anywhere. In MKII the list shows up just fine.

On top of that the space between number [n] and bibliography item is
simply too small when 10 or more bibliography items are used (in MKII
it is fine). On the other hand MKII doesn't have enough blank space
between title and the start of bibliography listing (I remember that
bug since 2006 at least), while it is OK in MKIV.

I use:

\setuppublications
[alternative=num,
 criterium=cite,
 sorttype=cite]

But I will send a complete minimal example, hopefully tomorrow.

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] bib: ignoring 'criterium=cite'

2010-11-26 Thread Mojca Miklavec
Oh, and one more thing.

I strongly suspect that [sorttype=cite] is slightly misbehaving (it
prints out some bibliography items that are not cited at all in the
beginning of list; most probably in MKII as well), but that might be
connected with the fact that it simply writes out all the items. I
would expect the non-cited items to come last.


I have:
\startpublication[a1] ...
\startpublication[a2] ...
\startpublication[a3] ...
\startpublication[b1] ...
\startpublication[b2] ...
\startpublication[b3] ...

\nocite[b1]
\nocite[b2]
\nocite[b3]
% a* are not cited at all

but it prints out a1, a2, a3, b1, b2, b3. In my opinion the
noncited/nonmentionedatall items should come last. (In my case they
should not be printed out at all, but ...)

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
___


[NTG-context] Bibliography contains references not cited in the text

2010-11-25 Thread Curiouslearn
Hi All,

I am having trouble with the bib module. The bibliography section of
my article contains references that I have not cited in the text.
These are in my .bib file, but it seems to me that references that
were not cited in the text were ignored when constructing the
bibliography.

This is a minimal example. The bib file is attached. Thanks very much
for your help.


\setuppapersize[letter][letter]
\setuplayout[backspace=1.25in,
width=middle,topspace=0.75in,headerheight=0.5in,bottomspace=0.75in,footerheight=0.5in]
\setupwhitespace[medium]
\setuppagenumbering[location=footer]


\setuphead[section][textstyle=bold, numberstyle=bold, continue=yes]


\usemodule[bib]
\setupbibtex[database=templib]
\setuppublications[refcommand=authoryear]
\setupcite[authoryears][left=,right=]


\starttext
\section{Main Body}
This file is for testing whether the bibliography works. There seems
to be some problem.

Let us first cite \cite[Aghion1991], then we will cite
\cite[authoryears][Trefler1993].

In the new para we cite: \cite[Segal2003]

\section{References}
\placepublications[criterium=all]
\stoptext


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


[NTG-context] Problems with bib and \completepublications, \placepublications

2010-11-04 Thread Michael Murphy
I can't seem to get a list of publications. The only exception is when I 
use \placepublications directly after a chapter, which seems to work.


In particular, putting the list of references in a separate 'backmatter' 
doesn't work at all, either with \place- or \completepublications.


Minimal example is below. ConTeXt version is

2010.11.03 19:42

--

\setuppublicationlist[samplesize={BGT83},totalnumber=2]

\startpublication[k=Bailey,t=article,
a={{Bailey},{Swarztrauber}},y=1991,
n=1,s=BS91]
\artauthor[]{D.~H.}[D.~H.]{}{Bailey}
\artauthor[]{P.~N.}[P.~N.]{}{Swarztrauber}
\pubyear{1991}
\arttitle{The fractional {F}ourier transform and applications}
\journal{SIAM Rev.}
\volume{33}
\issue{3}
\pages{389--404}
\stoppublication

\startpublication[k=Bay1,t=article,
a={{Bayliss},{}},y=1983,
n=2,s=BGT83]
\artauthor[]{A.}[A.]{}{Bayliss}
\artauthor[]{C.~I.}[C.~I.]{}{Goldstein}
\artauthor[]{E.}[E.]{}{Turkel}
\pubyear{1983}
\arttitle{An iterative method for the {H}elmholtz equation}
\journal{J. Comp. Phys.}
\volume{49}
\pages{443--457}
\stoppublication

\starttext

\startbodymatter
I can cite single authors, like this \cite[Bailey], and I
can also do more than one citation \cite[Bailey,Bay1].

\blank[medium]

\placepublications
\completepublications

\stopbodymatter

\startbackmatter
\chapter{Backmatter publications}
\placepublications
\completepublications
\stopbackmatter

\stoptext

--
Michael Murphy
___
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] Problems with bib and \completepublications, \placepublications

2010-11-04 Thread Thomas A. Schmitz

On Nov 4, 2010, at 7:09 PM, Michael Murphy wrote:

 \starttext
 
 \startbodymatter
 I can cite single authors, like this \cite[Bailey], and I
 can also do more than one citation \cite[Bailey,Bay1].
 
 \blank[medium]
 
 \placepublications
 \completepublications
 
 \stopbodymatter
 
 \startbackmatter
 \chapter{Backmatter publications}
 \placepublications[criterium=all]
   ^^^

 \completepublications
 \stopbackmatter
 
 \stoptext

Thomas
___
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] placepublications does not place publications

2010-10-05 Thread Thomas A. Schmitz
Hi all,

the following code works in mkii. It used to work in mkiv as well, but doesn't 
anymore with the latest beta (I can't tell at which version it stopped working, 
sorry). Maybe a side-effect of the new structure code? 

All best

Thomas

\startpublication[k=ackermanmyth,t=book,
a={{Ackerman}},y=1991,
n=34,s=Ack91]
\author[]{Robert}[R.]{}{Ackerman}
\pubyear{1991}
\title{The Myth and Ritual School: J. G. Frazer and the Cambridge Ritualists}
\city{New York}
\pubname{Garland}
\stoppublication

\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=366,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication

\starttext

\section{One}

\nocite[ackrillaristotle]

\placepublications[criterium=cite]

\section{Two}

\nocite[ackermanmyth]

\placepublications[criterium=cite]

\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] placepublications does not place publications

2010-10-05 Thread Otared Kavian
Hi Thomas,

Your test file gives me the same result in mkii or mkiv: using ConTeXt  ver: 
2010.10.01 23:14.

Best regards: OK

On 5 oct. 2010, at 15:04, Thomas A. Schmitz wrote:

 Hi all,
 
 the following code works in mkii. It used to work in mkiv as well, but 
 doesn't anymore with the latest beta (I can't tell at which version it 
 stopped working, sorry). Maybe a side-effect of the new structure code? 
 
 All best
 
 Thomas
 
 \startpublication[k=ackermanmyth,t=book,
 a={{Ackerman}},y=1991,
 n=34,s=Ack91]
 \author[]{Robert}[R.]{}{Ackerman}
 \pubyear{1991}
 \title{The Myth and Ritual School: J. G. Frazer and the Cambridge Ritualists}
 \city{New York}
 \pubname{Garland}
 \stoppublication
 
 \startpublication[k=ackrillaristotle,t=book,
 a={{Ackrill}},y=1981,
 n=366,s=Ack81]
 \author[]{J.~L.}[J.~L.]{}{Ackrill}
 \pubyear{1981}
 \title{Aristotle the Philosopher}
 \city{Oxford}
 \pubname{Oxford UP}
 \stoppublication
 
 \starttext
 
 \section{One}
 
 \nocite[ackrillaristotle]
 
 \placepublications[criterium=cite]
 
 \section{Two}
 
 \nocite[ackermanmyth]
 
 \placepublications[criterium=cite]
 
 \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
 ___

___
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] [BUG] \placepublications[criterium=all] triggers error in ConTeXt 2010.09.29

2010-09-29 Thread Hongwen Qiu
 Please see the attached minimal example and its error log.
\placepublications[criterium=all] triggers error in ConTeXt 2010.09.29.
It works fine in ConTeXt 2010.09.24.
Both the luatex versions are beta-0.63.0-2010091123.
@unpublished{test,
title={Test},
author={test},
journal={Test},
year=2010,
month=9,
day=29,
}
sorters  using sort sequence: mm mc uc

(test.tex

ConTeXt  ver: 2010.09.29 15:00 MKIV  fmt: 2010.9.29  int: english/english

system  : cont-new loaded
(/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-new.tex
systems : beware: some patches loaded from cont-new.tex
(/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-new.mkiv))
system  : cont-fil loaded
(/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-fil.tex
loading : ConTeXt File Synonyms
)
system  : cont-sys.rme loaded
(/home/qiuhw/context/tex/texmf-context/tex/context/user/cont-sys.rme 
(/home/qiuhw/context/tex/texmf-context/tex/context/base/type-def.mkiv) 
(/home/qiuhw/context/tex/texmf-context/tex/context/base/type-lua.mkiv) 
(/home/qiuhw/context/tex/texmf-context/tex/context/base/type-siz.mkiv) 
(/home/qiuhw/context/tex/texmf-context/tex/context/base/type-otf.mkiv))
system  : cont-err loaded
(/home/qiuhw/context/tex/texmf-context/tex/context/base/cont-err.tex
systems : no file 'cont-sys.tex', using 'cont-sys.rme' instead
)
system  : test.top loaded
%
%   begin of optionfile
%
%   % runtime options files (command line driven)
%   \unprotect
%   % feedback and basic job control
%   % handy for special styles
%   \startluacode
%   document = document or { }
%   document.arguments={
%   }
%   document.files={
%test,
%   }
%   \stopluacode
%   % process info
%   \setupsystem[inputfile=test]
%   \setupsystem[\c!n=1,\c!m=1]
%   % modes
%   % options (not that important)
%   \startsetups *runtime:options
%   \setupoutput[pdftex]
%   \stopsetups
%   % styles and modules
%   \startsetups *runtime:modules
%   \stopsetups
%   % done
%   \protect \endinput
%
%   end of optionfile
%
(test.top)
fonts   : preloading latin modern fonts
{/home/qiuhw/context/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/home/qiuhw/context/tex/texmf/fonts/map/dvips/lm/lm-rm.map}{/home/qiuhw/context/tex/texmf-context/fonts/map/pdftex/context/mkiv-base.map}
bodyfont: 12pt rm is loaded
language: language en is active
publications: wrote a new auxiliary file cont-en.aux
publications: loading formatting style from bxml-apa
(/home/qiuhw/context/tex/texmf-context/tex/context/base/bxml-apa.mkiv)
systems : begin file test at line 3
! LuaTeX error ...text/tex/texmf-context/tex/context/base/strc-lst.lua:195: bad 
argument #1 to 'gsub' (string expected, got nil)
stack traceback:
[C]: in function 'gsub'
...text/tex/texmf-context/tex/context/base/strc-lst.lua:195: in 
function ...text/tex/texmf-context/tex/context/base/strc-lst.lua:192
(tail call): ?
...text/tex/texmf-context/tex/context/base/strc-lst.lua:392: in 
function 'analyze'
main ctx instance:1: in main chunk.

system   error on line 5 in file test.tex: LuaTeX error  ...

1 \setupbibtex[database=test]
2 
3 \starttext
4 \cite[test]
5   \placepublications[criterium=all]
6 \stoptext


\analyzestructurelist analyze(#1,#2,#3)}
  
\dodeterminelistcharacteristics ...ter \c!number }
  \xdef \utilitylistlength {...
to be read again 
   \initializepubslist 
\dodoplacepublications ...ubs]\initializepubslist 
  \doifnot {\namedlistparame...
l.5 \placepublications[criterium=all]
 
? X
mkiv lua stats : used config file  - 
/home/qiuhw/context/tex/texmf/web2c/texmfcnf.lua
mkiv lua stats : used cache path   - 
/home/qiuhw/context/tex/texmf-cache/luatex-cache/context/3525c3c2a591596c39048524c75fec75
mkiv lua stats : input load time   - 0.047 seconds
mkiv lua stats : stored bytecode data  - 239 modules, 56 tables, 295 chunks
mkiv lua stats : cleaned up reserved nodes - 30 nodes, 9 lists of 411
mkiv lua stats : node memory usage - 1 hlist, 3 glue, 1 penalty, 10 
glyph, 6 attribute, 20 glue_spec, 2 attribute_list, 1 temp, 1 local_par, 1 dir
mkiv lua stats : node list callback tasks  - 6 unique task lists, 1 instances 
(re)created, 281 calls
mkiv lua stats : used backend  - pdf (backend for directly 
generating pdf output)
mkiv lua stats : loaded patterns   - en::2
mkiv lua stats : callbacks - direct: 369, indirect: 4462, 
total: 4831
mkiv lua stats : result saved in file  - test.pdf
mkiv lua stats : loaded fonts  - 33 files

[NTG-context] Questions regarding the bibliography

2010-09-22 Thread Marco
Hi,

I've a bunch of questions regarding the bibliography. I didn't find much
useful information somewhere, neither in the wiki, the manual or in
bibmod-doc.pdf. If my questions are answered elsewhere feel free to point me
to the right direction.

1) Why are there redundant keys in the publication list:
\startpublication [
  k=ram,
  t=book,
  a=Ramez Elmasri, % BTW: How to input many authors in this place?
  y=1981,  % not taken into account
  u=http://foo.bar.com
]
\author {Ramez}[R.]{}{Elmasri} % Is it OK to leave out the first bracket?
\pubyear {2007}
\biburl {http://foo.bar.com}
\stoppublication

I checked that the »y=1981« is not taken into account, in fact I can remove it
without problems, if I remove \pubyear it doesn't work. What's »y=...« for?
Same goes for \author vs. a=... Why two locations for the author and url...?

2) What about not valid entries? \biburl for example is not a valid BibTeX
entry type, it's neither required, nor optional. Can I provide it without
running into problems? Providing for example \country leads to problems with
the year. But \biburl is not used in the style, \country is.

3) During testing I forgot to say \usemodule[bib] and it worked well. Is this
line not needed any more?

4) How to specify the \edition entry? Use the attached file for testing. If I
specify \edition {5} I get »5 edition« using the setup
\setuppublications[alternative=num]. That's wrong, either 5th edition or
edition 5. When I use \setuppublications[alternative=ams] I get 5th ed. That's
correct. For this reason I cannot enter \edition {5th}. The correct input
should be independent from the style used.

5) How to specify online sources? BibTeX has no proper data type for this. But
BibLaTeX has the type »online« with the special field urldate (for the access
date). Maybe there's a corresponding functionality in ConTeXt.


Thanks in advance.

Regards
Marco
\startbuffer[mukk]
\startpublication
  [k=fundamentals,
   y=1981,
   t=book]
\title {Fundamentals of Database Systems}
\author {Ramez}[R.]{}{Elmasri}
\author {Shamkant B.}[S.\,B.]{}{Navathe}
\pubyear {2007}
\pubname {Addison Wesley}
\edition {5}
\city {Boston}
\stoppublication

\startpublication
  [k=garden,
   t=misc, % What to use here?
   u=http://wiki.contextgarden.net % What is this line for?
  ]
\title {\ConTeXt-Garden}
\biburl {http://wiki.contextgarden.net}
\stoppublication
\stopbuffer
\savebuffer[mukk][\jobname.bbl]

\setuppublications [alternative=ams]
% \setuppublications [alternative=num] % Look for edition

\starttext
As you can see in \cite[fundamentals] or in \cite[garden].

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


[NTG-context] stray characters in output before bibliography

2010-09-12 Thread Johann P.S. Dahm
Hi, I'm new to ConTeXt (from LaTeX).  I'm trying it out for a course paper that 
I need to write and running into a problem with the output pdf.  With respect 
to the code below, when I compile it, I get the odd text pubs]References 
under the References section heading.  I've looked around, but I can't find 
anyone having a similar problem.  Is this caused by something I'm doing 
incorrectly in the ConTeXt code or is it something wrong with the bib module?  
For reference: I'm using MacTeX 2010 (up-to-date) on OSX10.6.

---
\usemodule[bib]

\setupbibtex[database=sources,sort=author, numbering=yes]

\starttext

\cite[something] some text.

\section{References}
\completepublications

\stoptext
---

Output looks like:

(Something, Somedate) some text.

1 References

pubs]References
1 Title of the book, publisher, etc

---

Thanks for any help,
- Johann

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

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


[NTG-context] tiny failure with bib module

2010-08-27 Thread Mojca Miklavec
Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref
  { in~}{}{. }}}{\insertseri...

\dotypesetapublication ...ve {\getvalue {pbdt-#1}}
  \fi \egroup
\next1 #1,-\dobibdata {#1}
   \doprocesscommaitem
\doprocesscommalist ...item \gobbleoneargument #1,
  ]\relax \global \advance \...

\bibdataref ...e \processcommalist [#1]\dobibdata
  \bibalternative \v!right
\docite ...alue {bib\@@currentalternative ref}[#2]
  \else \processcommalist [#...
l.12 \cite[alternative=data][key]

?

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] tiny failure with bib module

2010-08-27 Thread Taco Hoekwater

On 08/27/2010 12:13 PM, Mojca Miklavec wrote:

Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref



This should help, somewhere after \usemodule:

  \let\insertcrossref\bibinsertcrossref

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


Re: [NTG-context] tiny failure with bib module

2010-08-27 Thread Mojca Miklavec
On Fri, Aug 27, 2010 at 15:42, Taco Hoekwater t...@elvenkind.com wrote:
 On 08/27/2010 12:13 PM, Mojca Miklavec wrote:

 Dear Taco,

 the following minimal example:

 \usemodule[bib]

 \startpublication
        [k=key,t=book]
        \title{Title}
        \author[]{Author}[A.]{}{The}
 \stoppublication

 \starttext
 \cite[alternative=data][key]
 \stoptext

 creates an error in mkii (and works fine in mkiv):

 ! Undefined control sequence.
 \@@pvdatabook ...up }{\egroup . }{\insertcrossref


 This should help, somewhere after \usemodule:

  \let\insertcrossref\bibinsertcrossref

This does help somehow: it stops complaining, but the result is totally broken.

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] tiny failure with bib module

2010-08-27 Thread Hans Hagen

On 27-8-2010 3:42, Taco Hoekwater wrote:

On 08/27/2010 12:13 PM, Mojca Miklavec wrote:

Dear Taco,

the following minimal example:

\usemodule[bib]

\startpublication
[k=key,t=book]
\title{Title}
\author[]{Author}[A.]{}{The}
\stoppublication

\starttext
\cite[alternative=data][key]
\stoptext

creates an error in mkii (and works fine in mkiv):

! Undefined control sequence.
\@@pvdatabook ...up }{\egroup . }{\insertcrossref



This should help, somewhere after \usemodule:

\let\insertcrossref\bibinsertcrossref


I've added

\let\insertcrossref\gobblethreearguments

to the mkii/mkiv files

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

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


[NTG-context] Bib Module: \cite can kill spaces

2010-08-15 Thread Andreas Schneider
Hi,

I don't know how exactly it happens, but in the attached example the last
footnote is missing a space before the inserted \cite. In my real document
that happens a lot and kills the layout. Anything I can do to fix that?

Best Regards,
Andreas.\mainlanguage[de]

\usemodule[bib]
\setuppublications[alternative=apa-de]

\startpublication[k=Bellinger2004,t=article,
a={{Bellinger},{}},y=2004,
n=3,s=BCM04]
\artauthor[]{G.}[G.]{}{Bellinger}
\artauthor[]{D.}[D.]{}{Castro}
\artauthor[]{A.}[A.]{}{Mills}
\pubyear{2004}
\arttitle{Data, information, knowledge, and wisdom}
\journal{Retrieved August}
\volume{31}
\pages{2004}
\stoppublication

\def\prefix{Vgl. }

\starttext
\footnote{\prefix\cite[alternative=data][Bellinger2004]}
\footnote{\prefix{}other text}
\footnote{\prefix\cite[alternative=authorkey][Bellinger2004]}
\footnote{\prefix\cite[alternative=data][Bellinger2004]}
\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] Bib Module: \cite can kill spaces

2010-08-15 Thread Thomas Schmitz

On Sun, 15 Aug 2010 19:14:53 +0200
 Andreas Schneider ak...@gmx.de wrote:

Hi,

I don't know how exactly it happens, but in the attached 
example the last
footnote is missing a space before the inserted \cite. 
In my real document
that happens a lot and kills the layout. Anything I can 
do to fix that?


Best Regards,
Andreas.


Ugly workaround:

\def\prefix{Vgl. \strut} % or \null

But I have no idea what's happening here, maybe Hans or 
Taco can come up with a real solution. 
\cite[alternative=data] seems to eat any horizontal space 
before it; I don't know if this is a bug or a feature.


Thomas
___
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] Bib Module: \cite can kill spaces

2010-08-15 Thread taco

Thomas Schmitz wrote:

On Sun, 15 Aug 2010 19:14:53 +0200
 Andreas Schneider ak...@gmx.de wrote:

Hi,

I don't know how exactly it happens, but in the attached example the last
footnote is missing a space before the inserted \cite. In my real 
document

that happens a lot and kills the layout. Anything I can do to fix that?

Best Regards,
Andreas.


Ugly workaround:

\def\prefix{Vgl. \strut} % or \null

But I have no idea what's happening here, maybe Hans or Taco can come up 
with a real solution. \cite[alternative=data] seems to eat any 
horizontal space before it; I don't know if this is a bug or a feature.


It probably does an \unskip to get rid of bad vertical space in
the publication list. Use the workaround Thomas offered, as it
is not safe to change that.

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


Re: [NTG-context] Bib Module: \cite can kill spaces

2010-08-15 Thread Andreas Schneider

On Sun, 15 Aug 2010 20:09:07 +0200, taco t...@elvenkind.com wrote:
 Thomas Schmitz wrote:
 Ugly workaround:
 
 \def\prefix{Vgl. \strut} % or \null
 
 But I have no idea what's happening here, maybe Hans or Taco can come
up 
 with a real solution. \cite[alternative=data] seems to eat any 
 horizontal space before it; I don't know if this is a bug or a feature.
 
 It probably does an \unskip to get rid of bad vertical space in
 the publication list. Use the workaround Thomas offered, as it
 is not safe to change that.
 
 Best wishes,
 Taco

I always learn something new here. And by the way: you guys are really
damn fast :-)

Thank you very much! (once again :-))

Best Regards,
Andreas.
___
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] Tracking down error in publication list

2010-07-22 Thread Richard Stephens
Hello,

I am preparing a document with a publication list generated from BibTeX but
I get the following error:

! LuaTeX error .../context/texmf-context/tex/context/base/bibl-tra.lua:83:
attempt to compare nil with number
stack traceback:
.../context/texmf-context/tex/context/base/bibl-tra.lua:83: in function
.../context/texmf-context/tex/context/base/bibl-tra.lua:80
 [C]: in function 'sort'
.../context/texmf-context/tex/context/base/bibl-tra.lua:93: in function
'flush'
 main ctx instance:1: in main chunk.
\typesetpubslist ...hacks.flush(\@@pbsorttype )}
  \doendoflist
\dodoplacepublications ...sttrue \typesetpubslist
  \inpublistfalse \endgroup
...
to be read again


Is there a way I can narrow down what and where the problem is? At the
moment I'm stumped.
I've tried removing some of the \cite commands recently added, but to no
avail. Is the problem in the BibTeX file or in
my document?

Any help would be much appreciated.

Regards,

Richard

Converteam UK Ltd. Registration Number: 5571739 and Converteam Ltd. 
Registration Number: 2416188
Registered in England and Wales.
Registered office: Boughton Road, Rugby, Warwickshire, CV21 1BU.

CONFIDENTIALITY : This e-mail and any attachments are confidential and may be 
privileged. 
If you are not a named recipient, please notify the sender immediately and do 
not disclose
the contents to another person, use it for any purpose or store or copy the 
information in
any medium.

http://www.converteam.com

Please consider the environment before printing this e-mail.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] problem with publication lists in mkiv

2010-07-22 Thread Thomas A. Schmitz
OK, I'm replying to my own question to add one further detail: I have now found 
a minimal example that demonstrates the error with \writetolist: if you process 
the following file with mkiv, a spurious vertical space is added before the 
first line of text; everything works as expected in mkii. And the vertical 
space in the bibliography (shown in the example below) is still unsolved. So 
there definitely is a bug somewhere in mkiv. 

All best

Thomas

\definelist[MyTopics][criterium=all]

\setuplist[MyTopics]
  [pagenumber=no]

\showframe

\starttext

\writetolist[MyTopics]{Word}{} Hello

\stoptext

On Jul 15, 2010, at 9:11 AM, Thomas A. Schmitz wrote:

 Hi all, 
 
 since a few betas ago, I'm experiencing the problem that some commands add 
 unwanted vertical space in mkiv. I think this is the case with \writetolist, 
 but I need to prepare an example for that. I have prepared an example for 
 publication lists: the following code produces the expected output in mkii. 
 In mkiv, it adds vertical space for every item that is added to the 
 bibliography. Maybe some unescaped line-endings somewhere in the code?
 
 All best 
 
 Thomas
 
 \startpublication[k=intertestualita,t=book,
 a={intertestualita},y=1995,
 n=2552,s=int95]
 \pubyear{1995}
 \title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
  novembre 1994}
 \city{Amsterdam}
 \pubname{Hakkert}
 \stoppublication
 
 \startpublication[k=gibsonlearning,t=article,
 a={gibsonlearning},y=2004,
 n=991,s=gib04]
 \pubyear{2004}
 \arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
  Treatises on Progymnasmata}
 \journal{Classical Philology}
 \volume{99}
 \pages{103--129}
 \stoppublication
 
 
 \startpublication[k=ackrillaristotle,t=book,
 a={{Ackrill}},y=1981,
 n=305,s=Ack81]
 \author[]{J.~L.}[J.~L.]{}{Ackrill}
 \pubyear{1981}
 \title{Aristotle the Philosopher}
 \city{Oxford}
 \pubname{Oxford UP}
 \stoppublication
 
 
 \setuppublications[state=start]
 
 \starttext
 
 \section{Edited Volumes}
 
 test test test test test test test test test test test test test test 
 
 \nocite[intertestualita,gibsonlearning,ackrillaristotle]
 
 \placepublications[criterium=cite]
 
 \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
 ___

___
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] two problems for bib module

2010-07-22 Thread Thomas A. Schmitz
Hi Yanrui,

I'm afraid I can't really help you with your problems; I have just a thought on 
# 2.: at it's core, bibtex is still a 7-bit application. Development on 
replacements has begun - there's bibtexu, which is in TL2010, there's biber; 
none of them is quite mature yet. If memory serves right, Hans said that in the 
future, he wants to bypass bibtex altogether and develop something of his own. 
So, long story short: if you use Chinese characters in a .bib file, it's 
hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt 
can do about that as things stand now.

All best

Thomas

On Jul 19, 2010, at 10:51 AM, Li Yanrui (李延瑞) wrote:

 Hi all,
 
 I have the following problems when I use the bib module.
 
 1. For the cite of 'authoryear', how to make it being clickable link?
 
 This is a minimum example:
 
 %%%
 %% filename: test.tex
 \setupinteraction[state=start]
 \setupbibtex[database=ref]
 
 \setupcite[authoryear]
 \setuppublications[refcommand=authoryear]
 
 \starttext
 
 A: \cite[zixuwuyou].
 
 \title{References}
 \placepublications[criterium=all]
 
 \stoptext
 
 %%%
 
 %% filename: ref.bib
 @article{zixuwuyou,
  title={{Several problems for bib module}},
  author={Zhou, Y. and Suri, S. and Yanry, L.},
  journal={Journal of Bala bala},
  volume={46},
  number={6},
  pages={833--857},
  year={1999},
  publisher={Bala Bala}
 }
 
 2. In .bib file for Chinese (maybe cjk more exact) references, because
 the 'and' separator can not work, we have to use some Chinese
 punctuations as separator, such as Chinese comma. In this case, the
 cite of author's et.al. can not work.
 
 The following is an example (needed AdobeSongStd-Light.otf).
 
 
 %% filename: test.tex
 
 \starttypescript[serif][zhfont]
 \definefontsynonym[western][name:latinmodernromanregular]
 \definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
 \definefontsynonym[fbsong][western][fallbacks=song]
 \definefontsynonym[Serif][fbsong]
 \definefontsynonym[SerifItalic][fbsong]
 \stoptypescript
 
 \starttypescript[myfonts]
 \definetypeface[myfonts][rm][serif][zhfont]
 \stoptypescript
 
 \usetypescript[myfonts]
 \setupbodyfont[myfonts,rm,11pt]
 
 \setupinteraction[state=start]
 \setupbibtex[database=ref]
 
 \setupcite[authoryear][andtext={,}]
 \setuppublications[refcommand=authoryear,sorttype=bbl]
 
 \starttext
 
 A: \cite[谢2008]
 
 \title{References}
 \placepublications[criterium=all]
 
 \stoptext
 
 
 %% filename: ref.bib
 
 @article{谢2008,
  title={中国工业生产率的增长与收敛},
  author={谢千里,罗斯基,张轶凡},
  journal={经济学(季刊)},
  volume={7},
  number={3},
  pages={809--826},
  year={2008}
 }
 
 
 -- 
 Best regards,
 
 Li Yanrui (李延瑞)
 ___
 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] problem with publication lists in mkiv

2010-07-22 Thread Hans Hagen

On 22-7-2010 12:58, Thomas A. Schmitz wrote:

OK, I'm replying to my own question to add one further detail: I have now found 
a minimal example that demonstrates the error with \writetolist: if you process 
the following file with mkiv, a spurious vertical space is added before the 
first line of text; everything works as expected in mkii. And the vertical 
space in the bibliography (shown in the example below) is still unsolved. So 
there definitely is a bug somewhere in mkiv.


is the current beta better?


All best

Thomas

\definelist[MyTopics][criterium=all]

\setuplist[MyTopics]
   [pagenumber=no]

\showframe

\starttext

\writetolist[MyTopics]{Word}{} Hello

\stoptext

On Jul 15, 2010, at 9:11 AM, Thomas A. Schmitz wrote:


Hi all,

since a few betas ago, I'm experiencing the problem that some commands add 
unwanted vertical space in mkiv. I think this is the case with \writetolist, 
but I need to prepare an example for that. I have prepared an example for 
publication lists: the following code produces the expected output in mkii. In 
mkiv, it adds vertical space for every item that is added to the bibliography. 
Maybe some unescaped line-endings somewhere in the code?

All best

Thomas

\startpublication[k=intertestualita,t=book,
a={intertestualita},y=1995,
n=2552,s=int95]
\pubyear{1995}
\title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
  novembre 1994}
\city{Amsterdam}
\pubname{Hakkert}
\stoppublication

\startpublication[k=gibsonlearning,t=article,
a={gibsonlearning},y=2004,
n=991,s=gib04]
\pubyear{2004}
\arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
  Treatises on Progymnasmata}
\journal{Classical Philology}
\volume{99}
\pages{103--129}
\stoppublication


\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=305,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

test test test test test test test test test test test test test test

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

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


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

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



--

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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] two problems for bib module

2010-07-22 Thread Hans Hagen

On 22-7-2010 2:27, Thomas A. Schmitz wrote:


I'm afraid I can't really help you with your problems; I have just a thought on 
# 2.: at it's core, bibtex is still a 7-bit application. Development on 
replacements has begun - there's bibtexu, which is in TL2010, there's biber; 
none of them is quite mature yet. If memory serves right, Hans said that in the 
future, he wants to bypass bibtex altogether and develop something of his own. 
So, long story short: if you use Chinese characters in a .bib file, it's 
hit-or-miss; it's unreliable and may or may not work. There's nothing ConTeXt 
can do about that as things stand now.


in principle it is possible but i need testers etc etc etc as i never 
use this feature myself


the attached example does not use bibtex at all, the bib file is read 
into mem (could also be an xml file) and it never sees bibtex


there is a bxml-apa.mkiv file that you'l probably recognize ..

\settrue \tracebibtexformat

can be fun too

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
-
\setuplayout[backspace=1cm,topspace=.5cm,header=.5cm,footer=0cm,width=middle,height=middle]

\setuppapersize[S8][S8]

\starttypescript[serif][zhfont]
\definefontsynonym[western][name:latinmodernromanregular]
\definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[fbsong][western][fallbacks=song]
\definefontsynonym[Serif][fbsong]
\definefontsynonym[SerifItalic][fbsong]
\stoptypescript

\starttypescript[myfonts]
\definetypeface[myfonts][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfonts]
\setupbodyfont[myfonts,rm,11pt]

\starttext

\definebibtexsession  [somebibtex]
\registerbibtexfile   [somebibtex] [cjk.bib]
\preparebibtexsession [somebibtex] [convert,strip]

% \setuplist[somebibtex][before={\blank[medium]},after={\blank[medium]}] % hm

% \settrue \tracebibtexformat

\setupbibtexpublications[somebibtex][before={\blank[small]},after={\blank[small]}]

\startxmlsetups bibtex:bibtex
\xmlfilter{#1}{/entry/command(bibtex:format)}
\stopxmlsetups

\startxmlsetups bibtex:show
\xmlshow{#1}
\stopxmlsetups

\applytobibtexsession[somebibtex][bibtex:list]

cite: \bibtexcitation[somebibtex][test-entry] (中国工业生产率的增长与收敛)

% \applytobibtexsession[somebibtex][bibtex:show]

\blank dataref: \bibtexdataref   [somebibtex][test-entry]\blank
\blank typeref: \bibtextyperef   [somebibtex][test-entry]\blank
\blank key ref: \bibtexkeyref[somebibtex][test-entry]\blank
\blank serial  ref: \bibtexserialref [somebibtex][test-entry]\blank
\blank url ref: \bibtexurlref[somebibtex][test-entry]\blank
\blank doi ref: \bibtexdoiref[somebibtex][test-entry]\blank
\blank short   ref: \bibtexshortref  [somebibtex][test-entry]\blank
\blank yearref: \bibtexyearref   [somebibtex][test-entry]\blank
\blank author  ref: \bibtexauthorref [somebibtex][test-entry]\blank
\blank authoryear  ref: \bibtexauthoryearref [somebibtex][test-entry]\blank
\blank authoryears ref: \bibtexauthoryearsref[somebibtex][test-entry]\blank

\placebibtexpublications[somebibtex]

\stoptext


progressive-005.pdf
Description: Adobe PDF document
@article{ test-entry,
  title   = {中国工业生产率的增长与收敛},
  author  = {谢千里,罗斯基,张轶凡},
  journal = {经济学(季刊)},
  volume  = {7},
  number  = {3},
  pages   = {809--826},
  year= {2008}
}

___
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] problem with publication lists in mkiv

2010-07-22 Thread Thomas A. Schmitz

On Jul 22, 2010, at 5:01 PM, Hans Hagen wrote:

 so what was that small test file?
 
 Hans


Here comes:

\startpublication[k=intertestualita,t=book,
a={intertestualita},y=1995,
n=2552,s=int95]
\pubyear{1995}
\title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
 \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
 novembre 1994}
\city{Amsterdam}
\pubname{Hakkert}
\stoppublication

\startpublication[k=gibsonlearning,t=article,
a={gibsonlearning},y=2004,
n=991,s=gib04]
\pubyear{2004}
\arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
 Treatises on Progymnasmata}
\journal{Classical Philology}
\volume{99}
\pages{103--129}
\stoppublication


\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=305,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

test test test test test test test test test test test test test test

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

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


[NTG-context] two problems for bib module

2010-07-19 Thread 李延瑞
Hi all,

I have the following problems when I use the bib module.

1. For the cite of 'authoryear', how to make it being clickable link?

This is a minimum example:

%%%
%% filename: test.tex
\setupinteraction[state=start]
\setupbibtex[database=ref]

\setupcite[authoryear]
\setuppublications[refcommand=authoryear]

\starttext

A: \cite[zixuwuyou].

\title{References}
\placepublications[criterium=all]

\stoptext

%%%

%% filename: ref.bib
@article{zixuwuyou,
  title={{Several problems for bib module}},
  author={Zhou, Y. and Suri, S. and Yanry, L.},
  journal={Journal of Bala bala},
  volume={46},
  number={6},
  pages={833--857},
  year={1999},
  publisher={Bala Bala}
}

2. In .bib file for Chinese (maybe cjk more exact) references, because
the 'and' separator can not work, we have to use some Chinese
punctuations as separator, such as Chinese comma. In this case, the
cite of author's et.al. can not work.

The following is an example (needed AdobeSongStd-Light.otf).


%% filename: test.tex

\starttypescript[serif][zhfont]
\definefontsynonym[western][name:latinmodernromanregular]
\definefontfallback[song][name:adobesongstd][0x00400-0x2FA1F]
\definefontsynonym[fbsong][western][fallbacks=song]
\definefontsynonym[Serif][fbsong]
\definefontsynonym[SerifItalic][fbsong]
\stoptypescript

\starttypescript[myfonts]
\definetypeface[myfonts][rm][serif][zhfont]
\stoptypescript

\usetypescript[myfonts]
\setupbodyfont[myfonts,rm,11pt]

\setupinteraction[state=start]
\setupbibtex[database=ref]

\setupcite[authoryear][andtext={,}]
\setuppublications[refcommand=authoryear,sorttype=bbl]

\starttext

A: \cite[谢2008]

\title{References}
\placepublications[criterium=all]

\stoptext


%% filename: ref.bib

@article{谢2008,
  title={中国工业生产率的增长与收敛},
  author={谢千里,罗斯基,张轶凡},
  journal={经济学(季刊)},
  volume={7},
  number={3},
  pages={809--826},
  year={2008}
}


-- 
Best regards,

Li Yanrui (李延瑞)
___
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] problem with publication lists in mkiv

2010-07-15 Thread Thomas A. Schmitz
Hi all, 

since a few betas ago, I'm experiencing the problem that some commands add 
unwanted vertical space in mkiv. I think this is the case with \writetolist, 
but I need to prepare an example for that. I have prepared an example for 
publication lists: the following code produces the expected output in mkii. In 
mkiv, it adds vertical space for every item that is added to the bibliography. 
Maybe some unescaped line-endings somewhere in the code?

All best 

Thomas

\startpublication[k=intertestualita,t=book,
a={intertestualita},y=1995,
n=2552,s=int95]
\pubyear{1995}
\title{Atti del convegno internazionale \quotation{Intertestualit{\`a}}: il
  \quotation{dialogo} fra testi nelle letterature classiche: Cagliari, 24--26
  novembre 1994}
\city{Amsterdam}
\pubname{Hakkert}
\stoppublication

\startpublication[k=gibsonlearning,t=article,
a={gibsonlearning},y=2004,
n=991,s=gib04]
\pubyear{2004}
\arttitle{Learning Greek History in the Ancient Classroom: the Evidence of the
  Treatises on Progymnasmata}
\journal{Classical Philology}
\volume{99}
\pages{103--129}
\stoppublication


\startpublication[k=ackrillaristotle,t=book,
a={{Ackrill}},y=1981,
n=305,s=Ack81]
\author[]{J.~L.}[J.~L.]{}{Ackrill}
\pubyear{1981}
\title{Aristotle the Philosopher}
\city{Oxford}
\pubname{Oxford UP}
\stoppublication


\setuppublications[state=start]

\starttext

\section{Edited Volumes}

test test test test test test test test test test test test test test 

\nocite[intertestualita,gibsonlearning,ackrillaristotle]

\placepublications[criterium=cite]

\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] List of all bibliography items is empty in mkiv

2010-07-05 Thread Nicola
In article 4c2dceb2.90...@elvenkind.com,
 Taco Hoekwater t...@elvenkind.com wrote:

 On 07/02/2010 01:26 PM, Nicola wrote:
 
  \usemodule[bib]
  \setupbibtex[database=mypublications]
  \starttext
  \placepublications[criterium=all]
  \stoptext
  \end
 
  What can I check next?
 
 You could try adding some text or even a section command.
 At some point it should start working (probably even without
 an explicit \cite anywhere). Nevertheless, it looks like a bug.

Unfortunately, adding text or sectioning command doesn't help. Today I 
have updated ConTeXt Minimals as usual, using sh ./first-setup.sh, but 
the version I've got is 2010.05.24 (whereas I had 2010.06.10). Why?

Needless to say, I don't get any output yet. Since nobody has confirmed 
that the problem I have described can be reproduced, I must infer that 
it is something related to my particular setup. So, I will provide more 
details on my configuration (sorry for the verbosity), hoping that 
someone will spot something that should be fixed.

Under the latest Mac OS X, I use both (stable) ConTeXt from TeX Live 
2009 and an installation of ConTeXt Minimals (beta) in 
~/Library/texmf/context-minimals.

This is how I update ConTeXt in TeX Live, step by step:

1) update the ConTeXt distribution to the latest stable release:

sudo rsync -av 
rsync://contextgarden.net/minimals/current/context/current/ 
/usr/local/texlive/2009/texmf-dist/

2) Update LuaTeX executable:

sudo rsync -av 
rsync://contextgarden.net/minimals/current/bin/luatex/osx-universal/bin/l
uatex /usr/local/texlive/2009/bin/universal-darwin/

3) Re-build LuaTeX format files:

cd /usr/local/texlive/2009/texmf-var/web2c/luatex
sudo luatex -ini luatex.ini
sudo luatex -ini lualatex.ini
sudo luatex -ini dviluatex.ini
sudo luatex -ini dvilualatex.ini

4) Update XeTeX executable:

sudo rsync -av 
rsync://contextgarden.net/minimals/current/bin/xetex/osx-universal/bin/xe
tex /usr/local/texlive/2009/bin/universal-darwin/

5) Re-build XeTeX format files:

sudo fmtutil-sys --byfmt xelatex
sudo fmtutil-sys --byfmt xetex

7) Update MetaPost executable:

sudo rsync -av 
rsync://contextgarden.net/minimals/current/bin/metapost/osx-universal/bin
/mpost /usr/local/texlive/2009/bin/universal-darwin/

8) Update MetaPost format files:

sudo fmtutil-sys --byfmt mpost
sudo fmtutil-sys --byfmt metafun
cd /usr/local/texlive/2009/texmf-var/web2c/metapost/
sudo mpost -ini mfplain dump

9) Fix permissions of some executables (I always have to do this: is it 
a known bug?)

cd /usr/local/texlive/2009/texmf-dist/scripts/context/lua
sudo chmod +x luatools.lua mtxrun.lua
cd /usr/local/texlive/2009/texmf-dist/scripts/context/perl
sudo chmod +x *.pl
cd /usr/local/texlive/2009/texmf-dist/scripts/context/stubs/unix/
sudo chmod +x *

10) Update MKII format files:

sudo mktexlsr
sudo -H texexec --make --all
sudo -H texexec --make --xtx --all

(here I use -H because I want the format files to be written under 
/usr/local/texlive and not in ~/Library/texmf/web2c)

11) Update MKIV format files:

luatools --generate
context --make

Note that these last two commands are run without sudo, because I have 
chosen to have luatex-cache under ~/Library/texmf, so I have added

export TEXMFCACHE=~/Library/texmf

to my .profile.

And here is how I update ConTeXt Minimals:

0) Move to the right directory:

cd ~/Library/texmf/context-minimals

1) Update first-setup.sh:

curl -o first-setup.sh 
http://minimals.contextgarden.net/setup/first-setup.sh

2) Update ConTeXt Minimals:

sh ./first-setup.sh --extras=all

3) Set environment variables (I do this every time before using ConTeXt 
Minimals of course):

source ./tex/setuptex
export TEXMFCACHE=$TEXROOT/texmf-cache

Note that I also change TEXMFCACHE, not to conflict with stable ConTeXt.

4) Re-build format files:

mktexlsr
texexec --make --all
texexec --make --xtx --all
luatools --selfupdate
mtxrun --selfupdate
luatools --generate
context --make
texexec --make mpost

That's it.

A last remark: I have noticed that I have a .texlive2009 folder in my 
home folder, with the following content:

texmf-var/texdoc/cache-tlpdb.lua
texmf-var/web2c/pdftex/pdftex.fmt
texmf-var/web2c/pdftex/pdftex.log

Is it safe to delete?

Nicola

___
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] nomarking function in MKIV

2010-07-02 Thread Thomas A. Schmitz

On Jul 1, 2010, at 8:59 PM, Alan BRASLAU wrote:

 This is a very good answer.
 
 Now, think about robustness. So called sloppy writing
 can easily happen in a very big project, or more likely
 by an inexperienced user. ConTeXt is pretty good in handling
 this, but not perfect. How many times have we tried options
 that do not exist and which are simply ignored in silence.
 
 Now try:
  \input knuth
  \starttext
  What about this?
  \stoptext
 
 Sometimes our errors, ignored in silence, end up having
 strange side effects that are long to debug. I came across
 this, for example, using by mistake \cite{reference}
 rather then \cite[reference].
 
 Back to robustness, I once wrote a very big system used to run
 expriments. It *had* to be robust. Luckly, to insure this,
 I had a collegue who was very good in doing every thing wrong.
 For example, if the program asked how many cycles to run,
 he was capable of typing yes. Why not?
 The program still had to handle this correctly.
 Should be the same for typesetting.
 
 I hope that you all *never* make mistakes.
 Remember, *real* unix users only use cat;
 All other text editors are for sissys.


Hope this isn't too long and not too off-topic...

It all depends on what you call robustness. I'm a classicist, not a computer 
scientist or programmer, so  I view software only from a user's perspective. 
But here's what I think about this: a system is robust when it behaves in a 
predictable and consistent manner. Maybe it's because I have begun writing some 
of my stuff in xml, or maybe it's because I'm an anal-retentive guy by nature, 
but I find the tree image of documents compelling: everything has to be part of 
a branch. And I read the examples you provide as proving me right: if a program 
asks how many cycles? and the user input is yes, the only consistent and 
predictable behavior is throwing an error and reporting it to the user - 
integer number expected or some such. Processing yes will not allow the 
user to learn how to do this right. Everything else (The program still had to 
handle this correctly) is just going to leave the user at the mercy of what 
someone somewhere defined for her/him. 

Moreover: maybe as a classicist, I find it natural to look at documents in the 
perspective of the longue durée - after all, we handle stuff that has been 
around for several millennia. Which means I see my TeX or whatever file not 
primarily as an instruction to typeset stuff in a certain way, but as a 
container  to preserve information. Which means: ideally, I want my documents 
so well-structured that someone in the year 3010 will be able to extract the 
same information from them. The better they are structured, the more they 
respect a consistent model, the better the chances that this will happen. 
Again, I would argue that this means an example like
somestuff
\starttext
morestuff
\stoptext
just should be flagged as invalid because it makes it difficult to parse this 
document for the information it contains.

Lastly, Hraban has given a very good analogy when he pointed to the difference 
between the old-style html with its convenient, but sloppy syntax à la 
stuffp, whereas x(ht)ml is more strict with pstuff/p. The old way was 
convenient when you saw your document merely as a set of instructions for a 
browser to display your stuff. But in today's world, you have to see that your 
document may be viewed and processed in hundreds of ways: in a web browser on a 
computer, on a cell phone, an e-reader, a tablet, etc. Which means you should 
think of your document as structured information, not as instructions for a 
certain device. Again, the better the document is structured, the more 
independent and reliable its transmission will be.

So: I find the new \startchapter ... \stopchapter code much superior to the old 
way of organizing chapters. And I would argue that a program which discourages 
and flags incorrect input (like what you describe in your examples) is much 
superior to a program which somehow processes this input. This has nothing to 
do with using cat as an editor (btw: cat is for sissys, REAL programmers use a 
magnetized needle and a steady hand), but is a matter of organizing information 
in the best way.

Thomas
___
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] List of all bibliography items is empty in mkiv

2010-07-02 Thread Taco Hoekwater

On 07/02/2010 01:26 PM, Nicola wrote:


\usemodule[bib]
\setupbibtex[database=mypublications]
\starttext
\placepublications[criterium=all]
\stoptext
\end

What can I check next?


You could try adding some text or even a section command.
At some point it should start working (probably even without
an explicit \cite anywhere). Nevertheless, it looks like a bug.

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


Re: [NTG-context] nomarking function in MKIV

2010-07-01 Thread Alan BRASLAU
On Thursday 01 July 2010 12:00:45 Thomas A. Schmitz wrote:
 On Jul 1, 2010, at 11:44 AM, Alan BRASLAU wrote:
  No one has answered my question about to what belongs any text
  between a proceding \stopchapter and a following \startchapter, as in
  \startchapter{title}
  \stopchapter
  some text
  \startchapter{next title}
  \stopchapter
 
 Excuse me, but your question is just plain nonsense. What you show us is
 sloppy writing. Why should ConTeXt or any other system cater to this?
 You're asking where does text belong that doesn't belong to any
 hierarchical structure of my document? The answer is obvious: this text
 doesn't belong anywhere.

This is a very good answer.

Now, think about robustness. So called sloppy writing
can easily happen in a very big project, or more likely
by an inexperienced user. ConTeXt is pretty good in handling
this, but not perfect. How many times have we tried options
that do not exist and which are simply ignored in silence.

Now try:
  \input knuth
  \starttext
  What about this?
  \stoptext

Sometimes our errors, ignored in silence, end up having
strange side effects that are long to debug. I came across
this, for example, using by mistake \cite{reference}
rather then \cite[reference].

Back to robustness, I once wrote a very big system used to run
expriments. It *had* to be robust. Luckly, to insure this,
I had a collegue who was very good in doing every thing wrong.
For example, if the program asked how many cycles to run,
he was capable of typing yes. Why not?
The program still had to handle this correctly.
Should be the same for typesetting.

I hope that you all *never* make mistakes.
Remember, *real* unix users only use cat;
All other text editors are for sissys.

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

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


Re: [NTG-context] Indent in publication list

2010-06-18 Thread Yury G. Kudryashov
richard.steph...@converteam.com wrote:

The cite is removed because the original message was HTML only. Please, 
never use HTML only messages.

Try
\setuppublicationlist[width=5mm]

___
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] An elisp script for converting LaTeX to ConTeXt in emacs

2010-06-16 Thread Michael Murphy
Hi all,

one of the biggest drawbacks to writing my thesis in ConTeXt was that
much of the material had already been written in LaTeX, and I didn't
really want to have to go through by hand and change all the syntax.
Borne out this laziness was atoctx.el (which originally meant 'AMSTeX to
ConTeXt', but perhaps now should be called 'latoctx.el'). It's
essentially a set of macros that look through a document and tries to
convert lots of different LaTeX syntax to ConTeXt. At the moment, it
handles the following environments:

equation
gather
align
footnote
enumerate
figure

and the following macros

cite
emph

There are still bugs, and several more environments would be useful, but
if anyone thinks that it would be useful to them, then please go ahead
and use it. (Even better, if you'd like to help me write more of it,
drop me a line.)

I know that it's written in elisp which perhaps already excludes a
majority of people who don't use emacs, but I didn't have the patience
to write it in any other language.

Anyway, you can grab it at

http://github.com/murphy-md/atoctx

--
Michael Murphy

___
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] Mutiple citations doesn't work with compress=no + interaction

2010-06-09 Thread Michael Murphy

On 09/06/10 11:24, Taco Hoekwater wrote:

Michael Murphy wrote:

On 08/06/10 20:47, taco wrote:


It also only happens in mkiv, something is broken there. As is
usual in the mkiv version of the bib module, I can't figure
it out :(

However, here is a workaround:

...



... and indeed, this works for the minimal example, but in my actual
document, I get an error:

! Undefined control sequence.
\dododescriptioncomponent ...entdescriptioncoding
\s!tex \fi \ifx

and I have no idea why. I guess I'll play around some more.


Wild guess: can you try with this definition in the setup part
of your document?

\unexpanded\def\dodescriptioncomponent
{\doifelsedescriptioncomponent
\nododescriptioncomponent\dododescriptioncomponent}

Best wishes,
Taco


Thanks for the code, but that turns out not to help. The problem seems 
to be when I want to have references in footnotes (see attached minimal 
example).


--
Michael Murphy
\setuppublicationlist[samplesize={CKRGO08},totalnumber=3]

\startpublication[k=Balachandran2008,t=article,
a={{Balachandran},{Gong}},y=2008,o={10.1103/PhysRevA.77.012303},
n=1,s=BG08]
\artauthor[]{Vinitha}[V.]{}{Balachandran}
\artauthor[]{Jiangbin}[J.]{}{Gong}
\pubyear{2008}
\arttitle{Adiabatic quantum transport in a spin chain with a moving potential}
\journal{Phys. Rev. A}
\volume{77}
\issue{1}
\pages{012303}
\doi{10.1103/PhysRevA.77.012303}
\stoppublication

\startpublication[k=Borzi2002,t=article,
a={{Borz\`i},{}},y=2002,
n=2,s=BSH02]
\artauthor[]{Alfio}[A.]{}{Borz\`i}
\artauthor[]{Georg}[G.]{}{Stadler}
\artauthor[]{Ulrich}[U.]{}{Hohenester}
\pubyear{2002}
\arttitle{Optimal quantum control in nanostructures: Theory and application to
  a generic three-level system}
\journal{Phys. Rev. A}
\volume{66}
\stoppublication

\startpublication[k=Bose2007,t=article,
a={{Bose}},y=2007,o={http://dx.doi.org/10.1080/00107510701342313},
n=3,s=Bos07]
\artauthor[]{Sougato}[S.]{}{Bose}
\pubyear{2007}
\arttitle{Quantum communication through spin chain dynamics: an introductory
  overview}
\journal{Contemporary Physics}
\volume{48}
\issue{1}
\pages{13}
\doi{http://dx.doi.org/10.1080/00107510701342313}
\stoppublication
\setupinteraction[state=start]

\usemodule[bib]
\setuppublications[refcommand=authoryears]

\let\NORMALcite\cite
\newif\ifSEEN
\def\cite#1[#2]{\SEENfalse
  \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}%
  (\processcommalist[#2]\processitem )} 

\unexpanded\def\dodescriptioncomponent
  {\doifelsedescriptioncomponent
\nododescriptioncomponent\dododescriptioncomponent}
  
\setupcite[authoryears][compress=no,left=,right=]

\starttext

I can cite single authors, like this \cite[Balachandran2008], and now I
can also do more than one\footnote{but unfortunately I get errors when I
  have citations
  \cite[Balachandran2008]
  in footnotes}%
citation \cite[Balachandran2008,Borzi2002,Bose2007].
\blank
\placepublications

\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] Mutiple citations doesn't work with compress=no + interaction

2010-06-09 Thread Taco Hoekwater

Michael Murphy wrote:


Thanks for the code, but that turns out not to help. The problem seems 
to be when I want to have references in footnotes (see attached minimal 
example).


Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes
citations in footnotes. However ... something totally weird happens
in the current context and beta's: the footnote appears to be repeated
inside the body text.

For some reason I do not understand, \placepublications also seems to
process the footnote list (and because there is no proper definition
for handling them, rubbish appears on the top of the publication list).

This problem is not caused by the \cite inside the \footnote, nor by the
redefinition of \cite, it happens without those as well.

Best wishes,
Taco




min_bib_fn.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] Mutiple citations doesn't work with compress=no + interaction

2010-06-09 Thread Michael Murphy

On 09/06/10 13:02, Taco Hoekwater wrote:

Michael Murphy wrote:


Thanks for the code, but that turns out not to help. The problem seems
to be when I want to have references in footnotes (see attached
minimal example).


Ok, now I see. Attached is a new version of min_bib_fn.tex that fixes
citations in footnotes. However ... something totally weird happens
in the current context and beta's: the footnote appears to be repeated
inside the body text.

For some reason I do not understand, \placepublications also seems to
process the footnote list (and because there is no proper definition
for handling them, rubbish appears on the top of the publication list).

This problem is not caused by the \cite inside the \footnote, nor by the
redefinition of \cite, it happens without those as well.


Thanks, that works a treat. I also noticed the thing with the footnote, 
but it doesn't happen in my main document, so I wondered if it had 
something to do with the minimal setup. But you're right, it seems to 
always happen with \placepublications.


Anyway, I've now modified things slightly so that I can still use the 
optional forms of \cite (like \cite[authoryear]), so my file now looks like


\setupinteraction[state=start]

\usemodule[bib]

\setuppublications[refcommand=authoryears, criterium=all]

\let\NORMALcite\cite
\newif\ifSEEN
\unexpanded\def\cite[#1]{\strictdoifnextoptionalelse{\NORMALcite[#1]}%
  {\domycite[#1]}}
\def\domycite#1[#2]{\SEENfalse
  \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}%
  (\processcommalist[#2]\processitem )}

\setupcite[authoryears][compress=no,left=,right=]
\setupcite[authoryear][compress=no]

...

Of course, the other disadvantage of this at present is that I don't get 
'and' separating the last two references when I use \domycite. But I can 
live with that (on screen at least, for printing I can revert to the old 
behaviour).


--
Michael Murphy
___
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] MKIV and bib module

2010-06-09 Thread Honza Pohanka

Hallo,
I have discovered a problem with bib module in MKIV.
Using \completepublications command typesets only the heading and no bib  
items. Numbers in citations are missing too.

\placepublications and MKII works fine.


example

\enableregime[utf]
\mainlanguage[cz]
\input pdfr-def.mkii % glyph to unicode

\usemodule[bib]

\setupbibtex[database={stereo}]
\setuppublications[alternative=num,autohang=yes]
\setuppublicationlist[before=\blank]

\setupexternalfigures[directory=./img]


\starttext

bla \cite[moltonetal1998] bla \cite[andersonetal2007]

\setuppublications[alternative=ams]
\completepublications


\stoptext


--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

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

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


Re: [NTG-context] MKIV and bib module

2010-06-09 Thread Aditya Mahajan

On Wed, 9 Jun 2010, Honza Pohanka wrote:


Hallo,
I have discovered a problem with bib module in MKIV.
Using \completepublications command typesets only the heading and no bib 
items. Numbers in citations are missing too.

\placepublications and MKII works fine.


example

\enableregime[utf]
\mainlanguage[cz]
\input pdfr-def.mkii % glyph to unicode

\usemodule[bib]

\setupbibtex[database={stereo}]
\setuppublications[alternative=num,autohang=yes]
\setuppublicationlist[before=\blank]

\setupexternalfigures[directory=./img]


\starttext

bla \cite[moltonetal1998] bla \cite[andersonetal2007]

\setuppublications[alternative=ams]
\completepublications


\completepublications[criterium=all]

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

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


Re: [NTG-context] MKIV and bib module

2010-06-09 Thread Honza Pohanka

This helps, thank you.
But another error.
Specifying  \setuppublicationlist[title={\section}]

causes following error for MKIV


(E:/context/tex/texmf-context/tex/context/bib/bibl-ams.tex)
! Argument of \dosetuplist has an extra }.
inserted text
\par
to be read again
   }
\doifelsenothing #1-\edef \!!stringa {#1}
  \ifx \!!stringa \empty  
\expandafte...

\docompletepublications ...istparameter \c!title }
   {\systemsuppliedchapter  
[...

l.153 \completepublications[criterium=all]


regards
Jan

Dne Wed, 09 Jun 2010 21:15:36 +0200 Aditya Mahajan adit...@umich.edu  
napsal(a):



On Wed, 9 Jun 2010, Honza Pohanka wrote:


Hallo,
I have discovered a problem with bib module in MKIV.
Using \completepublications command typesets only the heading and no  
bib items. Numbers in citations are missing too.

\placepublications and MKII works fine.


example

\enableregime[utf]
\mainlanguage[cz]
\input pdfr-def.mkii % glyph to unicode

\usemodule[bib]

\setupbibtex[database={stereo}]
\setuppublications[alternative=num,autohang=yes]
\setuppublicationlist[before=\blank]

\setupexternalfigures[directory=./img]


\starttext

bla \cite[moltonetal1998] bla \cite[andersonetal2007]

\setuppublications[alternative=ams]
\completepublications


\completepublications[criterium=all]

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
___



--
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

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

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


[NTG-context] \setupcite[authornum][...] not working

2010-06-08 Thread Stefan Müller
Hi,

I'm using the ams-bibliography style and want to include authornum-cites in 
the document (so i want to input something like in the paper by 
\cite[authornum][doe] instead of in the paper by Doe \cite[num][doe].

The \cite command works as intended, but I'm not able to change the 
typesetting properties with \setupcite[authornum][...]. The others, like 
\setupcite[num][...] and \setupcite[author][...] seem to work as they should, 
though.

I provide a minimal example below, where to options set in line 4 are not used 
for typesetting the \cite[ref1]. I'm using the context minimals, MkIV.

\usemodule[bib]
\setupbibtex[database={test.bib}]
\setuppublications[alternative=ams, refcommand=authornum]
\setupcite[authornum][left={\}, andtext={ foo }, namesep={ bar }] % 
just 
some random options, none of them works

\starttext

\cite[ref1]

\completepublications[criterium=all]

\stoptext

I already tried apa style, the same there. In addition, the names of a 
citation placed with \cite[author] (e.g. Doe and Fisher) are not typesetted 
as those of a citation placed with \cite[authornum] (e.g. Doe,Fisher), 
although I think (from a short glimpse at bibl-ams.tex) they should.

Am I doing something wrong or is this a bug? Any help appreciated.

Stefan.
___
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] \setupcite[authornum][...] not working

2010-06-08 Thread Taco Hoekwater

Stefan Müller wrote:


I already tried apa style, the same there. In addition, the names of a 
citation placed with \cite[author] (e.g. Doe and Fisher) are not typesetted 
as those of a citation placed with \cite[authornum] (e.g. Doe,Fisher), 
although I think (from a short glimpse at bibl-ams.tex) they should.


Am I doing something wrong or is this a bug? Any help appreciated.


No, it is just a hack (authornum). I tried to fix it now, but that is 
turning out harder than I expected so probably the best approach is to

redefine authornum using author and num:


\def\bibauthornumref[#1]%
 {\bibalternative{left}%
  \cite[author][#1]
  \bibalternative{inbetween}%
  \cite[num][#1]
  \bibalternative{right}}

with that, 'authornum' listens to left, right and inbetween keys,
and there rest of formatting is controlled by \setupcite[num] and
\setupcite[author].

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


[NTG-context] Mutiple citations doesn't work with compress=no + interaction

2010-06-08 Thread Michael Murphy
I know that if I want to have clickable hyperlinks for citations, I need 
to turn off 'compress' for the citation type:


\setupcite[authoryears][compress=no]

The problem is that this doesn't seem to work: I get an 'unknown 
reference' error.


references  : unknown reference [][Balachandran2008
references  : unknown reference [][Balachandran2008
references  : unknown reference [][Balachandran2008

Strangely, this only happens when I want to refer to multiple authors, 
e.g. \cite[ref1, ref2, ref3], and everything works fine if I just do 
\cite[ref1].


I've attached a minimal example. Where am I going wrong?

--
Michael Murphy
\setupinteraction[state=start]

\usemodule[bib]
\setuppublications[refcommand=authoryears]
\setupcite[authoryears][compress=no]

\starttext

I can cite single authors, like this \cite[Balachandran2008], but when I
try to cite more together, it doesn't work
\cite[Balachandran2008,Borzi2002,Bose2007].
\blank
\placepublications

\stoptext
\setuppublicationlist[samplesize={CKRGO08},totalnumber=3]

\startpublication[k=Balachandran2008,t=article,
a={{Balachandran},{Gong}},y=2008,o={10.1103/PhysRevA.77.012303},
n=1,s=BG08]
\artauthor[]{Vinitha}[V.]{}{Balachandran}
\artauthor[]{Jiangbin}[J.]{}{Gong}
\pubyear{2008}
\arttitle{Adiabatic quantum transport in a spin chain with a moving potential}
\journal{Phys. Rev. A}
\volume{77}
\issue{1}
\pages{012303}
\doi{10.1103/PhysRevA.77.012303}
\stoppublication

\startpublication[k=Borzi2002,t=article,
a={{Borz\`i},{}},y=2002,
n=2,s=BSH02]
\artauthor[]{Alfio}[A.]{}{Borz\`i}
\artauthor[]{Georg}[G.]{}{Stadler}
\artauthor[]{Ulrich}[U.]{}{Hohenester}
\pubyear{2002}
\arttitle{Optimal quantum control in nanostructures: Theory and application to
  a generic three-level system}
\journal{Phys. Rev. A}
\volume{66}
\stoppublication

\startpublication[k=Bose2007,t=article,
a={{Bose}},y=2007,o={http://dx.doi.org/10.1080/00107510701342313},
n=3,s=Bos07]
\artauthor[]{Sougato}[S.]{}{Bose}
\pubyear{2007}
\arttitle{Quantum communication through spin chain dynamics: an introductory
  overview}
\journal{Contemporary Physics}
\volume{48}
\issue{1}
\pages{13}
\doi{http://dx.doi.org/10.1080/00107510701342313}
\stoppublication
___
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] Mutiple citations doesn't work with compress=no + interaction

2010-06-08 Thread taco

Michael Murphy wrote:
I know that if I want to have clickable hyperlinks for citations, I need 
to turn off 'compress' for the citation type:


\setupcite[authoryears][compress=no]

The problem is that this doesn't seem to work: I get an 'unknown 
reference' error.


references  : unknown reference [][Balachandran2008
references  : unknown reference [][Balachandran2008
references  : unknown reference [][Balachandran2008

Strangely, this only happens when I want to refer to multiple authors, 
e.g. \cite[ref1, ref2, ref3], and everything works fine if I just do 
\cite[ref1].


I've attached a minimal example. Where am I going wrong?


It also only happens in mkiv, something is broken there. As is
usual in the mkiv version of the bib module, I can't figure
it out :(

However, here is a workaround:


\setupinteraction[state=start]
\usemodule[bib]
\let\NORMALcite\cite
\newif\ifSEEN
\def\cite#1[#2]{\SEENfalse
  \def\processitem##1{\ifSEEN, \else\SEENtrue \fi \NORMALcite[##1]}%
  (\processcommalist[#2]\processitem )}

\setuppublications[refcommand=authoryears]
\setupcite[authoryears][compress=no,left=,right=]
\starttext
..


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


[NTG-context] urls longer than 57 characters fail in the bibliography

2010-05-27 Thread Michael Saunders
\usemodule[bib]

\newcommand{\myurl}[2]{\useURL[#1][#2][][\hyphenatedurl{#2}]{\ss\from[#1]}}

\starttext
\cite[test]
\placepublications[criterium=all]
\stoptext

works with:

@BOOK{test,
  title = {test title},
  publisher = {test title},
  year = {2010},
  author = {test author},
  note = 
{\myurl{testurl}{123456789012345678901234567890123456789012345678901234567}}
}


but fails with:

note = 
{\myurl{testurl}{1234567890123456789012345678901234567890123456789012345678}}

however, this \myurl statement works in the body.
___
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] urls longer than 57 characters fail in the bibliography

2010-05-27 Thread taco

Michael Saunders wrote:

\usemodule[bib]

\newcommand{\myurl}[2]{\useURL[#1][#2][][\hyphenatedurl{#2}]{\ss\from[#1]}}

\starttext
\cite[test]
\placepublications[criterium=all]
\stoptext

works with:

@BOOK{test,
  title = {test title},
  publisher = {test title},
  year = {2010},
  author = {test author},
  note = 
{\myurl{testurl}{123456789012345678901234567890123456789012345678901234567}}
}


but fails with:

note = 
{\myurl{testurl}{1234567890123456789012345678901234567890123456789012345678}}

however, this \myurl statement works in the body.


this is a bibtex bug (just look at the generated bbl file and you will 
see what happened). I don't think there is anything that can be done

about the bibtex output, so you will probably have to define the url
as a macro outside of the bib file

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


Re: [NTG-context] Multiple citations at one position

2010-05-25 Thread Stefan Müller
 When you put command \cite[ref1,ref2,ref3] % without spaces!!!
 then you get regular restult.
 
 Jaroslav

I confirm that it works as Jaroslav outlined: I get [1-3] when I drop the 
spaces. Thank you very much.

  With this example tex-file I only get [1].
 
 Confirmed. This is a bug. The above example works correctly with MkII (if 
 you replace test.bib with an actual bib file)

So it seems that the actual bug is only about the spaces. It would be rather 
convenient if I could put the spaces back in. TeXworks for example only wraps 
lines at spaces.

Stefan.
___
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] \definereferenceformat [MkIV]

2010-05-24 Thread Rogutės Sparnuotos
A bug in MkIV?
The left=[ and right=] settings of \definereferenceformat[] bleed through
to \in and \at:

\definereferenceformat[cite][left={[},right={]}]
\starttext
\section[sec:test]{Test}
\cite[].
Section \in[sec:test].
\stoptext

By the way, is \setupreferencing meant for \about only (if so, why the
generic name)?

-- 
--  Rogutės Sparnuotos
___
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] Multiple citations at one position

2010-05-21 Thread Stefan Müller
Thank you for the fast responses.

 Did you try \cite[ref1,ref3,... ref9] ?

Yes, I did try this, but instead of [1,2,3] or [1-3] I just got [1].

 Yes, it is OK. I am using in MKIV for multiple citation
 \cite[ref1,ref3,... ref9]
 Last delimiter is setting due commands \setupcite, for example
 default setting (for num style) is \setupcite[num][lastpubsep={ and }]
 I am using \setupcite[num][lastpubsep={,\,}] ...
 
 More informations about using bib module (\usemodule[bib]
 \usemodule[bibltx]) is in Taco's document on:
 http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/bib/bibmod-
 doc.pdf
 
 Jaroslav

I tried what you suggested, but without success. I'm using MkIV. My test case 
is:

\usemodule[bib]
\setupbibtex[database={test.bib}, sort=author]
\setuppublications[alternative=ams]
\setupcite[num][lastpubsep={,\,}]

\starttext
\section{Section}
\cite[ref1, ref2, ref3]
\completepublications
\stoptext

With this example tex-file I only get [1]. Strangely: If I remove either the 
\section or the \completepublications command I get []...

Any ideas what causes this?

Stefan
___
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] Multiple citations at one position

2010-05-21 Thread Aditya Mahajan

On Fri, 21 May 2010, Stefan Müller wrote:


Thank you for the fast responses.


Did you try \cite[ref1,ref3,... ref9] ?


Yes, I did try this, but instead of [1,2,3] or [1-3] I just got [1].


Yes, it is OK. I am using in MKIV for multiple citation
\cite[ref1,ref3,... ref9]
Last delimiter is setting due commands \setupcite, for example
default setting (for num style) is \setupcite[num][lastpubsep={ and }]
I am using \setupcite[num][lastpubsep={,\,}] ...

More informations about using bib module (\usemodule[bib]
\usemodule[bibltx]) is in Taco's document on:
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/bib/bibmod-
doc.pdf

Jaroslav


I tried what you suggested, but without success. I'm using MkIV. My test case
is:

\usemodule[bib]
\setupbibtex[database={test.bib}, sort=author]
\setuppublications[alternative=ams]
\setupcite[num][lastpubsep={,\,}]

\starttext
\section{Section}
\cite[ref1, ref2, ref3]
\completepublications
\stoptext

With this example tex-file I only get [1].


Confirmed. This is a bug. The above example works correctly with MkII (if 
you replace test.bib with an actual bib file)



Strangely: If I remove either the
\section or the \completepublications command I get []...

Any ideas what causes this?


\completepublications[criterium=all]

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

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


Re: [NTG-context] Multiple citations at one position

2010-05-21 Thread Jaroslav Hajtmar

When you put command \cite[ref1,ref2,ref3] % without spaces!!!
then you get regular restult.

Jaroslav

Here is my minimal example:

\usemodule[bib]
\setupbibtex[database={test.bib}, sort=author]
\setuppublications[alternative=ams]

\starttext
\section{Section}
\cite[ref1,ref2,ref3] % without spaces!!! With spaces i.e. \cite[ref1, 
ref2, ref3] get wrong result


\completepublications[criterium=all]
%\placepublications % too for MKIV compilation
\stoptext





Dne 21.5.2010 16:28, Stefan Müller napsal(a):

Thank you for the fast responses.

   

Did you try \cite[ref1,ref3,... ref9] ?
 

Yes, I did try this, but instead of [1,2,3] or [1-3] I just got [1].

   

Yes, it is OK. I am using in MKIV for multiple citation
\cite[ref1,ref3,... ref9]
Last delimiter is setting due commands \setupcite, for example
default setting (for num style) is \setupcite[num][lastpubsep={ and }]
I am using \setupcite[num][lastpubsep={,\,}] ...

More informations about using bib module (\usemodule[bib]
\usemodule[bibltx]) is in Taco's document on:
http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/bib/bibmod-
doc.pdf

Jaroslav
 

I tried what you suggested, but without success. I'm using MkIV. My test case
is:

\usemodule[bib]
\setupbibtex[database={test.bib}, sort=author]
\setuppublications[alternative=ams]
\setupcite[num][lastpubsep={,\,}]

\starttext
\section{Section}
\cite[ref1, ref2, ref3]
\completepublications
\stoptext

With this example tex-file I only get [1]. Strangely: If I remove either the
\section or the \completepublications command I get []...

Any ideas what causes this?

Stefan
___
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] Multiple citations at one position

2010-05-19 Thread Stefan Müller
Hi,

I am citing several references at one position in my document and I was 
wondering if there is a way to get something like [1, 3, 9 - 11] instead of 
[1] [3] [9] [10] [11] (what I would get by using \cite[ref1] \cite[ref3] 
\cite[ref9] ...). Unfortunately I can't find some deeper information about 
\cite or \setupcite. I'd appreciate any suggestions.

Thanks in advance,
Stefan.
___
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] Multiple citations at one position

2010-05-19 Thread Hans Hagen

On 19-5-2010 10:01, Stefan Müller wrote:

Hi,

I am citing several references at one position in my document and I was
wondering if there is a way to get something like [1, 3, 9 - 11] instead of
[1] [3] [9] [10] [11] (what I would get by using \cite[ref1] \cite[ref3]
\cite[ref9] ...). Unfortunately I can't find some deeper information about
\cite or \setupcite. I'd appreciate any suggestions.


I'm rewriting the bibtex code (which is boring as I have to figure out 
what it's about, even more as most bib test files are a mess.


For the moment it will run alongside the traditional mechanism but the 
new one will have a compatibility mode at some point; some characteristics:


- multiple bibtex sessions and mixed styles in one document
- extensive filtering of entries (using the xml subsystem)
- a different method to set up the styles (apa etc)
- a bit of tracing
- access to the full database (or multiple databases)
- no more need for the bibtex program
- new functionality demanding on user input

I got a first version working but as I don't use bibliographies myself 
it needs a bit of motivation to finish it soon. I'll probably ask others 
to prepare the other styles but first I need to clean up some rough edges.


So, in due time we can do such things but you need a bit of patience.

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] Multiple citations at one position

2010-05-19 Thread Aditya Mahajan

On Wed, 19 May 2010, Hans Hagen wrote:


On 19-5-2010 10:01, Stefan Müller wrote:

 Hi,

 I am citing several references at one position in my document and I was
 wondering if there is a way to get something like [1, 3, 9 - 11] instead
 of
 [1] [3] [9] [10] [11] (what I would get by using \cite[ref1]
 \cite[ref3]
 \cite[ref9] ...). Unfortunately I can't find some deeper information
 about
 \cite or \setupcite. I'd appreciate any suggestions.


I'm rewriting the bibtex code (which is boring as I have to figure out what 
it's about, even more as most bib test files are a mess.


For the moment it will run alongside the traditional mechanism but the new 
one will have a compatibility mode at some point; some characteristics:


- multiple bibtex sessions and mixed styles in one document
- extensive filtering of entries (using the xml subsystem)
- a different method to set up the styles (apa etc)
- a bit of tracing
- access to the full database (or multiple databases)
- no more need for the bibtex program
- new functionality demanding on user input

I got a first version working but as I don't use bibliographies myself it 
needs a bit of motivation to finish it soon. I'll probably ask others to 
prepare the other styles but first I need to clean up some rough edges.


If the internal mechanism is using XML, then CSL can be used for styles. 
http://citationstyles.org/


(I don't know much about it other than the fact that it exists and is used 
by Zotero)


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

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


Re: [NTG-context] Multiple citations at one position

2010-05-19 Thread Jean Magnan de Bornier
Le 19 mai à 22:01:25 Stefan Müller warrence@gmx.de écrit notamment:

| Hi,

| I am citing several references at one position in my document and I was 
| wondering if there is a way to get something like [1, 3, 9 - 11] instead of 
| [1] [3] [9] [10] [11] (what I would get by using \cite[ref1] \cite[ref3] 
| \cite[ref9] ...). Unfortunately I can't find some deeper information about 
| \cite or \setupcite. I'd appreciate any suggestions.

| Thanks in advance,
| Stefan.

Did you try \cite[ref1,ref3,... ref9] ?

-- 
Jean
___
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] Multiple citations at one position

2010-05-19 Thread Jaroslav Hajtmar

Dne 19.5.2010 23:35, Jean Magnan de Bornier napsal(a):

Le 19 mai à 22:01:25 Stefan Müllerwarrence@gmx.de  écrit notamment:

| Hi,
   
 

| I am citing several references at one position in my document and I was
| wondering if there is a way to get something like [1, 3, 9 - 11] instead of
| [1] [3] [9] [10] [11] (what I would get by using \cite[ref1] \cite[ref3]
| \cite[ref9] ...). Unfortunately I can't find some deeper information about
| \cite or \setupcite. I'd appreciate any suggestions.
   
 

| Thanks in advance,
| Stefan.

Did you try \cite[ref1,ref3,... ref9] ?

   
Yes, it is OK. I am using in MKIV for multiple citation 
\cite[ref1,ref3,... ref9]

Last delimiter is setting due commands \setupcite, for example
default setting (for num style) is \setupcite[num][lastpubsep={ and }]
I am using \setupcite[num][lastpubsep={,\,}] ...

More informations about using bib module (\usemodule[bib] 
\usemodule[bibltx]) is in Taco's document on:

http://www.tug.org/texlive/Contents/live/texmf-dist/doc/context/bib/bibmod-doc.pdf

Jaroslav

___
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] 10+ reasons why I still use MKII

2010-05-13 Thread Mojca Miklavec
[reshufling the order a bit]

First of all - I forgot to express my positive surprise - all the
horizontal breaks including hyphenation are *exactly the same* in MKII
and MKIV all over the document, even though MKII and MKIV are using
different fonts. Which is really nice.

\startyoumayignorethis
The only thing that really bothers me are so much different vertical
differences which show up in almost every document I ever write. MKIV
consistently takes more vertical space, so no matter what document I
try to recompile, it always ends up with more pages (and some weird
page breaks) when processing it with MKIV.

Yes, I know. The two are incompatible. Yes, I know. Different fonts
are being used. Yes, I know. Different algorithms/aproaches to break
pages. But it would be soo nice if the most basic documents with
LM fonts could turn out at least approximately the same. Horizontal
breaking works perfectly (it's identical). It's only vertical spacing
that's a tiny bit problematic and makes every recompiled document a
bit messy.

It might be nice to look a bit closer to the topic, like in the
example that I pointed out. There are some weirdnesses left, like the
equations that starts at least a line lower in MKIV when there's no
real reason for such a behaviour.
\stopyoumayignorethis

 \definedescription
   [latexdesc]
 [headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm]

 just omit the align=left (was not handled in mkii)

Honestly, I have no idea why I had it there, but I guess that I was
copy-pasting from wiki. So I didn't even notice that that option had
no effect at all.

 also, commands starting with \latex behave unpredictable in mkiv due to
 luigis compatibility mode

That was the best comment in the thread. Thanks for making me a day :)

 \usetypescript[iwona]
 \setupbodyfont[iwona]
 \starttext
 $a+b$
 \stoptext

 hmm runs ok here ... but as i removed some old iwona stuff from type-otf

Thanks. In the new beta warnings are gone indeed. (I'll check the
changes later.)

 2.) Recently discussed on the mailing list - stopper has no influence in
 MKIV:

 \setupcaptions[stopper={:}]
 \starttext
 \placefigure{title}{\framed{bla}}
 \stoptext

 subtle difference:

 \setupcaptions[numberstopper={:}]
 \starttext
 \placefigure{title}{\framed{bla}}
 \stoptext

 all stopper, separator etc things are now more explicit as we have more
 control

Thanks a lot. (Just wandering - should stopper be a synonym for
numberstopper in MKIV then or is stopper also used somewhere else?)

 4.)
 A slightly more basic example:

 \enableregime[utf-8]
 \starttext
 \startbuffer[gnu]
 \startMPcode
 draw \sometxt{čšž};
 \stopMPcode
 \stopbuffer
 čšž
 \getbuffer[gnu]
 \stoptext

 hm, i get a pdf file with

 čšž čšž

 so what happens at your end?

Did you try to run that with MKII? MKIV works fine (I know that the
title was a bit misleading). I get the characters from font that are
equal to the second byte of UTF-8 representation of input character.

 5.)
 weird indeed, must be something basis as
 $$11\normalreqno{!!}$$

 also has it .. taco just confirmed that it must be something in luatex
 itself

Thanks. I'm sorry that I didn't simplify that one (I just took a
random equation out of a document since it looked nicer).

 6.) I know that \NR is not the most appropriate way to go into next
 row, but the following gives considerably different results in MKII
 and MKIV:

 \starttable[|l|]
 \NC \type{a} \NC\NR
 \NC \type{a} \NC\NR
 \NC \type{a} \NC\NR
 \stoptable

 probably because \type has no strut in mkiv ... maybe it should have

I don't know.

 9.) Note the big difference of when the formula starts vertically on page:

 \starttext
 \startformula
 a+b
 \stopformula
 \stoptext

 interesting, i need to look into that

Thanks :)

 11.) Missing bibliography entries:

 \usemodule[bib]
 % this line spoils the show
 \setuppublications[alternative=num]

 \setuppublicationlayout[webpage]{%
        \inserttitle{\bgroup\it }{\egroup. }{}%
        \inserturl{}{}{}%
 }

 \startpublication
        [k=FAIR,t=webpage,u=http://www.gsi.de/fair/]
        \biburl{http://www.gsi.de/fair/}
        \title{FAIR -- Facility for Antiproton and Ion Research}
 \stoppublication

 \starttext
 \cite[FAIR]\par
 \placepublications
 \stoptext

 magic to me, but we can look into bib mess stuff later

What can I do?

 3.) Bibliography citations give different result with the same setup
 (different numbers and different spacing in \placepublication - might
 be also worth testing with grid typesetting as I wasn't able to set up
 the alignment properly in MKII last time when I have tried). I'm not
 sure which one is right, but there's probably no reason to produce
 different results.

 \usemodule
        [bib]
 \setuppublications
        [alternative=num,
         criterium=all,
         sorttype=cite]

 \starttext
 \startpublication[k=a,t=article]\arttitle

Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-13 Thread Hans Hagen

On 13-5-2010 3:42, Mojca Miklavec wrote:


\startyoumayignorethis
The only thing that really bothers me are so much different vertical
differences which show up in almost every document I ever write. MKIV
consistently takes more vertical space, so no matter what document I
try to recompile, it always ends up with more pages (and some weird
page breaks) when processing it with MKIV.


\startcantresistmode

the lineheight relates to the ex height and as in mkiv we don't have the 
tfm limitations (those 16 values of ht dp) we have slightly different 
spacing


\stopcantresistmode


Yes, I know. The two are incompatible. Yes, I know. Different fonts
are being used. Yes, I know. Different algorithms/aproaches to break
pages. But it would be soo nice if the most basic documents with
LM fonts could turn out at least approximately the same. Horizontal
breaking works perfectly (it's identical). It's only vertical spacing
that's a tiny bit problematic and makes every recompiled document a
bit messy.


\startchallengingmode

well, you can try to figure out what 2.8ex in mkii and mkiv is and then 
have your own defaults for mkiv


\stopchallengingmode


It might be nice to look a bit closer to the topic, like in the
example that I pointed out. There are some weirdnesses left, like the
equations that starts at least a line lower in MKIV when there's no
real reason for such a behaviour.


\startexplanation
TeX tries hard to inject a baselineskip and also an empty hlist so that 
one always gets that line. In MkII I compensated for that hard to beat 
automatism. In MkIV this does not happen. We figured out that when we 
add a \noindent before $$ that we don't get this side effect so that now 
happens in the latest beta.

\stopexplanation


\stopyoumayignorethis



Thanks a lot. (Just wandering - should stopper be a synonym for
numberstopper in MKIV then or is stopper also used somewhere else?)


the more synonyme the more documentation


Did you try to run that with MKII? MKIV works fine (I know that the
title was a bit misleading). I get the characters from font that are
equal to the second byte of UTF-8 representation of input character.


you probably need to enable utf8 in the mp environment then


Thanks. I'm sorry that I didn't simplify that one (I just took a
random equation out of a document since it looked nicer).


random thesis ... interesting


9.) Note the big difference of when the formula starts vertically on page:

\starttext
\startformula
a+b
\stopformula
\stoptext


interesting, i need to look into that


Thanks :)


same problem as previous


What can I do?


make a complete test as small as possible


Does anyone else have an idea of whether \cite[a,b,c] should generate
[1,2,3] or [1-3]? I have an article at hand that has [1], [2], [3]
instead to be honest. I'm not sure, but [1-3] somehow doesn't appear
right to me. I have a feeling that each bib item needs to be cited
separately, but I may be wrong.


collapsing has always been there afaik

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] 10+ reasons why I still use MKII

2010-05-13 Thread Mojca Miklavec
Dear Hans,

(I'll answer the rest later)

 Did you try to run that with MKII? MKIV works fine (I know that the
 title was a bit misleading). I get the characters from font that are
 equal to the second byte of UTF-8 representation of input character.

 you probably need to enable utf8 in the mp environment then

But it has always worked perfectly until recently. And it's not really
mp environment. I suspect that the text gets typeset with TeX, not
with metapost, so metapost enviroment should not really count.

I have a version of ConTeXt that dates back to
2009.11.24 10:13
and in that one it still works properly. In version
2010.02.26 10:57
it is broken.

 Thanks. I'm sorry that I didn't simplify that one (I just took a
 random equation out of a document since it looked nicer).

 random thesis ... interesting

You know ... you have written a devoted \startsimplethesis for me,
don't you remember :)
Random images and equations were included there as well, I just
extended macros a bit to adapt the result to the expertise of each
jury member last september :)

 What can I do?

 make a complete test as small as possible

It doesn't get much simpler than the following:

\usemodule[bib]
% this line spoils the show
\setuppublications[alternative=num]
\setuppublicationlayout[webpage]{\inserturl{}{}{}}
\startpublication[k=pragma,t=webpage]
\biburl{http://www.pragma-ade.com}
\stoppublication

\starttext
\cite[pragma]\par\placepublications
\stoptext

Defining new publication types doesn't seem to be compatible with
alternative=num in MKIV.

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] 10+ reasons why I still use MKII

2010-05-13 Thread Hans Hagen

On 13-5-2010 8:34, Mojca Miklavec wrote:

Dear Hans,

(I'll answer the rest later)


Did you try to run that with MKII? MKIV works fine (I know that the
title was a bit misleading). I get the characters from font that are
equal to the second byte of UTF-8 representation of input character.


you probably need to enable utf8 in the mp environment then


But it has always worked perfectly until recently. And it's not really
mp environment. I suspect that the text gets typeset with TeX, not
with metapost, so metapost enviroment should not really count.

I have a version of ConTeXt that dates back to
 2009.11.24 10:13
and in that one it still works properly. In version
 2010.02.26 10:57
it is broken.


hm, let's move this off list then ... (just make very small for sure 
failing tests that i then can add to the test suite)



You know ... you have written a devoted \startsimplethesis for me,
don't you remember :)
Random images and equations were included there as well, I just
extended macros a bit to adapt the result to the expertise of each
jury member last september :)


surely i remember and i'm working on a more advanced version for your 
upcoming thesis, with automatic bibliographic references and so, but 
i'll only finish it when you will use mkiv



What can I do?


make a complete test as small as possible


It doesn't get much simpler than the following:

\usemodule[bib]
% this line spoils the show


% this example spoils my weekend


\setuppublications[alternative=num]
\setuppublicationlayout[webpage]{\inserturl{}{}{}}
\startpublication[k=pragma,t=webpage]
\biburl{http://www.pragma-ade.com}
\stoppublication

\starttext
\cite[pragma]\par\placepublications
\stoptext


hm, you set it to num and get a num only? i'll have to check what happens

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] Changing separator in BIBliography

2010-05-12 Thread Taco Hoekwater

Jaroslav Hajtmar wrote:

Hello,
I am using Taco's  bib module in mkiv and I use only note field in misc 
layout.
Now I have problem with setting separator of keys. I want use it in 
czech language and therefore I want modify separator, but I dont know 
relevant option.


When I use in source \cite[15, 16] (keys of publications) then I get 
link to list of publications [15 and 16]
When I use in source \cite[15, 16, 17] then I get link to list of 
publications [15, 16 and 17]


I want set separator so that result was [15, 16]  or [15, 16, 17]



\setupcite[num][lastpubsep={, }]

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


[NTG-context] 10+ reasons why I still use MKII

2010-05-12 Thread Mojca Miklavec
Dear Hans,

since you have promissed another hotfix release for TL 2010, here's a
list of issues that I had with my thesis and MKIV (some have already
been fixed in the due time, but many remained). I probably wouldn't
have had those problems if I was designing my document in MKIV from
scratch, but just recompiling in MKIV didn't work out for several
reasons listed below.

1.) Minimal example:

\usetypescript[iwona]
\setupbodyfont[iwona]
\starttext
$a+b$
\stoptext

Output:

!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona6ptmmmr33*
!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona8ptmmmr22*
!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona11ptmmmr11*
!define font: font with name Iwona-Math-Letters-Regular is not found

etc. I need to figure out why, though it works (I don't see
deficiencies in output yet).

2.) Recently discussed on the mailing list - stopper has no influence in MKIV:

\setupcaptions[stopper={:}]
\starttext
\placefigure{title}{\framed{bla}}
\stoptext

3.) Bibliography citations give different result with the same setup
(different numbers and different spacing in \placepublication - might
be also worth testing with grid typesetting as I wasn't able to set up
the alignment properly in MKII last time when I have tried). I'm not
sure which one is right, but there's probably no reason to produce
different results.

\usemodule
[bib]
\setuppublications
[alternative=num,
 criterium=all,
 sorttype=cite]

\starttext
\startpublication[k=a,t=article]\arttitle{a}\stoppublication
\startpublication[k=b,t=article]\arttitle{b}\stoppublication
\startpublication[k=c,t=article]\arttitle{c}\stoppublication

x\cite[a,b,c]

\placepublications
\stoptext

4.) The following problem must have appeared recently (it was working
ok in September): in MKII the encoding is completely screwed up:

\usemodule[gnuplot]
\enableregime[utf-8]

\starttext
\startGNUPLOTscript[integrated risetime]
plot sin(x) t 'šin(čix)'
\stopGNUPLOTscript
\useGNUPLOTgraphic[integrated risetime][1]
\stoptext

A slightly more basic example:

\enableregime[utf-8]
\starttext
\startbuffer[gnu]
\startMPcode
draw \sometxt{čšž};
\stopMPcode
\stopbuffer
čšž
\getbuffer[gnu]
\stoptext

5.) Weird formula number placement when long equations are used in MKIV

\def\oklepaj#1{\left(#1\right)}
\starttext
\placeformula
\startformula
{\dot N}(t)=
  
A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+
  
B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow}
\stopformula
\stoptext

6.) I know that \NR is not the most appropriate way to go into next
row, but the following gives considerably different results in MKII
and MKIV:

\starttable[|l|]
\NC \type{a} \NC\NR
\NC \type{a} \NC\NR
\NC \type{a} \NC\NR
\stoptable

7.) I know that there's a longstanding left vs. right bug, but
flushleft is no solution in the following case (compare MKII and MKIV
again):

\definedescription
  [latexdesc]
  
[headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm]

\latexdesc{step E (expectation):} \input tufte

\latexdesc{step M (maximization):} \input tufte

8.)

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]
\starttext
$\boldsymbol{\theta}$
\stoptext

9.) Note the big difference of when the formula starts vertically on page:

\starttext
\startformula
a+b
\stopformula
\stoptext

10.) Different square root shape/variant used:

$\frac{1}{\sqrt{2πσ_i^2}}$

Original formula:
\startformula
\startcases
  \NC ρ_0, \NC for $i=0$, \NR
  \NC 
ρ_i\,\frac{1}{\sqrt{2πσ_i^2}}\exp\biggl(-\frac{\left(x_j-μ_i\right)^2}{2σ_i^2}\biggr),
\NC for $i\in\left\{1,2\right\}$. \NR
\stopcases
\stopformula
but I cannot reproduce the big difference it makes in original
document on a smaller scale.

11.) Missing bibliography entries:

\usemodule[bib]
% this line spoils the show
\setuppublications[alternative=num]

\setuppublicationlayout[webpage]{%
\inserttitle{\bgroup\it }{\egroup. }{}%
\inserturl{}{}{}%
}

\startpublication
[k=FAIR,t=webpage,u=http://www.gsi.de/fair/]
\biburl{http://www.gsi.de/fair/}
\title{FAIR -- Facility for Antiproton and Ion Research}
\stoppublication

\starttext
\cite[FAIR]\par
\placepublications
\stoptext

12.) \nocite[nonexistent] generates an empty [n] in bibliography in
MKII, while it has zero effect in MKIV (it should at least generate an
error).

13

Re: [NTG-context] 10+ reasons why I still use MKII

2010-05-12 Thread Hans Hagen

Hi,


1.) Minimal example:

\usetypescript[iwona]
\setupbodyfont[iwona]
\starttext
$a+b$
\stoptext

Output:

!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona6ptmmmr33*
!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona8ptmmmr22*
!define font: font with name Iwona-Math-Letters-Regular is not found
!define font: unknown font Iwona-Math-Letters-Regular, loading aborted
!define font: unable to define Iwona-Math-Letters-Regular as
\*iwona11ptmmmr11*
!define font: font with name Iwona-Math-Letters-Regular is not found

etc. I need to figure out why, though it works (I don't see
deficiencies in output yet).


hmm runs ok here ... but as i removed some old iwona stuff from type-otf 
after our mail exchange i'll make a new beta; also math is not defined 
in the typescript but in a lfg file



2.) Recently discussed on the mailing list - stopper has no influence in MKIV:

\setupcaptions[stopper={:}]
\starttext
\placefigure{title}{\framed{bla}}
\stoptext


subtle difference:

\setupcaptions[numberstopper={:}]
\starttext
\placefigure{title}{\framed{bla}}
\stoptext

all stopper, separator etc things are now more explicit as we have more 
control



3.) Bibliography citations give different result with the same setup
(different numbers and different spacing in \placepublication - might
be also worth testing with grid typesetting as I wasn't able to set up
the alignment properly in MKII last time when I have tried). I'm not
sure which one is right, but there's probably no reason to produce
different results.

\usemodule
[bib]
\setuppublications
[alternative=num,
 criterium=all,
 sorttype=cite]

\starttext
\startpublication[k=a,t=article]\arttitle{a}\stoppublication
\startpublication[k=b,t=article]\arttitle{b}\stoppublication
\startpublication[k=c,t=article]\arttitle{c}\stoppublication

x\cite[a,b,c]

\placepublications
\stoptext


as i never used citations i don't know what you expect ... best ask 
Thomas what you should expect ... anyway, i'll make a template for the 
xml approach which is more fun



4.) The following problem must have appeared recently (it was working
ok in September): in MKII the encoding is completely screwed up:

\usemodule[gnuplot]
\enableregime[utf-8]

\starttext
\startGNUPLOTscript[integrated risetime]
plot sin(x) t 'šin(čix)'
\stopGNUPLOTscript
\useGNUPLOTgraphic[integrated risetime][1]
\stoptext

A slightly more basic example:

\enableregime[utf-8]
\starttext
\startbuffer[gnu]
\startMPcode
draw \sometxt{čšž};
\stopMPcode
\stopbuffer
čšž
\getbuffer[gnu]
\stoptext


hm, i get a pdf file with

čšž čšž

so what happens at your end?


5.) Weird formula number placement when long equations are used in MKIV

\def\oklepaj#1{\left(#1\right)}
\starttext
\placeformula
\startformula
{\dot N}(t)=
   
A\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{fast}+
   
B\oklepaj{\exp\oklepaj{-\frac{t-t_0}{τ_{\text{eksp.-\exp\oklepaj{-\frac{t-t_0}{τ_{\text{slow}
\stopformula
\stoptext


weird indeed, must be something basis as

$$11\normalreqno{!!}$$

also has it .. taco just confirmed that it must be something in luatex 
itself



6.) I know that \NR is not the most appropriate way to go into next
row, but the following gives considerably different results in MKII
and MKIV:

\starttable[|l|]
\NC \type{a} \NC\NR
\NC \type{a} \NC\NR
\NC \type{a} \NC\NR
\stoptable


probably because \type has no strut in mkiv ... maybe it should have


7.) I know that there's a longstanding left vs. right bug, but


hey, it's spec, no bug (as left is short for raggedleft)


flushleft is no solution in the following case (compare MKII and MKIV
again):

\definedescription
   [latexdesc]
   
[headstyle={\ss\bf},style=normal,align=left,location=hanging,width=fit,margin=0cm]

\latexdesc{step E (expectation):} \input tufte

\latexdesc{step M (maximization):} \input tufte


just omit the align=left (was not handled in mkii)

also, commands starting with \latex behave unpredictable in mkiv due to 
luigis compatibility mode



8.)

\definetypeface [boldmath] [mm] [boldmath] [latin-modern] [default]
\starttext
$\boldsymbol{\theta}$
\stoptext


sure, boldmath is now done differently: we have either unicode bold or 
full bold and full bold has never been checked (keep in mind that in 
unicode not all symbols have a bold variant



9.) Note the big difference of when the formula starts vertically on page:

\starttext
\startformula
a+b
\stopformula
\stoptext


interesting, i need to look into that


10.) Different square root shape

[NTG-context] Changing separator in BIBliography

2010-05-11 Thread Jaroslav Hajtmar

Hello,
I am using Taco's  bib module in mkiv and I use only note field in misc 
layout.
Now I have problem with setting separator of keys. I want use it in 
czech language and therefore I want modify separator, but I dont know 
relevant option.


When I use in source \cite[15, 16] (keys of publications) then I get 
link to list of publications [15 and 16]
When I use in source \cite[15, 16, 17] then I get link to list of 
publications [15, 16 and 17]


I want set separator so that result was [15, 16]  or [15, 16, 17]

Where is point or option to change of separators??

Thanx Jaroslav

I use this option:
\usemodule[bib]
\usemodule[bibltx]
\setuppublications[setupinteraction=start, alternative=ams, 
sorttype=cite, criterium=cite]


\setuppublicationlist[andtext={ a },
  lastpubsep={ a },
   lastnamesep={ a },
   finalnamesep={ a },
   otherstext={ a~kol.},
   authoretaltext={ a~kol.},
   editoretaltext={ a~kol.},
   artauthoretaltext={ a~kol.},
   artauthor=\invertedauthor,
   author=\invertedauthor,
   surnamesep={ },
   namesep={, },
   Finalnamesep={},
   totalnumber=200]

\setuppublicationlayout[misc]{%
\insertnote{}{ }{}%
}

___
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] simple bibliography and dots after section numbering

2010-05-07 Thread Marius
I think what are you looking for is possible with bib module. Look at
the 3.1 section Default and explicit citations

http://dl.contextgarden.net/modules/bibmod-doc-2009.11.04.zip
http://wiki.contextgarden.net/Bibliography

On Fri, May 7, 2010 at 1:52 AM,  rogu...@googlemail.com wrote:
 rogu...@googlemail.com (2010-05-05 05:12):
 2. I would like to use something like this for bibliography:
    http://wiki.contextgarden.net/Simple_Bibliography#Another_Approach
    but adapting it seems too hard for me. Perhaps someone could help? A
    very crude example:

    ---
    People are writing about this \cite[ref1], (\cite[ref2] - page 25).

    \startbibliography
      \bibitem[ref1] This is the first reference.
      \bibitem[Daniel, 2004][ref2] This is the second reference.
    \stopbibliography
    ---

    should be rendered as:

    ---
    People are writing about this [1], (Daniel, 2004 - page 25)

    1. This is the first reference.
    2. This is the second reference.
    ---

    That is, I want an environment and 2 commands:
      \startbibliography
      \cite [key]
      \bibitem [label_replacing_\cite[key]_but_not_the_item_number] [key]

 A bump to my initial question to add that I am using MKIV and a question:
 would this be hard to implement for a total ConTeXt newcommer?  What
 should he use? TeX / Lua? Would ConTeXt commands be enough?

 --
 --  Rogutės Sparnuotos
 ___
 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] simple bibliography and dots after section numbering

2010-05-06 Thread rogutes
rogu...@googlemail.com (2010-05-05 05:12):
 2. I would like to use something like this for bibliography:
http://wiki.contextgarden.net/Simple_Bibliography#Another_Approach
but adapting it seems too hard for me. Perhaps someone could help? A
very crude example:
 
---
People are writing about this \cite[ref1], (\cite[ref2] - page 25).
 
\startbibliography
  \bibitem[ref1] This is the first reference.
  \bibitem[Daniel, 2004][ref2] This is the second reference.
\stopbibliography
---
 
should be rendered as:
 
---
People are writing about this [1], (Daniel, 2004 - page 25)
 
1. This is the first reference.
2. This is the second reference.
---
 
That is, I want an environment and 2 commands:
  \startbibliography
  \cite [key]
  \bibitem [label_replacing_\cite[key]_but_not_the_item_number] [key]

A bump to my initial question to add that I am using MKIV and a question:
would this be hard to implement for a total ConTeXt newcommer?  What
should he use? TeX / Lua? Would ConTeXt commands be enough?

-- 
--  Rogutės Sparnuotos
___
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] simple bibliography and dots after section numbering

2010-05-05 Thread rogutes
G'Day,

I'm trying out ConTeXt and have come up with 2 questions.

1. How does one add a dot after the numerals in headings, so that
 \section{First}
   becomes
 1. First
   instead of
 1 First
   ?

2. I would like to use something like this for bibliography:
   http://wiki.contextgarden.net/Simple_Bibliography#Another_Approach
   but adapting it seems too hard for me. Perhaps someone could help? A
   very crude example:

   ---
   People are writing about this \cite[ref1], (\cite[ref2] - page 25).

   \startbibliography
 \bibitem[ref1] This is the first reference.
 \bibitem[Daniel, 2004][ref2] This is the second reference.
   \stopbibliography
   ---

   should be rendered as:

   ---
   People are writing about this [1], (Daniel, 2004 - page 25)

   1. This is the first reference.
   2. This is the second reference.
   ---

   That is, I want an environment and 2 commands:
 \startbibliography
 \cite [key]
 \bibitem [label_replacing_\cite[key]_but_not_the_item_number] [key]


Thank you very much,
--  Rogutės Sparnuotos

P.S. Is there a paragraph somewhere describing the logic under the use of
 [] and {} for different commands (it seemed somehow more intuitive in
 LaTeX). What would a ConTeXt developer choose, \cite[x] or \cite{x}
 and why?
___
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] Unicode bibliography

2010-04-27 Thread Mojca Miklavec
On Tue, Apr 27, 2010 at 10:14, Michael Saunders wrote:

 What do you use now?  Is there something better?

I don't know any better tool. JabRef seems great.

On Tue, Apr 27, 2010 at 09:57,  richard.steph...@converteam.com wrote:

 Long ago (when I was still using JabRef) I was thinking about creating
 support for export into ConTeXt-specific format.

 What a teaser! So if you're not using JabRef now, what are you using and
 why?

Em ... vim (or TextMate), but I guess that's not the answer you
were expecting.

As for the why part:
1.) I don't have too many references to manage/work with.
2.) One of the reasons for not actually writing support for ConTeXt
output in JabRef was that ConTeXt is able to read bib files; and one
of the reasons why I started using just plain text editor was that
JabRef didn't create such a ConTeXt-friendly format.
3.) Until 2005 I was more heavily engaged in the field where almost
every article I had to cite was in PubMed which is no longer true.
JabRef has an enourmous added value when one needs to use citeseer or
PubMed. What I would need now would be DOI2bib converter. As soon as
the time spent on copy-pasting data from article web pages to bib
files will outweight the time spent writing the converter, I'll
probably start writing one (but that still won't be comparable with
JabRef).

What still makes me wonder is tha fact that there are problems with
Unicode. I don't remember any, though I admit that I'm not sure if I
ever cited any non-English item.

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] basic \cite[]

2010-04-18 Thread Taco Hoekwater


Hi,

Michael Green wrote:


Mk II gets the desired result; Mk IV does not.

Example:


... 
\placepublications


Please change the above line to

  \placepublications[criterium=all]

This is a bug in the mkiv port of the module that I thought was
already documented, but maybe not. To be sure, I created a bug
tracker item for Hans to look at.

On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.

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


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Salil Sayed
In mkIV the option seems mandatory too. Otherwise I get the empty brackets. But 
only the authoryear and authoryears works for me. Not authornum.

This is how I use it. (following the habit of using natbib in Latex)

\usemodule[bib]
\setupbibtex
 [database={Manuscript},
  sort=author]
\setuppublications[numbering=yes]
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, 
option=continue]} 
\def\citet[#1]{\cite[authoryear][#1]}
\def\citep[#1]{\cite[authoryears][#1]}

The line
\def\LocalRefList {\subject{References}\placepublications[criterium=chapter, 
option=continue]} 
worked in mkII but not in mkIV.

Best regards,

Salil



From: Taco Hoekwater t...@elvenkind.com
To: mailing list for ConTeXt users ntg-context@ntg.nl
Sent: Sat, April 17, 2010 10:31:17 PM
Subject: Re: [NTG-context] basic \cite[]

Michael Saunders wrote:
 One cryptic line tells me:
 
 refcommand  the default option for \cite
 
 just like that.  Based on this, I'm guessing refcommand=key will let
 me write things like \cite[myFirstKey].  The manual goes on to clear
 up the confusion by explaining:

Well, no. You always use keys as arguments, the option controls the
resulting output.  It called an option because it controls the
optional argument of \cite. A reference key is mandatory, because
otherwise the whole command would be pointless.

 \setuppublications[refcommand=key,alternative=apa,setupinteraction=start,numbering=yes]

Try

  \setuppublications[alternative=num]

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://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] basic \cite[]

2010-04-18 Thread Michael Saunders
Taco:

  \placepublications

 Please change the above line to

\placepublications[criterium=all]

Thanks, but that's what I was using already.  To be clear, in Mk IV:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[alternative=num]
...
\cite[myKey]
...
\placepublications[criterium=all]


The references in the back look okay, but at the point where
\cite[myKey]  occurs, I get  empty brackets: [], not [1].
___
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] basic \cite[]

2010-04-18 Thread Taco Hoekwater

Michael Saunders wrote:

Taco:


\placepublications

Please change the above line to

   \placepublications[criterium=all]


Thanks, but that's what I was using already.  To be clear, in Mk IV:
\usemodule[bib]
\setupbibtex[database=myProject]
\setuppublications[alternative=num]
...
\cite[myKey]
...
\placepublications[criterium=all]


The references in the back look okay, but at the point where
\cite[myKey]  occurs, I get  empty brackets: [], not [1].


That works OK for me (I ran your test file).

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


Re: [NTG-context] basic \cite[]

2010-04-18 Thread Wolfgang Schuster

Am 18.04.10 08:31, schrieb Taco Hoekwater:

On the criterium vs. criterion: this bad 'translation' is actually
a keyword left over from the Dutch interface. It has been this
way since 1996 I think. Actually changing it is not an option.
but perhaps an alias could be created. I have also created a
tracker item for that.

As internal command you can't change the name but a synonym
for the users is easy:

\setinterfacevariable{criterium}{criterion}

Wolfgang

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

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


Re: [NTG-context] basic \cite[]

2010-04-17 Thread Michael Saunders
Taco:

 Try

\setuppublications[alternative=num]

Thank you, but using that I get the same result:

\cite[myKey]  prints out empty brackets [], not [1].
___
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] basic \cite[]

2010-04-17 Thread Michael Green
Michael Saunders odradek5 at gmail.com writes:

 Taco:
 
  Try
 
 \setuppublications[alternative=num]
 
 Thank you, but using that I get the same result:
 

Mk II gets the desired result; Mk IV does not.

Example:

\usemodule[bib]
\setuppublications[alternative=num,refcommand=num]
\setupbibtex[database=bibl-test]

\starttext

\subject{Text}

Sentence referring to Shue’s article. \cite[Shue:1978lg]

Sentence referring to Sussman’s article. \cite[Sussman:2005oz]

\subject{References}
\placepublications

\stoptext

bibl-test.tex

@article{Sussman:2005oz,
Author = {Sussman, David},
Journal = {Philosophy \ Public Affairs},
Number = {1},
Pages = {1--33},
Title = {What's Wrong with Torture?},
Volume = {33},
Year = {2005}}

@article{Shue:1978lg,
Author = {Shue, Henry},
Journal = {Philosophy \ Public Affairs},
Number = {2},
Pages = {124--143},
Title = {Torture},
Volume = {7},
Year = {1978}}

___
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] basic \cite[]

2010-04-17 Thread Michael Saunders
Michael Green:

 Mk II gets the desired result; Mk IV does not.

 Example:

 \usemodule[bib]
 \setuppublications[alternative=num,refcommand=num]
...

That's it then.  I'm using Mk IV.  Is there a proper way to use it?

By the way, the developers should know something:  in English, a
criterium is a kind of bicycle race.  The key should be called
criterion.
___
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] stopcolumns causes new page!!!?

2010-04-11 Thread Xan

Hi,

I attach a file. In page 7, when I put \stopcolumns, then automatically 
context create one new page. When I comment that, all is fine. See the 
mark %here is the problem for the exact position.


Please, CCme.

Thanks a lot,
Xan.
% interface=en output=pdftex
% texexec --mode=solucions nomfitxer.context per veure les solucions

% Regime
\enableregime[utf]

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

% Be tolerant with paragraph building
\setuptolerance [horizontal,verytolerant,stretch]

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

% Page number
\setuppagenumbering [location={footer}]

% Paper size
\setuppapersize [a4]

% Margins
%\setuplayout  [grid=yes, footer=0.5\footerheight, header=0.5\headerheight]
%\setuplayout[footer=2cm, header=2cm]
%\showlayout
%\showframe
%\showsetups


% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]

% Enumerate the URLs
%\useURL 
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf 
http://www.math.ucsb.edu/\~{}jon.mccammond/geogrouptheory/}]

\useURL [link:toomates][{http://www.toomates.net}][] [{\tf 
http://www.toomates.net}]

\useURL [link:aubanell][{http://www.xtec.cat/\~{}aaubanel/}][] [{\tf 
http://www.xtec.cat/\~{}aaubanel/}]


% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\tfd\bf}]
\setuphead[section][style={\ssbfc}, header=nomarking]
\setuphead[subsection][style={\ssbfb}]
\setuphead[subsubsection][style={\bfa}]
%\setuphead[section][textstyle=bold]

% Bibliography options
% BIBTEX
\usemodule[bib]
\setupbibtex[database=probabilitat,sort=author]
\setuppublications [alternative=ams,sorttype=bbl, criterium=all]% era 
criterium=cite per a llistar només els citats%
\setupheadtext[ca][pubs=Referències]
\setuppublicationlist[authoretallimit=3]
\setuppublicationlist[authoretaltext={\it\  et al.}]
\setuppublicationlist[authoretaldisplay=1]

%Indentation
\setupheads[indentnext=yes] 
\setupindenting[yes,small,first]

% Vertical spaces between paragraphs
\setupwhitespace[none]

%Itemize
\setupitemize[each][identnext=yes,margin=0em]
\setupitemize[each][headstyle=bold]

% Mathematical packets
\usemodule[newmat]

% Modules
\usemodule[tikz]
\usetikzlibrary[mindmap,arrows,calc]
%\usetikzlibrary[trees]

% AMSTHM
\defineenumeration
  [exercici]
  
[text={\startcolor[middlecyan]Exercici\stopcolor},headstyle=bold,between=\blank,titledistance=0em,textdistance=1em,
stopper={.\space},location=serried,left={\bgroup\bf},right={\egroup},width=fit,headstyle=\ss]

% Table of contents
%% dots between... and subsubsubsection are not listed
\setupcombinedlist[content][level=4,alternative=c] 
%% section = bold. % width= 10mm -- less space between num-letter
%% line break after section.
\setuplist[section][style=bold,width=10mm] 
\setuplist[section][before=\blank]
%% margin = 10 mm. Put the subsection just bottom section.
\setuplist[subsection][margin=10mm,width=10mm]
\setuplist[subsubsection][margin=20mm,width=10mm]
% Set Índex like Índex de continguts
\setupheadtext [ca] [content=Índex]

% Heads and footers
\setupfootertexts[{\tfx \pagenumber/\lastpage}]
\setupfooter[text][before=\hrule]
\setupheader[text][after=\hrule]
\setupheadertexts[{\tfx IES Binissalem. Dept. Orientació}][{\tfx 4t C MAT. 
Tema 4 - Probabilitat. \currentdate}]

% hyphenating
\hyphenation{do-cu-ment}
\hyphenation{subs-ti-tueix}
\hyphenation{pro-ble-ma}
\hyphenation{Ma-the-ma-tics}
\hyphenation{Ma-the-ma-ti-cal}
\hyphenation{es-crip-tu-ra}
\hyphenation{ge-ne-ra-lit-za-ció}
\hyphenation{va-ria-bles}

% SPLIT
\def\startsplit
  {\startalign} % no number by default
\def\stopsplit
  {\doalignNR[+][]\crcr % for a number on last line
   \stopalign}

% GROUP FOR FORMULAS WITH CASES.
\definemathmatrix[GROUP][left={\left\{\,}, 
right={\right.},align={left},style=\displaystyle,distance=0.2em]

\setupformulas[align=middle]
\setupitemize[each][margin=2em]

% Start the text
\starttext
% Títol

\startstandardmakeup

\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\bigskip
\startalignment[middle]

{\sc\switchtobodyfont[14pt] Unitat didàctica }\par 

\thinrule

{\switchtobodyfont[40pt] \bf \sc 
\startcolor[middleblue]Probabilitat\stopcolor}\par
\stopalignment


\vfill
\thinrule
\placefigure
  [force,none]
  [fig:latex-vs-context-version-etc]
  {Latex vs ConTeXt information}
  {\bTABLE[frame=off,align={middle,lohi}]
\bTR[align={middle,lohi}]
\bTD[align={middle,lohi}]{\switchtobodyfont[12pt]
{\sc Programa de Diversificació Curricular} }
\eTD
\eTR
\bTR
\bTD[align={lohi,middle}]
{\sc Versió: \currentdate}
\eTD
\eTR
\eTABLE
}




%\vfill
%\page[yes]
\stopstandardmakeup


% Format de marges
\setuplayout[topspace=1cm,margin=1cm,header=1cm,footer=0.6cm,width=fit,height=fit,backspace=1.5cm]

\completecontent
\page

% Introducció

\section{Introducció}

\subsection

Re: [NTG-context] Bibtex change short key

2010-03-26 Thread Taco Hoekwater

Hubertus wrote:

Dear Taco,

I use the excellent BibTex module with this setup:
\setupbibtex[database=biblio,sort=author]
\setuppublications[alternative=apa,refcommand=short,sorttype=bbl,criterium=cited]
So if I have something like this
@ARTICLE{Akimoto2005,
author = {R. Akimoto and B. S. Li and K. Akita and T. Hasama},
...
}
in my *.bib file, the \cite[Akimoto2005] results in [ALAH05]. Is there a way
to
get only the first author with three letters and the year ([Aki05]) in the
citation?

Patch the generated .bbl file by hand. after its initial creation, it
will not be modified by context itself anymore.

May be I should have tried it first, before editting about 200 entries as you
suggested. As far as I can judge from the timestamp, at my system the bbl file 
is generatet every time I run texexec. Have I missed something?


Oh boy, I am sorry! My fault! The *correct* recipe is: run once, so the
bbl exists, then delete the \setupbibtex line from your source, then
edit the bbl, then recompile.

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


<    3   4   5   6   7   8   9   10   11   12   >