[NTG-context] Bibtex to bbl-file conversion

2011-05-10 Thread finkler
Hello there,

somehow texexec (in the latest minimal distribution) does not convert my
bibtex-file correctly into an bbl-file.

-
My bibtex file:

@BOOK{Fowler2006,
  author = {Fowler, C. M. R.},
  year = {2006},
  title = {The Solid Earth. An Introduction to Global Geophysics},
  location = {New York},
  publisher = {Cambridge University Press},
  pages = {685},
  edition = {2}
}

The resulting bbl-file:

\setuppublicationlist[samplesize={Fow06},totalnumber=1]

\startpublication[k=Fowler2006,t=book,
a={{Fowler}},y=2006,
n=1,s=Fow06]
\author[]{C.~M.~R.}[C.~M.~R.]{}{Fowler}
\pubyear{2006}
\title{The Solid Earth. An Introduction to Global Geophysics}
\pubname{Cambridge University Press}
\edition{2}
\stoppublication


As you can see, pages is omitted, and another problem is that I'd like
to have location converted to city; is this possible?
Can someone give me some hints as solve my problems, why does texexec
not recognize the pages variable?

regards,
finkler

___
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] Bibtex to bbl-file conversion

2011-05-10 Thread Taco Hoekwater

On 05/10/2011 08:33 AM, finkler wrote:


and another problem is that I'd like
to have location converted to city; is this possible?
Can someone give me some hints as solve my problems, why does texexec
not recognize the pages variable?


You can have 'pages' in various types of entries like 'article'
and 'inbook', but not 'book'. The 'location' field is not a standard
field at all so it is not recognized.

See

  http://en.wikipedia.org/wiki/BibTeX#Entry_Types

for a list of standard bibtex fields. The context bib module
understands a few more, but it will not accept 'just anything'.

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] formula numbering in unnumbered sections

2011-05-10 Thread Julian Becker
Thank you alot Aditya! Somehow I didn't even think about using subsubjects
instead of subsections. I guess it was too obvious a solution.

best regards,
Julian

2011/5/9 Aditya Mahajan adit...@umich.edu

 On Wed, 4 May 2011, Julian Becker wrote:

  I came across the following problem recently: In my document I want
 chapters
 and sections to be numbered, but not subsections, subsubsections etc.
 Then, additionally I want my formulae to be numbered by chapter and
 section,
 but not subsection.

 In the following example the first equation gets numbered correctly as
 (1.1), (1.2) and (3) in the first chapter, and as (2.1), (2.2) and (3) in
 the second chapter respectively, which is not what I wanted. I'd rather
 have
 the formulae numbered as   (1.1), (1.2) and (1.3) in the first chapter,
 and
 as (2.1), (2.2) and (2.3).


 The current behavior looks like a bug to me.


  Anybody has an idea how to accomplish this?


 Don't use subsections with number=no. Rather use subsubject.

 \setupformulas[way=bychapter]

 \starttext
 \chapter{Wake up}
 \placeformula
 \startformula a^2+b^2=c^2
 \stopformula
 \section{Make Coffee}
 \placeformula
 \startformula c^2+d^2=e^2
 \stopformula
 \subsubject{Now waking up for real}

 \placeformula
 \startformula a^2+b^2=c^2
 \stopformula
 \chapter{Wake up again}
 \placeformula
 \startformula a^2+b^2=c^2
 \stopformula
 \section{Make Coffee again}
 \placeformula
 \startformula c^2+d^2=e^2
 \stopformula
 \subsubject{Now waking up for real}

 \placeformula
 \startformula a^2+b^2=c^2
 \stopformula

 \stoptext


 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

 ___




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

[NTG-context] mtxrun --script metapost and fonts?

2011-05-10 Thread Michal Kvasnička
Hallo.

I've got a problem with metapost - pdf translation. Since mptopdf is still
broken in the last ConTeXt beta in the minimal distribution, I use mtxrun
--script metapost --split. It works well, only it ignores font setting. My
code is like this:


verbatimtex
  \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
  \definetypeface [times] [mm] [math] [times] [default]  [encoding=ec]
  \setupbodyfont [times,10pt]
etex;

beginfig(1);
  label(btex A $a_i$ etex,origin);
endfig;

end.


I believe that the code in the verbatimtex ... etex environment should
switch the major font to Times (it works with texexec --mptex). However,
it is ignored by the mtxrun --script metapost --split script---Computer
Modern in 12pt is used instead of Times in 10pt. Is there any way around
this problem? Many thanks for your help.

