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] 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 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] \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


[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] 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


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] \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

 logo
 Some text here

 I'd like to get

 logo 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] 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] 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


[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


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