* verbatim problem
@ 2004-04-22 18:59 Severin Obertüfer
2004-04-22 19:51 ` Willi Egger
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Severin Obertüfer @ 2004-04-22 18:59 UTC (permalink / raw)
[-- Attachment #1: Type: text/plain, Size: 936 bytes --]
hello
i have a little verbatim problem
i used the \startEIFFEL \stopEIFFEL verbatim environment in a verry simple
way like this:
\startEIFFEL
class
DEQUE [G]
inherit
DOUBLE_LINKED_LIST[G]
rename
extend as insertRight,
prepend as insertLeft
end
create
make, make_empty
feature -- Access
-- and so on
\stopEIFFEL
now i wanted to make this things a bit more useful and flexible.
i thougt of something like this
\startEIFFEL
\input deque
\stopEIFFEL
but of corse the keyword input is normal text in verbatim mode... :)
is there a simple solution for that, for example like this
\startEIFFEL
\specialcommand{\input deque}
\stopEIFFEL
???
by the way : can i give as to the inputcommand a argument like this:
\input D:\Files\ETH\Eiffel\deque.e
where "deque.e" is a normal eiffel source file....
thanks for an answer
mfg
severin
[-- Attachment #2: Type: text/html, Size: 5111 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: verbatim problem
2004-04-22 18:59 verbatim problem Severin Obertüfer
@ 2004-04-22 19:51 ` Willi Egger
2004-04-22 20:02 ` AW: " Severin Obertüfer
2004-04-22 20:43 ` Tobias Burnus
2004-04-27 17:53 ` John Culleton
2 siblings, 1 reply; 10+ messages in thread
From: Willi Egger @ 2004-04-22 19:51 UTC (permalink / raw)
Hi,
Did you think of putting the information into a buffer and put the
contents in your document with \typebuffer?
Kind regards Willi
Severin Obertüfer wrote:
> hello
>
> i have a little verbatim problem
>
> i used the \startEIFFEL \stopEIFFEL verbatim environment in a verry simple
> way like this:
>
> \startEIFFEL
> class
> DEQUE [G]
>
> inherit
> DOUBLE_LINKED_LIST[G]
> rename
> extend as insertRight,
> prepend as insertLeft
> end
> create
> make, make_empty
>
> feature -- Access
>
> -- and so on
>
> \stopEIFFEL
>
> now i wanted to make this things a bit more useful and flexible.
>
> i thougt of something like this
>
> \startEIFFEL
> \input deque
> \stopEIFFEL
>
> but of corse the keyword input is normal text in verbatim mode... :)
> is there a simple solution for that, for example like this
>
> \startEIFFEL
> \specialcommand{\input deque}
> \stopEIFFEL
> ???
>
> by the way : can i give as to the inputcommand a argument like this:
>
> \input D:\Files\ETH\Eiffel\deque.e
>
> where "deque.e" is a normal eiffel source file....
>
> thanks for an answer
>
> mfg
>
> severin
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* AW: verbatim problem
2004-04-22 19:51 ` Willi Egger
@ 2004-04-22 20:02 ` Severin Obertüfer
2004-04-22 20:46 ` Tobias Burnus
0 siblings, 1 reply; 10+ messages in thread
From: Severin Obertüfer @ 2004-04-22 20:02 UTC (permalink / raw)
> -----Ursprüngliche Nachricht-----
> Von: ntg-context-admin@ntg.nl
> [mailto:ntg-context-admin@ntg.nl] Im Auftrag von Willi Egger
> Gesendet: Donnerstag, 22. April 2004 21:51
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] verbatim problem
>
> Hi,
>
> Did you think of putting the information into a buffer and
> put the contents in your document with \typebuffer?
hi,
Yes, exacly something like that.
for example
\startbuffer [deque]
class
DEQUE [G]
inherit
DOUBLE_LINKED_LIST[G]
rename
extend as insertRight,
prepend as insertLeft
end
\stopbuffer
\startEIFFEL
\typebuffer[deque]
\stopEIFFEL
greetings
severin
>
> Kind regards Willi
>
> Severin Obertüfer wrote:
>
> > hello
> >
> > i have a little verbatim problem
> >
> > i used the \startEIFFEL \stopEIFFEL verbatim environment in a verry
> > simple way like this:
> >
> > \startEIFFEL
> > class
> > DEQUE [G]
> >
> > inherit
> > DOUBLE_LINKED_LIST[G]
> > rename
> > extend as insertRight,
> > prepend as insertLeft
> > end
> > create
> > make, make_empty
> >
> > feature -- Access
> >
> > -- and so on
> >
> > \stopEIFFEL
> >
> > now i wanted to make this things a bit more useful and flexible.
> >
> > i thougt of something like this
> >
> > \startEIFFEL
> > \input deque
> > \stopEIFFEL
> >
> > but of corse the keyword input is normal text in verbatim
> mode... :)
> > is there a simple solution for that, for example like this
> >
> > \startEIFFEL
> > \specialcommand{\input deque}
> > \stopEIFFEL
> > ???
> >
> > by the way : can i give as to the inputcommand a argument like this:
> >
> > \input D:\Files\ETH\Eiffel\deque.e
> >
> > where "deque.e" is a normal eiffel source file....
> >
> > thanks for an answer
> >
> > mfg
> >
> > severin
> >
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: verbatim problem
2004-04-22 18:59 verbatim problem Severin Obertüfer
2004-04-22 19:51 ` Willi Egger
@ 2004-04-22 20:43 ` Tobias Burnus
2004-04-27 17:53 ` John Culleton
2 siblings, 0 replies; 10+ messages in thread
From: Tobias Burnus @ 2004-04-22 20:43 UTC (permalink / raw)
Hello,
Severin Obertüfer wrote:
> <> i have a little verbatim problem <>
> <>now i wanted to make this things a bit more useful and flexible.
> i thougt of something like this
> <>\startEIFFEL
> \input deque
> \stopEIFFEL
> but of corse the keyword input is normal text in verbatim mode... :)
> is there a simple solution for that, for example like this
I use:
\typefile[TEX]{bar.tex}
sucessfully, therefore
\typefile[EIFEL]{deque.e}
should work.
Regards,
Tobias
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: AW: verbatim problem
2004-04-22 20:02 ` AW: " Severin Obertüfer
@ 2004-04-22 20:46 ` Tobias Burnus
2004-04-29 19:44 ` AW: " Severin Obertüfer
0 siblings, 1 reply; 10+ messages in thread
From: Tobias Burnus @ 2004-04-22 20:46 UTC (permalink / raw)
Hello again,
Severin Obertüfer wrote:
>>Did you think of putting the information into a buffer and
>>put the contents in your document with \typebuffer?
>>
>>
>\startbuffer [deque]
>[...]
>\stopbuffer
>
>\startEIFFEL
> \typebuffer[deque]
>\stopEIFFEL
>
>
I thought you ment a file, for a buffer one can use, analogously,
\typebuffer[EIFFEL][deque]
Regards,
Tobias
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: verbatim problem
2004-04-27 17:53 ` John Culleton
@ 2004-04-27 13:29 ` Willi Egger
2004-04-28 0:25 ` John Culleton
2004-04-29 19:55 ` AW: " Severin Obertüfer
1 sibling, 1 reply; 10+ messages in thread
From: Willi Egger @ 2004-04-27 13:29 UTC (permalink / raw)
Hi,
may be I do not get it correctly, but there is a command \startlines ...
\stoplines.
Willi
John Culleton wrote:
> On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote:
>
>>hello
>>
>>i have a little verbatim problem
>>
>>i used the \startEIFFEL \stopEIFFEL verbatim environment
>>in a verry simple way like this:
>
>
> Similarly I needed to have the program obey line breaks as
> in \obeylines but interpet the lines (font changes etc.) in
> the usual way. I did not want space left between lines.
> Neither the plain TeX nor the Context solutions fit this
> purpose exactly, but plain was closer. So I cobbled up this
> code:
> \def\startobey{\medskip\setupwhitespace[none]\obeylines}
> \def\stopobey{\setupwhitespace[small] \medskip}
>
> I start the section needing verbatim line endings with
> {\startobey
> .... and end it with
> \stopobey}
>
> I don't know if the braces are necessary but the TeXBook
> seems to imply such.
>
> My solution tends to ignore blank lines so I have to put a
> \medskip instead of a blank line.
>
> This is a terrible solution but the best I could come up
> with in a hurry. No doubt someone will suggest a better
> one.
>
> BTW whre is \startEIFFEL documented? I don't recall seeing
> it before.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: verbatim problem
2004-04-22 18:59 verbatim problem Severin Obertüfer
2004-04-22 19:51 ` Willi Egger
2004-04-22 20:43 ` Tobias Burnus
@ 2004-04-27 17:53 ` John Culleton
2004-04-27 13:29 ` Willi Egger
2004-04-29 19:55 ` AW: " Severin Obertüfer
2 siblings, 2 replies; 10+ messages in thread
From: John Culleton @ 2004-04-27 17:53 UTC (permalink / raw)
On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote:
> hello
>
> i have a little verbatim problem
>
> i used the \startEIFFEL \stopEIFFEL verbatim environment
> in a verry simple way like this:
Similarly I needed to have the program obey line breaks as
in \obeylines but interpet the lines (font changes etc.) in
the usual way. I did not want space left between lines.
Neither the plain TeX nor the Context solutions fit this
purpose exactly, but plain was closer. So I cobbled up this
code:
\def\startobey{\medskip\setupwhitespace[none]\obeylines}
\def\stopobey{\setupwhitespace[small] \medskip}
I start the section needing verbatim line endings with
{\startobey
.... and end it with
\stopobey}
I don't know if the braces are necessary but the TeXBook
seems to imply such.
My solution tends to ignore blank lines so I have to put a
\medskip instead of a blank line.
This is a terrible solution but the best I could come up
with in a hurry. No doubt someone will suggest a better
one.
BTW whre is \startEIFFEL documented? I don't recall seeing
it before.
--
John Culleton
Able Typesetters and Indexers
http://wexfordpress.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: verbatim problem
2004-04-27 13:29 ` Willi Egger
@ 2004-04-28 0:25 ` John Culleton
0 siblings, 0 replies; 10+ messages in thread
From: John Culleton @ 2004-04-28 0:25 UTC (permalink / raw)
On Tuesday 27 April 2004 03:29 am, Willi Egger wrote:
> Hi,
>
> may be I do not get it correctly, but there is a command
> \startlines ... \stoplines.
>
>
> Willi
That is just what I needed. I did not get it correctly you
see.
--
John Culleton
Able Typesetters and Indexers
http://wexfordpress.com
^ permalink raw reply [flat|nested] 10+ messages in thread
* AW: AW: verbatim problem
2004-04-22 20:46 ` Tobias Burnus
@ 2004-04-29 19:44 ` Severin Obertüfer
0 siblings, 0 replies; 10+ messages in thread
From: Severin Obertüfer @ 2004-04-29 19:44 UTC (permalink / raw)
thank you for your answers
the \typefile thing does work as expected, i can input my files directly
now.
\typefile[EIFFEL]{single_linked_list_cell.e}
\typebuffer does only work when i use it like this
\typebuffer[deque]
if I juse \typebuffer[EIFFEL][deque] instead the following text appears in
the resulting pdf-file "[file tmp-EIFFEL.tmp does not exist]"...
but that what i expected to do is possible with the \tpyefile command.
gruss
severin
> -----Ursprüngliche Nachricht-----
> Von: ntg-context-admin@ntg.nl
> [mailto:ntg-context-admin@ntg.nl] Im Auftrag von Tobias Burnus
> Gesendet: Donnerstag, 22. April 2004 22:46
> An: ntg-context@ntg.nl
> Betreff: Re: AW: [NTG-context] verbatim problem
>
> Hello again,
>
> Severin Obertüfer wrote:
>
> >>Did you think of putting the information into a buffer and put the
> >>contents in your document with \typebuffer?
> >>
> >>
> >\startbuffer [deque]
> >[...]
> >\stopbuffer
> >
> >\startEIFFEL
> > \typebuffer[deque]
> >\stopEIFFEL
> >
> >
> I thought you ment a file, for a buffer one can use, analogously,
> \typebuffer[EIFFEL][deque]
>
> Regards,
>
> Tobias
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* AW: verbatim problem
2004-04-27 17:53 ` John Culleton
2004-04-27 13:29 ` Willi Egger
@ 2004-04-29 19:55 ` Severin Obertüfer
1 sibling, 0 replies; 10+ messages in thread
From: Severin Obertüfer @ 2004-04-29 19:55 UTC (permalink / raw)
> -----Ursprüngliche Nachricht-----
> Von: ntg-context-admin@ntg.nl
> [mailto:ntg-context-admin@ntg.nl] Im Auftrag von John Culleton
> Gesendet: Dienstag, 27. April 2004 19:53
> An: ntg-context@ntg.nl; Severin Obertüfer
> Betreff: Re: [NTG-context] verbatim problem
>
> On Thursday 22 April 2004 08:59 am, Severin Obertüfer wrote:
> > hello
> >
> > i have a little verbatim problem
> >
> > i used the \startEIFFEL \stopEIFFEL verbatim environment in a verry
> > simple way like this:
>
> Similarly I needed to have the program obey line breaks as in
> \obeylines but interpet the lines (font changes etc.) in the
> usual way. I did not want space left between lines.
> Neither the plain TeX nor the Context solutions fit this
> purpose exactly, but plain was closer. So I cobbled up this
> code:
> \def\startobey{\medskip\setupwhitespace[none]\obeylines}
> \def\stopobey{\setupwhitespace[small] \medskip}
>
> I start the section needing verbatim line endings with
> {\startobey .... and end it with \stopobey}
>
> I don't know if the braces are necessary but the TeXBook
> seems to imply such.
>
> My solution tends to ignore blank lines so I have to put a
> \medskip instead of a blank line.
>
> This is a terrible solution but the best I could come up with
> in a hurry. No doubt someone will suggest a better one.
>
> BTW whre is \startEIFFEL documented? I don't recall seeing it
> before.
hi
there is the file "verb-eif.tex" in "texmf/tex/context/base" (under miktex)
otherwise i found no other documentation...
severin
> --
> John Culleton
> Able Typesetters and Indexers
> http://wexfordpress.com
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-04-29 19:55 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-22 18:59 verbatim problem Severin Obertüfer
2004-04-22 19:51 ` Willi Egger
2004-04-22 20:02 ` AW: " Severin Obertüfer
2004-04-22 20:46 ` Tobias Burnus
2004-04-29 19:44 ` AW: " Severin Obertüfer
2004-04-22 20:43 ` Tobias Burnus
2004-04-27 17:53 ` John Culleton
2004-04-27 13:29 ` Willi Egger
2004-04-28 0:25 ` John Culleton
2004-04-29 19:55 ` AW: " Severin Obertüfer
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).