[NTG-context] Grid and footnotes [repost]

2007-03-12 Thread Oliver Buerschaper
Hi all,

I'd like to bring this issue up again because I didn't get any  
replies about two weeks ago (also I'm getting closer to handing  
things in to the printhouse) ... so comments, ideas, suggestions,  
solutions etc. very welcome ;-)



Consider the following:

---

\setuplayout
[lines=41,
 grid=no]

\starttext

%\showframe[text]
\showgrid

\dorecurse{2}{\input tufte\footnote{This is some text} \par}

\section{Test}

\dorecurse{2}{\input tufte\footnote{This is some text} \par}

\stoptext

---

As long as the grid is turned off, the footnote block perfectly
aligns with the bodytext frame. However, turn the grid on and the
footnote block suddenly jumps about a line downwards. What's going on
here?

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


Re: [NTG-context] Line spacing in footnotes

2007-03-12 Thread Oliver Buerschaper
>> is there a way to influence the linespacing of the footnote block?
>> I'd like to typeset it in 9pt/11pt while the main text is set to  
>> 12pt/
>> 14.5pt (using an OpenType font) ... Any help highly appreciated!
>
> If you just want a smaller font size
>
> \setupnotedefinition
>[footnote]
>[style=small]
>
> or if you also want to set interline space
>
> \setupnotedefinition
>[footnote]
>[before={\switchtobodyfont[9pt]\setupinterlinespace},
> after{\endgraf}]
>
> You can also pass parameters to \setupinterlinespace to get the
> precise spacing that you want.

Thanks for your quick reply, Aditya. I'm afraid this doesn't quite  
work as expected ... the line spacing isn't changed at all here :- 
( This is my setup:

\setupnote
[footnote]
[before=, % remove blank line before
%bodyfont=9pt,
 command=, % this disables the superscript
 n=0] % footnote block as a single paragraph
\setupnotedefinition
[footnote]
[location=serried,
 before={\switchtobodyfont[9pt]\setupinterlinespace[line=11pt]},
 after={\endgraf},
 distance=1ex,
 headstyle=\ss\bf]

Also I'm somewhat puzzled ... why put these before and after commands  
in \setupnotedefinition rather than \setupnote? As far as I can tell  
\setupnote already has a bodyfont option (but none for the line  
spacing) ... also I always thought that \setupnotedefinition refers  
to a description and controls the way a single footnote is typeset  
while \setupnote is supposed to influence the whole block ... On top  
of that does the \endgraf command conflict with the n=0 option in  
\setupnote?

Oliver

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


[NTG-context] How to align baselines?

2007-03-12 Thread Helin Gai
Hi all,

I have some difficulty lining up the baselines of two frames... Here's
what I did:

\hbox to\hsize{%
\setupframed[frame=off]%
\vtop{chapter \switchtobodyfont[20pt] 1}\quad%
\vtop{\framed[width=6cm,align=right]{Test}}

Any idea what's going wrong here?

Thanks a lot!

Helin

-- 
Helin (Colin) Gai
Class of 2009, Duke University
Box 96332
Durham, NC 27708
Phone:  919-943-6302
helin.gai at gmail.com
hg9 at duke.edu
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Line spacing in footnotes

2007-03-12 Thread Aditya Mahajan
On Mon, 12 Mar 2007, Oliver Buerschaper wrote:

> Hi all,
>
> is there a way to influence the linespacing of the footnote block?
> I'd like to typeset it in 9pt/11pt while the main text is set to 12pt/
> 14.5pt (using an OpenType font) ... Any help highly appreciated!

If you just want a smaller font size

\setupnotedefinition
   [footnote]
   [style=small]

or if you also want to set interline space

\setupnotedefinition
   [footnote]
   [before={\switchtobodyfont[9pt]\setupinterlinespace},
after{\endgraf}]

You can also pass parameters to \setupinterlinespace to get the 
precise spacing that you want.

Aditya


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


[NTG-context] Page quadruple not working

2007-03-12 Thread Aditya Mahajan
Why does \page[quadruple] not work?

\setuppagenumbering [alternative=doublesided,location=footer]

\starttext

this is a test
\page[quadruple]
test

\stoptext


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


[NTG-context] Line spacing in footnotes

2007-03-12 Thread Oliver Buerschaper
Hi all,

is there a way to influence the linespacing of the footnote block?  
I'd like to typeset it in 9pt/11pt while the main text is set to 12pt/ 
14.5pt (using an OpenType font) ... Any help highly appreciated!

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


Re: [NTG-context] reset command for natural tables.

2007-03-12 Thread Hans Hagen
JOHN CULLETON wrote:
> Sometimes when I combine different pieces of the same document the natural 
> tables settings for one chapter will mess up tables in another chapter. I am 
> looking for a generic
> \setupTABLE [reset]
> type command to put everything back to default values. Since there is no 
> manual for natural tables, only examples, I don't know where to find this 
> information. 
>
>   
\startsetups whatever
table setups 
\stopsetups 


\start 
\setups{whatever}
your table 
\stop

-
  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] reset command for natural tables.

2007-03-12 Thread JOHN CULLETON
Sometimes when I combine different pieces of the same document the natural 
tables settings for one chapter will mess up tables in another chapter. I am 
looking for a generic
\setupTABLE [reset]
type command to put everything back to default values. Since there is no manual 
for natural tables, only examples, I don't know where to find this information. 

John Culleton 


_
Need personalized email and website? Look no further. It's easy
with Doteasy $0 Web Hosting! Learn more at www.doteasy.com
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] \externalimage at the start of line

