cpfaff / Open-Science-Paper

Status: Usable (Latest stable version 0.9.2)
79 stars 15 forks source link

Title header from csv needs to sanitize before typesetting the contents #28

Closed cpfaff closed 11 years ago

cpfaff commented 11 years ago

Special characters inside the fileds cause LaTeX build erros

cpfaff commented 11 years ago

This is hard to imlement. I think the datatool used to read the data does not have a sanitation method. Maybe a tool like xstring can help to do something like:

\documentclass{minimal}
\usepackage{xstring}
\def\ReplaceStr#1{%
  \IfSubStr{#1}{XY}{%
    \StrSubstitute{#1}{XY}{$\to$}}{#1}}

\begin{document}

\ReplaceStr{aXYbXYc}

\ReplaceStr{abc}

\end{document}
cpfaff commented 11 years ago

Will not do that sanitation but mention the problems in the wiki with all special characters listed and how to input the proper character.