ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Anchoring layer
@ 2005-10-05 10:48 Thomas A. Schmitz
  2005-10-05 11:12 ` Peter Rolf
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas A. Schmitz @ 2005-10-05 10:48 UTC (permalink / raw)


I'm trying to write a module that will mimick the behavior of  
crop.sty in LaTeX (providing fancier cropmarks than the ones given by  
the ConTeXt \setuplayout command). I'm done with the code for the  
cropmarks, and this is working fine. Now I want to have a status line  
in between the two top marks. How can I give an absolute position for  
a layer that will put this line midaligned and exactly, say 0.5cm  
above the level of the upper corners of the page? What I tried so far  
is:
\composedlayer and something like \setlayer[y=2cm] - will only be on  
the first page, not repeated;
\framed - I can give the frame a height like 1.3\textheight, but then  
the position will not be fixed, but change with the textheight

I guess there must be a trivial solution, but I haven't found it yet...

Best

Thomas

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

* Re: Anchoring layer
  2005-10-05 10:48 Anchoring layer Thomas A. Schmitz
@ 2005-10-05 11:12 ` Peter Rolf
  2005-10-05 12:57   ` Thomas A. Schmitz
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Rolf @ 2005-10-05 11:12 UTC (permalink / raw)


Hi Thomas,

Thomas A. Schmitz wrote:
> I'm trying to write a module that will mimick the behavior of  crop.sty
> in LaTeX (providing fancier cropmarks than the ones given by  the
> ConTeXt \setuplayout command). I'm done with the code for the 
> cropmarks, and this is working fine. Now I want to have a status line 
> in between the two top marks. How can I give an absolute position for  a
> layer that will put this line midaligned and exactly, say 0.5cm  above
> the level of the upper corners of the page? What I tried so far  is:
> \composedlayer and something like \setlayer[y=2cm] - will only be on 
> the first page, not repeated;

\setuplayer[LAYERNAME][repeat=yes]

\setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}

x should be (CROPLeftX+CROPrightX)/2

not tested....


Greetings, Peter


> \framed - I can give the frame a height like 1.3\textheight, but then 
> the position will not be fixed, but change with the textheight
> 
> I guess there must be a trivial solution, but I haven't found it yet...
> 
> Best
> 
> Thomas
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

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

* Re: Anchoring layer
  2005-10-05 11:12 ` Peter Rolf
@ 2005-10-05 12:57   ` Thomas A. Schmitz
  2005-10-05 13:55     ` Peter Rolf
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas A. Schmitz @ 2005-10-05 12:57 UTC (permalink / raw)


Thanks for your suggestion, but I didn't get it to work. In the end,  
I had recourse to some low-level stuff (caution, ugly code ahead!):

\defineoverlay[info][{\getbuffer[info]}]

\setupbackgrounds[page][background={info}]


\startbuffer[info]
\vbox to \paperheight \bgroup
   \vskip -1 cm
    \framed[frame=off,align=high]{\tt \txx "\jobname" - \currentdate 
[y,/,mm,/,dd]\ - \currenttime\ - \realfolio\ of \lastpage}
    \egroup
\stopbuffer

(code adapted from construction of Thumb index on the wiki)

Which seems to be doing exactly what I want.

Thanks, and best

Thomas


On Oct 5, 2005, at 1:12 PM, Peter Rolf wrote:

> \setuplayer[LAYERNAME][repeat=yes]
>
> \setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
>
> x should be (CROPLeftX+CROPrightX)/2
>
> not tested....
>
>

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