2007-03-12 Thread Thomas A. Schmitz

On Mar 12, 2007, at 8:40 PM, Dean wrote:

> I've just started using ConTeXt and I have run into a small problem
> that may be a bug.  I'm trying to include a graphics file inline with
> text.  For my page headers, I need the image to appear at the start of
> a line.  If I use the following commands:
>
> \externalimge[logo] Some text here
>
> It gets rendered as
>
> 
> Some text here
>
> I'd like to get
>
>  Some text here
>
> \externalimage works fine in other places where there is some text
> preceding it, but I need to have the case where no text preceeds it.
> I image there are some workaround to this, but as I am fairly new to
> ConTeXt I am not sure the best way to go about it.  If anyone could
> help me solve this, I would appreciate it.
>
> Thanks,
> Dean

[untested]

\dontleavehmode \externalimge[logo] Some text here

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


Re: [NTG-context] \externalimage at the start of line

2007-03-12 Thread Hans Hagen
Dean wrote:
> I've just started using ConTeXt and I have run into a small problem
> that may be a bug.  I'm trying to include a graphics file inline with
> text.  For my page headers, I need the image to appear at the start of
> a line.  If I use the following commands:
>
> \externalimge[logo] Some text here
>
> It gets rendered as
>
> 
> Some text here
>
> I'd like to get
>
>  Some text here
>
> \externalimage works fine in other places where there is some text
> preceding it, but I need to have the case where no text preceeds it.
> I image there are some workaround to this, but as I am fairly new to
> ConTeXt I am not sure the best way to go about it.  If anyone could
> help me solve this, I would appreciate it.
>
>   
put \dontleavehmode in front of the command; has to do with h/vmode

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] ConTeXt meeting programme

2007-03-12 Thread Renaud Aubin

Argggh ! What's a pain to miss that !!!

Taco Hoekwater a écrit :

Hello everybody.

Below you will find the final programme of the ConTeXt User meeting
that will take place at the end of this month.

I am posting this message because I know some people cannot commit
themselves too far ahead of time, and we can still allow for one or
two extra participants, so last-minute registration is still possible
until the day after tomorrow, at
  http://context.aanhet.net/epen2007/index.htm

