Re: [NTG-context] how to cite URLs in BibTeX bibliographies

2013-01-06 Thread Andreas Mang
Hi,

your example is not very instructive. You might want to spend some time and 
mess around in the bibfile to make things look properly (the how published 
key seems to be missing from misc). I could get it to run after I have added

\goto{http://www.bloom-lang.org}[url(http://www.bloom-lang.org)]

to note (see http://wiki.contextgarden.net/url and 
http://wiki.contextgarden.net/Bibliography).

There might be other options - this is just a quick shot.

Cheers,
Andreas


@misc{bloom,
Key = {Bloom},
Note = {\goto{http://www.bloom-lang.org}[url(http://www.bloom-lang.org)]},
Title = {Bloom programming language}}



% ConTeXt  ver: 2013.01.02 18:19 MKIV
%%% minimal example %%%

\setupinteraction[state=start]

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=sample] % do not to put the reference into a bib file 
called sample.bib
\setuppublications[numbering=yesalternative=myapa-de]

\starttext

\cite[bloom]

\placepublications[criterium=text]

\stoptext
%%% minimal example %%%



Am Jan 6, 2013 um 8:35 AM schrieb 土卜皿 
pengcz.n...@gmail.commailto:pengcz.n...@gmail.com:

hi,all
In latex, the following bib item:
@misc{bloom,
title = {Bloom programming language},
howpublished = {\url{http://www.bloom-lang.orghttp://www.bloom-lang.org/}},
key = {Bloom}
}

will compile it into the following bibliographies in pdf:

[9] Bloom programming language.
http://www.bloom-lang.orghttp://www.bloom-lang.org/.

But in context, the bib item can not be successfully compiled ,
what should I do to cite this?
Thanks!

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

maillist : ntg-context@ntg.nlmailto: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] how to cite URLs in BibTeX bibliographies

2013-01-06 Thread Andreas Mang
there is an error: it should be

\setuppublications[numbering=yes]

and not

\setuppublications[numbering=yesalternative=myapa-de]

but it does not matter :)

Am Jan 6, 2013 um 9:45 AM schrieb Andreas Mang 
m...@imt.uni-luebeck.demailto:m...@imt.uni-luebeck.de:

Hi,

your example is not very instructive. You might want to spend some time and 
mess around in the bibfile to make things look properly (the how published 
key seems to be missing from misc). I could get it to run after I have added

\goto{http://www.bloom-lang.orghttp://www.bloom-lang.org/}[url(http://www.bloom-lang.orghttp://www.bloom-lang.org/)]

to note (see http://wiki.contextgarden.net/url and 
http://wiki.contextgarden.net/Bibliography).

There might be other options - this is just a quick shot.

Cheers,
Andreas


@misc{bloom,
Key = {Bloom},
Note = 
{\goto{http://www.bloom-lang.orghttp://www.bloom-lang.org/}[url(http://www.bloom-lang.orghttp://www.bloom-lang.org/)]},
Title = {Bloom programming language}}



% ConTeXt  ver: 2013.01.02 18:19 MKIV
%%% minimal example %%%

\setupinteraction[state=start]

\usemodule[bib]
\usemodule[bibltx]
\setupbibtex[database=sample] % do not to put the reference into a bib file 
called sample.bib
\setuppublications[numbering=yesalternative=myapa-de]

\starttext

\cite[bloom]

\placepublications[criterium=text]

\stoptext
%%% minimal example %%%



Am Jan 6, 2013 um 8:35 AM schrieb 土卜皿 
pengcz.n...@gmail.commailto:pengcz.n...@gmail.com:

hi,all
In latex, the following bib item:
@misc{bloom,
title = {Bloom programming language},
howpublished = {\url{http://www.bloom-lang.orghttp://www.bloom-lang.org/}},
key = {Bloom}
}

will compile it into the following bibliographies in pdf:

[9] Bloom programming language.
http://www.bloom-lang.orghttp://www.bloom-lang.org/.

But in context, the bib item can not be successfully compiled ,
what should I do to cite this?
Thanks!

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

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

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

maillist : ntg-context@ntg.nlmailto: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] how to widen the textwidth

2013-01-06 Thread 土卜皿
hi, all
   I use the following setting:
\setuppapersize[A4,landscape][A4,landscape]
\setuplayout[
  backspace=1.0cm,
  leftedge=0.5cm,
  leftedgedistance=0.5cm,
  rightedgewidth=0.1cm,
  leftmarginwidth=0.1cm,
  leftmargindistance=0.1cm,
  rightedgedistance=0.1cm,
  rightmarginwidth = 0.1cm,
  rightmargindistance = 0.1cm,
  headerdistance=0.5cm,
  footerdistance=0.5cm,
  topdistance=0.5cm,
  width=fit,
  height=fit]
\starttext
\showlayout
\stoptext

but the rightmarginwidth = 3.7569cm, not 0.1cm, I do not know why?
what should I do to widen the texwidth?
Thanks!

BEST REGARDS
PengCZ
___
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 to widen the textwidth

2013-01-06 Thread Wolfgang Schuster

Am 06.01.2013 um 13:23 schrieb 土卜皿 pengcz.n...@gmail.com:

 hi, all
I use the following setting:
 \setuppapersize[A4,landscape][A4,landscape]
 \setuplayout[
   backspace=1.0cm,
   leftedge=0.5cm,
   leftedgedistance=0.5cm,
   rightedgewidth=0.1cm,
   leftmarginwidth=0.1cm,
   leftmargindistance=0.1cm,
   rightedgedistance=0.1cm,
   rightmarginwidth = 0.1cm,
   rightmargindistance = 0.1cm,
   headerdistance=0.5cm,
   footerdistance=0.5cm,
   topdistance=0.5cm,
   width=fit, 
   height=fit]
 \starttext
 \showlayout
 \stoptext
 
 but the rightmarginwidth = 3.7569cm, not 0.1cm, I do not know why?
 what should I do to widen the texwidth?

http://www.ntg.nl/pipermail/ntg-context/2012/064650.html

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 to widen the textwidth

2013-01-06 Thread Sietse Brouwer
 but the rightmarginwidth = 3.7569cm, not 0.1cm, I do not know why?
 what should I do to widen the texwidth?

 http://www.ntg.nl/pipermail/ntg-context/2012/064650.html

In which Wolfgang wrote:
 The horizontal dimensions are determined by the three values

 - backspace (distance from the left/inner margin)
 - cutspace (distance from the right/outer margin)
 - width (width of the textblock)

 Normally you need only two values because when you set
 backspace + width the cutspace is  calculated and when
 you set backspace + cutspace you can write width=middle
 and the width of the text block will be calculated.

Which is a good explanation, and he explains how vertical dimensions
work, too. Allow me to add this e-mail to answer another question you
will probably have: What about the marginwidth, margindistance,
edgewidth, and edgedistance? Those are also horizontal values!

A good question. The answer is that ‘margin’ means two things:
1. the space between the edge of the textblock and the boundary of the paper
2. a typesetting area inside that space, in which marginal material is typeset.

Inside \setuplayout, margin has the second meaning: marginwidth is the
width of the margin, and margindistance the distance between the text
area and the margin area.

There are also the ‘edges’: these are typesetting areas outside the
margin areas. Some uses I can think of: colouring the edge of the page
in a guidebook with sections; placing informative marks in general;
printing a sort of vertical header/footer; etc.

This is not a bad reference:
http://wiki.contextgarden.net/Layout

Cheers,

Sietse
___
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 to widen the textwidth

2013-01-06 Thread Wolfgang Schuster

Am 06.01.2013 um 15:10 schrieb Sietse Brouwer sbbrou...@gmail.com:

 but the rightmarginwidth = 3.7569cm, not 0.1cm, I do not know why?
 what should I do to widen the texwidth?
 
 http://www.ntg.nl/pipermail/ntg-context/2012/064650.html
 
 In which Wolfgang wrote:
 The horizontal dimensions are determined by the three values
 
 - backspace (distance from the left/inner margin)
 - cutspace (distance from the right/outer margin)
 - width (width of the textblock)
 
 Normally you need only two values because when you set
 backspace + width the cutspace is  calculated and when
 you set backspace + cutspace you can write width=middle
 and the width of the text block will be calculated.
 
 Which is a good explanation, and he explains how vertical dimensions
 work, too. Allow me to add this e-mail to answer another question you
 will probably have: What about the marginwidth, margindistance,
 edgewidth, and edgedistance? Those are also horizontal values!
 
 A good question. The answer is that ‘margin’ means two things:
 1. the space between the edge of the textblock and the boundary of the paper
 2. a typesetting area inside that space, in which marginal material is 
 typeset.
 
 Inside \setuplayout, margin has the second meaning: marginwidth is the
 width of the margin, and margindistance the distance between the text
 area and the margin area.
 
 There are also the ‘edges’: these are typesetting areas outside the
 margin areas. Some uses I can think of: colouring the edge of the page
 in a guidebook with sections; placing informative marks in general;
 printing a sort of vertical header/footer; etc.
 
 This is not a bad reference:
 http://wiki.contextgarden.net/Layout


I wrote a short seven page example where you can see both margins
don’t influence the layout because they’re just put on the sides like
attachments.

\setuppapersize[A4][A3]

\setuplayout
  [location=middle,
   header=0pt,
   footer=0pt]

\setuppagenumbering[location=]

\definefont[BigFont][Mono*none sa 4]

\starttext

\showframe[page]
\centerbox{\BigFont PAGE}\page

\setuplayout
  [backspace=2cm,
   cutspace=2cm,
   width=middle,
   topspace=2cm,
   bottomspace=2cm,
   height=middle]

\showframe[text]
\centerbox{\BigFont TEXTBLOCK}\page

\setuplayout
  [header=2cm,
   headerdistance=1cm,
   footer=2cm,
   footerdistance=1cm]

\showframe[header,footer]
\centerbox{\BigFont HEADER/FOOTER}\page

\setuplayout
  [leftmargin=2cm,
   leftmargindistance=1cm]

\showframe[leftmargin]
\centerbox{\BigFont LEFTMARGIN}\page

\setuplayout
  [leftedge=2cm,
   leftedgedistance=1cm]

\showframe[leftedge]
\centerbox{\BigFont LEFTEDGE}\page

\setuplayout
  [rightmargin=2cm,
   rightmargindistance=1cm]

\showframe[rightmargin]
\centerbox{\BigFont RIGHTMARGIN}\page

\setuplayout
  [rightedge=2cm,
   rightedgedistance=1cm]

\showframe[rightedge]
\centerbox{\BigFont RIGHTEDGE}\page

\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 to widen the textwidth

2013-01-06 Thread 土卜皿
hi, Wolfgang Schuster and Sietse Brouwer
   Thank you for your patience!
   I got it !

BEST REGARDS
PengCZ


2013/1/7 Wolfgang Schuster wolfgang.schus...@gmail.com


 Am 06.01.2013 um 15:10 schrieb Sietse Brouwer sbbrou...@gmail.com:

  but the rightmarginwidth = 3.7569cm, not 0.1cm, I do not know why?
  what should I do to widen the texwidth?
 
  http://www.ntg.nl/pipermail/ntg-context/2012/064650.html
 
  In which Wolfgang wrote:
  The horizontal dimensions are determined by the three values
 
  - backspace (distance from the left/inner margin)
  - cutspace (distance from the right/outer margin)
  - width (width of the textblock)
 
  Normally you need only two values because when you set
  backspace + width the cutspace is  calculated and when
  you set backspace + cutspace you can write width=middle
  and the width of the text block will be calculated.
 
  Which is a good explanation, and he explains how vertical dimensions
  work, too. Allow me to add this e-mail to answer another question you
  will probably have: What about the marginwidth, margindistance,
  edgewidth, and edgedistance? Those are also horizontal values!
 
  A good question. The answer is that ‘margin’ means two things:
  1. the space between the edge of the textblock and the boundary of the
 paper
  2. a typesetting area inside that space, in which marginal material is
 typeset.
 
  Inside \setuplayout, margin has the second meaning: marginwidth is the
  width of the margin, and margindistance the distance between the text
  area and the margin area.
 
  There are also the ‘edges’: these are typesetting areas outside the
  margin areas. Some uses I can think of: colouring the edge of the page
  in a guidebook with sections; placing informative marks in general;
  printing a sort of vertical header/footer; etc.
 
  This is not a bad reference:
  http://wiki.contextgarden.net/Layout


 I wrote a short seven page example where you can see both margins
 don’t influence the layout because they’re just put on the sides like
 attachments.

 \setuppapersize[A4][A3]

 \setuplayout
   [location=middle,
header=0pt,
footer=0pt]

 \setuppagenumbering[location=]

 \definefont[BigFont][Mono*none sa 4]

 \starttext

 \showframe[page]
 \centerbox{\BigFont PAGE}\page

 \setuplayout
   [backspace=2cm,
cutspace=2cm,
width=middle,
topspace=2cm,
bottomspace=2cm,
height=middle]

 \showframe[text]
 \centerbox{\BigFont TEXTBLOCK}\page

 \setuplayout
   [header=2cm,
headerdistance=1cm,
footer=2cm,
footerdistance=1cm]

 \showframe[header,footer]
 \centerbox{\BigFont HEADER/FOOTER}\page

 \setuplayout
   [leftmargin=2cm,
leftmargindistance=1cm]

 \showframe[leftmargin]
 \centerbox{\BigFont LEFTMARGIN}\page

 \setuplayout
   [leftedge=2cm,
leftedgedistance=1cm]

 \showframe[leftedge]
 \centerbox{\BigFont LEFTEDGE}\page

 \setuplayout
   [rightmargin=2cm,
rightmargindistance=1cm]

 \showframe[rightmargin]
 \centerbox{\BigFont RIGHTMARGIN}\page

 \setuplayout
   [rightedge=2cm,
rightedgedistance=1cm]

 \showframe[rightedge]
 \centerbox{\BigFont RIGHTEDGE}\page

 \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

 ___

___
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] t-vim failed

2013-01-06 Thread 土卜皿
2013/1/5 Wolfgang Schuster wolfgang.schus...@gmail.com


 Am 05.01.2013 um 15:08 schrieb 土卜皿 pengcz.n...@gmail.com:

  hi, all
 I wanted to use t-vim modules, but I got the following error when
  compiling the file:
  \usemodule[vim]
  \definevimtyping[C][syntax=C]
  \starttext
  \startitemize
   \item A hello world example in C
 \startC
   #includestdio.h
   int main()
   {
 printf(Hello World)
   }
 \stopC
  \stopitemize
  \stoptext
 
  the errors as follows:
  fontspreloading latin modern fonts (second stage)
  fontstypescripts  unknown: library 'loc'
 
 {/software/spring-mvc/context-MIV/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/software/spring-mvc/context-MIV/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
  fontsfallback modern rm 12pt is loaded
  setuperror in line 12, namespace 289, key temp-C-0
  (vim-test-temp-C-0.vimout)
 
  can anyone help me? thanks

 The message comes from a bug in the recent change of the \savebuffer
 command.

 It’s easy to fix and I sent one to the dev list, it should be fixed with
 the next beta from Hans.

 What should I do to find whether Hans release the next beta before
installing?

Thanks!

BEST REGARDS

PengCZ


 ___
 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] t-vim failed

2013-01-06 Thread 土卜皿
Hi, all
   Sorry, I really hoped that I did not ask the previous question!
   I found the list in
http://minimals.contextgarden.net/current/context/

BEST REGARDS
PengCZ


2013/1/7 土卜皿 pengcz.n...@gmail.com




 2013/1/5 Wolfgang Schuster wolfgang.schus...@gmail.com


 Am 05.01.2013 um 15:08 schrieb 土卜皿 pengcz.n...@gmail.com:

  hi, all
 I wanted to use t-vim modules, but I got the following error when
  compiling the file:
  \usemodule[vim]
  \definevimtyping[C][syntax=C]
  \starttext
  \startitemize
   \item A hello world example in C
 \startC
   #includestdio.h
   int main()
   {
 printf(Hello World)
   }
 \stopC
  \stopitemize
  \stoptext
 
  the errors as follows:
  fontspreloading latin modern fonts (second stage)
  fontstypescripts  unknown: library 'loc'
 
 {/software/spring-mvc/context-MIV/tex/texmf/fonts/map/dvips/lm/lm-math.map}{/software/spring-mvc/context-MIV/tex/texmf/fonts/map/dvips/lm/lm-rm.map}
  fontsfallback modern rm 12pt is loaded
  setuperror in line 12, namespace 289, key temp-C-0
  (vim-test-temp-C-0.vimout)
 
  can anyone help me? thanks

 The message comes from a bug in the recent change of the \savebuffer
 command.

 It’s easy to fix and I sent one to the dev list, it should be fixed with
 the next beta from Hans.

 What should I do to find whether Hans release the next beta before
 installing?

 Thanks!

 BEST REGARDS

 PengCZ


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