ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* itemize + fill-in lines, (fancy and normal) lines, statistics output object
@ 2000-01-06 18:16 Tobias Burnus
  2000-01-07 12:52 ` Hans Hagen
  2000-01-07 12:57 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Tobias Burnus @ 2000-01-06 18:16 UTC (permalink / raw)


Hi,

how can I have vertical space before the `2.' item, but not before the second
internal/nested itemize?

Second: I know there is somewhere a \command to draw lines (in the hight of the
base line) with a certain length. {as substitution for \MinDauer}

-------------------
\def\MinDauer{\hfill\underbar{~~~~~} min}

\startitemize[n]
\item Welche Hilfsmittel waren zur Benutzung w\"ahrend der Klausur erlaubt?
     \startitemize[2,packed,joinedup]
     \item Taschenrechner
     \stopitemize
     {\em Sonstige Hilfmittel bitte in den Kommentaren erw\"ahnen.}
\item Wie lange war die Bearbeitungsdauer?\MinDauer
\stopitemize

\end
-------------------

Two things more:
I have a LaTeX `style' which takes seven arguments which is uses to print
something like this

+---+--+--+--+--+--+--+--+------+
| 1 |####### |  |  |  |  |      |
| 2 |############  |  |  | .O'  |   
| 3 |#####|  |  |  |  |  | 2.1  |  
| 4 |###  |  |  |  |  |  |      |
| 5 |  |  |  |  |  |  |  |      |
| 0 |################ |  |      |
+---+--+--+--+--+--+--+--+------+

(Example available at: http://uuhome.de/tobias.burnus/test.dvi, 7212 bytes)

which is automatical and iteractively created.
(The tex file asks for userinput, which is done using the a `< pipe'.
Now I want to create something, which looks similar (or identical) in ConTeXt
(It may use MP but it shouldn't slow down too much, and yes it can be fancy).

Is it possible to created  something like a ``Englische Line'' (sorry I don't
know the English term); it is a line, which is thicker in the middle than on the
edges:

                    ---------------
------------========---------------========------------
                    ---------------


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

* Re: itemize + fill-in lines, (fancy and normal) lines, statistics output object
  2000-01-06 18:16 itemize + fill-in lines, (fancy and normal) lines, statistics output object Tobias Burnus
@ 2000-01-07 12:52 ` Hans Hagen
  2000-01-07 12:57 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-01-07 12:52 UTC (permalink / raw)
  Cc: NTG-ConTeXt

At 07:16 PM 1/6/2000 +0100, Tobias Burnus wrote:

>how can I have vertical space before the `2.' item, but not before the second
>internal/nested itemize?

I admit that this is not trivial, so I added it as an option, instead of
forcing you to fool around with settings. 

\startitemize[n,joinedup]
\item A nested one:
      \startitemize
      \item alpha
      \item beta
      \stopitemize
\item A second one.
\stopitemize

\startitemize[n,paragraph]
\item A nested one:
      \startitemize
      \item alpha
      \item beta
      \stopitemize
\item A second one.
\stopitemize

You have to pickup the beta (from the 'private' taskforce page, you can
also pickup an revision control archive). 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.nl
-----------------------------------------------------------------


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

* Re: itemize + fill-in lines, (fancy and normal) lines, statistics output object
  2000-01-06 18:16 itemize + fill-in lines, (fancy and normal) lines, statistics output object Tobias Burnus
  2000-01-07 12:52 ` Hans Hagen
@ 2000-01-07 12:57 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2000-01-07 12:57 UTC (permalink / raw)
  Cc: NTG-ConTeXt

>Second: I know there is somewhere a \command to draw lines (in the hight
of the
>base line) with a certain length. {as substitution for \MinDauer}

take a look in core-rul.tex  

>Is it possible to created  something like a ``Englische Line'' (sorry I don't
>know the English term); it is a line, which is thicker in the middle than
on the
>edges:
>
>                    ---------------
>------------========---------------========------------
>                    ---------------

I suppose you're joking? So, let's make it into a small lesson on MP
integration. Pretty efficient btw, if you use pdftex. 

% interface=en output=pdftex

\def\EnglishHRule%
  {\setlocalhsize
   \startreusableMPgraphic{EnglishLine:\the\localhsize}
     height = \the\linewidth ;
     x1 = 0 ; x3 = \the\localhsize ; x2 = x4 = .5x3 ;
     y1 = y3 = 0 ; y2 = -y4 = 2.5height ;
     pickup pencircle scaled height ;
     fill z1..z2..z3 & z3..z4..z1 & cycle ;
   \stopreusableMPgraphic
   \noindent\reuseMPgraphic{EnglishLine:\the\localhsize}}

\def\EnglishRule%
  {\startlinecorrection
   \EnglishHRule
   \stoplinecorrection}

\starttext

This kind of fancy stuff is not that hard to do in \CONTEXT,
given that you know a bit about \METAPOST\ support.

\EnglishRule

Why is this called an english line?

\startnarrower
  \EnglishRule
   Is it because they cannot draw a straight one? \par
  \EnglishRule
\stopnarrower

Then, how do germans draw a line?

\EnglishRule

\stoptext

Anyhow, it makes a nice example for the manual. I can package such things
in a mp archive file. 

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.nl
-----------------------------------------------------------------


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

end of thread, other threads:[~2000-01-07 12:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-01-06 18:16 itemize + fill-in lines, (fancy and normal) lines, statistics output object Tobias Burnus
2000-01-07 12:52 ` Hans Hagen
2000-01-07 12:57 ` Hans Hagen

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).