* Re: Anchoring layer
  2005-10-05 12:57   ` Thomas A. Schmitz
@ 2005-10-05 13:55     ` Peter Rolf
  2005-10-05 16:17       ` Thomas A. Schmitz
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Rolf @ 2005-10-05 13:55 UTC (permalink / raw)


Thomas A. Schmitz wrote:
> Thanks for your suggestion, but I didn't get it to work. In the end,  I
> had recourse to some low-level stuff (caution, ugly code ahead!):
>
:))


this time tested:

% interface=en output=pdftex
% Time-stamp: <Mittwoch, 05 Oktober 2005 15:41:00; layer.tex>
%

\definelayer[markings][width=\paperwidth, height=\paperheight, repeat=yes]

\setupbackgrounds[page][background={markings}]


\starttext

\setlayer[markings][x=.5\paperwidth, y=20mm, location=c]%
  {\tt \txx "\jobname" - \currentdate [y,/,mm,/,dd]\ - \currenttime\ -
\realfolio\ of \lastpage}

\hbox{}% dummy; else no output

\stoptext

%%% Local Variables:
%%% mode: context
%%% TeX-master: ""
%%% End:


See details.pdf for layer usage :)

Peter

> \defineoverlay[info][{\getbuffer[info]}]
> 
> \setupbackgrounds[page][background={info}]
> 
> 
> \startbuffer[info]
> \vbox to \paperheight \bgroup
>   \vskip -1 cm
>    \framed[frame=off,align=high]{\tt \txx "\jobname" - \currentdate
> [y,/,mm,/,dd]\ - \currenttime\ - \realfolio\ of \lastpage}
>    \egroup
> \stopbuffer
> 
> (code adapted from construction of Thumb index on the wiki)
> 
> Which seems to be doing exactly what I want.
> 
> Thanks, and best
> 
> Thomas
> 
> 
> On Oct 5, 2005, at 1:12 PM, Peter Rolf wrote:
> 
>> \setuplayer[LAYERNAME][repeat=yes]
>>
>> \setlayer[LAYERNAME][x=??, y=20mm, location=c]{your status line}
>>
>> x should be (CROPLeftX+CROPrightX)/2
>>
>> not tested....
>>
>>
> 
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
> 
> 

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

* Re: Anchoring layer
  2005-10-05 13:55     ` Peter Rolf
@ 2005-10-05 16:17       ` Thomas A. Schmitz
  2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas A. Schmitz @ 2005-10-05 16:17 UTC (permalink / raw)


Wonderful, this looks much better and is exactly what I wanted!  
[y=-20mm, if I want something on top of the logical paper] Thanks a lot!

Thomas

On Oct 5, 2005, at 3:55 PM, Peter Rolf wrote:

> \definelayer[markings][width=\paperwidth, height=\paperheight,  
> repeat=yes]
>
> \setupbackgrounds[page][background={markings}]
>
>
> \starttext
>
> \setlayer[markings][x=.5\paperwidth, y=20mm, location=c]%
>   {\tt \txx "\jobname" - \currentdate [y,/,mm,/,dd]\ - \currenttime\ -
> \realfolio\ of \lastpage}
>

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

* D R A F T on pages
  2005-10-05 16:17       ` Thomas A. Schmitz
@ 2005-10-06 20:20         ` Jilani Khaldi
  2005-10-06 20:36           ` Thomas A. Schmitz
  2005-10-06 20:47           ` D R A F T on pages Idris Samawi Hamid
  0 siblings, 2 replies; 18+ messages in thread
From: Jilani Khaldi @ 2005-10-06 20:20 UTC (permalink / raw)


Hi All,
how to write the word "DRAFT" (big and transparent) on every page of a 
document using ConTeXt?
Thanks!

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

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

* Re: D R A F T on pages
  2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
@ 2005-10-06 20:36           ` Thomas A. Schmitz
  2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 20:47           ` D R A F T on pages Idris Samawi Hamid
  1 sibling, 1 reply; 18+ messages in thread
From: Thomas A. Schmitz @ 2005-10-06 20:36 UTC (permalink / raw)


Try this code:

\startuseMPgraphic{draft}
draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
currentpicture := currentpicture ysized (\overlayheight-3cm) ;
\stopuseMPgraphic
\defineoverlay[draft][\uniqueMPgraphic{draft}]
\setupbackgrounds[page][background=draft]

HTH

Thomas

On Oct 6, 2005, at 10:20 PM, Jilani Khaldi wrote:

> Hi All,
> how to write the word "DRAFT" (big and transparent) on every page  
> of a document using ConTeXt?
> Thanks!
>
>

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

* Re: D R A F T on pages
  2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
  2005-10-06 20:36           ` Thomas A. Schmitz
