Re: [NTG-context] bold sc again

2005-12-29 Thread Peter Münster
On Thu, 29 Dec 2005, Mojca Miklavec wrote:

 I doubt there's a cleaner way (except that it's polite to start the
 definitions with something like \starttypescript [..?..]
 [computer-modern] [size])

Hello Mojca,
I know it and tried it, but without success. This is what I did:
- moved t-cmscbf.tex to type-cmscbf.tex
- used \starttypescript [cmscbf] [computer-modern] [size] inside the file
- replaced \usemodule[cmscbf] by
  \usetypescriptfile[type-cmscbf] \usetypescript[cmscbf]

That's the reason why I use modules now.

But there are at least two other problems with the file (so there must be a
cleaner way):
- I would like to use LM wherever possible, but now even for normal \sc
  the CM fonts are used.
- It would be better, to have just one command for all possible sizes. If
  you want 17.8pt, it wouldn't work until you add a \definebodyfont line...

 PS to Peter: I would suggest you to write author=Peter M\udiaeresis
 nster instead of \enableregime[utf] in the header of your modules

I prefer to keep my source-code readable. I don't like my name written
M\udiaeresis nster, too ugly... ;-)
Greetings, 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] pushed text in description

2005-12-29 Thread Hans Hagen

Taco Hoekwater wrote:



Hi Peter,

You latex example does what I *thought* \txt did.
My guess is Hans misunderstood Giuseppe a bit, and Giuseppe never
really tested the code, because what happens now is a bit nonsensical.

I believe the attached module does the 'right thing'. You can use

  \setupitemize[width=4em,distance=1em]

to control the two dimensions.

Let me know if this is the correct behaviour, ok?


ok, i merged the patch anyway -)

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


[NTG-context] How to realize this?

2005-12-29 Thread R S Ananda Murthy

Hello,

I want a new chapter to begin as shown below:


Chapter No

Title of the Chapter


How to realize this in ConTeXt.

Thanks for your help.

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


Re: [NTG-context] How to realize this?

2005-12-29 Thread VnPenguin
On 12/29/05, R S Ananda Murthy [EMAIL PROTECTED] wrote:
 Hello,

 I want a new chapter to begin as shown below:


 Chapter No

 Title of the Chapter


 How to realize this in ConTeXt.

Have a look at http://wiki.contextgarden.net/Titles

--
http://vnoss.org
Vietnamese Open Source Software Community
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] bold sc again

2005-12-29 Thread Peter Münster
On Thu, 29 Dec 2005, Taco Hoekwater wrote:

 This file boils down to a single equivalent command:
 
 \definebodyfont
   [15pt,14pt,13pt,12pt,11pt,10pt,9pt,8pt,7pt,6pt,5pt]
   [sc]
   [bf=cmbcsc10 sa 1,
tf=cmcsc10 sa 1]

Thanks Taco, indeed much cleaner!

 Please don't set \pdfpkresolution in the module, the user
 may have set it to different value already.

Alright, I'll change it.
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] patch for symb-eur.tex

2005-12-29 Thread Peter Münster
Hello,
I need a \relax in symb-eur.tex to keep the space after the euro-symbol:
  \definecharacter texteuro {\symbol[euro]\relax}

Test-file:
\usemodule[symb-eur] \useregime[il9] \enableregime[il9]
\starttext
X € X
\stoptext

Two other questions:
- What is the best way, to get never the serif version of the euro, only the
  sans?
- Is this the right way, to activate the euro-variations:
  \usemodule[symb-eur] ?

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] 'Glossary' on every page

2005-12-29 Thread Gilles Pérez-Lambert
Hello to all,

I have a problem: I want to add a kind of glossary on a book. It will
be, in fact, an explanation of acronyms ('NATO: North Atlantic Treaty
Organisation' for instance).

But... I'd want it on every page, only for the acronyms used on the
current page (and alphabetically sorted if possible)...

I tried using layers (with or without tying them to backgrounds),
blocks (\begin... \end...), buffers, list of synonyms, etc. but I had
problems with one of the requirements or another. :-)

My first idea was to use blocks for each page :

\beginABREV[1]
NATO: North Atlantic Treaty Organisation
\endABREV

\beginABREV[1]
BLOB: Binary Large Object
\endABREV

and to use them with \useblocks[ABREV][\pagenumber] in the footer. To
be sure to give the right page number to \beginABREV, I tried to
define a label and use it, something like (from memory, I don't have
my code near to me):

