ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Again: "hanging" for a lot of paragraphs?
@ 2004-02-18 20:55 Steffen Wolfrum
  2004-02-18 21:19 ` Patrick Gundlach
  2004-02-19 17:10 ` Hans Hagen
  0 siblings, 2 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2004-02-18 20:55 UTC (permalink / raw)


Hi friends,

there are for sure more sophisticated and more urgent problems,
but my question to me is really a big problem.

Isn't there anybody that knows a command or a work-around that could help?


Thank you very much,

Steffen



Steffen Wolfrum <st.wolfrum@estfiles.de> wrote:

> Hi,
> 
> I know there is \starthanging xxxx \stophanging and \hangafter=1 \hangindent=1em xxxx.
> Both commands need to be added to each affected paragraph again and again, right?
> 
> Is there a way to have this hanging first line for a series of paragraphs - with just a kind of 
> 
> 
> \starthangingarea
> 
> aaaaaa
> 
> bbbbbb
> 
> cccccc
> 
> \stophangingarea
> 
> 
> 
> In cases like bibliographies and alike this would speed up work a lot!!
> 
> Thank you very much,
> 
> Steffen Wolfrum
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Again: "hanging" for a lot of paragraphs?
  2004-02-18 20:55 Again: "hanging" for a lot of paragraphs? Steffen Wolfrum
@ 2004-02-18 21:19 ` Patrick Gundlach
  2004-02-19 17:10 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Patrick Gundlach @ 2004-02-18 21:19 UTC (permalink / raw)


Hi,

Very quick hack:

\starttext
\def\hangover{\hangafter=1\hangindent=1em }% sorry for the stupid macro name

\definestartstop[hangingarea]
     [before={\bgroup\appendtoks\hangover\to\everypar},
      after=\egroup]

\starthangingarea
\input tufte

\input tufte 

\stophangingarea

\input tufte
\stoptext



Patrick

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Again: "hanging" for a lot of paragraphs?
  2004-02-18 20:55 Again: "hanging" for a lot of paragraphs? Steffen Wolfrum
  2004-02-18 21:19 ` Patrick Gundlach