@ 2005-10-06 20:47           ` Idris Samawi Hamid
  1 sibling, 0 replies; 18+ messages in thread
From: Idris Samawi Hamid @ 2005-10-06 20:47 UTC (permalink / raw)


On Thu, 06 Oct 2005 22:20:34 +0200, Jilani Khaldi 
<jilani.khaldi1@virgilio.it> wrote:

> Hi All,
> how to write the word "DRAFT" (big and transparent) on every page of a 
> document using ConTeXt?
> Thanks!

For one approach, see the following

http://archive.contextgarden.net/search/20061201.070000.00000000@sb:draft.en.html

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: D R A F T on pages
  2005-10-06 20:36           ` Thomas A. Schmitz
@ 2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 23:12               ` Idris Samawi Hamid
                                 ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Jilani Khaldi @ 2005-10-06 21:49 UTC (permalink / raw)



> \startuseMPgraphic{draft}
> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
> \stopuseMPgraphic
> \defineoverlay[draft][\uniqueMPgraphic{draft}]
> \setupbackgrounds[page][background=draft]

I can't get it working, could you please give me more information how to 
use this code?
Thank you.

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

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

* Re: D R A F T on pages
  2005-10-06 21:49             ` Jilani Khaldi
@ 2005-10-06 23:12               ` Idris Samawi Hamid
  2005-10-07 10:03                 ` Jilani Khaldi
  2005-10-07  6:35               ` andrea valle
  2005-10-07  7:03               ` ASCII art inclusion andrea valle
  2 siblings, 1 reply; 18+ messages in thread
From: Idris Samawi Hamid @ 2005-10-06 23:12 UTC (permalink / raw)


On Thu, 06 Oct 2005 23:49:22 +0200, Jilani Khaldi 
<jilani.khaldi1@virgilio.it> wrote:

>
>> \startuseMPgraphic{draft}
>> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
>> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
>> \stopuseMPgraphic
>> \defineoverlay[draft][\uniqueMPgraphic{draft}]
>> \setupbackgrounds[page][background=draft]
>
> I can't get it working, could you please give me more information how to 
> use this code?
> Thank you.

Please give the appropriate extracts from the log file, including ConTeXt 
version and where the error occurs.

Best
Idris

-- 
Professor Idris Samawi Hamid
Department of Philosophy
Colorado State University
Fort Collins, CO 80523

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

* Re: D R A F T on pages
  2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 23:12               ` Idris Samawi Hamid
@ 2005-10-07  6:35               ` andrea valle
  2005-10-07  7:03               ` ASCII art inclusion andrea valle
  2 siblings, 0 replies; 18+ messages in thread
From: andrea valle @ 2005-10-07  6:35 UTC (permalink / raw)


works properly here on macosx with texshop

-a-


On 6 Oct 2005, at 23:49, Jilani Khaldi wrote:

>
>> \startuseMPgraphic{draft}
>> draw "DRAFT" infont "phvb" scaled 9 rotated 57 withcolor .85white ;
>> currentpicture := currentpicture ysized (\overlayheight-3cm) ;
>> \stopuseMPgraphic
>> \defineoverlay[draft][\uniqueMPgraphic{draft}]
>> \setupbackgrounds[page][background=draft]
>
> I can't get it working, could you please give me more information how 
> to use this code?
> Thank you.
>
> -- 
> // Jilani KHALDI
> http://jkhaldi.oltrelinux.com
>
>
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
Laboratorio multimediale "G. Quazza"
Facoltà di Scienze della Formazione
Università degli Studi di Torino
andrea.valle@unito.it

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

* ASCII art inclusion
  2005-10-06 21:49             ` Jilani Khaldi
  2005-10-06 23:12               ` Idris Samawi Hamid
  2005-10-07  6:35               ` andrea valle
@ 2005-10-07  7:03               ` andrea valle
  2005-10-09  9:38                 ` Mojca Miklavec
  2 siblings, 1 reply; 18+ messages in thread
From: andrea valle @ 2005-10-07  7:03 UTC (permalink / raw)


Hi to all,
I'm including in a set of slides some ASCII ART.
Actually I'm using start-stoptyping.
E.g.
\starttyping

|| knight ||

	

    |
    |
    + \
    \\.G_.*=.
     `(H'/.\|
      .>' (_--.
   _=/d   ,^\
  ~~ \)-'   '
     / |
    '  '   a:f
\stoptyping

Works fine, but obviously text remains text (--> large figures are 
splitted among different  pages).
I'd like to treat the ascii text lines as a unique block, just like a 
figure. What's the best way?

Thanks a lot

Best

-a-

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

* Re: D R A F T on pages
  2005-10-06 23:12               ` Idris Samawi Hamid