Happy TeXing,

Taco


= ConTeXt User Meeting Programme =

== Friday March 23 ==

12:00 Start of arrivals
19:00 Dinner
20:00 Taco Hoekwater
   Tutorial: Writing a ConTeXt module

== Saturday March 24 ==

08:00 Breakfast
09:00 Taco Hoekwater
   A short history of ConTeXt
09:30 Mari Voipio
   ConTeXting in Windows - a user's view
10:15 Patrick Gundlach,
   ConTeXt integration in the 'Textmate' editor
10:30 Break
11:00 Patrick Gundlach
   Creating a Pdf document, the hard way
11:30 Thomas A. Schmitz
   Classical greek with ConTeXt
12:00 Idris Samawi Hamid
   A short introduction to Critical Editions
12:15 Idris Samawi Hamid and Thomas A. Schmitz
   Discussion: Steps needed to expand ConTeXt to the demands of
   Critical Edition typesetting
13:00 Lunch
14:00 Sanjoy Mahajan
   Typesetting a physics textbook with ConTeXt
14:30 Mojca Miklavec
   Discussion: Documentation
15:30 Break
16:00 Willi Egger
   Tutorial: Page layout and arrangements, posters
18:30 Dinner
20:00 Hans Hagen
   Tutorial: XML

== Sunday March 25 ==

08:00 Breakfast
09:00 Idris Samawi Hamid
   Oriental TeX
09:30 Duncan Hothersall
   Using ConTeXt as part of a larger system
10:00 Duncan Hothersall
   Discussion/workshop: ConTeXt as part of a larger system
11:00 Break
11:30 Hans Hagen and Taco Hoekwater
   Luatex and ConTeXT MK IV preview
12:00 Sanjoy Mahajan
   Discussion: Quality assurance and Testing
12:45 Lunch
14:00 Hans Hagen and Taco Hoekwater
   Tutorial: Working with Lua and ConTeXt MK IV
16:00 Break
16:30 Arthur Reutenauer
   An introduction to OpenType fonts
17:00 Hans Hagen and Taco Hoekwater
   Tutorial: Fonts in ConTeXt MK IV
19:00 Buffet dinner

== Monday March 26 ==

08:00 Breakfast
10:00 End of departures





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


  


begin:vcard
fn:Renaud AUBIN
n:AUBIN;Renaud
email;internet:[EMAIL PROTECTED]
url:http://www.nibua-r.org
version:2.1
end:vcard

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


[NTG-context] \externalimage at the start of line

2007-03-12 Thread Dean
I've just started using ConTeXt and I have run into a small problem
that may be a bug.  I'm trying to include a graphics file inline with
text.  For my page headers, I need the image to appear at the start of
a line.  If I use the following commands:

\externalimge[logo] Some text here

It gets rendered as


Some text here

I'd like to get

 Some text here

\externalimage works fine in other places where there is some text
preceding it, but I need to have the case where no text preceeds it.
I image there are some workaround to this, but as I am fairly new to
ConTeXt I am not sure the best way to go about it.  If anyone could
help me solve this, I would appreciate it.

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


Re: [NTG-context] \texteuro does not work

2007-03-12 Thread Peter Münster
On Mon, 12 Feb 2007, Aditya Mahajan wrote:

> > \starttext
> > 5,00\,\texteuro
> > \stoptext
> >
> > does not work any more. What have I to do?
> 
> Short answer: use texnansi encoding.
> 
> \usetypescript[modern][encoding=texnansi]
> \setupbodyfont[modern,rm,11pt]

Hello,

here is another possibility:

\usesymbols[eur]
\definecharacter texteuro {{\ss\symbol[euro]}}
\starttext
\startlines
5,00\,\texteuro
\bf 5,00\,\texteuro
\it 5,00\,\texteuro
\stoplines
\stoptext

