Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
tex:triky [2010/01/07 16:51] bejcek TeX's foreach |
tex:triky [2010/07/12 11:21] bejcek latex packages |
||
---|---|---|---|
Line 10: | Line 10: | ||
* Useful page (and a figure) for **lists**: | * Useful page (and a figure) for **lists**: | ||
* http:// | * http:// | ||
+ | |||
+ | * The **if** condition in TeX: | ||
+ | * construction **if '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * **comparing** two strings:\\ '' | ||
+ | * (The grouping is needed there to make ' | ||
+ | * [[http:// | ||
+ | * allocator **'' | ||
* **foreach** in TeX < | * **foreach** in TeX < | ||
Line 18: | Line 27: | ||
* '' | * '' | ||
+ | * **Aligning an element** in the line according to whether it fits in the rest of the line (TeX) | ||
+ | * always right-aligned < | ||
+ | < | ||
+ | \nobreak\hfill\penalty71\hskip2em\hbox{}\nobreak\hfill | ||
+ | \hbox{# | ||
+ | * always left-aligned: | ||
+ | < | ||
+ | \hbox{} \hskip 0pt plus 1fil \penalty0 | ||
+ | \hbox{# | ||
+ | * align to the right, if it fits, or to the left in the new line: | ||
+ | < | ||
+ | \nobreak\hfill\penalty71\hskip2em | ||
+ | \hbox{# | ||
+ | * Useful **packages**: | ||
+ | * Source printing: //'' | ||
+ | * //'' | ||
+ | * pseudocode //'' | ||
+ | |||
+ | ==== počítání slov (a dalších věcí) ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | '' | ||
+ | |||
+ | Podrobnosti v dokumentaci: |