[NTG-context] String single quote in \tt

2006-09-11 Thread Aditya Mahajan
Hi,

  I just noticed that in the preprocessing manual, the single quotes 
are wrong. Look at the output of

\starttext
\starttyping
   let a = 'string' ;
\stoptyping
\mono{ let a = 'string' ;}

{\tt let a = 'string' ;}
\stoptext

The singlequote character is converted into rightquote. This feature 
is also present in plain tex and Latex.

rightquote string rightquote does not look good in program listings. 
Isn't there some way to turn off these intelligent quotes in \tt?

Aditya

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


Re: [NTG-context] YABQ (yet another bib question...)

2006-09-11 Thread Thomas A. Schmitz
Sanjoy,

thanks for your rely. Of course you're quite right, this is the wau  
to go, and it works. But my question was imprecise because I did not  
mention what was causing the problem: I'm working with split  
bibliographies and want to refer in chapter 2 to an item already  
included in the biblio of chapter 2. If I just put a \cite command  
somewhere, this item will be included a second time in the list of  
chapter 2. So my question is: this item does already have a counter  
attached to it. Is it possible to refer to this raw counter across  
chapters? Like so:

Chapter 1

[1] main reference

Chapter 2

[2] another thing

[3] and yet another [reprinted in [1]]

without having [1] main reference repeated. This my very well be  
impossible, I'm just wondering.

Thanks, and all best

Thomas