@ 2005-10-07 10:03                 ` Jilani Khaldi
  2005-10-07 17:35                   ` Thomas A. Schmitz
  0 siblings, 1 reply; 18+ messages in thread
From: Jilani Khaldi @ 2005-10-07 10:03 UTC (permalink / raw)



> Please give the appropriate extracts from the log file, including 
> ConTeXt version and where the error occurs.
>

This is pdfeTeX, Version 3.141592-1.21a-2.2 (MiKTeX 2.4) (preloaded 
format=cont-en 2005.9.28)  7 OCT 2005 11:52
entering extended mode
**draft1.tex
(draft1.tex

ConTeXt  ver: 2005.08.31  fmt: 2005.9.28  int: english  mes: english

language        : language en is active
<protectionstate 0>
system          : cont-new loaded
(C:\texmf\tex\context\base\cont-new.tex
systems         : beware: some patches loaded from cont-new.tex
color           : palette rollover is available
)
system          : cont-old loaded
(C:\texmf\tex\context\base\cont-old.tex
loading         : Context Old Macros
)
system          : cont-fil loaded
(C:\texmf\tex\context\base\cont-fil.tex
loading         : Context File Synonyms
)
system          : cont-sys.rme loaded
(C:\texmf\tex\context\user\cont-sys.rme
(C:\texmf\tex\context\base\./type-exa.tex)
(C:\texmf\tex\context\base\./type-syn.tex)
(C:\texmf\tex\context\base\./type-enc.tex)
(C:\texmf\tex\context\base\./type-dis.tex)
(C:\texmf\tex\context\base\./type-siz.tex)
(C:\texmf\tex\context\base\./type-map.tex)
(C:\texmf\tex\context\base\./type-spe.tex)
(C:\texmf\tex\context\base\./type-akb.tex))
bodyfont        : 12pt rm is loaded
language        : patterns en->ec:ec->1->2:2 uk->ec:ec->2->2:2 
de->texnansi:tex
nansi->3->2:2 de->ec:ec->4->2:2 fr->texnansi:texnansi->5->2:2 
fr->ec:ec->6->2:2
 es->ec:ec->7->2:2 pt->texnansi:texnansi->8->2:2 pt->ec:ec->9->2:2 
it->texnansi
:texnansi->10->2:2 it->ec:ec->11->2:2 nl->texnansi:texnansi->12->2:2 
nl->ec:ec-
 >13->2:2 cz->il2:il2->14->2:2 cz->ec:ec->15->2:2 sk->il2:il2->16->2:2 
sk->ec:ec
->17->2:2 pl->pl0:pl0->18->2:2 pl->ec:ec->19->2:2 loaded
specials        : tex,postscript,rokicki loaded
system          : draft1.top loaded
(./draft1.top
specials        : loading definition file tpd
(C:\texmf\tex\context\base\spec-tpd.tex
specials        : loading definition file fdf
(C:\texmf\tex\context\base\spec-fdf.tex)
specials        : fdf loaded
)
specials        : fdf,tpd loaded
)
color           : system rgb is global activated
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
(./draft1.tuo) (./draft1.tuo) (./draft1.tuo)
systems         : begin file draft1 at line 14
chapter         : 1 Integrali da 1 a 10
section         : 1.1 I-001
section         : 1.2 I-002
(C:\texmf\tex\context\base\pdfr-ec.tex)
fonts           : resetting map file list
fonts           : using map file: original-base
fonts           : using map file: ec-public-lm
fonts           : using map file: ec-base
fonts           : using map file: original-ams-base
fonts           : using map file: original-public-lm
systems         : randomizer starts with 836731516
[MP to PDF] (./draft1-mpgraph.4000) 
[1.1{original-empty.map}{original-base.map}
{ec-public-lm.map}{ec-base.map}{original-ams-base.map}{original-public-lm.map}]
section         : 1.3 I-003
section         : 1.4 I-004
[MP to PDF] (./draft1-mpgraph.3999) [2.2]
section         : 1.5 I-005
section         : 1.6 I-006
section         : 1.7 I-007
[MP to PDF] (./draft1-mpgraph.3998) [3.3]
section         : 1.8 I-008
section         : 1.9 I-009
[MP to PDF] (./draft1-mpgraph.3997) [4.4]
section         : 1.10 I-010
[MP to PDF] (./draft1-mpgraph.3996) [5.5]
systems         : end file draft1 at line 211
[flush and process draft1-mpgraph.mp afterwards] )
Here is how much of TeX's memory you used:
 1499 strings out of 61144
 24008 string characters out of 647757
 525593 words of memory out of 1080614
 37208 multiletter control sequences out of 60000
 81098 words of font info for 39 fonts, out of 1000000 for 2000
 182 hyphenation exceptions out of 4999
 44i,21n,61p,410b,655s stack positions out of 
