[NTG-context] EUROTEX2006 - hartmut-talk.pdf -

2006-12-20 Thread luigi scarso
Very good to me hartmut-talk.pdf, so I've made
www.logosrl.it/context/pdftex/hartmut-talk.html

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


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Norbert Preining
Hi Taco!

On Mit, 20 Dez 2006, Taco Hoekwater wrote:
 context 2006.12.17-0.1 is available from the usual place:
  deb(-src) http://www.tug.org/texlive/Debian/ context/
 
 I want to upload this package to Debian proper soon. Please give
 suggestions/remarks/comments!
 
 I am not a debian user so I will not comment on the package itself,
 but I fully expect a new release from Hans today, so perhaps it
 is better to wait a few hours before uploading.

Ok, thanks a lot. May I ask you something about copyright: For proper
inclusion I really need to know the copyright not only of the files in
cont-tmf, but aslo in the others, cont-ext, cont-fnt, cont-img.

Is there any chance to get a statement of them beign DFSG compatible?
Otherwise I have to exclude some of it and put it into something like
context-nonfree.

BTW, as you are also one of the luatex people, same problem exists for
luatex which I am also packaging.

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
BROUGH SOWERBY
One who has been working at that same desk in the same office for
fifteen years and has very much his own ideas about why he is
continually passed over for promotion.
--- Douglas Adams, The Meaning of Liff
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] Something about vertical Chinese typesetting

2006-12-20 Thread Wolfgang Schuster
On Mon, 18 Dec 2006 19:02:43 +0800
Zhichu Chen [EMAIL PROTECTED] wrote:

Hi Zhichu Chen,

 Dear Texers,
 
 I am typesetting some traditional Chinese articles. They are
 typesetted in vertical, and the reading order is from right to left.
 This can be done by Hans' \startvertical . . . \stopvertical pair. But
 as shown in the attached file, there are some famous notes,
 descriptions and explanations to these articles. The traditional way,
 in Chinese, to typeset these notes is rather to insert them in some
 small fonts (say, half size of the \bodyfontsize) right below the word
 to be explained, than to use footnotes which is common in English.
 
 I've tried some ways, e.g., use \startcolumnsetspan . . .
 \stopcolumnsetspan to put the body text across the note text, but all
 failed.
 
 Can anyone give me some clue?
 

I dont't how the result you wanted looks exactlxy but I hope my
attached example file helps you.

To give you a better results give us a specification about the rules
how the explanations should be written.

Can you also take a look at the following pages if there is what you
want as result:

- http://www.w3.org/TR/ruby/
- http://www.w3.org/International/questions/qa-ruby
- http://www.w3.org/International/tutorials/ruby/
- http://www.w3.org/TR/css3-ruby/

Wolfgang
\unprotect

\def\zc{zc}

\def\sidetext
  {\dosingleempty\dosidetext}

