; This file contains all characters or character sequences that ; will be be replaced by SQLTeX when the occur in the response ; of an SQL query. ; ; The first column is the character (sequence) that will be replaced. ; The second column is the value to replace col 1 with. ; Columns are separated with one or more tab characters. ; ; Note all values are case sensitive; if you add the line: ; LaTeX \LaTeX\ ; the word "latex" will be untouched, but "LaTeX" will be replaced. ; ; To replace using regular expressions, use 're(<regular expression>)' ; as key (or any other regexp indicator if that has been changed in the ; config file), e.g. ; re(<p\.*?>) \paragraph*{} ; will replace all HTML <p> variants (<p style='font-size: normal'>, ; <p align='center'> etc) ; ; Order matters! ; We must start with the HTML code, since if the LaTeX special characters ; would be first, the characters '<' and '>' would be replaced already so ; HTML code is not recognised anymore. ; ; ; HTML special characters ; ----------------------- ; \hspace{1em} & \& & \& ' ' ; ; HTML font types ; --------------- ; re(<strong.*?>) \textbf{ </strong> } re(<em.*?>) \textit{ </em> } <del> \sout{ </del> } <sup> $^{ </sup> }$ ; ; HTML links (ignored) ; -------------------- ; re(<a .*?>) </a> ; ; HTML sections and breaks ; ------------------------ ; re(<p.*?>) </p> \\[0pt] re(<h1.*?>) \section{ re(<h2.*?>) \subsection{ re(<h3.*?>) \subsubsection{ re(</h\d>) } re(<br\s*/?>) \\ ; ; HTML lists ; ---------- ; <ul> \begin{itemize} <li> \item\ </li> </ul> \end{itemize} ; ; HTML tables ; ----------- ; This is meant as an example only and outcommented. ; Replace the tabular with the desired number of columns ; before using this. ; ;re(<table.*?>) \begin{tabular}{lll} ;re(</?tbody>) ;re(<tr.*?>) ;</tr> \\ ;re(<td.*?>) ;</td> & ;</table> \end{tabular} \\ ; ; ; LaTeX special characters ; ------------------------ ; $ \$ _ \_ % \% & \& < \texttt{<} > \texttt{>} { \{ } \} # \# ~ \~{} \ \ensuremath{\backslash} ;