[ 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
tex:triky [2012/09/10 18:28]
bejcek fonty
tex:triky [2019/09/09 16:37] (current)
lauschmannova [pdf-a verification of theses]
Line 1: Line 1:
 +====== 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
Line 72: Line 88:
     * 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>
Line 135: Line 151:
  
   * ''fc-list'' -- list of known fonts   * ''fc-list'' -- list of known fonts
 +     * ''fc-list :lang=cs''
   * any font in ''~/.fonts'' is immediately found and ready for use   * any font in ''~/.fonts'' is immediately found and ready for use
   * other font directories can be specified in ''~/.fonts.conf'' in ''dir''-element: ''<dir>~/.fonts</dir>''   * other font directories can be specified in ''~/.fonts.conf'' in ''dir''-element: ''<dir>~/.fonts</dir>''
Line 140: Line 157:
 <html><hr/></html> <html><hr/></html>
  
-Some PBML and SCTL-specific issues are [[https://wiki.ufal.ms.mff.cuni.cz/tex:pbml|here]].+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).

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