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

2005-08-25 Thread Sytse Knypstra

Thank you, Taco, now it works ok.

Sytse

Taco Hoekwater wrote:


Hai Sytse,

It looks like your new installation is conflicting with the old
(pre-texfont / pre-typescripts) support for Lucida Bright.

type-buy.tex in the ConTeXt distribution already contains a
typescript named "lucida", and that typescript maps straight
to "lbmo.tfm", but TeXfont probably created "texnansi-lbmo.tfm"
and a new typescript called "lbr" that uses those metrics.

So I guess you should try

  \usetypescript[lbr][texnansi]
  \switchtobodyfont[lbr,11pt]

instead of


   \gebruiktypescript[lucida][texnansi]
   \switchtotypeface[lucida][11pt]



and see where that leads you.

Succes, Taco

___
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] Unable to make cont-en.fmt

2005-08-25 Thread luigi.scarso
Hi, while installing latest pdftex 1.30.1 I have messed with some 
configs files

and now I am unable to remade format.
So
$> fmtutil --byfmt cont-en
gives

running `pdfetex -ini   -jobname=cont-en -progname=context -8bit 
*cont-en.ini' ...

This is pdfTeXk, Version 3.141592-1.30.1 (Web2C 7.5.5) (INITEX)
%&-line parsing enabled.
! I can't find file `*cont-en.ini'.
<*> *cont-en.ini
  
Please type another input file name:

! Emergency stop.
<*> *cont-en.ini
  
No pages of output.

Transcript written on cont-en.log.
Error: `pdfetex -ini  -jobname=cont-en -progname=context -8bit 
*cont-en.ini' failed


###
fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
 /usr3/TeX/texmf-var/web2c
for details.
###

This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=cont-en -progname=context -8bit *cont-en.ini' failed

In file fmtutil.cnf there is the correct line :
cont-en pdfetex cont-usr.tex-8bit *cont-en.ini
(instead
cont-en pdfetex cont-usr.tex-8bit  cont-en.ini
works )

I have cont-en.ini in
$>kpsewhere cont-en.ini
/usr3/TeX/texmf-dist/tex/context/config/cont-en.ini

Any ideas ?

thanks
luigi







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


Re: [NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread Taco Hoekwater


Luigi,

It attempts to read the file "*cont-en.ini", with the star included
in the name. From personal experience, I know that this will happen
when pdfetex is not really pdfetex, but a non-etex pdftex ...
(because of a symlinked executable, i'll wager)

Taco


luigi.scarso wrote:
Hi, while installing latest pdftex 1.30.1 I have messed with some 
configs files

and now I am unable to remade format.
So
$> fmtutil --byfmt cont-en
gives

running `pdfetex -ini   -jobname=cont-en -progname=context -8bit 
*cont-en.ini' ...

This is pdfTeXk, Version 3.141592-1.30.1 (Web2C 7.5.5) (INITEX)
%&-line parsing enabled.
! I can't find file `*cont-en.ini'.
<*> *cont-en.ini
  Please type another input file name:
! Emergency stop.
<*> *cont-en.ini
  No pages of output.
Transcript written on cont-en.log.
Error: `pdfetex -ini  -jobname=cont-en -progname=context -8bit 
*cont-en.ini' failed


### 


fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
 /usr3/TeX/texmf-var/web2c
for details.
### 



This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=cont-en -progname=context -8bit *cont-en.ini' 
failed


In file fmtutil.cnf there is the correct line :
cont-en pdfetex cont-usr.tex-8bit *cont-en.ini
(instead
cont-en pdfetex cont-usr.tex-8bit  cont-en.ini
works )

I have cont-en.ini in
$>kpsewhere cont-en.ini
/usr3/TeX/texmf-dist/tex/context/config/cont-en.ini

Any ideas ?

thanks
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


Re: [NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread luigi.scarso

Taco Hoekwater wrote:



Luigi,

It attempts to read the file "*cont-en.ini", with the star included
in the name. From personal experience, I know that this will happen
when pdfetex is not really pdfetex, but a non-etex pdftex ...
(because of a symlinked executable, i'll wager)


symlink it's the magic word...
Yes, the error happened when I copied latest pdfetex and pdftex:
pdftex is symbolic link to pdfetex.
I was so stupid to remade copy until i didn't read your answer...

Now all it's ok.

Many thanks Taco

luigi

PS:
What do you think about to write a dense guide to programmer on how to add
a pdftex primitive (something like \pdfhelloworld) and how to interface 
to an

external libray (like zlib) ?
I think that this will fill a hole in documentations.




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


Re: [NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread Vit Zyka

luigi.scarso wrote:
Hi, while installing latest pdftex 1.30.1 I have messed with some 
configs files

and now I am unable to remade format.
So
$> fmtutil --byfmt cont-en
gives

running `pdfetex -ini   -jobname=cont-en -progname=context -8bit 
*cont-en.ini' ...

