Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wei-Wei Guo
Hi Wolfgang, I tried many ways, but could not make the following effect: Title Head: Here is text, blur blur blur blur blur blur --- blur blur blur blur --- I tried

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wolfgang Schuster
Am 08.04.2009 um 17:30 schrieb Wei-Wei Guo: Hi Wolfgang, I tried many ways, but could not make the following effect: Title Head: Here is text, blur blur blur blur blur blur --- blur blur blur blur

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-08 Thread Wei-Wei Guo
Thanks! The p solves my problem. Wei-Wei Wolfgang Schuster 写道: You can need a p column in table/tabulate. The wrong position of the line is a bug, make a bug report and use Li Yanruis fix for the moment. \definetextbackground [underline] [location=paragraph, alternative=1,

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-07 Thread Wolfgang Schuster
Am 07.04.2009 um 04:18 schrieb Yanrui Li: \definestartstop [underline] [before={\starttextbackground[underline]}, after=\stoptextbackground] You don't need this, \definetextbackground creates start/stopunderline itself. Wolfgang

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-07 Thread Wolfgang Schuster
Am 07.04.2009 um 03:00 schrieb Wei-Wei Guo: Wolfgang Schuster 写道: Am 06.04.2009 um 17:17 schrieb Wei-Wei Guo: Dear all, I need to draw underlines under a paragraph. The number of underlines is determined by the number of lines of the paragraph. For example: \definetextbackground

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Wolfgang Schuster
Am 06.04.2009 um 17:17 schrieb Wei-Wei Guo: Dear all, I need to draw underlines under a paragraph. The number of underlines is determined by the number of lines of the paragraph. For example: \definetextbackground [underline] [location=text, alternative=1, background=,

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Wei-Wei Guo
Wolfgang Schuster 写道: Am 06.04.2009 um 17:17 schrieb Wei-Wei Guo: Dear all, I need to draw underlines under a paragraph. The number of underlines is determined by the number of lines of the paragraph. For example: \definetextbackground [underline] [location=text, alternative=1,

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Yanrui Li
2009/4/7 Yanrui Li liyanrui...@gmail.com: Hi, May be this can help you. \startuseMPgraphic{mpos:par:columnset} % Shift underlining down a touch   \iftracepositions show_multi_pars \else draw_multi_pars \fi ;   path p ; p := boundingbox currentpicture ;   currentpicture :=

Re: [NTG-context] How to get the number of lines of a paragraph?

2009-04-06 Thread Wei-Wei Guo
It works, thanks! Can \startunderline be put into a table or a tabulate? I want to implement thing like this: \startbuffer[chinesetitle] \startunderline 基于成本的钉耙强度与应用——东方视角分析 \stopunderline \stopbuffer \startbuffer[englishtitle] \startunderline Cost Based Rake Strength