Re: [NTG-context] Beta bib module release

2005-09-30 Thread Thomas A. Schmitz

Taco,

one more question: \completepublications produces a title  
References and formats it according to the chapter-heading, but  
doesn't write it to the list for the TOC, or am I missing something?


Best

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


[NTG-context] Boxed formula

2005-09-30 Thread Jilani Khaldi

Hi All,
how to make a boxed formula with ConTeXt?
Thanks!

--
// Jilani KHALDI
http://jkhaldi.oltrelinux.com



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


Re: [NTG-context] using 1 layout on several documents

2005-09-30 Thread Peter Rolf
Hi Boris,

Boris Pedrofiets wrote:
 Hi,
 
 I made a layout that I want to use for several documents. What is the
 best way to handle this, without placing a copy of the layout
 description in every file?

Simply use an environment (file).

Something like...

[content of file 'env-mylayout.tex']

\startenvironment env-mylayout

your layout settings

\stopenvironment



Then put the file somewhere in the tex-path
(??/texmf/texmf-local/tex/context/user/ is a good place) and call
texhash/mktexlsr(!), so that context can find it;

Now you can use your layout settings by just typing

\environment env-mylayout

at the beginning of your document (before \starttext).

If the environment is not already defined, then context tries to load a
file with the same name as the environment name (environment foo --
foo.tex). I just use the prefix 'env-' to seperate the env. files from
the rest in this folder (typescripts, modules, ...).

Hope that helps,

Peter

 Thanks for helping!
 
 Boris
 
 _
 Vind alles terug op je PC: MSN Search Toolbar http://toolbar.msn.nl/
 
 ___
 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] Beta bib module release

2005-09-30 Thread Taco Hoekwater


Hi again,

There is a new beta:

  http://tex.aanhet.net/bib/m-bib-beta-20050930.zip

with the following changes:

Thomas A. Schmitz wrote:
OK, I experimented a bit here, and I think I've narrowed it down: as  
soon as I set the option numbering=bib in \setuppublications, the  
distortions becomes really visible. Does the bibmodule calculate its  
lines with code from the \itemize environment? Could this be where  the 
bug lies?


Found it. It's a buglet in the default \placelist actions. Fixed.

So I get something like Hoekwater (2005) or Hoekwater [10]. Now what  
would be great is if it were possible to add a page reference and get  
something like Hoekwater (2005, 99) or Hoekwater [10, 99]. But if I say
\cite[right={, 10}][hoekwater], this will effectively replace what I  


I've added \cite[extras={, 10}][hoekwater]
(note: the keyword extras only works in \cite, not in \setupcite)


For the other email:
one more question: \completepublications produces a title  References 
and formats it according to the chapter-heading, but  doesn't write it 
to the list for the TOC, or am I missing something?


\completepublications is just a basic \completelist within a
slightly changed environment, so it behaves just like a normal
ConTeXT list. I'm not sure if it can be made to appear in the TOC,
but I am quite confident that

\chapter{References}
\placepublications

will work as desired.

Cheers, Taco

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


Re: [NTG-context] using 1 layout on several documents

2005-09-30 Thread Boris Pedrofiets

Thank you Peter!

Just wondering...
Looking at the files s-mg-01.tex and mag-.tex from the context 
distribution, there is a different approach. Here I find \usemodule.


What are the differences? And, when use with? Or is it just a metter of 
taste?


Boris.



From: Peter Rolf [EMAIL PROTECTED]
Reply-To: mailing list for ConTeXt users ntg-context@ntg.nl
To: mailing list for ConTeXt users ntg-context@ntg.nl
Subject: Re: [NTG-context] using 1 layout on several documents
Date: Fri, 30 Sep 2005 13:46:45 +0200

Hi Boris,

Boris Pedrofiets wrote:
 Hi,

 I made a layout that I want to use for several documents. What is the
 best way to handle this, without placing a copy of the layout
 description in every file?

Simply use an environment (file).

Something like...

[content of file 'env-mylayout.tex']

\startenvironment env-mylayout

your layout settings

\stopenvironment



Then put the file somewhere in the tex-path
(??/texmf/texmf-local/tex/context/user/ is a good place) and call
texhash/mktexlsr(!), so that context can find it;

Now you can use your layout settings by just typing

\environment env-mylayout

at the beginning of your document (before \starttext).

If the environment is not already defined, then context tries to load a
file with the same name as the environment name (environment foo --
foo.tex). I just use the prefix 'env-' to seperate the env. files from
the rest in this folder (typescripts, modules, ...).

Hope that helps,

Peter

 Thanks for helping!

 Boris

 _
 Vind alles terug op je PC: MSN Search Toolbar http://toolbar.msn.nl/

 ___
 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


_
Nieuw op MSN Messenger 7.5: Dynamische achtergronden 
http://www1.imagine-msn.com/Messenger/Audio.aspx


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


Re: [NTG-context] Boxed formula

2005-09-30 Thread David Munger
The way I usually do it:

\startformula
  \mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}
\stopformula

Regards,

David

