Re: [NTG-context] Table of contents and List of figures

2006-05-01 Thread WN




[EMAIL PROTECTED] wrote:

  On Sun, 30 Apr 2006 19:13:34 +0200, WN [EMAIL PROTECTED] wrote:

  
  
Question 1) :

In my document I am using
\setupcombinedlist[content][alternative=c,aligntitle=no,width=4em]
and now I want to use the same layout for the list of figures but there
is not something equivalent like
\setupcombinedlist[figure][alternative=c,aligntitle=no,width=4em]

  
  
The TOC is a combination of several lists (chapter, section, etc.), but a  
LOF is a single list.
Try:

\setuplist[figure][alternative=c,aligntitle=no,width=4em]

or:

\placelist[figure][alternative=c,aligntitle=no,width=4em]

  
  
Question 2):

In my document I am also using \part and in the TOC the part number
prefixes the pagenumber like

I want to get rid of the partnumbers which are prefixed to the  
pagenumbers
so my TOC looks like

Deel I Klassieke Elektrodynamica . . . . . . . . . . . . . . . . . . 1

  
  
Try this:

\completecontent[partnumber=no]

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

Both your solutions work, great !! Thanks

BTW One question, as I am still learning Context (simple user), but
where did you find these options for \completecontent ?
I could not find it in the manuals, Wiki and this mailing list. 

Kind regards

Wim






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


Re: [NTG-context] Table of contents and List of figures

2006-05-01 Thread nico
On Mon, 01 May 2006 13:07:08 +0200, WN [EMAIL PROTECTED] wrote:

 Both your solutions work, great !! Thanks

 BTW One question, as I am still learning Context (simple user), but
 where did you find these options for \completecontent  ?
 I could not find it in the manuals, Wiki and this mailing list.

It's in the big manual (cont-enp), in the section References/Table of  
contents. The complete list of options is given for setuplist (p 150),  
and examples of placelist are given (p 155-159). The manual is far  
complete but need a careful read (many information in few pages).

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


Re: [NTG-context] Part head centering and empty header

2006-05-01 Thread Johannes Graumann
John R. Culleton wrote:

 I would take a different approach, with each part header (there
 can't be that many) enclosed in
 \startstandardmakeup
 and
 \stopstandardmakeup
 
 To get the part into the TOC there is a command to write an
 entry manually, with \writetolist.

Thanks a lot for this comment. It solved my problem. I'm now using:

\defineXMLenvironment
  [appendices]
  {%
\startappendices
  \setuppagenumbering
[%
  way=bytext,%
  partnumber=no,%
  conversion=numbers,%
  location={header,right}%
]%
\startstandardmakeup
  [%
headerstate=empty,%
pagestate=start%
  ]
  \framed
[%
  width=\textwidth,%
  frame=off,%
]
{%
  \ss\switchtobodyfont[60pt]\setupinterlinespace[line=2.8ex]
  Appendices
  \writetolist[part]{Appendices}{}
}
\stopstandardmakeup
  }
  {\stopappendices}

And it does exactly what I want.

Joh

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


[NTG-context] Float caption feature request

2006-05-01 Thread Johannes Graumann
Hello,

In LaTeX (don't remember whether this is generic or specific to one of the
packages I used to use), the 'caption' command for floats came along this
way:

\caption[optional short version]{Caption}

If one uses the 'optional short version' bit, the Table of Figures/Tables
present the short version rather than the whole caption (which in my case
is long paragraphs and makes the TOF/TOT unpractical). I would very much
like to have that functionality in context.

Thanks for any hints on how to achieve this. Poking around in the source did
not lead this newbie to a starting point ...

Joh

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


[NTG-context] Fat lines in tables?

2006-05-01 Thread Robert Engelhardt
Hello,

how can I create lines with different widths using the \DL command as I 
do with \HL[factor] oder \VL[factor]? With \DL the factor is 
interpreted as a number of columns, not as a multiple of the default 
linewidth. So how to make thick lines in that case?
Thanks and regards,

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


[NTG-context] lb bar/Unicode 2114 symbol

2006-05-01 Thread Johannes Graumann
Hello,

I'm using the following encoding commands

\usetypescript[modern-base][texnansi]
\setupbodyfont[12pt,modern]

and was wondering whether someone knows an elegant way to get the pound
sign 'lb bar' (unicode #2114, html #8468;).

My current hack looks like this:

\def\lbbar%
  {%
\raise.28em\hbox{--}%
\kern-.535eml%
\kern-.1emb%
  }

but I'm underwhelmed by the thinness of the bar ...

Thanks for any insights,

Joh

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


[NTG-context] Synonyms and XML - HOWTO?

2006-05-01 Thread Johannes Graumann
Hello,

I'm trying to get the following to work:

\definesynonyms[abbreviation][abbreviations][\infull]

\defineXMLargument
  [abbrev]
  [short=,full=]
  {\expanded{\abbreviation{\XMLop{short}}{\XMLop{full

\defineXMLargument  [abbreviations]   {\completelistofabbreviations}

\starttext
  \startXMLdata
abbreviations/
Blabla shortabbrev short=short full=slightly longer short/.
  \stopXMLdata
\stoptext

But I don't succeede: the synonym is not put out. Any ideas on what I'm
screwing up?

Joh

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


[NTG-context] Duplicate names in figure libraries

2006-05-01 Thread David Arnold
Hans et al,

I have two figure libraries, figlibSection1.xml and  
figlibSection2.xml. In the first, I have:

figure
filesec1rat1.png/file
labelrat1/label
copyrightCollege of the Redwoods Mathematics Department/copyright
comment/comment
/figure

In the second, I have:

figure
filesection2figs-mpgraph.1/file
labelrat1/label
copyrightCollege of the Redwoods Mathematics Department/copyright
comment/comment
/figure

Now, section1.tex does:

\usefigurebase[figures/figlibSection1]

And later:

\startbuffer[figure]
\startcombination[3*1]
   {\externalfigure[rat1][width=.2\textwidth]}{(a)}
   {\externalfigure[rat2][width=.2\textwidth]}{(b)}
   {\externalfigure[rat3][width=.2\textwidth]}{(c)}
\stopcombination
\stopbuffer

\placefigure
[][fig:rat]
{The calculator attempts to draw a continuous function when it  
shouldn't.}
{\getbuffer[figure]}


Section2.tex does:

\usefigurebase[figures/figlibSection2]

And later:

\placefigure
[][fig:rat1]
{The numerator is zero at $x=-2$. This is an $x$-intercept of the  
graph. The denominator is zero at $x=3$. This is a vertical asymptote  
of the graph.}
{\externalfigure[rat1]}

All is fine if I compile section1.tex and section2.tex separately.  
But I have chapter6.tex with:

\startproduct chapter6

\project book

\startbodymatter

\setupheadnumber[chapter][5]

\chapter[chap:6]{Rational Functions}

\component chapter6/section1 %Introducing Rational Functions

\component chapter6/section2  %Zeros and Asymptotes

\stopbodymatter

\stopproduct

When I compile this, the rat1 in section2.tex uses the rat1 meant for  
section1.tex instead. Any I can fix this other than giving unique  
names to everything?
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context