[cstex] Plovouci prostredi v \startframedtext - \stopframedtext prostredi v ConTeXtu?
Jaroslav Hajtmar
hajtmar at gyza.cz
Mon Oct 15 22:41:31 CEST 2007
Dobry den.
Mnohokrat dekuji .. opravdu by mne nikdy samotneho nenapadlo, ze by se
neco podobneho dalo udelat...
Jeste jeden detail. Existuje nejaka moznost nastavit u tohoto prostredi
sirku ??? (vysku nepotrebuji, tak by byla dana obsahem)
Zkousel jsem tam zadat napr. parametr width=12cm a bohuzel ho to nevezme.
A pokud nastavim napr. \hsize, tak se nastavi jen sirka textu a ne uz
ramecku s vyplni... viz obrazek.
Primarne chci takovyto "objekt" napozicovat na stranku (jestli to pujde)
.. jakysi navrh sazby clanku v novinach ...
Jeste jednou diky a jsem s pozdravem
Jarda Hajtmar
\setupoutput[pdftex]
\enableregime[cp1250]
\mainlanguage[cz]
\setupcolors[state=start]
\starttext
\definetextbackground[oramovani]
[width=12cm,state=start,location=paragraph,
background=color,backgroundcolor=red,
frame=on,framecolor=black,
topoffset=1ex,bottomoffset=1ex,leftoffset=5mm,rightoffset=5mm]
\starttextbackground[oramovani]
{
\hsize=10cm
\placefigure[left]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
A \dorecurse{39}{zkušební text }
\placefigure[right]{none}{\externalfigure[file1.jpg][width=3cm,height=2cm]}
A \dorecurse{39}{zkušební text }
}
\stoptextbackground
\stoptext
Vit Zyka napsal(a):
> 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
>>
>>
>
>
More information about the csTeX
mailing list