[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
tex:triky [2011/07/26 16:27]
bejcek packages for trees
tex:triky [2011/12/29 17:49]
bejcek higher rows/cells in tables
Line 66: Line 66:
     \includepdf[pages=1, pagecommand={\thispagestyle{plain}}]{file.pdf}     \includepdf[pages=1, pagecommand={\thispagestyle{plain}}]{file.pdf}
     \includepdf[pages=2-, pagecommand={\thispagestyle{myheadings}}]{file.pdf}</code>     \includepdf[pages=2-, pagecommand={\thispagestyle{myheadings}}]{file.pdf}</code>
 +  * ''\textwidth'', ''\linewidth'', ''\columnwidth'', ''\hsize'' and others explained [[http://tex.stackexchange.com/questions/16942/difference-between-textwidth-linewidth-and-hsize|here]] (You want ''\linewidth'' in most cases.)
   * Useful **packages**:   * Useful **packages**:
     * Source printing: //''fancyvrb''//, //''listings''//     * Source printing: //''fancyvrb''//, //''listings''//
Line 71: Line 72:
     * pseudocode //''algorithmicx''//     * pseudocode //''algorithmicx''//
     * trees: //''xytree''// (complicated), //''dtree''// (Obo, pstricks), //''xyling''// (Martin P., ''\B'' and ''\T'' must be relaxed)     * trees: //''xytree''// (complicated), //''dtree''// (Obo, pstricks), //''xyling''// (Martin P., ''\B'' and ''\T'' must be relaxed)
 +    * tables: //''xtab''// (better than ''longtable'' or ''supertabular''), //''tabulary''// (pretty wrapped text in autosized cells, similar to ''tabularx''), //''booktabs''// (no vertical lines, ''\toprule'', ''\midrule'', ''\bottomrule'' instead of ''\hline'') (all from this [[www.tug.org/pracjourn/2007-1/mori/mori.pdf|compendium]])
 +  * ''longtable'' or ''xtabular'' environment **cannot** be inside ''table'' environment. (Put it inside ''center'' instead, since you cannot use ''\centering'' as before.) 
 +  * **Higher cells/rows in tables** can be achieved either by ''booktabs'' package, or (if you have to use **vertical lines** in tables) by inserting ''\toppadding'' and ''\bottompadding'' in every row:<code>
 +    \newcommand\toppadding{\rule{0pt}{2.6ex}}
 +    \newcommand\bottompadding{\rule[-1.2ex]{0pt}{0pt}}
 +    ...
 +    \hline
 +    \toppadding First cell\bottompadding & Second cell & Third one \\
 +    \hline
 +    ...</code>
 +  * ''hyperref'' package:
 +    * If some **links from ToC** point to **incorrect** objects (e.g. section III.2.5 points to the page where the section I.2.5 starts), then the problem is in internal hyperref naming convention (both section in the example are represented as 'section.2.5'). You can change it either by
 +      * ''naturalnames=true'' (=> 'section.III.2.5'), or
 +      * ''hypertexnames=false'' (=> 'section.289')
  
 ==== počítání slov (a dalších věcí) ==== ==== počítání slov (a dalších věcí) ====

[ Back to the navigation ] [ Back to the content ]