@ 2004-02-19 17:10 ` Hans Hagen
  1 sibling, 0 replies; 6+ messages in thread
From: Hans Hagen @ 2004-02-19 17:10 UTC (permalink / raw)


At 21:55 18/02/2004, you wrote:
>Hi friends,
>
>there are for sure more sophisticated and more urgent problems,
>but my question to me is really a big problem.
>
>Isn't there anybody that knows a command or a work-around that could help?

Hm, for some time there is a secret feature in cont-new.tex which i still 
have to finish:

\starttext

\start
   \setupparagraphintro[reset,first][\hangafter-2 \hangindent2em FIRST]
   \input ward \blank \input ward \blank
   \input ward \blank \input ward \blank
\stop

\page

\start
   \setupparagraphintro[reset,next][\hangafter-2 \hangindent2em NEXT]
   \input ward \blank \input ward \blank
   \input ward \blank \input ward \blank
\stop

\page

\start
   \setupparagraphintro[reset,each][\hangafter-2 \hangindent2em EACH]
   \input ward \blank \input ward \blank
   \input ward \blank \input ward \blank
\stop

\stoptext

The next option only works when you have the following patch in 
cont-new.tex (Search for original):

\def\dosetupparagraphintro[#1][#2]%
   {\processallactionsinset
      [#1]
      [   \v!reset=>\global\chardef\everyparagraphintro\zerocount
                    \global\everyfirstparagraphintro\emptytoks
                    \global\everynextparagraphintro \emptytoks,
         \v!eerste=>\global\chardef\everyparagraphintro\plusone
                    \doglobal\appendtoks#2\to\everyfirstparagraphintro,
       \v!volgende=>\ifcase\everyparagraphintro\global\chardef\everyparagraphintro\plusone\fi
                    \doglobal\appendtoks#2\to\everynextparagraphintro,
            \v!elk=>\ifcase\everyparagraphintro\global\chardef\everyparagraphintro\plustwo\fi
                    \doglobal\appendtoks#2\to\everyfirstparagraphintro
                    \doglobal\appendtoks#2\to\everynextparagraphintro]}

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Again: "hanging" for a lot of paragraphs?
@ 2004-02-20 12:27 Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2004-02-20 12:27 UTC (permalink / raw)


Hans Hagen <pragma@wxs.nl> wrote:

> At 10:45 20/02/2004, you wrote:
> >"a secret feature" - great!
> >
> >So, sometimes it really is worthwhile to ask the same question twice :o)
> 
> well, that way you learn more tricks on the way


Yes, that's right. Those quick hacks on the way are often surprising little lectures. 


> >By the way: Any news from the placefigure-cookery?
> 
> no
> 
> Hans  


Hm, that's a pity. But I keep on asking for it if you don't mind?

Steffen

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Again: "hanging" for a lot of paragraphs?
@ 2004-02-20  9:45 Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2004-02-20  9:45 UTC (permalink / raw)


"a secret feature" - great!

So, sometimes it really is worthwhile to ask the same question twice :o)


Thank you very much Hans 


Steffen

By the way: Any news from the placefigure-cookery?



Hans Hagen <pragma@wxs.nl> wrote:

> At 21:55 18/02/2004, you wrote:
> >Hi friends,
> >
> >there are for sure more sophisticated and more urgent problems,
> >but my question to me is really a big problem.
> >
> >Isn't there anybody that knows a command or a work-around that could help?
> 
> Hm, for some time there is a secret feature in cont-new.tex which i still 
> have to finish:
> 
> \starttext
> 
> \start
>    \setupparagraphintro[reset,first][\hangafter-2 \hangindent2em FIRST]
>    \input ward \blank \input ward \blank
>    \input ward \blank \input ward \blank
> \stop
> 
> \page
> 
> \start
>    \setupparagraphintro[reset,next][\hangafter-2 \hangindent2em NEXT]
>    \input ward \blank \input ward \blank
>    \input ward \blank \input ward \blank
> \stop
> 
> \page
> 
> \start
>    \setupparagraphintro[reset,each][\hangafter-2 \hangindent2em EACH]
>    \input ward \blank \input ward \blank
>    \input ward \blank \input ward \blank
> \stop
> 
> \stoptext
> 
> The next option only works when you have the following patch in 
> cont-new.tex (Search for original):
> 
> \def\dosetupparagraphintro[#1][#2]%
>    {\processallactionsinset
>       [#1]
>       [   \v!reset=>\global\chardef\everyparagraphintro\zerocount
>                     \global\everyfirstparagraphintro\emptytoks
>                     \global\everynextparagraphintro \emptytoks,
>          \v!eerste=>\global\chardef\everyparagraphintro\plusone
>                     \doglobal\appendtoks#2\to\everyfirstparagraphintro,
>        \v!volgende=>\ifcase\everyparagraphintro\global\chardef\everyparagraphintro\plusone\fi
>                     \doglobal\appendtoks#2\to\everynextparagraphintro,
>             \v!elk=>\ifcase\everyparagraphintro\global\chardef\everyparagraphintro\plustwo\fi
>                     \doglobal\appendtoks#2\to\everyfirstparagraphintro
>                     \doglobal\appendtoks#2\to\everynextparagraphintro]}
> 
> 
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Again: "hanging" for a lot of paragraphs?
@ 2004-02-18 21:53 Steffen Wolfrum
  0 siblings, 0 replies; 6+ messages in thread
From: Steffen Wolfrum @ 2004-02-18 21:53 UTC (permalink / raw)


Hi Patrick,

this indeed was a VERY quick hack!
But just was I was looking for.

Once again thank you very much for you help,

Steffen



Patrick Gundlach <pg@levana.de> wrote:

> Hi,
> 
> Very quick hack:
> 
> \starttext
> \def\hangover{\hangafter=1\hangindent=1em }% sorry for the stupid macro name
> 
> \definestartstop[hangingarea]
>      [before={\bgroup\appendtoks\hangover\to\everypar},
>       after=\egroup]
> 
> \starthangingarea
> \input tufte
> 
> \input tufte 
> 
> \stophangingarea
> 
> \input tufte
> \stoptext
> 
> 
> 
> Patrick
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-02-20 12:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-02-18 20:55 Again: "hanging" for a lot of paragraphs? Steffen Wolfrum
2004-02-18 21:19 ` Patrick Gundlach
2004-02-19 17:10 ` Hans Hagen
2004-02-18 21:53 Steffen Wolfrum
2004-02-20  9:45 Steffen Wolfrum
2004-02-20 12:27 Steffen Wolfrum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).