Of course, you must install
ftp://ftp.adobe.com/pub/adobe/type/win/all/eurofont.exe for this to work.

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] grid and \definelayout

2007-03-12 Thread Wolfgang Schuster
Hi,

I tried to enable the grid with the \definelayout command. This seems
to be not possible and can only be done with the \setuplayout command.

The reason is that I set up the layout in one of my modules with a own
setup command and the current setup option is choosen by a keyword, e.g.
\setupmymodule[firstpage][..,..=..,..] creates \definelayout[firstpage]
with the comma seperated list between the second brackets.

Is it there something build in that im unable to find and if not is it
possible to include this, because I try to avoid adding another option
that is neccessary to enable/disable the grid.

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


Re: [NTG-context] ConTeXt meeting programme

2007-03-12 Thread David Wooten
I wish I could join you all, it looks like a great programme.
I guess I will have to wait until the videos and transcripts are  
released ;)

Dave

On Mar. 12, 2007, at Mar 12, 6:10 AM, Taco Hoekwater wrote:

> Hello everybody.
>
> Below you will find the final programme of the ConTeXt User meeting
> that will take place at the end of this month.
>
> I am posting this message because I know some people cannot commit
> themselves too far ahead of time, and we can still allow for one or
> two extra participants, so last-minute registration is still possible
> until the day after tomorrow, at
>   http://context.aanhet.net/epen2007/index.htm
>
> Happy TeXing,
>
> Taco
>
>
> = ConTeXt User Meeting Programme =
>
> == Friday March 23 ==
>
> 12:00 Start of arrivals
> 19:00 Dinner
> 20:00 Taco Hoekwater
>Tutorial: Writing a ConTeXt module
>
> == Saturday March 24 ==
>
> 08:00 Breakfast
> 09:00 Taco Hoekwater
>A short history of ConTeXt
> 09:30 Mari Voipio
>ConTeXting in Windows - a user's view
> 10:15 Patrick Gundlach,
>ConTeXt integration in the 'Textmate' editor
> 10:30 Break
> 11:00 Patrick Gundlach
>Creating a Pdf document, the hard way
> 11:30 Thomas A. Schmitz
>Classical greek with ConTeXt
> 12:00 Idris Samawi Hamid
>A short introduction to Critical Editions
> 12:15 Idris Samawi Hamid and Thomas A. Schmitz
>Discussion: Steps needed to expand ConTeXt to the  
> demands of
>Critical Edition typesetting
> 13:00 Lunch
> 14:00 Sanjoy Mahajan
>Typesetting a physics textbook with ConTeXt
> 14:30 Mojca Miklavec
>Discussion: Documentation
> 15:30 Break
> 16:00 Willi Egger
>Tutorial: Page layout and arrangements, posters
> 18:30 Dinner
> 20:00 Hans Hagen
>Tutorial: XML
>
> == Sunday March 25 ==
>
> 08:00 Breakfast
> 09:00 Idris Samawi Hamid
>Oriental TeX
> 09:30 Duncan Hothersall
>Using ConTeXt as part of a larger system
> 10:00 Duncan Hothersall
>Discussion/workshop: ConTeXt as part of a larger system
> 11:00 Break
> 11:30 Hans Hagen and Taco Hoekwater
>Luatex and ConTeXT MK IV preview
> 12:00 Sanjoy Mahajan
>Discussion: Quality assurance and Testing
> 12:45 Lunch
> 14:00 Hans Hagen and Taco Hoekwater
>Tutorial: Working with Lua and ConTeXt MK IV
> 16:00 Break
> 16:30 Arthur Reutenauer
>An introduction to OpenType fonts
> 17:00 Hans Hagen and Taco Hoekwater
>Tutorial: Fonts in ConTeXt MK IV
> 19:00 Buffet dinner
>
> == Monday March 26 ==
>
> 08:00 Breakfast
> 10:00 End of departures
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] vertical interactionbar?