Best wishes,
Michal Kvasnicka
___
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] mtxrun --script metapost and fonts?

2011-05-10 Thread Hans Hagen

On 10-5-2011 3:29, Michal Kvasnička wrote:

Hallo.

I've got a problem with metapost -  pdf translation. Since mptopdf is still
broken in the last ConTeXt beta in the minimal distribution, I use mtxrun
--script metapost --split. It works well, only it ignores font setting. My
code is like this:


verbatimtex
   \definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
   \definetypeface [times] [mm] [math] [times] [default]  [encoding=ec]
   \setupbodyfont [times,10pt]
etex;

beginfig(1);
   label(btex A $a_i$ etex,origin);
endfig;

end.


just do:

\definetypeface [times] [rm] [serif] [times] [default] [encoding=ec]
\definetypeface [times] [mm] [math] [times] [default]  [encoding=ec]
\setupbodyfont [times,10pt]

\startMPpage
   label(btex A $a_i$ etex,origin);
\stopMPpage


I believe that the code in the verbatimtex ... etex environment should
switch the major font to Times (it works with texexec --mptex). However,
it is ignored by the mtxrun --script metapost --split script---Computer
Modern in 12pt is used instead of Times in 10pt. Is there any way around
this problem? Many thanks for your help.


in mkiv verbatimtex is not supported (useless)

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] handouts blank

2011-05-10 Thread Otared Kavian
On 9 mai 2011, at 22:31, Aditya Mahajan wrote:

 […]
 
 Was already present at
 
 http://wiki.contextgarden.net/Presentations#Post_Processing_Presentation
 
 I think that the new page can be deleted. Do you agree?
 
 Aditya

Dear Aditya,

I am sorry for having overlooked that page: indeed the page 
http://wiki.contextgarden.net/handout
is just a repetition of 
http://wiki.contextgarden.net/Presentations#Post_Processing_Presentation
and as such can be deleted, as you suggest. However, I couldn't find a way to 
delete the page about « handout ». Also, when searching the word « handout » on 
the wiki, I didn't find anythind and that's why I added the page about it.

Best regards: OK
___
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 create a breakable text box inside math equation?

2011-05-10 Thread Mojca Miklavec
On Fri, May 6, 2011 at 22:33, Wolfgang Schuster wrote:

 Am 06.05.2011 um 16:50 schrieb Mojca Miklavec:

 Hello,

 This is probably a very trivial question, but I'm not sure how TeX
 works in that respect. I'm used to use a macro
   \def\unit#1{{\rm\ #1}
 in constructs such as $1\unit{cm^2} \times 2\unit{cm}$. However I
 figured out that the contents of \unit{} cannot be broken accross
 lines, most probably because this becomes an hbox.

 Is there any simple workaround?

 \def\unit{\groupedcommand{\rm\ }{}}

 or

 \def\unit#1{\bgroup\rm\ #1\egroup}

 { and } are same as \begingroup and \endgroup in math mode and prevent and a 
 line break of the content.

Wow! Interesting. I never realized that {} prevents breaking in math mode.

However, your solution to replace {} with \bgroup\rm \egroup works,
but only if I replace it in the formula itself. If I change only the
definition, it still won't break (maybe because I use a pair of braces
already in \unit{cm+cm}).

But at least now I know how to solve the problem. I can still use an
explicit \rm instead of using \unit macro.

Another question: how should I signal an allowed break in math mode?
\penalty0 or is there some more sensible option? (\hskip doesn't seem
to have any effect at all.)

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
___

[NTG-context] Bibliography and multiple years of the same author

2011-05-10 Thread Florian Wobbe
Hi,

how do I get an additional space after the comma separating the years in this 
cite?

(Hagen, 2010b,2011) -- (Hagen, 2010b, 2011)

Minimal example:

\setupbibtex[database=sample]
\setuppublications[alternative=apa, refcommand=authoryears]

\starttext
\cite[hh2010a, hh2011]
\stoptext

Also add the following entry to sample.bib:

@ARTICLE{hh2011,
  author = hh,
  title = {The Font Name Mess (II)},
  journal = {MAPS},
  year = {2011},
  volume = {41},
  pages = {2-8},
  keywords = {context},
}

Thanks,
Florian

___
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] Unskipping punctuation

2011-05-10 Thread Florian Wobbe
Hi,

is it possible to '\unskip' the last comma or period? This would be handy for 
defining the publication layout using \setuppublicationlayout. I have bibtex 
entries ending with period and adding another one looks odd.

Thanks,
Florian

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