[NTG-context] citation by number

2007-01-02 Thread Gerhard Kugler
Hi,

I want to cite by numbers. Till now it get only empty brackets.

My file contains:

\setuppublications[criterium=all,autohang=no,numbering=bib,refcommand=serial,sorttype=bbl]

with refcommand=num it was the same result.

Gerhard

-- 
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] citation by number

2007-01-02 Thread Taco Hoekwater


Gerhard Kugler wrote:
 Hi,
 
 I want to cite by numbers. Till now it get only empty brackets.

What versions of context (and the module) do you use?

 My file contains:
 
 \setuppublications[criterium=all,autohang=no,numbering=bib,refcommand=serial,sorttype=bbl]
 
 with refcommand=num it was the same result.
 
 Gerhard
 
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt 2007.01.02

2007-01-02 Thread Taco Hoekwater
Hi all,

Not even 40 hours into the new year, there is already a new ConTeXt
release available for download from htp://www.pragma-ade.com .

Bugfixes:

 * re-enable norwegian hyphenation patterns
 * footnote referencing fix
 * fix use of prime and underscore in math displays
   (that was already in 2006.12.27)

New feature:

* Use the low-level support for ToUnicode mapping in the
  (likewise brand new) pdftex 1.40, if possible.


Wishing everybody all the best and lots of fun in 2007,

Taco

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Taco Hoekwater
Hi,

The next message probably also is interestering to a few of you that
are not subscribed to the pdftex list.

Best, Taco

 Original Message 
Subject: [pdftex] pdftex 1.40
Date: Mon, 1 Jan 2007 17:56:59 +0100
From: Martin Schröder [EMAIL PROTECTED]
To: PDF-TeX mailing list [EMAIL PROTECTED]

http://sarovar.org/download.php/1139/pdftex-1.40.0.tar.bz2
http://sarovar.org/download.php/1140/pdftex-1.40.0.tgz
http://sarovar.org/download.php/1141/pdftex-1.40.0.zip
http://sarovar.org/download.php/1142/pdftex-1.30.6-1.40.0.diff.gz

The pdfTeX team is happy to announce the release of a new stable version:

===
pdfTeX 1.40.0
===

This is the announcement of pdfTeX 1.40.0, an extended version of TeX that
can create PDF directly from TeX source files and enhance the result of TeX
typesetting with the help of PDF.

===
   Main changes of pdfTeX 1.40.0
===

- pdfetex (as a separate binary/program) is gone; all extensions are now in
   pdftex. The make files still know about the target pdfetex, but it's just
   a copy of pdftex
- The sources of TeX, eTeX and pdfTeX have been merged into one file
   pdftex.web and one change file pdftex.ch. The sources of TeX and eTeX
   distributed are just there for reference
- New features:
   - pdfTeX can now generate PDF 1.5 object streams, which leads to smaller
 PDFs. This is controlled by setting \pdfobjcompresslevel to a value 0
 (3 compress everything, 2 don't compress /Info, 1 also don't compress
 embedded PDFs) and works only with PDF =1.5
   - pdfTeX now supports another image file format: JBIG2 files (.jbig2)
   - the memory allocated for objects and destination names now grows
 dynamically
   - pdfTeX now generates smaller PDFs since for char positioning the width
 of chars (/Widths) is stored with more precision and so the chars must
 rarely be positioned separately
   - the PK resolution is now taken from the pk_dpi parameter in texmf.cnf
 if it has not been set in the format file or by the user
   - pdfTeX now removes the generated pdf in case of a fatal error
   - pdfTeX now sets /ModDate and /Trapped in the InfoDict by default (the
 values can be overridden with \pdfinfo)
   - the format of warnings and errors issued by pdfTeX has been changed and
 unified
   - the output of -version has been extended and now includes information
 about the libraries actually used, which can be handy when using shared
 libraries
   - rules and their positioning on the page are now inside a qQ group
