Re: [NTG-context] extra pages after backmatter

2005-08-24 Thread Hans Hagen Outside

Ciro Soto wrote:


Hello,

I am getting 2 extra pages after the backmatter.
Is there any way delete them?
thank you
Ciro

\starttex
 \starfrontmatter
 \input frontmatter.tex
 \stopfrontmatter
 \startbodymatter
\input a_file.tex
 \stopbodymatter
 \startbackmatter
   \input backmatter.tex
 \stopbackmatter
\stoptext
 


\setupsectionblock[...][page=]

-
 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] Re: ConTeXt in MikTeX distribution

2005-08-24 Thread Hans Hagen Outside

Patrick Gundlach wrote:


Hi,


 


Just list another one, font files received from the vendor is usually
in capital
letters, such as PJN_.PFB, but the copy_files routine in texfont.pl only
copy *.pfb, then all the type1 files will not be copy to texmf...
   



This, of course, is a problem that should be addressed. But I always
thought that windows doesn't care about case when globbing. But I
don't have access to a windows machine, so I can't try it out.

Patrick
 


guess why there is:

textools
TeXTools | version 1.2.2 - 2002/2005 - PRAGMA ADE/POD

TeXTools | --downcasefilenames [--recurse] [--force]

I always downcase font files before i install them 

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


[NTG-context] How to use Lucida bright font after installing mswintex

2005-08-24 Thread Sytse Knypstra

Dear ConTeXt users,

Last Friday I installed the minimal ConTeXt under Windows XP and tried 
also to make the lucida bright font available. I carried out the 
following recipe:


1. Download the latest mswintex.zip from Pragma
2. Unzip into C:\  (all files and directories are now under C:\tex)
3. Start a CMD shell and run the commands:
cd c:\tex
setuptex.bat
mktexlsr
texexec --make --alone nl en metafun
4. Copy all 139 lucida related .afm and .pfb files to c:\temp
5. From this directory run:
texfont --fontroot=c:/tex/texmf-local --ve=yandy --co=lbr --ma --in
6. Add \loadmapfile[context-base] to cont-sys.tex

In TeXnicCenter I edited test files and ran the command
   c:\tex\setuptex.bat  texexec
with the arguments
   --bat --nonstop --pdf --color %bm

All went well and a test file using e.g. the bookman font produced the 
desired result. But trying to use the lucida bright font gave the error:
 ! Font \*lucida6ptmmmi*:=lbmo at 6.0pt not loadable: Metric (TFM) file 
not foud.

The error occurred after the following three lines:
   \loadmapfile[texnansi-yandy-lbr.map]
   \gebruiktypescript[lucida][texnansi]
   \switchtotypeface[lucida][11pt]

Any help is highly appreciated.

Sytse Knypstra

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


Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-24 Thread Rob Ermers

Hi friends,
In David's mail I found one of the problem I had been thinking of too, 
and I tried his code. Unfortionately, it does not work.


I don't need it for math, but for case descriptions.

A case consists of the following elements:

Case 1Eating fruit is healthy
Text text text - case description --

Questions:
1. abcd
2. efgh


Answers:
1. aaa bb
2. dderere
...

Case 2   Everything about vitamins
...

The elements themselves I can put in blocks in order to be able to 
separate the q's and a's.


What I am wondering about is how to include the title in the macro.
It does not seem very difficult, but I can't figure out how.

The theorem environment seemed promising, but David's suggestion does 
not process. Has anyone an idea?


Kind regards,

Robert







fonts  : using map file: 8r-base.map
fonts  : using map file: ec-public-lm.map
fonts  : using map file: original-base.map
systems: begin file tst4 at line 31
! Undefined control sequence.
\dostartLemma ...irstargument \startMathParagraph
  [#1] \else 
\startMathParag...

l.34 ...Lemma[reference]{Algorithm xyz terminates}

?
! Undefined control sequence.
l.36 \stopLemma


David Antos wrote:

Hello Taco,

On Sun, Aug 21, 2005 at 05:43:02PM +0200, Taco Hoekwater wrote:


The a while turned out to be around 1999, and the code (hack) I
used back then is no longer even remotely usable (for one because
context was still in dutch, then), but I'll see if I can update my
patch.



:-), that's great :-).

In the meantime, I solved the second part, i.e., adding the additional
describing text. It goes somehow like this (well, it's a hack, but it
works):

