[cstex] Plovouci prostredi v \startframedtext - \stopframedtext prostredi v ConTeXtu?
Vit Zyka
vit.zyka at gmail.com
Mon Oct 15 14:20:19 CEST 2007
Jaroslav Hajtmar wrote:
> Dobry den,
> Existuje nejaky trik, kterym by se dalo oramovat a zmenit barva pozadi
> textu s plovoucimi obrazky?
>
> Je mi jasne, ze jeden zamer a pozadavek jde asi proti drunemu, ale snad
> se nekdo s necim podobnym setkal.
>
> Diky Jarda Hajtmar
>
> PS: Jakysi minimalni priklad s komentari je zde:
>
>
> \setupoutput[pdftex]
> \enableregime[cp1250]
> \mainlanguage[cz]
> \setupcolors[state=start]
>
> \starttext
>
> Takhle to funguje bez ramecku a barvy pozadi OK.
>
> \placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
>
> \blank[big]
>
> Dokonce i se dvema obrazky (kazdemu z nich zarovnanemu k jinemu okraji) to
> funguje bez ramecku a barvy pozadi OK.
>
> \placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
> \placefigure[right]{none}{\externalfigure[file2.jpg][width=2cm,height=2cm]}
>
> \dorecurse{45}{jiný údaj }
>
> \page
>
> Ted bych chtel napr. nastavit pozadi a zaramovat. Ramecek a barva jsou OK,
> text jde ale pres vlozeny obrazek.
>
>
> \startframedtext[width=13cm, heigth=15cm, background=color,
> backgroundcolor=cyan]
> \placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
> \stopframedtext
Asi takto?
\definetextbackground[oramovani]
[state=start,location=paragraph,
background=color,backgroundcolor=red,
frame=on,framecolor=black,
topoffset=1ex,bottomoffset=1ex,leftoffset=5mm,rightoffset=5mm]
\starttextbackground[oramovani]
\placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
A \dorecurse{39}{zkušební text }
\stoptextbackground
Zdravi
Vit Zyka
>
>
> \page
>
> A se dvema vlozenymi obrazky to nefunguje vubec :
>
> \startframedtext[width=13cm, heigth=15cm, background=color,
> backgroundcolor=cyan]
> \placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
> \placefigure[right]{none}{\externalfigure[file2.jpg][width=2cm,height=2cm]}
>
> \dorecurse{45}{jiný údaj }
> \stopframedtext
>
>
> \page
>
> Pouziti prostredi \type{\startfiguretext - \stopfiguretext} bez
> oramovani a pozadi.
>
>
> \startfiguretext
> [left]
> []
> {none}
> {\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
> \stopfiguretext
>
>
> Pri pouziti prostredi \type{\startfiguretext - \stopfiguretext} s
> oramovanim a
> barvou pozadi je sice vse OK, ale obrazek neni obtekan textem.
>
>
> \startframedtext[width=13cm, heigth=15cm, background=color,
> backgroundcolor=cyan]
> \startfiguretext
> [left]
> []
> {none}
> {\externalfigure[file1.jpg][width=3cm,height=2cm]}
> \dorecurse{39}{zkušební text }
> \stopfiguretext
> \stopframedtext
>
> \stoptext
>
>
>
> _______________________________________________
> csTeX mailing list
> csTeX at cs.felk.cvut.cz
> http://lists.felk.cvut.cz/mailman/listinfo/cstex
>
--
=========================================================
Ing. Vít Zýka, Ph.D. TYPOkvítek, Czech Republic
computer vision application aplikace pocitacoveho videni
database publishing databazove publikovani
scientific book typesetting sazba odbornych publikaci
tel.: (+420) 777 198 189 www: http://typokvitek.com
=========================================================
More information about the csTeX
mailing list