- New primitives:
   - pdfTeX can now handle colourstacks.
 - \pdfcolorstackinit
   A stack is initialized by \pdfcolorstackinit. It expands to the
   number of the new stack. The common case, the traditinal color stack
   is already initialized as first stack: \pdfcolorstackinit page direct
   {0 g 0 G} The keyword page means that this stack is page based. At
   the start of the new page, the current stack value is automatically
   set.
 - \pdfcolorstack
   \pdfcolorstack stack number push {new color}
   pushes the current value on the stack and sets the new color.
   \pdfcolorstack stack number pop
   pops and sets the current stack value.
   \pdfcolorstack stack number current
   sets the current stack value without changing the stack. This is
   useful for stacks that are initialized without keyword page.  Thus
   the page start setting can be set manually.
   \pdfcolorstack stack number set {new color}
   The current value is set to new color.
   - Transformation matrices can now be manipulated more cleanly:
 Currently matrix changes are done and hidden inside \pdfliteral nodes;
 pdfTeX doesn't parse its contents and does not know the new settings of
 the transform matrix. Thus the new primitives to save pdfTeX from
 parsing \pdfliteral contents and to notify pdfTeX about matrix changes
 to use them in calculating link and anchor positions.
 - \pdfsetmatrix{a b c d}
   is the equivalent to \pdfliteral{a b c d 0 0 cm}
 - \pdfsave is the equivalent to \pdfliteral{q}
 - \pdfrestore is the equivalent to \pdfliteral{Q}
   - \pdfprimitive\TeX-primitive executes the original \TeX-primitive even
 if the command has been redefined since. E.g.
   \let\relax\undefined\pdfprimitive\relax
 expands to \relax.
 \ifpdfprimitive\TeX-primitive is true if \TeX-primitive has its
 original meaning
   - \ifpdfabsnum and \ifpdfabsdim are like \ifnum and \ifdim, but don't
 care about negative numbers
   - shell escape: if the first character of a filename for \openin,
 \openout \input is a pipe symbol 

Re: [NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Thomas A. Schmitz
On Jan 2, 2007, at 3:21 PM, Taco Hoekwater wrote:

 Hi,

 The next message probably also is interestering to a few of you that
 are not subscribed to the pdftex list.

 Best, Taco

Taco and all other pdftex-developers,

congratulations on getting version 1.40 ready for the new year! I had  
been using it since the first betas and never had any problems; it's  
great that you're going stable. Just one short remark for all those  
who may want to upgrade to this version: if you use opentype fonts,  
the .otf files have now to reside under TEXMF/fonts/opentype; right  
until the last beta, they were (only?) found under TEXMF/fonts/type1,  
but this is no longer the case. Apart from this, everything seems to  
be wonderfully stable. And now we all wait for luatex (or for  
luatools.lua so we can play around with it)...

Best wishes

Thomas
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] citation by number

2007-01-02 Thread Taco Hoekwater


Gerhard Kugler wrote:
 On Tue, Jan 02, 2007 at 02:21:04PM +0100, Taco Hoekwater wrote:
 

What versions of context (and the module) do you use?
 
 context: 2006.12.27
 
 I think bib and bibltx are from the same version.

Hm, so that's not the problem. Where and how do you place
the actual list of publications in your document? Please
try adding [criterium=all] after your \placepublications
or \completepublications command. If that doesn't work,
a minimal example input file is needed.

Best,

Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] cdwincontext

2007-01-02 Thread David Arnold
All,

Has anyone modified the batch file in cdwincontext so that it will  
run on Windows98? If so, can I get a copy of the batch file?


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Peter Münster
On Tue, 2 Jan 2007, Taco Hoekwater wrote:

- draftmode: With \pdfdraftmode=1 or the commandline switch -draftmode
  pdfTeX doesn't write the output pdf and doesn't actually read any
  images, thus speeding up compilations when you know you need an extra
  run but don't care about the output, e.g. just to get the BibTeX
  references right

