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
You may use this config file for setting up texstudio to use version from 2018.
\markboth
– two parameters (left and right page) or \markright
with just one parameter\markboth{\uppercase{Summary}}{\uppercase{Summary}}
\markboth
command before the end of the page, while a right-hand heading is generated by the first \markboth
or \markright
that comes on the page if there is one, otherwise by the last one before the page. (source)\chaptermark
, \sectionmark
, … with fancyhdr
package\variable
is empty:The variable \if#\variable# is empty.\else contains \variable.\fi
\variable
naturally cannot contain '#'
)The variable \ifx\@empty\variable is empty.\else contains \variable.\fi
\newif\ifsame \newcommand{\strcfstr}[2]{% \samefalse \begingroup \def\1{#1}\def\2{#2}% \ifx\1\2\endgroup \sametrue \else \endgroup \fi }
\newif
is used in a sequention:\newif\ifsomething
\somethingtrue
or \somethingfalse
\ifsomething YES\else NO\fi
\dothis{}
with each word in \foreach{Peter, Paul, John, Ringo}
, you can do this as follows:\def\foreach#1{\first#1,,}
\def\first#1,{\if,#1,\else\dothis{#1}\expandafter\first\fi}
\def\dothis#1{ … whatever #1 … }
\def\alignelemright #1\par{\unskip \nobreak\hfill\penalty71\hskip2em\hbox{}\nobreak\hfill \hbox{#1}\par}
\def\alignelemleft #1\par{\unskip \hbox{} \hskip 0pt plus 1fil \penalty0 \hbox{#1}\hskip 0pt plus 1fill\hbox{}\par}
\def\alignelemrightorleft #1\par{\unskip \nobreak\hfill\penalty71\hskip2em \hbox{#1}\par}
\begin{figure} \begin{minipage}[b]{0.5\linewidth} \centering \includegraphics[scale=1]{fn1} \caption{c} \label{f1} \end{minipage} \hspace{0.5cm} \begin{minipage}[b]{0.5\linewidth} \centering \includegraphics[scale=1]{fn2} \caption{c} \label{f2} \end{minipage} \end{figure}
\usepackage{pdfpages}
% settings \markright{Author Name} % or e.g. package fancyhdr \setcounter{page}{13} % number of first page % inserting (first page with pagenumber in the foot, others in the head with author name) \includepdf[pages=1, pagecommand={\thispagestyle{plain}}]{file.pdf} \includepdf[pages=2-, pagecommand={\thispagestyle{myheadings}}]{file.pdf}
\textwidth
, \linewidth
, \columnwidth
, \hsize
and others explained here (You want \linewidth
in most cases.)fancyvrb
, listings
fancyhdr
algorithmicx
xytree
(complicated), dtree
(Obo, pstricks), xyling
(Martin P., \B
and \T
must be relaxed)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 compendium)longtable
or xtabular
environment cannot be inside table
environment. (Put it inside center
instead, since you cannot use \centering
as before.) booktabs
package, or (if you have to use vertical lines in tables) by inserting \toppadding
and \bottompadding
in every row:\newcommand\toppadding{\rule{0pt}{2.6ex}} \newcommand\bottompadding{\rule[-1.2ex]{0pt}{0pt}} ... \hline \toppadding First cell\bottompadding & Second cell & Third one \\ \hline ...
hyperref
package:naturalnames=true
(⇒ 'section.III.2.5'), orhypertexnames=false
(⇒ 'section.289')\usepackage{tocloft} \newlistof{graphs}{grp}{List of Graphs} % new list, file extension, its name \renewcommand{\cftgrptitlefont}{\sffamily\bfseries\huge} % style of list title \setlength{\cftbeforegrptitleskip}{10ex} % space above list title \setlength{\cftaftergrptitleskip}{4ex} % space below list title % previous three lines alternatively (in pbmlbook class): \cfttitleset{grp} \newlistentry{graph}{grp}{0} % one line of the list (because it will be of type 'graph', not 'graphs', due to float named 'graph') \renewcommand{\cftgraphfont}{\sffamily} % entry style \renewcommand{\cftgraphpagefont}{\sffamily} % page number style \setlength{\cftgraphnumwidth}{2em} % space for graph number % previous three lines alternatively (in pbmlbook class): \cftlineset{graph}{}{2em} \usepackage{float} \newfloat{graph}{ht!}{grp} % new float environment {graph}, "place it here or at the top of page" by default \floatname{graph}{Graph} % each caption is started as "Graph \thegraph: <captioin>" ... \begin{graph} \centering \includegraphics[scale=.8]{obr09} \caption{Graph Caption}\label{graph:first} \end{graph} ... \cleardoublepage\listofgraphs\phantomsection\addcontentsline{toc}{chapter}{List of Graphs}
\graphicspath{{./images/}} \fbox{\includegraphics[scale=.4,trim=70 150 120 110,clip]{filename}}
./images/filename.pdf
!fbox
– for debuggingscale
or width
or height
bb=10 10 10 10
, angle=45
, keepaspectratio
, draft
\renewcommand{\labelenumi}{\Alph{enumi}.} \setcounter{lastenumi}{\theenumi} \begin{enumerate} \setcounter{enumi}{\thelastenumi} ...
texcount soubor.tex
texcount -inc soubor.tex
… započítá správně slova i v souborech vložených v hlavním souboru pomocí \include
Podrobnosti v dokumentaci: texdoc texcount
fc-list
– list of known fontsfc-list :lang=cs
~/.fonts
is immediately found and ready for use~/.fonts.conf
in dir
-element: <dir>~/.fonts</dir>
Some PBML and SCTL-specific issues can be found at these links.
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.
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 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).