On Sep 9, 2006, at 12:40 AM, Sanjoy Mahajan wrote:

 Is it possible to refer back to item [1] automatically, by sticking
 the reprinted in in a note field in the database? I tried a
 number of combinations of \crossref or so, but couldn't get this to
 work.

 I need to repeat my experiments, but I think it worked to use simply
 \cite in the bibtex entry.  Ah, here is one example.  It uses
 xampl.bib, which comes with old distributions of ConTeXt (e.g. teTeX
 3.0's distribution).

 [Taco: The reference to Knuth below comes out as (Knuth, 1981c) even
 though there are no other 1981 entries for Knuth cited in the text.
 Is that hard to fix given ConTeXt's way of dealing with bibtex, in
 that it just incorporates the entire database, in which there are
 several 1981 entries from Knuth?]

 = cut here 
 \usemodule[bib]
 \usemodule[bibltx]
 \setupbibtex[database=xampl]
 \starttext

 Here is a citation to a book that contains a cross reference:
 \cite[book-crossref].  The bibliography entry (next page) for it
 should contain a bib reference to another item in the bibliography.

 \completepublications
 \stoptext
 = cut here 

 Here are the relevant entries from xampl.bib, which indicates that
 it's the crossref= line that you need (not \cite as I said above)v:

 @BOOK{book-crossref,
crossref = whole-set,
title = Seminumerical Algorithms,
volume = 2,
series = The Art of Computer Programming,
edition = Second,
year = {\noopsort{1973c}}1981,
note = This is a cross-referencing BOOK entry,
 }

 @BOOK{whole-set,
author = Donald E. Knuth,
publisher = Addison-Wesley,
title = The Art of Computer Programming,
series = Four volumes,
year = {\noopsort{1973a}}{\switchargs{--90}{1968}},
note = Seven volumes planned (this is a cross-referenced set of
BOOKs),
 }

 -Sanjoy

 `Never underestimate the evil of which men of power are capable.'
  --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context

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


[NTG-context] index formatting

2006-09-11 Thread Thomas A. Schmitz
Hi all,

there is a problem with index formatting (I'm using the latest beta,  
but have no idea if this was always the case or has been introduced  
recently). My index is in two columns (the default, I believe). If an  
item has several references, the lines doesn't break, but continues  
into the margin or into column 2. Lines do break after the en-dash at  
index ranges, so it looks like the space after the comma is non- 
breakable. It's difficult to make a minimal example for that, but  
what I see is this:

Virgil 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13

instead of

Virgil 1, 2, 3, 4,
4, 6, 7, 8, 9,
10, 11, 12, 13

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


Re: [NTG-context] margintext style and more

2006-09-11 Thread batela
Dear Sirs

I have two questions for you:

1. How i can changing the margintext style?

2. In some cases  I found a overlapping between to consecutive 
margintext notes and between a sequence of a inmargin and margintext 
notes. How I can fix this?

Thanks in advance


Em 10/09/2006, às 9:16, batela escreveu:

 For changing inmargin style I  make

 \setupinmargin
[right]
[style=\MarginStyle]

 Are there a similar solution for \margintext?

 thanks


 Em 10/09/2006, às 3:48, batela escreveu:

 Dear Sirs

 Is there any way to format margintext notes. I want to justify and
 apply this  format to my margin notes:

 \def\MarginStyle{%
\switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
\setuphz\setupprot\emergencystretch=.5em
\setuptolerance[{horizontal,verytolerant}]%
 }

 Thanks in advance

 Jorge

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


 Um Abraço,

 Jorge Magalhães

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


Abraços,

Jorge Manuel de Almeida Magalhães

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


Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Peter Münster
On Mon, 11 Sep 2006, Aditya Mahajan wrote:

 \doifoneelse{1}{a}{b}  gives a
 \doifoneelse{1.5}{a}{b} gives b
 \doifonelese{string}{a}{b} gives b
 
 Can someone suggest how to define this?

\def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}}
\starttext
\doifoneelse{1}{a}{b}  gives a
\doifoneelse{1.5}{a}{b}gives b
\doifoneelse{string}{a}{b} gives b
\stoptext

Cheers, Peter

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


[NTG-context] Making context produce dvi file.

2006-09-11 Thread John R. Culleton
For one recurring task I first produce a booklet version 5.5. x
8.5in, then a straight pdf 8.5 x 11in, all controlled by modes. The
third format is plain text. Others recommend dvi2tty for this
conversion. But how do I get Context to produce a dvi file? The
Context manual does not make this clear.

I am on a Linux system.  

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com





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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread luigi scarso
On 9/11/06, John R. Culleton [EMAIL PROTECTED] wrote:
 For one recurring task I first produce a booklet version 5.5. x
 8.5in, then a straight pdf 8.5 x 11in, all controlled by modes. The
 third format is plain text. Others recommend dvi2tty for this
 conversion. But how do I get Context to produce a dvi file? The
 Context manual does not make this clear.

 I am on a Linux system.
hmm, on my (one year old) system
$ texexec file.tex
make file.dvi
and
$ texexec --pdf file.tex
make file.pdf


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


[NTG-context] DTD

2006-09-11 Thread Peter Rolf
Hi,

is there a public DTD (RNC prefered) for the context macro format in
cont-en.xml? I also searched for the DTD of the rl-database, but without
success. The only thing I found is x-fig-00.dtd, which describes the
fig-database format.

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


Re: [NTG-context] margintext style and more

2006-09-11 Thread Peter Rolf
batela wrote:
 Dear Sirs
 
 I have two questions for you:
 
 1. How i can changing the margintext style?

As I understand it, you also use \setupinmargin for this (see context
manual, top of page 63).

 2. In some cases  I found a overlapping between to consecutive 
 margintext notes and between a sequence of a inmargin and margintext 
 notes. How I can fix this?

I don't think that there is any bookkeeping of the inmargin stuff. But
maybe I'm wrong.

Greetings, Peter

 Thanks in advance
 
 
 Em 10/09/2006, às 9:16, batela escreveu:
 
 For changing inmargin style I  make

 \setupinmargin
[right]
[style=\MarginStyle]

 Are there a similar solution for \margintext?

 thanks


 Em 10/09/2006, às 3:48, batela escreveu:

 Dear Sirs

 Is there any way to format margintext notes. I want to justify and
 apply this  format to my margin notes:

 \def\MarginStyle{%
\switchtobodyfont[7pt]\setupinterlinespace[line=9pt]%
\setuphz\setupprot\emergencystretch=.5em
\setuptolerance[{horizontal,verytolerant}]%
 }

 Thanks in advance

 Jorge

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


 Um Abraço,

 Jorge Magalhães

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


 Abraços,
 
 Jorge Manuel de Almeida Magalhães
 
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
 

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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Mari Voipio


On Mon, 11 Sep 2006, John R. Culleton wrote:
 But how do I get Context to produce a dvi file?

If I recall correctly from my time with TeXLive, dvi is the 'native' 
format of ConTeXt, which was less than handy with Windows
i.e. you normally get dvi by *not* telling ConTeXt to make ps/pdf. (See 
beginner manual p. 6, second paragraph.)

However, the systems have changed over the last couple of years and for 
example I now run the stand-alone WinConText that pdfs everything, whether 
I want it or not (I do, so it doesn't bother me), so this is not so 
self-evident any more. From http://wiki.contextgarden.net/First_Document I 
understand that most ConTeXt configurations now produce pdfs by default.

On Linux you might be able to find the place where your \setupoutput[pdf] 
or texexec --pdf sits, if it's in a configuration file.
On the other hand, I dug a bit into my stand-alone Windows distribution 
and didn't get any smarter by that. Now I know why my pdf opens 
automatically into Acrobat, but not how *not* to produce pdf (or ps).



That was a very good question. :-)


Mari
(...three years with ConTeXt and I sound like a dinosaur...)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Willi Egger
Hi,

Humble, I would start in the preamble to sau \setupoutput[dvi]

Willi

luigi scarso wrote:
 On 9/11/06, John R. Culleton [EMAIL PROTECTED] wrote:
   
 For one recurring task I first produce a booklet version 5.5. x
 8.5in, then a straight pdf 8.5 x 11in, all controlled by modes. The
 third format is plain text. Others recommend dvi2tty for this
 conversion. But how do I get Context to produce a dvi file? The
 Context manual does not make this clear.

 I am on a Linux system.
 
 hmm, on my (one year old) system
 $ texexec file.tex
 make file.dvi
 and
 $ texexec --pdf file.tex
 make file.pdf


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


[NTG-context] Update ConTeXt + standalone distr (Windows)

2006-09-11 Thread Mari Voipio

With my new work computer I finally gave up on my old but working ConTeXt 
in TeXLive2004 and upgraded for good to the standalone distribution, run 
on hard disk. One of the new things I found in the Tools menu was the 
'Update ConTeXt' command, so today, when I'm *not* in the middle of a 
urgent project, I decided to try it out.

Good news: for the first time in my ConTeXting career, I managed to 
update my system without reinstalling the whole thing. And the very new 
ConTeXt version (today's?!) compiles my ever-important manuals without 
complaints.

Somewhat bad news: without fiddling, the updating gets stuck at unzipping 
after downloading, because 'unzip' is not in the path and that's it then. 
So it is not quite on 'Windows dummy' level yet, although real close.
Note, though, that the standalone distribution I use is about four weeks 
old, I might be complaining about something that's already fixed!


How I solved it: just today, I dug out an old tool and learned that it 
ain't gonna work without cygwin. Installed Cygwin, dumped the tool in the 
bin directory - and realized, that my cygwin/bin also contained a file 
called 'unzip.exe'. Putting it (cygwin/bin) into my Windows path didn't 
help (not a recommendable operation for standard users anyway), but then I 
realized that 'standalone' really is standalone and copied 'unzip.exe' to 
where my ctxtools.bat lives, i.e. 
\ConText\usr\local\context\tex\texmf-mswin\bin - and presto, the update 
went through. It seems to me that it even generates formats on the fly, so 
with one mouse-click I can get the most up-to-date ConTeXt.

How I think this might be solved:
In the texmf-mswin\bin directory, there is a 'gunzip.exe'. If I remember 
correctly, gunzip is fairly simple to use, so this might just mean a 
change somewhere in the stand-alone package so update would use gunzip to 
unpack the update files.
Or, as it seems to me that different types of 'unzip.exe's are public 
domain stuff, just include that in the standalone distribution and 
everything works (no other changes were needed, just bringing 'unzip.exe' 
into the correct directory.



I really like the standalone distribution. Of the many ConTeXt variations 
I've used until today's date, this year's standalone has been the most 
Windows-minded and most Windows-friendly in many ways. It works 
out-of-the-box (has less options to uncheck than Word), seems to live 
happily even under C:\Program Files and has a logic that I as a 
non-programming Windows power user find easy to follow. I no longer need 
to refer to the manual to get as far as to compile a test pdf with 
standard postscript fonts, now I can concentrate on the layout, not the 
innards of TeX.

So, even though there are slight blemishes and wrinkles to be ironed out 
like this update thing, ConTeXt in Windows is definitely becoming a nice 
package for those of us who find that Word just doesn't do what we want. 
:-)



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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Hans Hagen
Mari Voipio wrote:
 On Mon, 11 Sep 2006, John R. Culleton wrote:
   
 But how do I get Context to produce a dvi file?
 

 If I recall correctly from my time with TeXLive, dvi is the 'native' 
 format of ConTeXt, which was less than handy with Windows
 i.e. you normally get dvi by *not* telling ConTeXt to make ps/pdf. (See 
 beginner manual p. 6, second paragraph.)

 However, the systems have changed over the last couple of years and for 
 example I now run the stand-alone WinConText that pdfs everything, whether 
 I want it or not (I do, so it doesn't bother me), so this is not so 
 self-evident any more. From http://wiki.contextgarden.net/First_Document I 
 understand that most ConTeXt configurations now produce pdfs by default.

 On Linux you might be able to find the place where your \setupoutput[pdf] 
 or texexec --pdf sits, if it's in a configuration file.
 On the other hand, I dug a bit into my stand-alone Windows distribution 
 and didn't get any smarter by that. Now I know why my pdf opens 
 automatically into Acrobat, but not how *not* to produce pdf (or ps).



 That was a very good question. :-)


 Mari
 (...three years with ConTeXt and I sound like a dinosaur...)
   
texexec --dvips yourfile

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] DTD

2006-09-11 Thread Hans Hagen
Peter Rolf wrote:
 Hi,

 is there a public DTD (RNC prefered) for the context macro format in
 cont-en.xml? I also searched for the DTD of the rl-database, but without
 success. The only thing I found is x-fig-00.dtd, which describes the
 fig-database format.
   
there is a relax ng scheme made by patrick but i'm not sure if it's posted it 
on the wiki too (natural place) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Aditya Mahajan



On Mon, 11 Sep 2006, Peter M?nster wrote:


On Mon, 11 Sep 2006, Aditya Mahajan wrote:


\doifoneelse{1}{a}{b}  gives a
\doifoneelse{1.5}{a}{b} gives b
\doifonelese{string}{a}{b} gives b

Can someone suggest how to define this?


\def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}}


Thanks Peter,

 I ended up using

\def\doifoneelse#1{\doifelse{#1}{1}}

which saves a few keystrokes :)

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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Aditya Mahajan
John,

On Mon, 11 Sep 2006, John R. Culleton wrote:

 For one recurring task I first produce a booklet version 5.5. x
 8.5in, then a straight pdf 8.5 x 11in, all controlled by modes. The
 third format is plain text. Others recommend dvi2tty for this
 conversion. But how do I get Context to produce a dvi file? The
 Context manual does not make this clear.

Not that you asked, but dvitty does not seem to be the best way to get a 
plain text output. I am assuming that you do not have maths, otherwise 
text output will not make much sense.

Assuming that you have a document with simple structure (title, section, 
header, etc), and not too complicated floats (figures and tables), and you 
want pdf and plain text, I think that starting from xml is better. For 
simple tasks, html is sufficient. For more complicated tasks, you will 
need to define your own xml schema. In either case, you can get a pdf with 
all the bells and whistles by compiling the xml (or html) file using 
context. To get a plain text output, open your file in a browser and save 
as text  (lynx --dump or links -dump will work if the file is html) to 
get a text output.

IMHO, this is much easier than trying to coax tex to output something that 
resemples a typewritter output (fixed width fonts, no hyphenation, etc)

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


Re: [NTG-context] String single quote in \tt

2006-09-11 Thread Hans Hagen
Aditya Mahajan wrote:
 Hi,

   I just noticed that in the preprocessing manual, the single quotes 
 are wrong. Look at the output of

 \starttext
 \starttyping
let a = 'string' ;
 \stoptyping
 \mono{ let a = 'string' ;}

 {\tt let a = 'string' ;}
 \stoptext

 The singlequote character is converted into rightquote. This feature 
 is also present in plain tex and Latex.
   
maybe \noligatures 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] beta

2006-09-11 Thread Willi Egger
Hi,

without the discussion whether or not to brave ... :-)

I tested the new beta on some 50 Metapost/Metafun graphics. In one case 
I had the figures just placed with \useMPgraphic. In the other case the 
figures where setup as \startTEXpage. As far as I can see the pictures 
look ok.


Willi

Hans Hagen wrote:
 I uploaded a beta. Brave users met test if their mp graphics still come 
 out well since i cleaned up some of the mp to pdf code.

 Hans

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


Re: [NTG-context] YABQ (yet another bib question...)

2006-09-11 Thread Taco Hoekwater
Thomas A. Schmitz wrote:
 Sanjoy,
 
 thanks for your rely. Of course you're quite right, this is the wau  
 to go, and it works. But my question was imprecise because I did not  
 mention what was causing the problem: I'm working with split  
 bibliographies and want to refer in chapter 2 to an item already  
 included in the biblio of chapter 2. If I just put a \cite command  
 somewhere, this item will be included a second time in the list of  
 chapter 2. So my question is: this item does already have a counter  
 attached to it. Is it possible to refer to this raw counter across  
 chapters? Like so:
 
 Chapter 1
 
 [1] main reference
 
 Chapter 2
 
 [2] another thing
 
 [3] and yet another [reprinted in [1]]
 
 without having [1] main reference repeated. This my very well be  
 impossible, I'm just wondering.

You can try this:

   \def\silentcite[#1]%
 {\bgroup
  \let\addthisref\gobbleoneargument
  \cite[#1]%
  \egroup}

(untested). If that does not work, it is not possible.

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


Re: [NTG-context] DTD

2006-09-11 Thread Patrick Gundlach
Hello Peter,

 is there a public DTD (RNC prefered) for the context macro format in
 cont-en.xml? 

There is http://dl.contextgarden.net/texshow/interface.rnc 

Patrick

(Hans, thanks for the cc: to me)
-- 
ConTeXt wiki and more: http://contextgarden.net
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] DTD

2006-09-11 Thread Peter Rolf
Patrick Gundlach wrote:
 Hello Peter,
 
 is there a public DTD (RNC prefered) for the context macro format in
 cont-en.xml? 
 
 There is http://dl.contextgarden.net/texshow/interface.rnc 

Thanks Patrick and Hans. I searched for something like this on the wiki,
but found no link to it. And also in RNC, it couldn't be better :)

Is there also some DTD for the nl-database?

Greetings, Peter

 Patrick
 
 (Hans, thanks for the cc: to me)

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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread John R. Culleton
On Monday 11 September 2006 11:21, Hans Hagen wrote:
 Mari Voipio wrote:
  On Mon, 11 Sep 2006, John R. Culleton wrote:
  But how do I get Context to produce a dvi file?

 texexec --dvips yourfile

 Hans

Thanks! 
That works after excising some grqphics. Just as a matter of
curiosity, why is the parameter --dvips and not dvi? 

-- 
John Culleton
Able Indexing and Typesetting
Precision typesetting (tm) at reasonable cost.
Satisfaction guaranteed. 
http://wexfordpress.com


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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Hans Hagen
John R. Culleton wrote:
 On Monday 11 September 2006 11:21, Hans Hagen wrote:
   
 Mari Voipio wrote:
 
 On Mon, 11 Sep 2006, John R. Culleton wrote:
   
 But how do I get Context to produce a dvi file?
 
 texexec --dvips yourfile

 Hans
 

 Thanks! 
 That works after excising some grqphics. Just as a matter of
 curiosity, why is the parameter --dvips and not dvi? 

   
because one can also say -dvipdfmx

-- 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] YABQ (yet another bib question...)

2006-09-11 Thread Thomas A. Schmitz

On Sep 11, 2006, at 7:11 PM, Taco Hoekwater wrote:

 You can try this:

\def\silentcite[#1]%
  {\bgroup
   \let\addthisref\gobbleoneargument
   \cite[#1]%
   \egroup}

 (untested). If that does not work, it is not possible.

 Taco

Taco,

thanks for the suggestion. It doesn't work (still  produces an entry  
in the bibliography), but it's not a big deal, these are very special  
cases, and I can edit the bbl manually in order to get them right.

On a related note: all lovers of the bib module (and I know there are  
many of them out there) may be interested to know of two nice things.  
I found them out while I was switching my bibliographies to the new  
system. So if you use the one and only editor, emacs, you may want to  
try this:

1. reftex works with context! It cannot automatically determine the  
database it is supposed to use (I have to look into the customization  
again to see whether it can be taught to do so), but you can tell it  
explicitly about your .bib file, and then, all the usual keybindings  
work, you get a nice buffer where you can choose your references etc.  
There was a discussion a while ago on the mailing list, and my  
impression was it didn't work, so I was thrilled to see it did!

2. I discovered another nice little app that works within emacs. It's  
called ebib. It is not very good as an editor for bibtex databases,  
but it has a great tab-completion feature for inserting references  
into your files. I tweaked it a bit so it would insert the proper  
\cite[] and \nocite[] commands for ConTeXt, and it is the fastest and  
most convenient thing I've ever seen. Maybe I should say something  
about on the wiki?

Anyway, Taco, thanks for your help, and all best

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


Re: [NTG-context] Making context produce dvi file.

2006-09-11 Thread Mojca Miklavec
On 9/11/06, John R. Culleton wrote:
 On Monday 11 September 2006 11:21, Hans Hagen wrote:
  Mari Voipio wrote:
   On Mon, 11 Sep 2006, John R. Culleton wrote:
   But how do I get Context to produce a dvi file?
 
  texexec --dvips yourfile
 
  Hans

 Thanks!
 That works after excising some grqphics. Just as a matter of
 curiosity, why is the parameter --dvips and not dvi?

Simple explanation: because it generates a PostScript file as well ;)

But I'm supporting you in that question. I would also prefer to have a
switch --dvi which would skip the dvips postprocessing part.

And an answer to those who were wondering if ConTeXt doesn't produce
dvi by default. Yes, it did once. And still does if you're using the
old perl script texexec.pl which is becomming more and more
deprecated (and not supported any more anyway).

The new texexec (texmfstart texexec.rb) should produce pdf by
default, but it's mostly fault of (old) distributions, not your fault
if you're still using the old scripts (you can influence that
behaviour though). As far as I know only MikTeX 2.5 and Hans's
standalone distros support that by default. tetex and Mac users still
have to fix that by themselves if they want to switch to the usage of
new ruby scripts.

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


Re: [NTG-context] Update ConTeXt + standalone distr (Windows)

2006-09-11 Thread Hans Hagen
Mari Voipio wrote:
 Or, as it seems to me that different types of 'unzip.exe's are public 
 domain stuff, just include that in the standalone distribution and 
 everything works (no other changes were needed, just bringing 'unzip.exe' 
 into the correct directory.
   
...\usr\local\context\goodies\bin


has unzip (it' snot a bad idea to have the gnu bin utils someplace on disk)

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] YABQ (yet another bib question...)

2006-09-11 Thread Sanjoy Mahajan
Thomas,

 Is it possible to refer to this raw counter across chapters?

Not sure -- it is beyond my ConTeXt bib module competence, but I hope
one of the resident experts has an idea...

-Sanjoy

`Never underestimate the evil of which men of power are capable.'
 --Bertrand Russell, _War Crimes in Vietnam_, chapter 1.
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Define doifoneelse

2006-09-11 Thread Hans Hagen
Aditya Mahajan wrote:


 On Mon, 11 Sep 2006, Peter M�nster wrote:

 On Mon, 11 Sep 2006, Aditya Mahajan wrote:

 \doifoneelse{1}{a}{b}  gives a
 \doifoneelse{1.5}{a}{b} gives b
 \doifonelese{string}{a}{b} gives b

 Can someone suggest how to define this?

 \def\doifoneelse#1#2#3{\doifelse{1}{#1}{#2}{#3}}

 Thanks Peter,

  I ended up using

 \def\doifoneelse#1{\doifelse{#1}{1}}

 which saves a few keystrokes :)
\def\doifoneelse{\doifelse{1}}

or 

\def\doifoneelse{\doifelse1}

saves you even more keystrokes and also a bit of runtime (measured in 
nanoseconds) 

Hans 

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
 tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-

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


Re: [NTG-context] String single quote in \tt

2006-09-11 Thread Aditya Mahajan
On Mon, 11 Sep 2006, Hans Hagen wrote:

 Aditya Mahajan wrote:
 Hi,

   I just noticed that in the preprocessing manual, the single quotes
 are wrong. Look at the output of

 \starttext
 \starttyping
let a = 'string' ;
 \stoptyping
 \mono{ let a = 'string' ;}

 {\tt let a = 'string' ;}
 \stoptext

 The singlequote character is converted into rightquote. This feature
 is also present in plain tex and Latex.

 maybe \noligatures

Unless I misunderstood noligature, this does not work.

\pdfnoligatures\tentt
\tt a = 'string' ;
\bye

Still gives me rightquote.

Aditya



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