diff --git a/README.md b/README.md index f2ab0c1..a60ffcf 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This repository contains a collection of LaTeX files, helping you get started with LaTeX quickly. Breaking change in the current version: the time complexity commands now require the math environment. You may use the following vim-regex to fix issues in your code: -`:%s/\\text{\\tc\([olt]\){\(.*\)}}/\\tc\1{\2}/g` (execute first) and `:%s/ \\tc\([olt]\){\(.*)}\([, .\n]\)/ \$\\tc\1{\2}\$\3/g` +`:%s/ \\tc\([olt]\){\(.*)}\([, .\n]\)/ \$\\tc\1{\2}\$\3/g` (execute first) and `:%s/\\text{\\tc\([olt]\){\(.*\)}}/\\tc\1{\2}/g` # Getting started diff --git a/docs/docs.pdf b/docs/docs.pdf index 5b4682d..0d59061 100644 Binary files a/docs/docs.pdf and b/docs/docs.pdf differ diff --git a/docs/docs.tex b/docs/docs.tex index 5aa55f9..89cb8e2 100644 --- a/docs/docs.tex +++ b/docs/docs.tex @@ -28,7 +28,7 @@ It has some configuration options already, but more are to come soon. If you hav \begin{Large} \shade{red}{Breaking Changes}: The timecomplexity commands have been updated to require math environment. You can use the following regex to fix them - \verb|:%s/\\text{\\tc\([olt]\){\(.*\)}}/\\tc\1{\2}/g| (execute first) and \verb|:%s/ \\tc\([olt]\){\(.*)}\([, .\n]\)/ \$\\tc\1{\2}\$\3/g| + \verb|:%s/ \\tc\([olt]\){\(.*)}\([, .\n]\)/ \$\\tc\1{\2}\$\3/g| (execute first) and \verb|:%s/\\text{\\tc\([olt]\){\(.*\)}}/\\tc\1{\2}/g| \end{Large} diff --git a/docs/parts/reference.tex b/docs/parts/reference.tex index df4c507..ea3dc29 100644 --- a/docs/parts/reference.tex +++ b/docs/parts/reference.tex @@ -71,13 +71,13 @@ All these have to be executed in the math environment. \end{itemize} \subsection{CS-Commands} -These commands have to be executed outside the math environment. +These commands have to be executed inside math environment, except \verb|\timecomplexity| and \verb|\tc|. \begin{itemize} \item \verb|\timecomplexity| Prints the word time complexity with a coloured box. \item \verb|\tc| Shorthand for \verb|\tct|. Deprecated - \item \verb|\tct| Time complexity in \tct{}-notation (average case) - \item \verb|\tco| Time complexity in \tco{}-notation (worst case / upper bound) - \item \verb|\tcl| Time complexity in \tcl{}-notation (best case / lower bound) + \item \verb|\tct| Time complexity in $\tct{}$-notation (average case) + \item \verb|\tco| Time complexity in $\tco{}$-notation (worst case / upper bound) + \item \verb|\tcl| Time complexity in $\tcl{}$-notation (best case / lower bound) \item \verb|\t[R, C, N]| Simply prints a capital R, C or N in math mode as normal text. So e.g. use $\tR$ to print an R \end{itemize}