2007-03-12 Thread Johan Sandblom
ah

embarrassingly easy

2007/3/11, Hans Hagen <[EMAIL PROTECTED]>:
> Johan Sandblom wrote:
> > I am trying to make a presentation with a progress bar. I want it
> > along the right edge of the screen. I remember seeing something like
> > that but cannot find it now, and all the alternatives for
> > interactionbar seem to require a horizontal one.
> >
> > How can I make a vertical progress bar?
> >
> rotate a horizontal one -)
>
>
> -
>   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
>


-- 
Johan Sandblom  N8, MRC, Karolinska sjh
t +46851776108  17176 Stockholm
m +46735521477  Sweden
"What is wanted is not the will to believe, but the
will to find out, which is the exact opposite"
- Bertrand Russell
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] ConTeXt meeting programme

2007-03-12 Thread Taco Hoekwater
Hello everybody.

Below you will find the final programme of the ConTeXt User meeting
that will take place at the end of this month.

I am posting this message because I know some people cannot commit
themselves too far ahead of time, and we can still allow for one or
two extra participants, so last-minute registration is still possible
until the day after tomorrow, at
  http://context.aanhet.net/epen2007/index.htm

Happy TeXing,

Taco


= ConTeXt User Meeting Programme =

== Friday March 23 ==

12:00 Start of arrivals
19:00 Dinner
20:00 Taco Hoekwater
   Tutorial: Writing a ConTeXt module

== Saturday March 24 ==

08:00 Breakfast
09:00 Taco Hoekwater
   A short history of ConTeXt
09:30 Mari Voipio
   ConTeXting in Windows - a user's view
10:15 Patrick Gundlach,
   ConTeXt integration in the 'Textmate' editor
10:30 Break
11:00 Patrick Gundlach
   Creating a Pdf document, the hard way
11:30 Thomas A. Schmitz
   Classical greek with ConTeXt
12:00 Idris Samawi Hamid
   A short introduction to Critical Editions
12:15 Idris Samawi Hamid and Thomas A. Schmitz
   Discussion: Steps needed to expand ConTeXt to the demands of
   Critical Edition typesetting
13:00 Lunch
14:00 Sanjoy Mahajan
   Typesetting a physics textbook with ConTeXt
14:30 Mojca Miklavec
   Discussion: Documentation
15:30 Break
16:00 Willi Egger
   Tutorial: Page layout and arrangements, posters
18:30 Dinner
20:00 Hans Hagen
   Tutorial: XML

== Sunday March 25 ==

08:00 Breakfast
09:00 Idris Samawi Hamid
   Oriental TeX
09:30 Duncan Hothersall
   Using ConTeXt as part of a larger system
10:00 Duncan Hothersall
   Discussion/workshop: ConTeXt as part of a larger system
11:00 Break
11:30 Hans Hagen and Taco Hoekwater
   Luatex and ConTeXT MK IV preview
12:00 Sanjoy Mahajan
   Discussion: Quality assurance and Testing
12:45 Lunch
14:00 Hans Hagen and Taco Hoekwater
   Tutorial: Working with Lua and ConTeXt MK IV
16:00 Break
16:30 Arthur Reutenauer
   An introduction to OpenType fonts
17:00 Hans Hagen and Taco Hoekwater
   Tutorial: Fonts in ConTeXt MK IV
19:00 Buffet dinner

== Monday March 26 ==

08:00 Breakfast
10:00 End of departures





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


Re: [NTG-context] \lcd

2007-03-12 Thread Aditya Mahajan
On Sun, 11 Mar 2007, David Arnold wrote:

> All,
>
> In Context, how do I make a mathop for lcd? I want to typeset the
> following in math mode.
>
> \lcd(8,12)=24

\definemathcommand  [lcd] [nolop] {\mfunction{lcd}}

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


Re: [NTG-context] caption for code listings

