Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revision Both sides next revision | ||
tex:triky [2009/12/14 17:55] bejcek vytvořeno: headers, lists |
tex:triky [2011/07/26 16:27] bejcek packages for trees |
||
---|---|---|---|
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:< | ||
+ | \newif\ifsame | ||
+ | \newcommand{\strcfstr}[2]{% | ||
+ | | ||
+ | | ||
+ | \def\1{# | ||
+ | \ifx\1\2\endgroup \sametrue | ||
+ | \else | ||
+ | \fi | ||
+ | }</ | ||
+ | * (The grouping is needed there to make ' | ||
+ | * [[http:// | ||
+ | * allocator **'' | ||
+ | |||
+ | * **foreach** in TeX < | ||
+ | * If you want to '' | ||
+ | * '' | ||
+ | * '' | ||
+ | * and then write something here: | ||
+ | * '' | ||
+ | |||
+ | * **Aligning an element** in the line according to whether it fits in the rest of the line (TeX) | ||
+ | * always right-aligned < | ||
+ | \def\alignelemright # | ||
+ | \nobreak\hfill\penalty71\hskip2em\hbox{}\nobreak\hfill | ||
+ | \hbox{# | ||
+ | * always left-aligned:< | ||
+ | \def\alignelemleft # | ||
+ | \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{# | ||
+ | * Two **tables/ | ||
+ | \begin{figure} | ||
+ | | ||
+ | \centering \includegraphics[scale=1]{fn1} \caption{c} \label{f1} | ||
+ | | ||
+ | | ||
+ | | ||
+ | \centering \includegraphics[scale=1]{fn2} \caption{c} \label{f2} | ||
+ | | ||
+ | \end{figure}</ | ||
+ | * **Include completed PDF** and add page numbers and other headings: '' | ||
+ | % settings | ||
+ | \markright{Author Name} % or e.g. package fancyhdr | ||
+ | \setcounter{page}{13} | ||
+ | % inserting (first page with pagenumber in the foot, others in the head with author name) | ||
+ | \includepdf[pages=1, | ||
+ | \includepdf[pages=2-, | ||
+ | * Useful **packages**: | ||
+ | * Source printing: //'' | ||
+ | * //'' | ||
+ | * pseudocode //'' | ||
+ | * trees: //'' | ||
+ | |||
+ | ==== počítání slov (a dalších věcí) ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | '' | ||
+ | |||
+ | Podrobnosti v dokumentaci: | ||
+ | |||
+ | < | ||
+ | |||
+ | Some PBML and SCTL-specific issues are [[https:// |