Le Vendredi 30 septembre 2005 à 13:41 +0200, Jilani Khaldi a écrit :
 Hi All,
 how to make a boxed formula with ConTeXt?
 Thanks!
 

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


Re: [NTG-context] Beta bib module release

2005-09-30 Thread Thomas A. Schmitz

Taco, you're my hero!!!


On Sep 30, 2005, at 2:39 PM, Taco Hoekwater wrote:



There is a new beta:

  http://tex.aanhet.net/bib/m-bib-beta-20050930.zip

with the following changes:


Found it. It's a buglet in the default \placelist actions. Fixed.


Absolutely! Output is perfectly aligned now!



I've added \cite[extras={, 10}][hoekwater]
(note: the keyword extras only works in \cite, not in \setupcite)



I hardly dare to tell you, but it's not working here;
\cite[extras={, 10}][hoekwater] produces ][99
(and the , 10 is dropped).



\completepublications is just a basic \completelist within a
slightly changed environment, so it behaves just like a normal
ConTeXT list. I'm not sure if it can be made to appear in the TOC,
but I am quite confident that

\chapter{References}
\placepublications

will work as desired.


Indeed, this works wonderfully!

Thanks so much Taco, I owe you one. Let me know if you ever come to  
Bonn or Mannheim, and I'll buy you several beers!


Best

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


Re: [NTG-context] Beta bib module release

2005-09-30 Thread Taco Hoekwater



Thomas A. Schmitz wrote:


I've added \cite[extras={, 10}][hoekwater]
(note: the keyword extras only works in \cite, not in \setupcite)



I hardly dare to tell you, but it's not working here;
\cite[extras={, 10}][hoekwater] produces ][99
(and the , 10 is dropped).


My bad. You can fix this yourself if you want. Open t-bib.tex
in an editor and change lines 839 and 841 so they read:

  \edef\LOextras{{\LOextras\bibalternative\c!right}}%

and

  \edef\LOextras{{\LOextras\LOright}}%

that is: an extra pair of braces is needed inside the \edef.

(I'll update the zip file as well)


Indeed, this works wonderfully!

Thanks so much Taco, I owe you one. Let me know if you ever come to  


You're welcome. I am actually quite enjoying myself while doing this
stuff.

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


[NTG-context] Lettrine Problems

2005-09-30 Thread Marcus Vinicius Mesquita de So
Problems occur with Lettrine when used with the
linenumbering
environment, the dropped cap stays outside the margin.
Minimal
example below.


A zipped file (129 Kb) with the pdf generated and a
corrected one
with Pitstop can be downloaded from the following
link:

http://rapidshare.de/files/5707655/test.zip.html


Marcus Vinicius

%***

\enableregime   [win]

\usemodule[t-lettri]

\unexpanded\def\myfonthook{\definefontsynonym[LettrineFont][Serif]}

\setuplettrine[Lines=2,TextFont=\sc,FontHook=\myfonthook,Findent=2pt,Nindent=0pt]

\setupspacing[packed]

\setuplinenumbering[start=1,step=5,style=\tfx]

\setupindenting[medium] \setupindenting[medium]

\starttext

\language[pt]



\startlinenumbering


\lettrine{N}{aquele dia}, --- já lá vão dez anos! ---
o Dr. Félix levantou-se tarde, abriu a janela e
cumprimentou o sol.
O~dia estava esplêndido; uma fresca bafagem do mar
vinha quebrar um
pouco os ardores do estio; algumas raras nuvenzinhas
brancas, finas
e transparentes se destacavam no azul do céu.
Chilreavam na chácara
vizinha à casa do doutor algumas aves afeitas à vida
semi-urbana,
semi-silvestre que lhes pode oferecer uma chácara nas
Laranjeiras.
Parecia que toda a natureza colaborava na inauguração
do ano.
Aqueles para quem a idade já desfez o viço dos
primeiros tempos, não
se terão esquecido do fervor com que esse dia é
saudado na meninice
e na adolescência. Tudo nos parece melhor e mais belo,
--- fruto da
nossa ilusão, e alegres com vermos o ano que desponta,
não reparamos
que ele é também um passo para a morte.

Teria esta última idéia entrado no espírito de Félix,
ao contemplar
a magnificência do céu e os esplendores da luz? Certo
é que uma
nuvem ligeira pareceu toldar-lhe a fronte. Félix
embebeu os olhos no
horizonte e ficou largo tempo imóvel e absorto, como
se interrogasse
o futuro ou revolvesse o passado. Depois, fez um gesto
de tédio, e
parecendo envergonhado de se ter entregue à
contemplação interior de
alguma quimera, desceu rapidamente à prosa, acendeu um
charuto, e
esperou tranqüilamente a hora do almoço.

Félix entrava então nos seus trinta e seis anos, idade
em que muitos
já são pais de família, e alguns homens de Estado.
Aquele era apenas
um rapaz vadio e desambicioso. A~sua vida tinha sido
uma singular
mistura de elegia e melodrama; passara os primeiros
anos da mocidade
a suspirar por cousas fugitivas, e na ocasião em que
parecia
esquecido de Deus e dos homens, caiu-lhe nas mãos uma
inesperada
herança, que o levantou da pobreza. Só a Providência
possui o
segredo de não aborrecer com esses lances tão
estafados no teatro.

Félix conhecera o trabalho no tempo em que precisava
dele para
viver; mas desde que alcançou os meios de não pensar
no dia
seguinte, entregou-se corpo e alma à serenidade do
repouso. Mas
entenda-se --- que não era esse repouso aquela
existência apática e
vegetativa dos ânimos indolentes; era, se assim me
posso exprimir,
um repouso ativo, composto de toda a espécie de
ocupações elegantes
e intelectuais que um homem na posição dele podia ter.

Não direi que fosse bonito, na significação mais ampla
da palavra;
mas tinha as feições corretas, a presença simpática, e
reunia a
graça natural a apurada elegância com que vestia.
A~cor do rosto era
um tanto pálida, a pele lisa e fina. A~fisionomia era
plácida e
indiferente, mal alumiada por um olhar de ordinário
frio, e não
poucas vezes morto.

Do seu caráter e espírito melhor se conhecerá lendo
estas páginas e
acompanhando o herói por entre as peripécias da
singelíssima ação
que empreendo narrar. Não se trata aqui de um caráter
inteiriço nem
de um espírito lógico e igual a si mesmo; trata-se de
um homem
complexo, incoerente e caprichoso, em quem se reuniam
opostos
elementos, qualidades exclusivas, e defeitos
inconciliáveis.


\stoplinenumbering


\stoptext

%



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] using 1 layout on several documents

2005-09-30 Thread Peter Rolf
Boris Pedrofiets wrote:
 Thank you Peter!
 
 Just wondering...
 Looking at the files s-mg-01.tex and mag-.tex from the context
 distribution, there is a different approach. Here I find \usemodule.

 What are the differences? And, when use with? Or is it just a metter of
 taste?
 
AFAIK modules are used for adding functionality (whatever) and
environment is used for defining a specific layout (global or local).

In would say that s-mag-01.tex is a borderline case (or a matter of
taste?). And maybe I'm the wrong one to ask :)

 Boris.
 
 
Greetings,

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


Re: [NTG-context] Beta bib module release

2005-09-30 Thread Thomas A. Schmitz


On Sep 30, 2005, at 4:41 PM, Taco Hoekwater wrote:


that is: an extra pair of braces is needed inside the \edef.


Hooray, now it works!



You're welcome. I am actually quite enjoying myself while doing this
stuff.


Glad to hear that. I'll buy you a bear nonetheless...

Thanks, and best

Thomas


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


Re: [NTG-context] Lettrine Problems

2005-09-30 Thread Taco Hoekwater

Hello,

This is one of a good many situations I am aware of where
the lettrine module fails to play nice with other parts of
ConTeXt (not unlike the LaTeX original, btw).

I never intended the module to cover any of those problem
areas, since a good number of them fall in the category
you can't have it all, anyway.

I'll have a look, but don't get your hopes up.

Cheers, Taco

Marcus Vinicius Mesquita de So wrote:

Problems occur with Lettrine when used with the linenumbering
environment, the dropped cap stays outside the margin.
Minimal example below.



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


Re: [NTG-context] Boxed formula

2005-09-30 Thread Jilani Khaldi

David Munger wrote:


The way I usually do it:

\startformula
 \mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}