5000i,500n,10000p,200000b,32768s
PDF statistics:
 41 PDF objects out of 300000
 0 named destinations out of 300000
 5 words of extra memory for PDF output out of 65536
{cmrm.enc}<C:\texmf\fonts\typ
e1\public\lm\lmr7.pfb><C:\texmf\fonts\type1\bluesky\cm\cmmi9.pfb><C:\texmf\font
s\type1\bluesky\cm\cmsy10.pfb><C:\texmf\fonts\type1\public\lm\lmr9.pfb><C:\texm
f\fonts\type1\bluesky\cm\cmex10.pfb><C:\texmf\fonts\type1\public\lm\lmr12.pfb><
C:\texmf\fonts\type1\bluesky\cm\cmmi12.pfb>{ec-lm.enc}<C:\texmf\fonts\type1\pub
lic\lm\lmr12.pfb>
Output written on draft1.pdf (5 pages, 102920 bytes).
%%%%%%%%%%%% E N D %%%%%%%%%%%%%

As you can see, the PDF file has been normaly created, but without any 
"DRAFT".

Ciao!

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

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

* Re: D R A F T on pages
  2005-10-07 10:03                 ` Jilani Khaldi
@ 2005-10-07 17:35                   ` Thomas A. Schmitz
  2005-10-07 18:34                     ` Peter Münster
  0 siblings, 1 reply; 18+ messages in thread
From: Thomas A. Schmitz @ 2005-10-07 17:35 UTC (permalink / raw)


You'll need to do 2 things:

in your texmf.cnf, you have to set shellescape to "t" (don't ask me  
where that is located on a windows system, I have no idea).

In cont-sys.tex, uncomment these two lines:

\runMPgraphicstrue
\runMPTEXgraphicstrue

Good luck


Thomas


On Oct 7, 2005, at 12:03 PM, Jilani Khaldi wrote:

> As you can see, the PDF file has been normaly created, but without  
> any "DRAFT".
>
> Ciao!
>
>

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

* Re: D R A F T on pages
  2005-10-07 17:35                   ` Thomas A. Schmitz
@ 2005-10-07 18:34                     ` Peter Münster
  2005-10-07 19:28                       ` Jilani Khaldi
  0 siblings, 1 reply; 18+ messages in thread
From: Peter Münster @ 2005-10-07 18:34 UTC (permalink / raw)


On Fri, 7 Oct 2005, Thomas A. Schmitz wrote:

> You'll need to do 2 things:
> 
> in your texmf.cnf, you have to set shellescape to "t" (don't ask me  
> where that is located on a windows system, I have no idea).
> 
> In cont-sys.tex, uncomment these two lines:
> 
> \runMPgraphicstrue
> \runMPTEXgraphicstrue

Perhaps a bit simpler:

