[NTG-context] Answer too obvious?
Hello, after some more experimenting I still dont't get what I want. Could someone please answer with at least an RTFM _and_ a page number? Thank you and many greetings. Dierk Höppner -Ursprüngliche Nachricht- Von: Höppner, Dierk Gesendet: Mittwoch, 27. August 2003 09:47 An: '[EMAIL PROTECTED]' Betreff: Newbie: referencing and Page numbers Hello all, a basic question: I have a document with three parts. The pagenumbers display correctly like 1-2, 2-2, 3-2 etc. But referencing Chapter 2 from Part 1 in Part 3 with See \in{chapter}[colours] on \at{page}[colors] ... results in See chapter 2 on page 3 ... I want: See chapter 2 on page 1-3 ... How to achieve this? Thanks and greetings -- Dierk Höppner Technische Informationsbibliothek Universitätsbibliothek Hannover (TIB/UB) EDV Welfengarten 1b D-30167 Hannover Tel.: 0511 / 762 - 4067, Fax: 0511 / 762 - 5881 http://www.tib.uni-hannover.de ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: Answer too obvious?
Höppner, Dierk [EMAIL PROTECTED] writes: Hello, after some more experimenting I still dont't get what I want. Could someone please answer with at least an RTFM _and_ a page number? could you provide a minimal file? Patrick -- Silent is the goldfish in its bowl ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
AW: [NTG-context] Re: Answer too obvious?
Patrick, I hope so, too. Thank's for looking into it. Dierk It seems as if there is no way [1] to setup this kind of reference easily. [1] this is probably wrong. I just can't find any obvious solution. Perhaps Hans sees this message and looks into his bag full of ConTeXt magic and reveals the magic spell. ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] texfont / typescripts
Ahoi! Hans, texfont seems to have a little bug: If one installs TrueType fonts, it complains about missing pfb (I can ignore that), but the map file maps only to pfb, not ttf. My install-font script fixes that, but I suppose it's no problem to fix that in texfont. I didn't try OpenType yet, but guess the same problem. And I'd suggest to let texfont write a sample typescript, as my script does. (Then I could drop it.) BTW: There's now a typescript for Microsoft's standard TT fonts in my collection. (http://www.ramm.ch/fiee/texnique/material/typescripts.zip) Grüßlis vom Hraban! -- http://www.fiee.net/texnique/ ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spacing in heads
% interface=en output=pdftex \starttext \showmakeup \showstruts \setuphead[section][textcommand=\framed,before=] \hbox{\framed[width=5cm,height=5cm,align={middle,high},offset=none]%,strut=no] {\section{Hello} why is there so much space above the word hello??}} \stoptext Hello Patrick, this one works for me (strut=no is an alternative). You should give 'Visual Debugging in TeX' (art-visi.pdf) a try. It's pure gold to get control of the hole layout ;) Greetings, Peter ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, XML and verbatim
Hi! On Wed, Sep 03, 2003 at 09:49:40PM +0200, Simon Pepping wrote: Meybe someone knowns how to 'translate' verbatim environments for XML code? I mean how to define environment which I can use in this way [..] There are no verbatim environments in XML, and you cannot get literal content. Instead, you can have tags, like your verbatim above, that request line-oriented layout. programlisting is such a tag in Docbook. That's correct with respect to elements--since XML deliberately avoids defining semantics for any element. But you seem to be overlooking CDATA sections, which are more-or-less verbatim environments. The XML spec doesn't directly address the question of formatting in CDATA sections, but all characters are supposed to be output literally, and AFAIK that includes white space--hence all formatting should be preserved. But I don't know if ConTeXt can handle CDATA sections. Can it? Good question! As far as I'm concerned (but I'm not concerned far...) ConTeXt can handle some 'metadata' like !ENTITY But I don't know exaclty which levels of XML syntax is handled with ConTeXt core. I hope Hans will provide some workshops :) Regards, Pawel ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] spacing in heads
At 20:34 04/09/2003 +0200, you wrote: % interface=en output=pdftex \starttext \showmakeup \showstruts \setuphead[section][textcommand=\framed,before=] \hbox{\framed[width=5cm,height=5cm,align={middle,high},offset=none]%,strut=no] {\section{Hello} why is there so much space above the word hello??}} \stoptext Hello Patrick, this one works for me (strut=no is an alternative). You should give 'Visual Debugging in TeX' (art-visi.pdf) a try. It's pure gold to get control of the hole layout ;) if you wanna see some more: \showbaselinecorrection \showgridsnapping \showstruts \showgrid \showbreaks \tracegridsnappingtrue \tracepositionstrue \tracelayerstrue \tracecolumnsettrue \tracesidefloatstrue \traceboxplacementtrue for much more tracing, grep on show and trace -) Hans PS. I bet that context is one of the first apps that uses acrobat layers in some fashion: \showlayoutcomponents - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, XML and verbatim -- thanks
At 08:49 04/09/2003 +0200, you wrote: Hello! There are no verbatim environments in XML, and you cannot get literal content. Instead, you can have tags, like your verbatim above, that request line-oriented layout. programlisting is such a tag in Docbook. This is how docbook in context does it: \def\XMLDBstartlineorientedlayout {\bgroup \frenchspacing \obeyspaces \obeytabs \obeylines \parindent=0pt% \setupwhitespace[none] \def\obeyedline{\par\def\obeyedline{\strut\par}}% \def\obeyedspace{\strut\space}% \blank[medium]} \def\XMLDBstoplineorientedlayout{\blank[medium]\egroup} \defineXMLenvironment[programlisting] {\XMLDBstartlineorientedlayout \tt\XMLsimpleentitiestrue}% {\XMLDBstoplineorientedlayout} Thanks Simon! Such line-oriented environment is also a solution. Pawel, you can learns a few tricks from x-contml and other x-* modules Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: spacing in heads
Peter Rolf [EMAIL PROTECTED] writes: Hello Peter, thanks for the answer, I was actually using the visual debugger, but I wasn't able to tell what the small sqare was for. So one other question: %% \showmakeup \starttext \setuphead[section][textcommand=\framed,before=] \hbox{\framed[width=5cm,height=5cm,align={middle,high},offset=0pt]{% offset=0pt hp\section{Hello} why is there so much space above the word hello??} \framed[width=5cm,height=5cm,align={middle,high},offset=none]{% offset=none hp\section{Hello} why is there so much space above the word hello??}} \stoptext %% what is the difference between offset=0pt and offset=none? I thought that it would only insert a strut, but then again I thought that a strut has the height and the depth of the font. This is clearly not the case here, since the f (or h) should be the highest char and p pretty deep. But compared to the right example there is some space above the f and below the p. Patrick ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: \digits
At 13:01 01/09/2003 +0200, you wrote: Hans Hagen [EMAIL PROTECTED] writes: \def\scandigits#1% [...] Not that tested -) Looks fine. Is there a way to increase the length of the dash in 123,-- Now it looks like a simple -, I'd like to be able to choose between -, -- and perhaps ---. you can tweak: \def\zeroamount{-} \def\positive {+} \def\negative {-} - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] Re: ConTeXt project structure?
At 17:55 03/09/2003 +0200, you wrote: I am looking for a third (...) way as well what direction? (i'm thinking of a database option) Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
Re: [NTG-context] ConTeXt, XML and verbatim
At 21:09 04/09/2003 +0200, you wrote: Good question! As far as I'm concerned (but I'm not concerned far...) ConTeXt can handle some 'metadata' like !ENTITY But I don't know exaclty which levels of XML syntax is handled with ConTeXt core. I hope Hans will provide some workshops :) well, arrange one at bachotek -) Hans - Hans Hagen | PRAGMA ADE | [EMAIL PROTECTED] Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com - information: http://www.pragma-ade.com/roadmap.pdf documentation: http://www.pragma-ade.com/showcase.pdf - ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context
[NTG-context] Re: MetaPost error
Hello Some more information would be useful: do ConTeXt files (without metapost stuff) work correctly? Yes - thank You for Your time - now everything looks good. I fixed it by following: -install miktex (large version but I will experimental with small version) -unzip new version of ConTeXt -remove cont-en.efmt file if exists -generate format en -generate specific language format -update and refresh MikTeX database -generate metafun format -copy mem file from fmt folder (where is stored after generate) to /mem/ folder(s) -update and refresh MikTeX database And everything looks good ;) I had some problems with generate metafun format - there I couldn't find mem file on hard disk. Maybe first time I forgot '-update and refresh MikTeX database' ;) This the point for new users: after each operation do it ! ;) I used: This is pdfeTeX, Version 3.141592-1.11a-2.1 (MiKTeX 2.3) (preloaded format=cont-en 2003.9.4) 4 SEP 2003 23:12 and: ConTeXt ver: 2003.8.21 fmt: 2003.9.4 int: english mes: english Best regards Martin ___ ntg-context mailing list [EMAIL PROTECTED] http://www.ntg.nl/mailman/listinfo/ntg-context