[NTG-context] Where to find the code for the BibTeX integration?

2011-05-19 Thread Jannis Pohlmann
Hi all,

I would like to extend \setuppublicationlist by adding another numbering
alternative: numbering=key. The only files I could find in the ConTeXt
tree that contain something related to the numbering of BibTeX
publication lists were bibl-{tra,bib}.{mkii,mkiv}. 

Since I'm using MKIV I tried to change those files but for that to work
I had to use 

  \usemodule[bibl-bib] or \usemodule[bibl-tra]

instead of 

  \usemodule[bib] 

the latter of which doesn't seem to be necessary with MKIV anyway. I did
some searching in the LuaTeX code as well as in the ConTeXt tree but I
couldn't find the right place to extend the behavior of
\setuppublicationlist with the standard bib feature of MKIV.

So I'm wondering: where is all this implemented? How would I go about
adding numbering=key? 

Any hints and suggestions are welcome!

Cheers,
Jannis
___
If your question is of interest to others as well, please add an 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] shading

2011-05-19 Thread Marco
On 2011-05-18 Hans Hagen pra...@wxs.nl wrote:

 On 18-5-2011 8:30, Marco wrote:
 
  % Error
  % path p; p:=fullsquare scaled 5cm shifted (10cm, 0cm);
  % fill p
  %   withshading(linear, llcorner p, urcorner p)
  %   withcolor \MPcolor{red-t} shadedinto \MPcolor{blue};
 
 don't ask how, but the upcoming beta can handle it
 
 \starttext
 […]

Thanks  a  lot. But  I'm  still  a  bit  lost in  all  the
new  commands. I  can't figure  out  how to  shade from  a
particular colour to transparent.

\starttext
\definecolor [trans-t] [t=1, a=normal]
\startMPpage

path p; p:=fullsquare scaled 5cm;
fill p withcolor \MPcolor{red};

% Works if background colour is known and uniform
path p; p:=fullsquare scaled 3cm;
fill p
  withshading(linear, llcorner p, urcorner p)
  withcolor \MPcolor{blue} shadedinto \MPcolor{red};

path p; p:=fullsquare scaled 5cm shifted (5cm, 0cm);
fill p withcolor \MPcolor{red};

% Shades to white
path p; p:=fullsquare scaled 3cm shifted (5cm, 0cm);
fill p
  withshading(linear, llcorner p, urcorner p)
  withfromshadecolor \MPcolor{blue} withtoshadecolor \MPcolor{trans-t};

\stopMPpage
\stoptext

Marco


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

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

Re: [NTG-context] shading

2011-05-19 Thread Hans Hagen

On 19-5-2011 12:08, Marco wrote:


new  commands. I  can't figure  out  how to  shade from  a
particular colour to transparent.


afaik you can't as one shades from color to color (maybe choosing 
another transparency method)


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
___


[NTG-context] How do I typeset two close vertical lines as in ||x||=1 ?

2011-05-19 Thread Julian Becker
I'm still having problems migrating from latex to context:
In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on
each side of the x. In ConTeXt, the same \| is only producing one single
vertical line. I tried using || and \parallel, but in both cases the
spacing is not as desired. Does anybody know how this is done properly?

Thanks,
Julian
___
If your question is of interest to others as well, please add an 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] How do I typeset two close vertical lines as in ||x||=1 ?

2011-05-19 Thread Wolfgang Schuster

Am 19.05.2011 um 13:04 schrieb Julian Becker:

 I'm still having problems migrating from latex to context:
 In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on 
 each side of the x. In ConTeXt, the same \| is only producing one single 
 vertical line. I tried using || and \parallel, but in both cases the 
 spacing is not as desired. Does anybody know how this is done properly?

\starttext
$\Vert x \Vert = 1$
\stoptext

Wolfgang


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

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


Re: [NTG-context] How do I typeset two close vertical lines as in ||x||=1 ?

2011-05-19 Thread Julian Becker
thank you, Wolfgang, for your quick reply! This is exactly what I needed!

2011/5/19 Wolfgang Schuster schuster.wolfg...@googlemail.com


 Am 19.05.2011 um 13:04 schrieb Julian Becker:

  I'm still having problems migrating from latex to context:
  In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines
 on each side of the x. In ConTeXt, the same \| is only producing one
 single vertical line. I tried using || and \parallel, but in both cases
 the spacing is not as desired. Does anybody know how this is done properly?

 \starttext
 $\Vert x \Vert = 1$
 \stoptext

 Wolfgang



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

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

 ___