\setupcolors[state=start]
\defineoverlay[Draft][{\lightgray
  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
\setupbackgrounds[page][background=Draft]
\starttext
\input tufte
\stoptext

Cheers, Peter

-- 
http://pmrb.free.fr/contact/

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

* Re: D R A F T on pages
  2005-10-07 18:34                     ` Peter Münster
@ 2005-10-07 19:28                       ` Jilani Khaldi
  0 siblings, 0 replies; 18+ messages in thread
From: Jilani Khaldi @ 2005-10-07 19:28 UTC (permalink / raw)



>Perhaps a bit simpler:
>
>\setupcolors[state=start]
>\defineoverlay[Draft][{\lightgray
>  \scale[factor=max]{\rotate[rotation=60]{~DRAFT~}}}]
>\setupbackgrounds[page][background=Draft]
>\starttext
>\input tufte
>\stoptext
>
>  
>
It works! Thank You :-)

-- 
// Jilani KHALDI
http://jkhaldi.oltrelinux.com

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

* Re: ASCII art inclusion
  2005-10-07  7:03               ` ASCII art inclusion andrea valle
@ 2005-10-09  9:38                 ` Mojca Miklavec
  2005-10-10 10:26                   ` andrea valle
  0 siblings, 1 reply; 18+ messages in thread
From: Mojca Miklavec @ 2005-10-09  9:38 UTC (permalink / raw)


andrea valle wrote:
> Hi to all,
> I'm including in a set of slides some ASCII ART.
> Actually I'm using start-stoptyping.
> E.g.
> \starttyping
>
> || knight ||
>
>
>
>     |
>     |
>     + \
>     \\.G_.*=.
>      `(H'/.\|
>       .>' (_--.
>    _=/d   ,^\
>   ~~ \)-'   '
>      / |
>     '  '   a:f
> \stoptyping
>
> Works fine, but obviously text remains text (--> large figures are
> splitted among different  pages).
> I'd like to treat the ascii text lines as a unique block, just like a
> figure. What's the best way?

Would \framed[frame=off,...]{... your figure ...} or \vbox{... your
figure ...} solve the problem?

(\startyping ... \stoptyping inside \framed caused some problems here,
but \vbox worked OK.)

Mojca

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

* Re: ASCII art inclusion
  2005-10-09  9:38                 ` Mojca Miklavec
@ 2005-10-10 10:26                   ` andrea valle
  0 siblings, 0 replies; 18+ messages in thread
From: andrea valle @ 2005-10-10 10:26 UTC (permalink / raw)


thanks!
Ok with \vbox
-a-
On 9 Oct 2005, at 11:38, Mojca Miklavec wrote:

> andrea valle wrote:
>> Hi to all,
>> I'm including in a set of slides some ASCII ART.
>> Actually I'm using start-stoptyping.
>> E.g.
>> \starttyping
>>
>> || knight ||
>>
>>
>>
>>     |
>>     |
>>     + \
>>     \\.G_.*=.
>>      `(H'/.\|
>>       .>' (_--.
>>    _=/d   ,^\
>>   ~~ \)-'   '
>>      / |
>>     '  '   a:f
>> \stoptyping
>>
>> Works fine, but obviously text remains text (--> large figures are
>> splitted among different  pages).
>> I'd like to treat the ascii text lines as a unique block, just like a
>> figure. What's the best way?
>
> Would \framed[frame=off,...]{... your figure ...} or \vbox{... your
> figure ...} solve the problem?
>
> (\startyping ... \stoptyping inside \framed caused some problems here,
> but \vbox worked OK.)
>
> Mojca
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
>
Andrea Valle
Laboratorio multimediale "G. Quazza"
Facoltà di Scienze della Formazione
Università degli Studi di Torino
andrea.valle@unito.it

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

end of thread, other threads:[~2005-10-10 10:26 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-05 10:48 Anchoring layer Thomas A. Schmitz
2005-10-05 11:12 ` Peter Rolf
2005-10-05 12:57   ` Thomas A. Schmitz
2005-10-05 13:55     ` Peter Rolf
2005-10-05 16:17       ` Thomas A. Schmitz
2005-10-06 20:20         ` D R A F T on pages Jilani Khaldi
2005-10-06 20:36           ` Thomas A. Schmitz
2005-10-06 21:49             ` Jilani Khaldi
2005-10-06 23:12               ` Idris Samawi Hamid
2005-10-07 10:03                 ` Jilani Khaldi
2005-10-07 17:35                   ` Thomas A. Schmitz
2005-10-07 18:34                     ` Peter Münster
2005-10-07 19:28                       ` Jilani Khaldi
2005-10-07  6:35               ` andrea valle
2005-10-07  7:03               ` ASCII art inclusion andrea valle
2005-10-09  9:38                 ` Mojca Miklavec
2005-10-10 10:26                   ` andrea valle
2005-10-06 20:47           ` D R A F T on pages Idris Samawi Hamid

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