\def\dosidetext[#1]#2#3%
  {\bgroup
   \setupsidetext[#1]
   \edef\sidetextsize{\switchtobodyfont[\the\dimexpr\zcscale\bodyfontsize\relax]}%
   \setbox0\vbox{\startvertical#2\stopvertical}
   \setbox1\vbox{\startvertical\sidetextsize\zcstyle#3\stopvertical}
   \dimen0\ht0\advance\dimen0-\dp0
   \hbox{\box0\rlap{\vbox\!!to\dimen0{\vss\box1\vss}}}
   \egroup}

\def\setupsidetext
  {\dosingleargument\getparameters[\zc]}

\setupsidetext
  [\c!scale=.5,
   \c!style=]

\protect

\enableregime[utf]
\usemodule[chi-00]
\setupbodyfont[24pt]
%\showmakeup

\starttext
\startvertical
你好你好你好你好你好你好你好\sidetext{好}{好好}
你好你好你好你好你好你好你好\sidetext[scale=.8]{好}{好好}
你好你好你好\sidetext[style=\bf]{好}{好}你好你好
好你好你好你好你你好你好你好你你好你好你好你你好你好
\stopvertical
\stoptext
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Taco Hoekwater


Norbert Preining wrote:
 
 Ok, thanks a lot. May I ask you something about copyright: For proper
 inclusion I really need to know the copyright not only of the files in
 cont-tmf, but aslo in the others, cont-ext, cont-fnt, cont-img.

The cows fonts (inside cont-tmf) are cc-by-nd. TeXLive doesn't
like that, so perhaps the same is true for debian.

Everything in (the current versions of) cont-ext, cont-fmt and cont-img
is either GPLv2 or Public Domain.

 Is there any chance to get a statement of them beign DFSG compatible?
 Otherwise I have to exclude some of it and put it into something like
 context-nonfree.
 
 BTW, as you are also one of the luatex people, same problem exists for
 luatex which I am also packaging.

Please, please don't do that. The snapshots are bug-ridden and totally
experimental. In this stage, we much prefer having only testers that
know how to deal with unstable software.

Greetings, Taco

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


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Norbert Preining
Hi Taco!

On Mit, 20 Dez 2006, Taco Hoekwater wrote:
 The cows fonts (inside cont-tmf) are cc-by-nd. TeXLive doesn't
 like that, so perhaps the same is true for debian.

Ok.

 Everything in (the current versions of) cont-ext, cont-fmt and cont-img
 is either GPLv2 or Public Domain.

Thanks for clarification.

 BTW, as you are also one of the luatex people, same problem exists for
 luatex which I am also packaging.
 
 Please, please don't do that. The snapshots are bug-ridden and totally
 experimental. In this stage, we much prefer having only testers that
 know how to deal with unstable software.

I know, I will call the package
luatex-snapshot
upload it to experimental, and people will get a warning about its
usage. It is ok this way, not many people will get it from experimental
anyway, but I want to have it around for testing, and better early
adoption then late work.

The point is that there are people who don't want to compile things but
still are able to test stuff. For those luatex-snapshot pacakged will
serve, too (and for me, because I don't want to have packages not under
package management control on my system ;-)


Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
HASTINGS (pl.n.)
Things said on the spur of the moment to explain to someone who comes
into a room unexpectedly precisely what it is you are doing.
--- Douglas Adams, The Meaning of Liff
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] Context - Tex

2006-12-20 Thread Paul Jones
Hello,

Is there some way that I can convert my context file into tex?  I am
just pondering how much faster running straight tex through pdftex
would be than using context.  Is there some way to run it through
texexec and get tex out of it instead of a pdf/dvi?  Or are there
stats about this kind of thing somewhere that I can lookup?

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


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Norbert Preining
On Mit, 20 Dez 2006, Taco Hoekwater wrote:
 BTW, as you are also one of the luatex people, same problem exists for
 luatex which I am also packaging.
 
 Please, please don't do that. The snapshots are bug-ridden and totally
 experimental. In this stage, we much prefer having only testers that
 know how to deal with unstable software.

I forgot to say: If you or the team have strong feelings *against* a
packaged version, even if it is accompanied by big warnings etc, let us
know, we can also forget about the packaging for now.

Best wishes

Norbert

---
Dr. Norbert Preining [EMAIL PROTECTED]Università di Siena
Debian Developer [EMAIL PROTECTED] Debian TeX Group
gpg DSA: 0x09C5B094  fp: 14DF 2E6C 0307 BE6D AD76  A9C0 D2BF 4AA3 09C5 B094
---
There are of course many problems connected with life, of
which some of the most popular are `Why are people born?'
Why do they spend so much of the
intervening time wearing digital watches?'
 --- The Book.
 --- Douglas Adams, The Hitchhikers Guide to the Galaxy
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


[NTG-context] pb inserting multipage documents

2006-12-20 Thread olivier Turlier
Hi everybody,

I'm experiencing pb with the latest stable version : insertion of
multipage external document leads to the rendering of only the first
page, with this command :

\getfiguredimensions[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf]
\dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf]
[width=\textwidth,height=\textheight][page=\recurselevel]}

If you are interested, you can test source and see differences at this
url : http://tebcado.free.fr/context-quest/01/

TIA for the answers.

--

olivier Turlier

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


Re: [NTG-context] EUROTEX2006 - hartmut-talk.pdf -

2006-12-20 Thread Peter Rolf
luigi scarso wrote:
 Very good to me hartmut-talk.pdf, so I've made
 www.logosrl.it/context/pdftex/hartmut-talk.html
 
 luigi
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context
 
hi luigi,

really nice work (except the positioning of the two buttons) :)
for all of you who get eye cancer, if they must read more than one page
from a monitor, the printable version can be found at

http://www.matexhu.org/eurotex2006/lectures/pdftex/

thanks for pointing to this interesting doc.

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


Re: [NTG-context] Context - Tex

2006-12-20 Thread luigi scarso
On 12/20/06, Paul Jones [EMAIL PROTECTED] wrote:
 Hello,

 Is there some way that I can convert my context file into tex?  I am
 just pondering how much faster running straight tex through pdftex
 would be than using context.
hmm, maybe in context
\tracingall\starttext Hello\stoptext
and something similar in pdftex (ie, activate all tracing before write Hello )
You can then compare logs to have an idea.
luigi
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] EUROTEX2006 - hartmut-talk.pdf -

2006-12-20 Thread luigi scarso
 really nice work (except the positioning of the two buttons) :)
if you download swftools and compile it, you will find
HOWTO_pdf2swf andinside it
$ pdf2swf -bl -o hartmut-talk.swf hartmut-talk.pdf
do all work;
after that I use

!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
DTD/xhtml1-transitional.dtd
htmlheadtitle/title

/headbody
div id=centercontent
h1centercontent/h1
OBJECT CLASSID=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
 WIDTH=595
 HEIGHT=841
 
CODEBASE=http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0;
  PARAM NAME=MOVIE VALUE=hartmut-talk.swf
  PARAM NAME=PLAY VALUE=true
  PARAM NAME=LOOP VALUE=true
  PARAM NAME=QUALITY VALUE=high
  EMBED SRC=hartmut-talk.swf WIDTH=800 HEIGHT=600
   PLAY=true ALIGN= LOOP=true QUALITY=high
   TYPE=application/x-shockwave-flash
   PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
  /EMBED
/OBJECT
/div
/body
/html
---


 http://www.matexhu.org/eurotex2006/lectures/pdftex/
Yes, also pdfs on luatex are  good candidate to swf-lizations.

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


Re: [NTG-context] EUROTEX2006 - hartmut-talk.pdf -

2006-12-20 Thread Peter Rolf
luigi scarso wrote:
 really nice work (except the positioning of the two buttons) :)
 if you download swftools and compile it, you will find
 HOWTO_pdf2swf andinside it
 $ pdf2swf -bl -o hartmut-talk.swf hartmut-talk.pdf
 do all work;
 after that I use
 
 !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN
 DTD/xhtml1-transitional.dtd
 htmlheadtitle/title
 
 /headbody
 div id=centercontent
   h1centercontent/h1
 OBJECT CLASSID=clsid:D27CDB6E-AE6D-11cf-96B8-44455354
  WIDTH=595
  HEIGHT=841
  
 CODEBASE=http://active.macromedia.com/flash5/cabs/swflash.cab#version=5,0,0,0;
   PARAM NAME=MOVIE VALUE=hartmut-talk.swf
   PARAM NAME=PLAY VALUE=true
   PARAM NAME=LOOP VALUE=true
   PARAM NAME=QUALITY VALUE=high
   EMBED SRC=hartmut-talk.swf WIDTH=800 HEIGHT=600
PLAY=true ALIGN= LOOP=true QUALITY=high
TYPE=application/x-shockwave-flash
PLUGINSPAGE=http://www.macromedia.com/go/getflashplayer;
   /EMBED
 /OBJECT
 /div
 /body
 /html
 ---
 
 
 http://www.matexhu.org/eurotex2006/lectures/pdftex/
 Yes, also pdfs on luatex are  good candidate to swf-lizations.
 
 luigi
 ___
 ntg-context mailing list
 ntg-context@ntg.nl
 http://www.ntg.nl/mailman/listinfo/ntg-context


ah, thats the magic behind it (i wasn't aware of these tools).
this looks promising.. an easy way to get pdf in the web. opera can even
scale the output (no success with firefox). and in comparison to
apparition, it doesn't make itself the default pdf viewer (which makes
testing annoying).

again thanks for the info. :)

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


Re: [NTG-context] Context - Tex

2006-12-20 Thread Wolfgang Schuster
On Wed, 20 Dec 2006 07:26:00 -0700
Paul Jones [EMAIL PROTECTED] wrote:

Hi Paul,

 Hello,
 
 Is there some way that I can convert my context file into tex?  I am
 just pondering how much faster running straight tex through pdftex
 would be than using context.  Is there some way to run it through
 texexec and get tex out of it instead of a pdf/dvi?  Or are there
 stats about this kind of thing somewhere that I can lookup?
 
 Thanks,
 paul

You can load only the format files from context and it will run faster
than the ruby and perl version. I can do this on my machine with
\type{pdftex -fmt=cont-en myfile} but this produce dvi-files and you
will never get a table of contents or any else index, because they are
created with the ruby and perl scripts.

What do you mean by creating a tex file, ConTeXt files are normally
always tex-files or do you mean plain or low level TeX.

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


Re: [NTG-context] Context - Tex

2006-12-20 Thread Taco Hoekwater

Hi,

Wolfgang Schuster wrote:
 
 What do you mean by creating a tex file, ConTeXt files are normally
 always tex-files or do you mean plain or low level TeX.

Generally speaking, a low-level tex file that does the same as
context does will have to be undistinguisable from context and
therefore will run at the same speed.

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


Re: [NTG-context] pb inserting multipage documents

2006-12-20 Thread Aditya Mahajan
On Wed, 20 Dec 2006, olivier Turlier wrote:

 Hi everybody,

 I'm experiencing pb with the latest stable version : insertion of
 multipage external document leads to the rendering of only the first
 page, with this command :

 \getfiguredimensions[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf]
 \dorecurse{\noffigurepages}{\externalfigure[doc-guidecstb-sol-tecnic-rt2000-gobck.pdf]
 [width=\textwidth,height=\textheight][page=\recurselevel]}

Try

\copypages[filename][width=\textwidth,height=\textheight]

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


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Frank Küster
Taco Hoekwater [EMAIL PROTECTED] wrote:

 Everything in (the current versions of) cont-ext, cont-fmt and cont-img
 is either GPLv2 or Public Domain.

Well, the interesting question is what is what?  It's quite important
to not handle a GPL'ed file as if it was Public Domain.

 Is there any chance to get a statement of them beign DFSG compatible?
 Otherwise I have to exclude some of it and put it into something like
 context-nonfree.

 BTW, as you are also one of the luatex people, same problem exists for
 luatex which I am also packaging.

 Please, please don't do that. The snapshots are bug-ridden and totally
 experimental. In this stage, we much prefer having only testers that
 know how to deal with unstable software.

I have no opinion about this particular case, but if we only upload it
to Debian experimental, we can expect its users to be able to deal with
unstable and totally broken software.

Regards, Frank
-- 
Dr. Frank Küster
Single Molecule Spectroscopy, Protein Folding @ Inst. f. Biochemie, Univ. Zürich
Debian Developer (teTeX/TeXLive)
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context


Re: [NTG-context] new debian context, upload to Debian

2006-12-20 Thread Hans Hagen
Norbert Preining wrote:
 On Mit, 20 Dez 2006, Taco Hoekwater wrote:
   
 BTW, as you are also one of the luatex people, same problem exists for
 luatex which I am also packaging.
   
 Please, please don't do that. The snapshots are bug-ridden and totally
 experimental. In this stage, we much prefer having only testers that
 know how to deal with unstable software.
 

 I forgot to say: If you or the team have strong feelings *against* a
 packaged version, even if it is accompanied by big warnings etc, let us
 know, we can also forget about the packaging for now.

   

taco's remark only concerns luatex binaries; these are on and off 
stable; for instance the new file io part is rather ok now, but 
currently taco is redoing much of the font part; somewhere mid 2007 
there will be the first more or less beta version, and around tug 2007 
there will be the first formal beta release; this means that upto then, 
checked in versions can be rather unstable; concerning context:  we use 
context for torture testing luatex (related context code is versioned as 
'mkiv code' but is not yet distributed) but this testing does not 
influence (much) the current context distribution (mkii code)

so, no need to worry -)

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] new debian context, upload to Debian

2006-12-20 Thread Hans Hagen
Norbert Preining wrote:

 I know, I will call the package
   luatex-snapshot
 upload it to experimental, and people will get a warning about its
 usage. It is ok this way, not many people will get it from experimental
 anyway, but I want to have it around for testing, and better early
 adoption then late work.
   
ok, for the sake if testing integration, compilation, etc, making a 
debian package makes sense; as long as you add some 'no support 
whatsoever' clause

(btw, is may also help if lua is installed as part of the system 
utilities; it's small so ...)

just for fun: you can use luatex as lua interpreter:

  luatex --lua somescript.lua

with somescript.lua being

  print(I'm LuaTeX!)

is a nice testcase.
 The point is that there are people who don't want to compile things but
 still are able to test stuff. For those luatex-snapshot pacakged will
 serve, too (and for me, because I don't want to have packages not under
 package management control on my system ;-)
   
ok

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


[NTG-context] Context style macros for metapost

2006-12-20 Thread Aditya Mahajan
Hi,
  There are certain things that I do not like about metapost (it is not 
possible to specify drawoptions and filloptions separately, it lacks 
some of the features of tikz, etc.) and I was playing around trying to 
implement them. Being used to the ConTeXt way of things, I wanted to 
write macros in metapost the same way (define setup etc.) This 
is my first attempt --- a replacement for dashpattern macro.

delimiters [[ ]] ;

def definedash suffix @# =
   [EMAIL PROTECTED]
enddef ;

vardef [EMAIL PROTECTED] t]] =
   save on, off, w ;
   let on  = _on_  ;
   let off = _off_ ;
   w   = 0 ;
   picture @#  ;
   @# := nullpicture t
enddef ;

definedash
 [[myeven]]
 [[on 3 off 3]] ;

beginfig(1)
   draw (0,0)--(100,100) dashed myeven ;
endfig ;
end;

Is there a better way to do this in metapost?

Aditya

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


Re: [NTG-context] Something about vertical Chinese typesetting

2006-12-20 Thread Zhichu Chen
Thank you very much Wolfgang, although this is not exactly what I
want, your help still gives me some important hints. I guess I should
do it myself.

By the way, no offending, are you german? I've seen many german guys
insterested in Chinese. And the CJK package for LaTeX is designed by
Werner Lemberg who is german too.

On 12/20/06, Wolfgang Schuster [EMAIL PROTECTED] wrote:
 On Mon, 18 Dec 2006 19:02:43 +0800
 Zhichu Chen [EMAIL PROTECTED] wrote:

 Hi Zhichu Chen,

  Dear Texers,
 
  I am typesetting some traditional Chinese articles. They are
  typesetted in vertical, and the reading order is from right to left.
  This can be done by Hans' \startvertical . . . \stopvertical pair. But
  as shown in the attached file, there are some famous notes,
  descriptions and explanations to these articles. The traditional way,
  in Chinese, to typeset these notes is rather to insert them in some
  small fonts (say, half size of the \bodyfontsize) right below the word
  to be explained, than to use footnotes which is common in English.
 
  I've tried some ways, e.g., use \startcolumnsetspan . . .
  \stopcolumnsetspan to put the body text across the note text, but all
  failed.
 
  Can anyone give me some clue?
 

 I dont't how the result you wanted looks exactlxy but I hope my
 attached example file helps you.

 To give you a better results give us a specification about the rules
 how the explanations should be written.

 Can you also take a look at the following pages if there is what you
 want as result:

 - http://www.w3.org/TR/ruby/
 - http://www.w3.org/International/questions/qa-ruby
 - http://www.w3.org/International/tutorials/ruby/
 - http://www.w3.org/TR/css3-ruby/

 Wolfgang


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






-- 
Sincerely yours,
Chen


  Zhi-chu Chen | Shanghai Synchrotron Radiation Facility
 No. 2019 | Jialuo Rd. | Jiading | Shanghai | P.R. China
 tel: 086 21 5955 3405 | zhichu.chen.googlepages.com
   | www.sinap.ac.cn

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


[NTG-context] \hairline in the header and column rule

2006-12-20 Thread Dalyoung Jeong

Dear all,

I'd like to ask about drawing a line in the header and a line between  
columns.


1)I'd like to add hairlines in the header using before and after in  
\setupheader, but the lines was drawn from the leftend of the  
leftmargin with the textwidth only. So, there is no line at the right  
end of the header. How to make the lines start from the left end of  
the text area?


2) I setup [rule=on] in column setup, but the length of the line  
depends on the length of the text. How to draw the separation line  
from the top to bottom?


Thank you for reading.
Regards

Dalyoung


Here is the code and output.
***
\setupheader[][before=\hairline, after=\hairline]
\setupheadertexts[][text for the header]

\setuppagenumbering[location=footer]

\starttext
\startcolumns[rule=on, n=2]

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


Re: [NTG-context] \hairline in the header and column rule

2006-12-20 Thread Aditya Mahajan
On Thu, 21 Dec 2006, Dalyoung Jeong wrote:

 Dear all,
 
 I'd like to ask about drawing a line in the header and a line between 
 columns.
 
 1)I'd like to add hairlines in the header using before and after in 
 \setupheader, but the lines was drawn from the leftend of the 
 leftmargin with the textwidth only. So, there is no line at the right 
 end of the header. How to make the lines start from the left end of 
 the text area?

\setupbackgrounds[header][text][bottomframe=on,topframe=on]


 2) I setup [rule=on] in column setup, but the length of the line 
 depends on the length of the text. How to draw the separation line 
 from the top to bottom?

Doesn't rule=on do that?

\startcolumns[rule=on, n=2]
\input knuth
\stopcolumns

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