\begin{picture}(width,height)(x offset,y offset) . picture commands . \end{picture}
\begin{picture}(sirka,vyska)(x souradnice ,y souradnice) . prikazy pro tvorbu obrazku . \end{picture}
The picture environment allows you to create just about any kind of picture you want containing text, lines, arrows and circles. You tell LaTeX where to put things in the picture by specifying their coordinates. A coordinate is a number that may have a decimal point and a minus sign - a number like 5, 2.3 or -3.1416. A coordinate specifies a length in multiples of the unit length \unitlength, so if \unitlength has been set to 1cm, then the coordinate 2.54 specifies a length of 2.54 centimeters. You can change the value of \unitlength anywhere you want, using the \setlength command, but strange things will happen if you try changing it inside the picture environment.
Prostredi picture umoznuje vytvorit libovolny obrazek skladajici se z textu, car, sipek a kroznic. Kam umistit v obrazku nejaky objekt zadate LaTeXu urcenim souradnic. Souradnice mohou byt desetinna cisla se znamenkem (napr. 5 , 3.5 , -1, 0.004 , ...). Takto zadane souradnice urcuji delky v nasobcich jednotek urcenych prikazem \unitlength (napr. unitlength=1cm , souradnice 2.14 znamena 2.14cm). Hodnotu \unitlength lze zmenit v kteremkoliv miste prikazem \setlength, ale neni vhodne ji menit uvnitr obrazku. (Pak se deji divne veci...)
A position is a pair of coordinates, such as (2.4,-5), specifying the point with x-coordinate 2.4 and y-coordinate -5. Coordinates are specified in the usual way with respect to an origin, which is normally at the lower-left corner of the picture. Note that when a position appears as an argument, it is not enclosed in braces; the parentheses serve to delimit the argument.
Pozice je dvojice souradnic (x,y), urcujicich bod x,y. Tyto souradnice jsou vztazeny k pocatku, ktery je obvykle v levem spodnim rohu obrazku. I kdyz se pozice vyskytuje jako argument, nezapisuje se do slozenych zavorek (asi takto: {(x,y)} ).
The picture environment has one mandatory argument, which is a position. It specifies the size of the picture. The environment produces a rectangular box with width and height determined by this argument's x- and y-coordinates.
Prostredi picture ma jeden povinny argument, a tim je prave pozice (x,y). Tato dvojice souradnic urci velikost obrazku. Prostredi picture potom vytvori obdelnik se sirkou x a vyskou y.
The picture environment also has an optional position argument, following the size argument, that can change the origin. (Unlike ordinary optional arguments, this argument is not contained in square brackets.) The optional argument gives the coordinates of the point at the lower-left corner of the picture (thereby determining the origin). For example, if \unitlength has been set to 1mm, the command
Prostredi picture ma jeste jeden nepovinny argument, kterym lze zmenit pocatek. (Narozdil od prvniho povinneho argumentu se tento zapisuje do slozenych zavorek (asi takto {x,y}) .) Tento argument ursi souradnice dolniho leveho rohu obrazku. Napriklad pri \unitlength 1mm prikaz
\begin{picture}(100,200)(10,20)
produces a picture of width 100 millimeters and height 200 millimeters, whose lower-left corner is the point (10,20) and whose upper-right corner is therefore the point (110,220). When you first draw a picture, you will omit the optional argument, leaving the origin at the lower-left corner. If you then want to modify your picture by shifting everything, you just add the appropriate optional argument.
vytvori obrazek o sirce 100mm a delce 200mm, jehoz levy spodni roh bude mit souradnice (10,20), a pravy horni roh (110,220). Kdyz namalujete obrazek, a pozdeji ho chcete cely posunout, staci pridat (zmenit) nepovinny argument prostredi picture.
The environment's mandatory argument determines the nominal size of the picture. This need bear no relation to how large the picture really is; LaTeX will happily allow you to put things outside the picture, or even off the page. The picture's nominal size is used by TeX in determining how much room to leave for it.
Povinny argument prostredi urcuje absolutni velikost obrazku. To ovsem nema vubec zadny vztah k tomu, jak velky obrazek to ve skutecnosti bude. LaTeX umoznuje umistovat objekty obrazku i mimo nej, dokonce i mimo stranku. Tato zadana velikost obrazku je zde pro TeX, aby mohl spravne vymezit plochu pro obrazek.
Everything that appears in a picture is drawn by the \put command. The command
Vsechny objekty, ktere se umistuji do obrazku jsou umistovany prikazem \put. Prikaz
\put (11.3,-.3){...}
puts the object specified by "..." in the picture, with its reference point at coordinates (11.3,-.3). The reference points for various objects will be described below.
umisti objekt urceny "..." do obrazku, a jeho referencni bod bude mit souradnice (11.3,-.3). Referecni body jsou pro ruzne objekty ruzne, a budou popsany u kazdeho zvlast.
The \put command creates an LR box. You can put anything in the text argument of the \put command that you'd put into the argument of an \mbox and related commands. When you do this, the reference point will be the lower left corner of the box.
Prikaz \put vytvori pravouhlou plochu. Pomoci textoveho argumentu prikazu \put specifikujete co bude na teto plose. Tento argument muze obsahovat to stejne co argument prikazu \mbox. V tomto pripade bude referencni bod v levem spodnim rohu plochy.