This is pdfTeXk, Version 3.141592-1.30.1 (Web2C 7.5.5) (INITEX)
%&-line parsing enabled.
! I can't find file `*cont-en.ini'.
<*> *cont-en.ini
  Please type another input file name:
! Emergency stop.
<*> *cont-en.ini
  No pages of output.
Transcript written on cont-en.log.
Error: `pdfetex -ini  -jobname=cont-en -progname=context -8bit 
*cont-en.ini' failed


### 


fmtutil: Error! Not all formats have been built successfully.
Visit the log files in directory
 /usr3/TeX/texmf-var/web2c
for details.
### 



This is a summary of all `failed' messages and warnings:
`pdfetex -ini  -jobname=cont-en -progname=context -8bit *cont-en.ini' 
failed


In file fmtutil.cnf there is the correct line :
cont-en pdfetex cont-usr.tex-8bit *cont-en.ini
(instead
cont-en pdfetex cont-usr.tex-8bit  cont-en.ini
works )

I have cont-en.ini in
$>kpsewhere cont-en.ini
/usr3/TeX/texmf-dist/tex/context/config/cont-en.ini


Hi,

try
  pdfetex -ini   -jobname=cont-en -progname=context -8bit cont-en.ini
I think now etex does not want stared files. If so, change your fmtutil.cnf

vit
___
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-25 Thread Taco Hoekwater


Hi David,

Not sure if you are still interested, but here is my "optional title"
hack, revamped for a modern context distro. It creates a second
extra optional argument for the enumeration, nothing too fancy.
The example also shows a way in which you can access the number.

This does not solve the list generation, sorry.

Cheers, Taco

%===

\unprotect
\def\dododefinecomplexenumeration#1#2#3%
  {\setvalue{\e!start#1#2}%
 [EMAIL PROTECTED] dostart#1#2\endcsname}%
   \setvalue{dostart#1#2}[##1][##2]%
 {\begingroup\setvalue{#2title}{##2}\getvalue{\e!start#1i#2}[##1]}%
   \setvalue{\e!stop#1#2}{\getvalue{\e!stop#1i#2}\endgroup}}

\def\dodefinecomplexenumeration[#1][#2]%
  {\defineenumeration[i#1]
  [\c!text=#1,\c!stopper=\getvalue{do#1title},#2]%
   \setvalue{do#1title}%
  {\doifnotemptyvalue{#1title}{~(\getvalue{#1title})}}%
   \dododefinecomplexenumeration{}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub\v!sub}{#1}{#2}%
   \dododefinecomplexenumeration{\v!sub\v!sub\v!sub}{#1}{#2}}

\def\definecomplexenumeration{\dodoubleempty\dodefinecomplexenumeration}

\protect

\definecomplexenumeration[lemma]

\starttext

\startlemma[lemma1][with a title]
This is lemma \rawnumber[\currentdescriptionnumber]
\stoplemma

\startsublemma[sublemma1][with another title]
This is sublemma \rawnumber[sub\currentdescriptionnumber]
\stopsublemma

\stoptext

%==


David Antos wrote:

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.


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


Re: [NTG-context] Unable to make cont-en.fmt

2005-08-25 Thread Taco Hoekwater

luigi.scarso wrote:


symlink it's the magic word...


Like I said: From personal experience :)


PS:
What do you think about to write a dense guide to programmer on how to add
a pdftex primitive (something like \pdfhelloworld) and how to interface 
to an external libray (like zlib) ?


It goes roughly like this:

* create pdfetex-main.web from all of the web and change files so you
  have a least a sane source while coding, and make a copy for future
  comparison
* find an existing command who's syntax/semantics are close to the
  one you intend to implement ("extension" is fairly useless for
  anything that actually does have an impact on typesetting, you
  probably want 'convert' or 'last_item').
* hook a new subcode into the processing of that existing command,
* add a call to primitive()
* create a code line to print_cmd_chr()
* when it builds ok, create a change file by running diff on the
  original pdfetex-main.web, and add this change file at the end
  of the change file list in pdfetex.mk

I'll see if it is possible to create a document with a bit more specific
info

Taco


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


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

2005-08-25 Thread Taco Hoekwater


Hi!


Eugene Toporov wrote:


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


Yes, sure (you need to define an XXXcolorpretty palet for each type
you want to change):

  \definecolor[MYcolorone]  [r=.8,g=.5,b=.5]
  \definecolor[MYcolortwo]  [r=.8,g=.5,b=.2]
  \definecolor[MYcolorthree][r=.8,g=.5,b=.8]
  \definecolor[MYcolorfour] [r=.8,g=.2,b=.5]

  \definepalet[MYcolors]
[  prettyone=MYcolorone,
   prettytwo=MYcolortwo,
 prettythree=MYcolorthree,
  prettyfour=MYcolorfour]

  \definepalet[XMLcolorpretty] [MYcolors] % the name is magic !

  \setupcolors[state=start]
  \setuptyping[option=color]

  \starttext
  \startXML ... \stopXML
  \stoptext

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


[NTG-context] Re: contextgarden.net move

2005-08-25 Thread Patrick Gundlach
Hi all,

> Thanks for your patience,

This (patience) was necessary. The server is up and running again,
everything back to normality. Please report any bugs (as usual).

Patrick
-- 
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] Suitable mechanism for Theorems and Definitions

2005-08-25 Thread David Antos

Hello,

On Thu, Aug 25, 2005 at 12:07:56PM +0200, Taco Hoekwater wrote:
> Not sure if you are still interested, but here is my "optional title"

sure I am :-) (And so I expect Rob to be :-)

> hack, revamped for a modern context distro. It creates a second
> extra optional argument for the enumeration, nothing too fancy.
> The example also shows a way in which you can access the number.

Thank you very much.

> This does not solve the list generation, sorry.

List generation is easy to add if one knows how to get the number :-)

Thank you,
D.A.

-- 
- Please relax, - said the voice pleasantly, like a stewardess in  an
airliner with only one wing and two engines one of which is on fire, -
you are perfectly safe.
-- Douglas Adams, The Hitchiker's Guide to the Galaxy
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] footnote twiks

2005-08-25 Thread Ciro Soto
Hello,

I need two more twiks for my footnotes:
I am using asterisk instead of numbers or letter for the footnotes.


Twik 1:
My font is too slanted and the asterisk (*) is printed too close to the
last word in the sentence.
Example:
Charles IV \footnote[]{asdfasdf}
will print an asterisk touching the V letter.
How do I instruct context to give me some room between the V and the asterisk?

Second twik:
How to control the distance between the page text and the rule line
that separates
the footnote and the page text?
I tried the "distance=", th
e "height="  arguments in the
setupfootnotes, but they don't do
what I want.
thank you
-- 
===
"All problems are at the interface. Each one of them has a solution."
from:
"The Guitar Maker: An Exploration of Wisdom, Design and Love." 
A novel by C. A. Soto Aguirre. Pub. Date: October 2005.
___
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-25 Thread Mojca Miklavec
Eugene Toporov wrote:
>  1. Framed text width is calculated not as I expect. The sample below makes
> framedtext box appear partially on right margin
>  
>  \setupcolors[state=start]
>  \setuplayout[width=9cm]
>  \showframe
>  \starttext
>\startitemize[n,packed]
>  \item A normal item paragraph, which normaly gets wrapped ok.\par
>   
> \startframedtext[background=screen,frame=off,width=\textwidth]
>  Some listing as framedtext whose width seems calculated
> incorrectly.
>\stopframedtext
>\stopitemize 
>  \stoptext

In LaTeX you have a \linewidth command (compare the difference with
\textwidth, which doesn't change):

\documentclass{article}
\begin{document}
linewidth: \the\linewidth, textwidth: \the\textwidth
\begin{itemize}
\item linewidth: \the\linewidth, textwidth: \the\textwidth
\end{itemize}
\end{document}

However, in ConTeXt the linewidth is reserved for "rule thickness" or
something similar. Which is the ConTeXt alternative to LaTeX's
\linewidth?

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