Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
tex:triky [2014/09/23 17:20] bejcek new page link |
tex:triky [2019/09/09 16:37] (current) lauschmannova [pdf-a verification of theses] |
| ====== Central TeXLive distributions ====== |
| |
| If you are using TeXLive on your linux workstations you may use texlive-full portable installed in: |
| |
| /opt/texlive |
| |
| There are folders for several years backward up to the latest distribution. |
| |
| In order to use the shared TeX binaries from the command line, you may want to add the following line to your .bashrc: |
| |
| export PATH=/opt/texlive/2018/bin/x86_64-linux/:$PATH |
| |
| === Texstudio === |
| You may use {{ :latex:texlive-portable2018-full.zip |this}} config file for setting up **texstudio** to use version from 2018. |
| |
====== Tips and Tricks for LaTeX ====== | ====== Tips and Tricks for LaTeX ====== |
| |
| * see also [[::it-tricks#latex-pdf|IT-tricks with LaTeX and pdf]] |
* For the redefining the **header**, you can use | * For the redefining the **header**, you can use |
* ''\markboth'' -- two parameters (left and right page) or ''\markright'' with just one parameter | * ''\markboth'' -- two parameters (left and right page) or ''\markright'' with just one parameter |
* 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]]) | * tables: //''xtab''// (better than ''longtable'' or ''supertabular''), //''tabulary''// (pretty wrapped text in autosized cells, similar to ''tabularx''), //''booktabs''// (no vertical lines, ''\toprule'', ''\midrule''/''\cmidrule'', ''\bottomrule'' instead of ''\hline''/''\cline'') (all from this [[http://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.) | * ''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> | * **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> |
| |
Some [[https://wiki.ufal.ms.mff.cuni.cz/tex:pbml|PBML]] and [[https://wiki.ufal.ms.mff.cuni.cz/tex:sctl|SCTL]]-specific issues can be found at these links. | Some [[https://wiki.ufal.ms.mff.cuni.cz/tex:pbml|PBML]] and [[https://wiki.ufal.ms.mff.cuni.cz/tex:sctl|SCTL]]-specific issues can be found at these links. |
| |
| ====== pdf-a verification of theses ====== |
| All theses submitted at the Charles University must be in the pdf-a format, |
| following a specific set of requirements defined by a university profile. |
| `/lnet/ms/projects/verapdf/checkpdf` in the ufal internal network is a wrapper for the verapdf tool which you can use to check whether your thesis fulfills these requirements. New university profiles appear regularly at |
| https://cuni.cz/UK-7987.html , so don't rely on the default. |
| |
| [[vernerova@ufal.mff.cuni.cz|Anša's]] experience: |
| I used Eda's LaTeX template (send me an e-mail if you want to get it) and no amount of tweaking would give me a valid pdf-a, even though I was using |
| \usepackage[a-2u]{pdfx} |
| and compiling with a wrapper script containing the line |
| LC_ALL=cs_CZ.UTF-8 xelatex -shell-escape -output-driver="xdvipdfmx -z 0" -synctex=1 "$@" |
| I sent my pdf file to [[https://www.mff.cuni.cz/cs/fakulta/organizacni-struktura/lide?hdl=2684|Petra Hoffmannová from the library]], who ran my pdf file through Adobe Acrobat (the library has a commercial licence)... and voilà, it was a valid pdf-a. Unlike verapdf, Acrobat also gives a detailed summary of the exact issues with your file (like which piece of text in which image fails the validation). |