2007-03-12 Thread Steffen Fritzsche

>> \definefloat[listing][listings]
>>
>>
> 
> you can change the caption text with the following command
> 
> \setuplabeltext[listing=captiontext ]  % works for all languages
> \setuplabeltext[de][listing=captiontext ] % works only the german caption
> 
> \placelisting
>  {text}
>   \bgroup
>   \startJV
>   ...
>   \stopJV
>   \egroup
> 

that's exactly what I'm looking for. Thanks for the quick answer.

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


Re: [NTG-context] index questions - again

2007-03-12 Thread Thomas A. Schmitz

On Mar 12, 2007, at 9:42 AM, Thomas A. Schmitz wrote:

> Hi,
>
> I'm sorry, this is the third time I'm asking this question, but I
> haven't been able to solve this, and the book is going to the
> publisher next month, so it's kind of urgent (I will sulk in Epen if
> this doesn't work :-)
>
> 1. I need to define a special type of register that will typeset page
> ranges in bold. I have a subindex that does that for single entries:
>
> \setupregister[index][imp][pagestyle=bold]
>
> which I invoke like
>
> \index[imp::]{modernity}
>
> and it works. How can I have the same thing for ranges?

OK, I tried a hack, and I just wanted to ask if there's anything  
wrong with it: as dirty workaround, I added a fourth key to  
dostartregister:


\def\startregister
   {\doquadrupleempty\dostartregister}