-- 
Julian Becker
Institut für Angewandte Physik, R.123
Westfälische Wilhelms-Universität Münster
Corrensstr. 2/4
48149 Münster / Westfalen
Tel. 0251 83-3 61 53
Mob. 0151 599 848 29
e-mail: j_bec...@uni-muenster.de

Keep thy heart with all diligence; for it is the wellspring of life.
___
If your question is of interest to others as well, please add an 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] shading

2011-05-19 Thread Marco
On 2011-05-19 Hans Hagen pra...@wxs.nl wrote:

 On 19-5-2011 12:08, Marco wrote:

  new commands. I  can't figure out how to  shade from a
  particular colour to transparent.

 afaik you can't as one shades from color to color (maybe
 achoosing nother transparency method)

As  soon as  transparency (the  method doesn't  matter) is
involved,  the  transparent  colour component  turns  into
either black  or white (depending on  the method). Shading
only works  well with uniform colours,  however the entire
path  can  be made  transparent,  not  the single  shading
colour components.

Best regards
Marco


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

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


[NTG-context] help for a polytonic greek type1 font

2011-05-19 Thread luigi scarso
I have a small set of Polytonic greek as Type1 font with Adobe Encoding.
I would like to wrap it as OpenType and use it for UTF-8 greek text, but
reencoding with fontforge seems to fail (or at least I have not found
a way to do it)
I believe that I must do some manual work and I would like to do with MkIV.
TIA
-- 
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] How do I typeset two close vertical lines as in ||x||=1 ?

2011-05-19 Thread Aditya Mahajan

On Thu, 19 May 2011, Wolfgang Schuster wrote:



Am 19.05.2011 um 13:04 schrieb Julian Becker:


I'm still having problems migrating from latex to context:
In latex, I used to write e.g. $\| x \| = 1$, and get two vertical lines on each side of the x. In ConTeXt, 
the same \| is only producing one single vertical line. I tried using || and 
\parallel, but in both cases the spacing is not as desired. Does anybody know how this is done 
properly?


\starttext
$\Vert x \Vert = 1$
\stoptext


$\lVert x \rVert$ gives better spacing (even in LaTeX).

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

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


[NTG-context] key=val in cld syntax: val not protected

2011-05-19 Thread Peter Münster
Hello,

With this test.cld file, the = blub is not printed:

context.starttext()
context.startchapter{title = bla = blub}
context.stopchapter()
context.stoptext()

Workaround:
context.startchapter{title = {bla = blub}}

But according to the documentation
http://www.pragma-ade.com/general/manuals/cld-mkiv.pdf
at page 16, the workaround shouldn't be needed.

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

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


Re: [NTG-context] [NTG-conte​xt] Suppress the citation number counts in the list of figures?

2011-05-19 Thread seasoul
It seems that it is a very abnormal question, so I will type the ciation
number in the figures one by one after every other contents are fixed.


On Wed, May 18, 2011 at 11:53 AM, seasoul bioseas...@gmail.com wrote:

 Dear All,

 I asked the same question in another post, but no replies except Thomas A.
 Schmitz asked me to make an example.
 In that post, I asked how to get the abosulute value of the bib entry, it
 is very confusing. Therefore, I made the example as below:

  Take the sample.bib in the wiki as the database file. Based on the
 citation sequence, hh2010b is expected to be the third reference, but
 because it is included in the figure caption, and the figure caption will be
 listed in the figure list at the beginning of the file, hh2010b becomes
 the first reference. How to make it the third reference? The resulting list
 of figure should be

 The caption of this figure includes the citation, but this citation
 sequence is expected to be the same as in the paragraph[3]

 instead of

  The caption of this figure includes the citation, but this citation
 sequence is expected to be the same as in the paragraph[1]




 \usemodule[bib]

 \setupbibtex[database=sample]%sample.bib in the wiki

 \setuppublications[sorttype=cite]

 \setuppublications[alternative=num,criterium=cite]

 \setuppublications[numbering=yes] % Show reference numbers in the generated
 list.


 \starttext

 \startfrontmatter
 % List of figures

 \title{List of Figures}

 \writetolist[Title] {} {List of Figures}

 \writebetweenlist [Title] {\blank}

 \placelist[figure][criterium=all]
 \stopfrontmatter


 \startbodymatter

 This is the first place for citation\cite[hh2010].

 This is the second place for citation\cite[hh2010a].

 This is the third place for citation\cite[hh2010b].

 This is the fourth place for citation\cite[Eijkhout1991].

 \placefigure[][fig:sample]

 {The caption of this figure includes the citation, but this citation
 sequence is expected to be the same as in the paragraph\cite[hh2010b].}

 {\framed{\tfd figure caption with citation}}
 \stopbodymatter


 \startbackmatter

 \placepublications[criterium=text]

 \stopbackmatter
 \stoptext

 Many thanks.