% MathParagraph is the enumeration (it ensures references and numbering,
% and typesetting all the texts). In command, it calls a macro that refers
% to \MathParagraphType etc.

\def\startLemma{\dosingleempty\dostartLemma}
\def\dostartLemma[#1]#2 {%
\def\MathParagraphType{Lemma}
\def\MathParagraphName{#2}
\def\MathParagraphList{MathParagraphs}
\iffirstargument
  \startMathParagraph[#1]
\else
  \startMathParagraph
\fi
}
\let\stopLemma\stopMathParagraph

So I can use
\startLemma[reference]{Algorithm xyz terminates}
...
\stopLemma

I came to the idea to misuse command= to typeset the header and write to
the list, it is given an argument containing the number of the enumeration.
Anyway, it is not easy to feed it into \expanded{\writetolist...} as the
argument is something with \edef and a pile of pretty ugly macros :-), so I
still use \precedingsectionnumber\numberMathParagraph :-(

To sum up, a good way to obtain current enumeration number (in a form that
goes into lists, etc.)  would be completely enough, provided that one
writes hacks to solve the rest (and does end up finding the real macro
names with \tracingmacros=1 :-)). Creating something like
enumerateddescription (a description with names and possibility to write
lists) would be much nicer, of course :-))

Thank you very much,
D.A.

P.S.: Hans said once that a Dutch mathematical journal is typeset with
ConTeXt. Do you have an idea how they typeset theorems?



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


Re: [NTG-context] Suitable mechanism for Theorems and Definitions

2005-08-24 Thread David Antos
On Wed, Aug 24, 2005 at 10:01:44PM +0200, Rob Ermers wrote:
 In David's mail I found one of the problem I had been thinking of too, 
 and I tried his code. Unfortionately, it does not work.
 
...
 A case consists of the following elements:
 
 Case 1Eating fruit is healthy
 Text text text - case description --

Hi,

I've sent Rob my style file in full, the excerpt in the mail was not
indended to run, only as a demonstration of the idea. (If anyone wants to
share my styles and hacks, I'll eventually publish it on the Wiki. It is
now quite unstable but I have quite brute-force macros to typeset
algorithms. Ugly but suits me fine :-)

I'm pretty sure that Rob's case descriptions are completely the same as
my named theorems, at least in terms of macro mechanisms needed.

BTW, does anyone know the correct way to obtain current description
generated number? Just asking again... ;-)

D.A.

-- 
Clothes make the man. Naked people have little or no influence on society.
-- Mark Twain
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Issues: framedtext and tables inside itemized list

2005-08-24 Thread Eugene Toporov
Hi!On 8/24/05, Mojca Miklavec [EMAIL PROTECTED] wrote:
Eugene Toporov wrote: I have some issues with different things but both inside itemized lists: 1. Framed text width is calculated not as I expect. The sample below makes framedtext box appear partially on right margin
\textwidth is a constant that doesn't change when you enter a smaller box.
Do you want to get rid of the space left of the box or do you want tohave a frame, narrower than textwidth?
I want the narrower frame with the right edge always at the same place. 
a)\startitemize[n,packed]\item A normal item paragraph, which normaly gets wrapped ok.
\stopitemize\startframedtext[background="">Some listing as framedtext whose width seems calculated incorrectly.\stopframedtext\startitemize[n,packed,continue]\item something else
\stopitemize
I did not know about the startitemize's continue option. May be useful someday. So, thanks! 
b) You can access \leftskip to get idea how much space is left on theleft side, there is also a \hsize, but there must be some better solution.

Will try playing with this if no other solutions. 

Thanks for your suggestions.
Eugene
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] How to customize the default verbatim colors

2005-08-24 Thread Eugene Toporov
Hi all!

I recently started using Verbatim Macroses to make source code pieces look prettier in my docs.
I use things like \setuptyping[JV] and then \startJV - \stopJV

But I'd like to change the default colors in the macroses to my own.

I only found that redefining some colors like this 
\definecolor [colorprettyone] [green]
\definecolor [colorprettytwo] [navy] 
\definecolor [colorprettythree] [r=0,g=0,b=.9]

makes effect, but that seems not very effective and affects all verbatims. 
1) I could not find all colors.
2) I need several different schemes (palettes) for different verbatims (XML, Java, SQL). 

I expect there is a way to redefine whole palette or something.

What's the easiest and the right way to do it?

Thanks in advance!-- Eugene
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context