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/07/02 18:16] bejcek if contstructions |
tex:triky [2011/10/27 01:09] bejcek tables and textwidth |
||
---|---|---|---|
Line 12: | Line 12: | ||
* The **if** condition in TeX: | * The **if** condition in TeX: | ||
- | * construction **if '' | + | * 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 **'' | * allocator **'' | ||
Line 23: | Line 37: | ||
* **Aligning an element** in the line according to whether it fits in the rest of the line (TeX) | * **Aligning an element** in the line according to whether it fits in the rest of the line (TeX) | ||
- | * always right-aligned < | + | * always right-aligned < |
- | < | + | |
\nobreak\hfill\penalty71\hskip2em\hbox{}\nobreak\hfill | \nobreak\hfill\penalty71\hskip2em\hbox{}\nobreak\hfill | ||
\hbox{# | \hbox{# | ||
- | | + | |
- | < | + | |
\hbox{} \hskip 0pt plus 1fil \penalty0 | \hbox{} \hskip 0pt plus 1fil \penalty0 | ||
\hbox{# | \hbox{# | ||
- | * align to the right, if it fits, or to the left in the new line: | + | * align to the right, if it fits, or to the left in the new line:< |
- | < | + | \def\alignelemrightorleft # |
\nobreak\hfill\penalty71\hskip2em | \nobreak\hfill\penalty71\hskip2em | ||
\hbox{# | \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: //'' | ||
+ | * tables: //'' | ||
==== počítání slov (a dalších věcí) ==== | ==== počítání slov (a dalších věcí) ==== | ||
Line 44: | Line 82: | ||
Podrobnosti v dokumentaci: | Podrobnosti v dokumentaci: | ||
+ | |||
+ | < | ||
+ | |||
+ | Some PBML and SCTL-specific issues are [[https:// |