\def\dostartregister[#1][#2][#3][#4]#5%
   {\chardef\registerpagestatus\plustwo
\def\currentregister{#1}%
\setgvalue{\??id#1\??id#2}{\dodostopregister[#1][#3]{#5}}%
\dodoregister[#3]{#4}{#5}}

and after a quick test, this seems to do what I want. The endash  
between numbers is not bold, but I could live with that. Any comments  
from the developers?

>
> 2. Another index question: I have several seeindex entries. They
> work, but the publisher doesn't want a linebreak, and they want "see"
> in italics. SO instead of
>
> lisible
> see readerly
>
> they want
>
> lisible *see* readerly
>
> Can this be configured, or can I hack core-reg.tex (and how?).
>
Any chances to know more about this?

Best

Thomas

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


Re: [NTG-context] caption for code listings

2007-03-12 Thread Wolfgang Schuster

2007/3/12, Wolfgang Schuster <[EMAIL PROTECTED]>:




2007/3/11, Steffen Fritzsche <[EMAIL PROTECTED]>:
>
> hi,
>
> I'm currently writing my diploma thesis with context. I already read the
> wiki and searched the manuals but I didn't find something like a common
> practice for defining new caption types.
>
> My problem: I have a lot of code listings and I want to define a custom
> caption type (named listing) and aggregate them into a own register. I
> already set up a new register with
>
> \defineregister [listing][Listing]
>
> and it is also possible to place listings in this register with
>
> \placelisting{
>\startJV
>...
>\stopJV
> }
>
> but how can I add a custom caption to this listing? I'm thinking of
> something like \placefigure. Or perhaps I must just setup placelisting.
> Any Idea? Thanks in advance!
>
> Steffen


Hi Steffen,

\definefloat[listing][listings]




you can change the caption text with the following command

\setuplabeltext[listing=captiontext ]  % works for all languages
\setuplabeltext[de][listing=captiontext ] % works only the german caption



 \starttext

\placelistoflistings
%\completelistoflistings

\placelistings
  {text}
  {\startJV
   ...
   \stopJV}



this should be

\placelisting
 {text}
  \bgroup
  \startJV
  ...
  \stopJV
  \egroup



 \stoptext




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


Re: [NTG-context] caption for code listings

2007-03-12 Thread Wolfgang Schuster

2007/3/11, Steffen Fritzsche <[EMAIL PROTECTED]>:


hi,

I'm currently writing my diploma thesis with context. I already read the
wiki and searched the manuals but I didn't find something like a common
practice for defining new caption types.

My problem: I have a lot of code listings and I want to define a custom
caption type (named listing) and aggregate them into a own register. I
already set up a new register with

\defineregister [listing][Listing]

and it is also possible to place listings in this register with

\placelisting{
   \startJV
   ...
   \stopJV
}

but how can I add a custom caption to this listing? I'm thinking of
something like \placefigure. Or perhaps I must just setup placelisting.
Any Idea? Thanks in advance!

Steffen



Hi Steffen,

\definefloat[listing][listings]

\starttext

\placelistoflistings
%\completelistoflistings

\placelistings
 {text}
 {\startJV
  ...
  \stopJV}

\stoptext

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


Re: [NTG-context] index questions - again

2007-03-12 Thread Thomas A. Schmitz

On Mar 12, 2007, at 9:56 AM, Steffen Wolfrum wrote:

> Hi Thomas,
>
> as Hans is probably too busy to write the perfect patch right now
> maybe meanwhile a hack will do ?
>
> On Thu, 26 Oct 2006 10:32:29 +0200, Hans Hagen wrote:
>> \placeregister[index][file=testtest]
>>
>> so, you can copy test.tuo to testtest.tuo and then edit testtest.tuo
>> to suit your needs
>
>
> Best,
> Steffen


Thanks Steffen, I just tried it, and it works indeed! Not an elegant  
solution, for sure (my tuo file has ~3,600 lines, so editing it is a  
bit painful), but would do as a last ditch attempt.

Thanks

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


Re: [NTG-context] index questions - again

2007-03-12 Thread Steffen Wolfrum
Hi Thomas,

as Hans is probably too busy to write the perfect patch right now
maybe meanwhile a hack will do ?

On Thu, 26 Oct 2006 10:32:29 +0200, Hans Hagen wrote:
> \placeregister[index][file=testtest]
> 
> so, you can copy test.tuo to testtest.tuo and then edit testtest.tuo 
> to suit your needs


Best,
Steffen



On Mon, 12 Mar 2007 09:42:10 +0100, Thomas A. Schmitz wrote:
> Hi,
> 
> I'm sorry, this is the third time I'm asking this question, but I  
> haven't been able to solve this, and the book is going to the  
> publisher next month, so it's kind of urgent (I will sulk in Epen if  
> this doesn't work :-)
> 
> 1. I need to define a special type of register that will typeset page  
> ranges in bold. I have a subindex that does that for single entries:
> 
> \setupregister[index][imp][pagestyle=bold]
> 
> which I invoke like
> 
> \index[imp::]{modernity}
> 
> and it works. How can I have the same thing for ranges?
> 
> 2. Another index question: I have several seeindex entries. They  
> work, but the publisher doesn't want a linebreak, and they want "see"  
> in italics. SO instead of
> 
> lisible
> see readerly
> 
> they want
> 
> lisible *see* readerly
> 
> Can this be configured, or can I hack core-reg.tex (and how?).
> 
> Best, and thanks
> 
> Thomas
> ___
> 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 questions - again

2007-03-12 Thread Thomas A. Schmitz
Hi,

I'm sorry, this is the third time I'm asking this question, but I  
haven't been able to solve this, and the book is going to the  
publisher next month, so it's kind of urgent (I will sulk in Epen if  
this doesn't work :-)

1. I need to define a special type of register that will typeset page  
ranges in bold. I have a subindex that does that for single entries:

\setupregister[index][imp][pagestyle=bold]

which I invoke like

\index[imp::]{modernity}

and it works. How can I have the same thing for ranges?

2. Another index question: I have several seeindex entries. They  
work, but the publisher doesn't want a linebreak, and they want "see"  
in italics. SO instead of

lisible
see readerly

they want

lisible *see* readerly

Can this be configured, or can I hack core-reg.tex (and how?).

Best, and thanks

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