___
If your question is of interest to others as well, please add an 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] writing the name of the section on all the pages

2011-05-19 Thread Alexandre Leray
Hi,

how could I write the name of the current \section or \subject in the
outer margin, with a rotation of 90°?

Best,

Alex

-- 
stdin
Alexandre Leray
graphic and media design
http://stdin.fr/
Munthofstraat 27
1060 Bruxelles
___
If your question is of interest to others as well, please add an 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] endnotes/critical apparatus

2011-05-19 Thread Daniel Schopper

Dear list,
I’m fiddling around with a simple apparatus for critical editions with 
endnotes. For now this is working ok - but I’m wondering if somebody 
could advise me on some aspects of it (see below). Here’s a minimal example:



\newwrite\enotes
\newread\readenotes
\immediate\openout\enotes = \jobname.en
\immediate\write\enotes{ %
\noexpand\let\noexpand\stretchednormalcase=\noexpand\relax
\noexpand\let\noexpand\tfc=\noexpand\relax
\noexpand\let\noexpand\bf=\noexpand\relax
%   \noexpand\let\par=\noexpand\relax % seems to make luatex hang?
}

\newcount\entrycounter \entrycounter=0

\setuplabeltext[en][lines=,line=]
\def\enseparator{\crlf}
\long\def\appEntry#1#2{
\expandafter\startline[line:\the\entrycounter]%
\expandafter\pagereference[page:\the\entrycounter]%
{#1}
\expandafter\stopline[line:\the\entrycounter]%
\immediate\write\enotes{%
		{\expandafter\at[page:\the\entrycounter]}/{\noexpand\csname 
inline\expandafter\endcsname[line:\the\entrycounter]}~{#1}] 
{#2}\enseparator%

}%
\global\advance\entrycounter by 1\relax
}

\def\printendnotes{
\immediate\closeout\enotes
\page[right]
\expandafter\input\jobname.en
}


\starttext
\startlinenumbering
That’s a \appEntry{\bf lemma}{That’s a variant reading…}. \input tufte\crlf
But then there’s a blackrule \appEntry{\blackrule[width=5cm]\crlf and a 
linebreak}{-- which we don’t want to repeat in the apparatus.}.

\stoplinenumbering
\printendnotes
\stoptext


Now, this is obviously a really primitive approach (I’m still learning…) 
which I’d like to improve in some ways:


- How can I get rid of the blackrule in the apparatus?
\noexpand\let\blackrule[#1]=\noexpand\relax
throws an error (You can't use `macro parameter character #' in vertical 
mode.) while

\noexpand\let\blackrule=\noexpand\relax
eliminates the rule but simply prints the arguments in the square 
brackets. (Same holds true for every macro with arguments.)


- What to do if I’d want to gobble \crlf or \par in the lemma while 
using them as separators after each apparatus entry? I tried to \let 
them to \relax, which ends in luatex getting stuck when it tries to 
import the .en-file.


- How could I reset gobbled commands like \bf to their original meaning 
(I’d like to ignore \bf inside a lemma but still be able to have bold 
page numbers at the beginning of the apparatus entry)?


I’m sure there are much more elegant ways to do this (probably in lua?), 
maybe someone could provide me with a hint where to start from?


Thanks in advance,
Daniel
___
If your question is of interest to others as well, please add an 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] writing the name of the section on all the pages

2011-05-19 Thread Marco
 how could I write the name of the current \section or \subject in the
 outer margin, with a rotation of 90°?

\setupbackgrounds [state=repeat]
\defineoverlay [side]
  [{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin]
  [background=side]

Marco


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

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

Re: [NTG-context] [NTG-conte​xt] Suppress the citation number counts in the list of figures?

2011-05-19 Thread Aditya Mahajan

On Thu, 19 May 2011, seasoul wrote:


It seems that it is a very abnormal question, so I will type the ciation
number in the figures one by one after every other contents are fixed.


Try:

\def\listcite[#1]%
  {\begingroup
   \settrialtypesetting
   \cite[#1]%
   \endgroup}

If for some reason that does not work, try

\def\listcite[#1]%
  {\begingroup
   \let\docitation\gobbleoneargument
   \cite[#1]%
   \endgroup}

and use \listcite instead of \cite in captions.


(Tested with MkIV).

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] writing the name of the section on all the pages

2011-05-19 Thread Alexandre Leray
Thanks Marco,

I'm probably missing a piece here has it doesn't produce anything
visible in my composition. I'm a newbie at context; could you detail a
little bit more how to implement this or is this snippet anything I'm
supposed to need?

Thanks,

Alex

On 19/05/11 18:58, Marco wrote:
 how could I write the name of the current \section or \subject in the
 outer margin, with a rotation of 90°?
 
 \setupbackgrounds [state=repeat]
 \defineoverlay [side]
   [{\rotate[rotation=90]{\getmarking[section]}}]
 \setupbackgrounds [text] [rightmargin]
   [background=side]
 
 Marco
 
 
 ___
 If your question is of interest to others as well, please add an entry to the 
 Wiki!
 
 maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
 webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 wiki : http://contextgarden.net
 ___


-- 
stdin
Alexandre Leray
graphic and media design
http://stdin.fr/
+32 (0)4 85 27 76 08
Munthofstraat 27
1060 Bruxelles
___
If your question is of interest to others as well, please add an 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] writing the name of the section on all the pages

2011-05-19 Thread Marco
On 2011-05-19 Alexandre Leray alexan...@stdin.fr wrote:

 Thanks Marco,
 
 I'm probably missing a piece here has it doesn't produce anything
 visible in my composition. I'm a newbie at context; could you detail a
 little bit more how to implement this or is this snippet anything I'm
 supposed to need?

Here is a small complete example:


\setuplayout [location=doublesided]
\setuppagenumbering [alternative=doublesided]

\setupbackgrounds [state=repeat]
\defineoverlay [side]
  [{\rotate[rotation=90]{\getmarking[section]}}]
\setupbackgrounds [text] [rightmargin] [background=side]

\starttext

\dorecurse{10}
  {\startsection[title=Section \recurselevel]
\input knuth \page
  \stopsection}

\stoptext


Works here with MkIV 2011.05.18 22:26

Marco


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

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


Re: [NTG-context] key=val in cld syntax: val not protected

2011-05-19 Thread Hans Hagen

On 19-5-2011 3:35, Peter Münster wrote:

Hello,

With this test.cld file, the = blub is not printed:

context.starttext()
context.startchapter{title = bla = blub}
context.stopchapter()
context.stoptext()

Workaround:
context.startchapter{title = {bla = blub}}


you can patch cldf-ini.lua:

273 : flush(currentcatcodes,,,k,={,v,})
279 : flush(currentcatcodes,[,k,={,v,})

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] endnotes/critical apparatus

2011-05-19 Thread Wolfgang Schuster

Am 19.05.2011 um 17:42 schrieb Daniel Schopper:

 Dear list,
 I’m fiddling around with a simple apparatus for critical editions with 
 endnotes. For now this is working ok - but I’m wondering if somebody could 
 advise me on some aspects of it (see below). Here’s a minimal example:
 
 […]
 
 Now, this is obviously a really primitive approach (I’m still learning…) 
 which I’d like to improve in some ways:
 
 - How can I get rid of the blackrule in the apparatus?
   \noexpand\let\blackrule[#1]=\noexpand\relax
 throws an error (You can't use `macro parameter character #' in vertical 
 mode.) while
   \noexpand\let\blackrule=\noexpand\relax
 eliminates the rule but simply prints the arguments in the square brackets. 
 (Same holds true for every macro with arguments.)

You can use \simplifycommands, see my example below.

 - What to do if I’d want to gobble \crlf or \par in the lemma while using 
 them as separators after each apparatus entry? I tried to \let them to 
 \relax, which ends in luatex getting stuck when it tries to import the 
 .en-file.
 
 - How could I reset gobbled commands like \bf to their original meaning (I’d 
 like to ignore \bf inside a lemma but still be able to have bold page numbers 
 at the beginning of the apparatus entry)?
 
 I’m sure there are much more elegant ways to do this (probably in lua?), 
 maybe someone could provide me with a hint where to start from?

You can use contexts own note mechanism to collect the data and place them 
later in your document.

\define[2]\Apparatus
  {\ifdefined\ApparatusCounter
 \doglobal\increment\ApparatusCounter
   \else
 \doglobal\newcounter\ApparatusCounter
   \fi
   \pagereference[apparatus:page:\ApparatusCounter]%
   
\startline[apparatus:line:\ApparatusCounter]{#1}\stopline[apparatus:line:\ApparatusCounter]%
   \begingroup\simplifycommands
   
\expanded{\endnote{\at[apparatus:page:\ApparatusCounter]/\noexpand\inline[apparatus:line:\ApparatusCounter]~{#1}]~{#2}}}%
   \endgroup}

\appendtoks\def\blackrule[#1]{}\to\simplifiedcommands
\appendtoks \def\crlf{}\to\simplifiedcommands
\appendtoks   \def\bf{}\to\simplifiedcommands

\setuplabeltext[en][lines=,line=]

\setupnote
  [endnote]
  [textcommand=\gobbleoneargument,
   command=\gobbleoneargument]

\starttext

\startlinenumbering
That’s a \Apparatus{\bf lemma}{That’s a variant reading…}. \input tufte

But then there’s a blackrule \Apparatus{\blackrule[width=5cm]\crlf and a 
linebreak}{-- which we don’t want to repeat in the apparatus.}.
\stoplinenumbering

\placenotes[endnote]

\stoptext

Wolfgang

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

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


Re: [NTG-context] writing the name of the section on all the pages

2011-05-19 Thread alexandre
Thanks again,

it works very well. However I still have one question: is it possible to decide 
of the placement of the overlay and its alignment? With your example the 
section name is centered both horizontally and vertically. I'd like to flush it 
right at least.

Greetings,

Alex

 On Thu 19/05/11 19:31, Marco net...@lavabit.com wrote:
 On 2011-05-19 Alexandre Leray alexandre@
 stdin.fr wrote:
  Thanks Marco,
  
  I'm probably missing a piece here has it doesn't
 produce anything
 visible in my composition. I'm a newbie at context;
 could you detail a
 little bit more how to implement this or is this
 snippet anything I'm
 supposed to need?
 
 Here is a small complete example:
 
 
 \setuplayout [location=doublesided]
 \setuppagenumbering [alternative=doublesided]
 
 \setupbackgrounds [state=repeat]
 \defineoverlay [side]
 [{\rotate[rotation=90]{\getmarking[section]}}]
 \setupbackgrounds [text] [rightmargin] [background=side]
 
 \starttext
 
 \dorecurse{10}
 {\startsection[title=Section \recurselevel]
 \input knuth \page
 \stopsection}
 
 \stoptext
 
 
 Works here with MkIV 2011.05.18 22:26
 
 Marco
 
 
 ___
 
If your question is of interest to others as well, please add an entry to
 the Wiki!
 maillist : ntg-contex
 t...@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] Can't show chinese in presentation mode

2011-05-19 Thread 王雨施
Hi, I am using context to write a presentation. I use simplefonts module to use 
Chinese. It  works ok with my paper.  But when I write the presentation and use 
--mode=presentation the Chinese characters do not show, but when I use 
--mode=handout it works well. Why ? Can anyone help me ?  Thanks.


___
If your question is of interest to others as well, please add an 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] [NTG-conte​xt] Suppress the citation number counts in the list of figures?

2011-05-19 Thread seasoul
Thanks. It works. Hope it will help others who have the same intention.


On Fri, May 20, 2011 at 1:03 AM, Aditya Mahajan adit...@umich.edu wrote:

 On Thu, 19 May 2011, seasoul wrote:

  It seems that it is a very abnormal question, so I will type the ciation
 number in the figures one by one after every other contents are fixed.


 Try:

 \def\listcite[#1]%
  {\begingroup
   \settrialtypesetting
   \cite[#1]%
   \endgroup}

 If for some reason that does not work, try

 \def\listcite[#1]%
  {\begingroup
   \let\docitation\gobbleoneargument
   \cite[#1]%
   \endgroup}

 and use \listcite instead of \cite in captions.


 (Tested with MkIV).

 Aditya

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

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

 ___

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

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