Hello,
I'm thinking of \doifnotmode{*last}{\pdfdraftmode=1}, but how do I ask
for an additional imposition pass?
Cheers and happy new year!
Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] store counter or variable and reread again

2007-01-02 Thread Peter Münster
On Mon, 1 Jan 2007, Hans Hagen wrote:

 hm, long long ago i played with strategies for this ... the attached 
 file shows some of this ... food for thought

Thanks Hans, it's quite similar to my old LaTeX letter class option file,
that I would like to port to ConTeXt.

What is the difference between
\savecurrentvalue ...
and
\setstrategyvariable ... ?

It seems, that both are doing what I'm looking for.

Is there somewhere some documentation about
- texexec --optimize
- strategies
- twopassentries
and so on?

Cheers, Peter

-- 
http://pmrb.free.fr/contact/
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] debian context updates

2007-01-02 Thread Sanjoy Mahajan
I'm using Ubuntu 6.10, so context_2006.12.27-1_all.deb wouldn't
install without a --force-conflicts,overwrite,depends given to dpkg
(Ubuntu still uses tetex 3.0).  With that caveat, which may explain
the buglet I saw, it mostly worked fine.

The buglet: The context formats that the package installed in
/var/lib/texmf/web2c/pdfetex are not found.  For example, pdfetex
'cont-en' tries to run mktexfmt.  So I made a symlink from
/var/lib/texmf/web2c/pdfetex to /var/lib/texmf/web2c/pdftex and then
'texexec' worked fine on my current document (a 50-page mathematics
textbooklet).

I'm pretty sure the problem arose because I now use pdftex 1.40.0,
which (I think) sets the engine to pdftex, even when it is called as
pdfetex.

Not sure what the best solution is.  The symlink is a bit of a hack.
In the long run, it's good to get rid of the pdfetex/pdftex
distinction and put the context formats in web2c/pdftex/.  But that'll
break the current context distribution, because it uses pdfetex as the
engine.  So until all surrounding programs are taught to use pdftex as
the engine, this problem will occur and maybe the symlink is the
solution.

Before I did the dpkg --force..., I was trying to simulate its effect
in a custom script.  So I looked through the ctxfmtutil script and was
surprised to find that this texexec command (on line 38) worked:

   texexec --fast --make --$1 $2

where $1 is the engine and $2 is the format.  A more official syntax
would be texexec --fast --engine=$1 --make $2 but Hans can (might
have to) correct me on that.

-Sanjoy

