Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-24 Thread Zhichu Chen
Hi Hans, Thank you and thank Aditya for helping me so much. Your codes are OK with some small test files. But in my file, pdftex just hang up. I used page arrangement, and pop 26 sub-pages (\box255 or something) onto a pdf page, and pdftex refuse to go on when the log shows that the 14th page

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-23 Thread Aditya Mahajan
On Mon, 23 Apr 2007, Zhichu Chen wrote: Hi, Aditya I've made another definition, the output is OK, with some errors. Can you tell me what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]% \let\par\normalpar} or \everypar{% \begingroup

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-23 Thread Hans Hagen
Aditya Mahajan wrote: On Mon, 23 Apr 2007, Zhichu Chen wrote: Hi, Aditya I've made another definition, the output is OK, with some errors. Can you tell me what's wrong? Here is a more robust solution \everypar{% \let\normalpar\par% \let\par\donothing% \page[yes]%

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-21 Thread Zhichu Chen
Thanks Hans, your code is fine too. On 4/20/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi Aditya, Thank you for pointing out my foolish mistake. Remember that this only works if each paragraph is a single line. See the output of \starttext

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-20 Thread Hans Hagen
Aditya Mahajan wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi everybody, = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me how to make it? This seems to work for me: \starttext \catcode`\^^M=\active

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-20 Thread Aditya Mahajan
On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi Aditya, Thank you for pointing out my foolish mistake. Remember that this only works if each paragraph is a single line. See the output of \starttext \catcode`\^^M=\active \def^^M{\page[yes]} \input knuth \stoptext Aditya On 4/20/07, Aditya

[NTG-context] Basic TeX question, how to redefine ^^M

2007-04-19 Thread Zhichu Chen
Hi everybody, I want to insert some special thing between every paragraph, e.g., I'd like to make each paragraph on seperated pages. Then I use: = \appendtoks\feedcurrentpage\to\everypar \def\feedcurrentpage{\page[yes]} = and ConTeXt

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-19 Thread Aditya Mahajan
On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi everybody, = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me how to make it? This seems to work for me: \starttext \catcode`\^^M=\active \def^^M{\page[yes]} This Test

Re: [NTG-context] Basic TeX question, how to redefine ^^M

2007-04-19 Thread Zhichu Chen
Hi Aditya, Thank you for pointing out my foolish mistake. On 4/20/07, Aditya Mahajan [EMAIL PROTECTED] wrote: On Fri, 20 Apr 2007, Zhichu Chen wrote: Hi everybody, = \def\^^M{\endgraf\page[yes]} = nothing happened. So I'm lost. Can you tell me