\reference[abbrev\ABREVcount]% Put a label
\beginABREV[{\ref[r][abbrev\ABREVcount]}]% and use the label to get
the current page on subsequent runs.

but I went on a nightmare of expansion problems... Plus it didn't
eliminate duplicates nor sort the acronyms. But it would have been a
start... :-)

Can someone point me to the right direction?

Thanks in advance,

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


Re: [NTG-context] 'Glossary' on every page

2005-12-29 Thread Hans Hagen

� wrote:


Hello to all,

I have a problem: I want to add a kind of glossary on a book. It will
be, in fact, an explanation of acronyms ('NATO: North Atlantic Treaty
Organisation' for instance).

But... I'd want it on every page, only for the acronyms used on the
current page (and alphabetically sorted if possible)...

I tried using layers (with or without tying them to backgrounds),
blocks (\begin... \end...), buffers, list of synonyms, etc. but I had
problems with one of the requirements or another. :-)

My first idea was to use blocks for each page :

\beginABREV[1]
NATO: North Atlantic Treaty Organisation
\endABREV

\beginABREV[1]
BLOB: Binary Large Object
\endABREV

and to use them with \useblocks[ABREV][\pagenumber] in the footer. To
be sure to give the right page number to \beginABREV, I tried to
define a label and use it, something like (from memory, I don't have
my code near to me):

\reference[abbrev\ABREVcount]% Put a label
\beginABREV[{\ref[r][abbrev\ABREVcount]}]% and use the label to get
the current page on subsequent runs.

but I went on a nightmare of expansion problems... Plus it didn't
eliminate duplicates nor sort the acronyms. But it would have been a
start... :-)

Can someone point me to the right direction?
 

well, instead of making some complex new mechanism, why not misuse notes 



% output=pdf

\definenote
 [glossary]
 [way=bypage,
  location={page,high},
  factor=0,
  width=\leftmarginwidth,
  scope=page,
  conversion=empty, % no number
  rule=,
  before=,
  after=]

\setuplayout
 [width=middle,
  height=middle,
  backspace=5cm,
  margin=4cm,
  margindistance=.25cm,
  cutspace=2cm]

\setuptexttexts
 [margin]
 [\setups{glossary}]
 []

\startsetups glossary

   \vbox to \textheight {
   \placenotes[glossary]
   \vfill
   }

\stopsetups

\setupnotedefinition
 [glossary]
 [location=left,
  width=fit,
  distance=.5em,
  align={right,tolerant,stretch},
  headstyle=bold,
  hang=1]

% ok, we will plug in some code (will go into the kernel)

\unprotect

\def\ownnotesymbol#1% #1 gets number passed
 {\executeifdefined{\??vn::\currentnote}\empty}

\def\setnotesymbol[#1]#2#3%
 {\prewordbreak % prevent lookback
  \gdef\lastnotenumber{#2}%
  \setgvalue{\??vn::#1}{#3}
  \dolastnotesymbol}

\def\ownnote[#1]#2#3#4%
 {\setnotesymbol[#1]{#2}{#3}%
  \setnotetext  [#1]{#4}}

\protect

% here we hook the code into the footnote handler

\defineconversion
 [ownnote]
 [\ownnotesymbol]

\setupnote
 [glossary]
 [conversion=ownnote,
  textcommand=,
  textstyle=,
  numbercommand=]

\showframe

\starttext

\dorecurse{10}
 {\dorecurse{5}
{I'm \ownnote[glossary]{whowing}{whow}{whatever needs to be 
glossed:~\recurselevel} a bit.

 \input tufte \relax}}

\stoptext

if there is interest i can add the glossary defs (maybe using a 
different name) to the kernel.


I'm a bit puzzled why the notes don't split well ... maybe taco has an 
idea (he knows ttp -)


concerning abbreviations ... maybe some day i'll add a feature like this 
to it


Hans

Hans

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


[NTG-context] Re: th nd and rd

2005-12-29 Thread Aditya Mahajan

--- On Dec 29, John R. Culleton wrote ---


It is common to express certain numerals with the suffixes
st, nd, rd, th,
with the suffix in a smaller type and raised about .5em
eg:
1st 2nd 3rd 4th 5th.

It is of course possible to cobble these expressions up in macros.
But it would be handy if they were built in to Context.

Any thoughts?


Perhaps it is not too difficult to modify engord.sty 
(http://www.ctan.org/info?id=engord) from latex to work with context.


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