\stopformula
 

Thank you for your answer. I seems that \startformula .. \stopformula 
doesn't have any effect to produce a dispaly mode formula.


so:
\startformula
 \mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}
\stopformula

and:

\mframed[offset=.3em,rulethickness=1pt]{a^2 + b^2 = c^2}

give the same result, as in text mode.
Is there a way to get, for example, the output of:

\startformula
I=x-\sqrt2\,arctg\frac{x}{\sqrt2}+C
\stopformula

boxed?
Thank you.

jk

--
// Jilani KHALDI
http://jkhaldi.oltrelinux.com



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


[NTG-context] \noalign?

2005-09-30 Thread Christopher Creutzig
Salvete,

 which tables allow using \noalign and in what places?

 E.g., the first of these works, but I'd also like to be allowed the
second one (ignore what \pause does for the moment ...):

\starttable[|c|c|c|]
\HL
\NC one \NC two \NC three \NC\AR
\HL\noalign{\pause}%
\NC one \NC two \NC three \NC\AR
\noalign{\pause}\HL
\stoptable

 I assume this has to do with trial typesetting or something like this,
but what should I type instead?

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


Re: [NTG-context] Boxed formula

2005-09-30 Thread David Munger
Jilani,


 Thank you for your answer. I seems that \startformula .. \stopformula 
 doesn't have any effect to produce a dispaly mode formula.

When I try:

\startformula
  \mframed[offset=.3em,rulethickness=1pt]{
I=x-\sqrt2\,\arctan\frac{x}{\sqrt2}+C}
\stopformula

it does typeset a displayed formula. However, you could still force
displayed style by adding a \displaystyle command at the beginning of
your \mframed argument.

Regards,

David


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