`Not all those who wander are lost.' (J.R.R. Tolkien)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Easy insertion of Unicode symbols?

2007-01-02 Thread Henning Hraban Ramm
Am 2006-12-31 um 15:59 schrieb [EMAIL PROTECTED]:

 I need to insert a few Unicode symbols...(Just the symbols for the
 solar system planets)... Is this going to be easy - doable inside
 ConTeXt with a few preparatory mystic runes, or will it require
 running scripts, moving files around, etc...?

 The wiki suggests:

 Use \enableregime[utf] in order to be able to typeset in unicode
 under ConTeXt.

 But is it as simple as it looks?

Have a deeper look at the wiki:
http://wiki.contextgarden.net/Symbols
http://homepage.mac.com/atl/tex/
http://source.contextgarden.net/symb-uni.tex

Of course you need the fonts containing the symbols in place...

Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Manual (English) Update soon?

2007-01-02 Thread Henning Hraban Ramm
Am 2006-12-30 um 10:28 schrieb Douglas Philips:

 Arg. My bane. Fonts. The one thing that pulls me ever so slightly to
 using Pages...
 Not because I want a garish mix of goofball junk fonts, but because I
 love Palatino for newletters
 and Papyrus for cards and short notes...
 I figured out how to get Palatino into LaTeX, but use other programs
 (so far) to get Papyrus...

Using Palatino with ConTeXt is no problem (it used to be URW Palladio  
and is TeX Gyre Pagella nowadays, which contains a lot of more glyphs  
than any original Palatino).

If you can't figure it out (it's no beginner's task), I'll write the  
Papyrus files for you.

BTW, there are some ConTeXt font packages on my homepage, but I can't  
remember of all of them are up to date...

Have a look at
http://wiki.contextgarden.net/TypeScripts
and
http://www.fiee.net/texnique/?menu=0-1-4lang=en


Greetlings from Lake Constance!
Hraban
---
http://www.fiee.net/texnique/
http://contextgarden.net
http://www.cacert.org (I'm an assurer)

___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] A couple of questions on heads.

2007-01-02 Thread Elliot Clifton
Hi,

I'm still a relative newbie. I enjoy using ConTeXt and have achieved
some great results with it, but some issues still trip me up.

I'm typesetting a journal. I use \chapter to divide it into articles.
I've defined my own heads, and I need to redefine \appendix, however
despite reading the manual I cant get them behave as I want.

Problems:

1. Each article may have appendices. I've tried defining my own
'appendix' head to replace the default one, but I can't decide which
to use, should I derive from chapter or section? The problem with
using section as the base, is that the count from my previous sections
is inherited.  I don't want numbers of the form 1.1, 1.2, etc, either.
I want to number my appendices independently, starting from 1 without
the chapter  number. Also, I would like to use roman numerals.

2. I derived \Author from \section with expectation that
\setupheadertexts[Papertitle][Author] would yield a header containing
the author's name and the paper's title, however I get the title of
the most recent section instead of the author. What can I do about
this?

thanks,

Elliot
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] A couple of questions on heads.

2007-01-02 Thread Aditya Mahajan
On Tue, 2 Jan 2007, Elliot Clifton wrote:

 I'm typesetting a journal. I use \chapter to divide it into articles.
 I've defined my own heads, and I need to redefine \appendix, however
 despite reading the manual I cant get them behave as I want.

 Problems:
 
 1. Each article may have appendices. I've tried defining my own
 'appendix' head to replace the default one, but I can't decide which
 to use, should I derive from chapter or section? The problem with
 using section as the base, is that the count from my previous sections
 is inherited.  I don't want numbers of the form 1.1, 1.2, etc, either.
 I want to number my appendices independently, starting from 1 without
 the chapter  number. Also, I would like to use roman numerals.

You can separate the appendices by a section block. For example

% appendix is already a section block. By default, a section
% block starts a new page, you may not want that in a journal
\setupsectionblock[appendix][page=]


% Change the conversion for sections in appendices.
\setupsection
   [section-3]
   [appendixconversion=Romannumerals]


\starttext

\section{Test}

\startappendices
\section{An Appendix}
\stopappendices

\stoptext


 2. I derived \Author from \section with expectation that
 \setupheadertexts[Papertitle][Author] would yield a header containing
 the author's name and the paper's title, however I get the title of
 the most recent section instead of the author. What can I do about
 this?

You need not redrive \Author from section. You can use use totally 
different markings, as shown below.


% Define your own marking.

\definemarking[Papertitle]
\definemarking[Author]

% Set that marking.

\marking[Papertitle]{This is a \CONTEXT\ example}
\marking[Author]{Aditya Mahajan}

% Allow ConTeXt to do the rest :-)

\setupheadertexts[Papertitle][Author]

\starttext test \stoptext

HTH,

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Aditya Mahajan
On Tue, 2 Jan 2007, Peter Münster wrote:

 On Tue, 2 Jan 2007, Taco Hoekwater wrote:
 
 - draftmode: With \pdfdraftmode=1 or the commandline switch -draftmode
   pdfTeX doesn't write the output pdf and doesn't actually read any
   images, thus speeding up compilations when you know you need an extra
   run but don't care about the output, e.g. just to get the BibTeX
   references right
 
 Hello,
 I'm thinking of \doifnotmode{*last}{\pdfdraftmode=1}, but how do I ask
 for an additional imposition pass?

Interesting idea. I do not (yet) have pdf-1.40 so I can not test this. 
Does it work for normal cases? The modes manual says

*last* This mode is set if the last run in a session is taking place. 
Normally this is not known in advance, unless one has asked for an 
additional imposition pass.

which makes be believe that it will not work for normal cases. 
However, how about adding a switch to texexec, say --draft, which 
will run the document in draftmode until no more runs are needed, and 
will then run a final typesetting run without the draftmode. This may 
speed up the execution time for long documents significantly.

Aditya
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Martin Schröder
2007/1/3, Aditya Mahajan [EMAIL PROTECTED]:
 which makes be believe that it will not work for normal cases.
 However, how about adding a switch to texexec, say --draft, which
 will run the document in draftmode until no more runs are needed, and
 will then run a final typesetting run without the draftmode. This may
 speed up the execution time for long documents significantly.

It helps especially if your document produces a large pdf and/or
includes many and/or large images.

Best
   Martin
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] citation by number

2007-01-02 Thread Gerhard Kugler
On Tue, Jan 02, 2007 at 05:20:26PM +0100, Taco Hoekwater wrote:
 Please
 try adding [criterium=all] after your \placepublications
 or \completepublications command. If that doesn't work,
 a minimal example input file is needed.
 

Thanks Taco,

your suggestion provides the wanted effect.

Gerhard

 
-- 
Gerhard Kugler
Psychotherapeut
http://www.psychotherapie-kugler.de
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] [Fwd: [pdftex] pdftex 1.40]

2007-01-02 Thread Sanjoy Mahajan
From the texexec man page:

--fast
Typeset the document(s) as fast as possible without causing
problems.

--final 
Perform a final run without skipping anything. This option is
typically used with --fast.

So --fast --final could be the pair of switches to add.  But I tried
an experiment with mediocre results, using this test file:

== q.tex =
\doifnotmode{*last}{\pdfdraftmode=1}
\starttext
\completecontent

\chapter{A}
\dorecurse{500}{\input tufte\par}

\chapter{B}
\dorecurse{400}{\input tufte\par}

\chapter{C}
\dorecurse{100}{\input tufte\par}

\stoptext


I ran it with the attached Makefile, which produced this output:

  ctxtools --purge --all  /dev/null
  rm -f q.pdf
  texexec --verbose --fast --final q.tex  run.log
  Total runs: 4 (counted by grepping run.log for running: pdfetex)
  Draftmode runs: 3 (counted by grepping run.log for pdfdraftmode)
  TeXExec | runtime: 7.987485

Then I commented out the first line and reran it:

  ctxtools --purge --all  /dev/null
  rm -f q.pdf
  texexec --verbose --fast --final q.tex  run.log
  Total runs: 4
  Draftmode runs: 0 (just to check)
  TeXExec | runtime: 8.307869

So the draftmode saves 4% in the runtime.  But the fastest is to not
use the draftmode and not use --final (which causes an extra run).
Maybe I missing a trick, but the draftmode didn't save much time.  I
guess I should make the test file read in a few huge images?

-Sanjoy

.PHONY: runit clean

runit: clean
texexec --verbose --fast --final q.tex  run.log
@echo -n Total runs:  ; grep running: pdfetex run.log | wc -l
@echo -n Draftmode runs:  ; grep pdfdraftmode enabled run.log | wc 
-l
@grep runtime: run.log

clean:
ctxtools --purge --all  /dev/null
rm -f q.pdf
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt, hyphenation

2007-01-02 Thread Rolf Marvin Bøe Lindgren
I've upgraded to the most recent version of ConTeXt now.  I try to  
set Norwegian hyphenation by saying

\language[no]
\setuplanguage[no]

however, as opposed to in the previous version, there are no  
hyphenations at all.  I wonder if it is to do with the pattern file  
used – how do I set that?  and how can I make sure that the correct  
patterns are used?


-- 
Rolf Lindgren
[EMAIL PROTECTED]


___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context