latexAccents = [['\xe0', '\\`a'], ['\xe8', '\\`e'], ['\xec', '\\`\\i'],
    ['\xf2', '\\`o'], ['\xf9', '\\`u'], ['\u1ef3', '\\`y'], ['\xc0',
    '\\`A'], ['\xc8', '\\`E'], ['\xcc', '\\`\\I'], ['\xd2', '\\`O'], [
    '\xd9', '\\`U'], ['\u1ef2', '\\`Y'], ['\xe1', "\\'a"], ['\xe9',
    "\\'e"], ['\xed', "\\'\\i"], ['\xf3', "\\'o"], ['\xfa', "\\'u"], [
    '\xfd', "\\'y"], ['\xc1', "\\'A"], ['\xc9', "\\'E"], ['\xcd',
    "\\'\\I"], ['\xd3', "\\'O"], ['\xda', "\\'U"], ['\xdd', "\\'Y"], [
    '\xe2', '\\^a'], ['\xea', '\\^e'], ['\xee', '\\^\\i'], ['\xf4',
    '\\^o'], ['\xfb', '\\^u'], ['\u0177', '\\^y'], ['\xc2', '\\^A'], [
    '\xca', '\\^E'], ['\xce', '\\^\\I'], ['\xd4', '\\^O'], ['\xdb',
    '\\^U'], ['\u0176', '\\^Y'], ['\xe4', '\\"a'], ['\xeb', '\\"e'], [
    '\xef', '\\"\\i'], ['\xf6', '\\"o'], ['\xfc', '\\"u'], ['\xff',
    '\\"y'], ['\xc4', '\\"A'], ['\xcb', '\\"E'], ['\xcf', '\\"\\I'], [
    '\xd6', '\\"O'], ['\xdc', '\\"U'], ['\u0178', '\\"Y'], ['\xe7',
    '\\c{c}'], ['\xc7', '\\c{C}'], ['\u0153', '{\\oe}'], ['\u0152',
    '{\\OE}'], ['\xe6', '{\\ae}'], ['\xc6', '{\\AE}'], ['\xe5', '{\\aa}'
    ], ['\xc5', '{\\AA}'], ['\u2013', '--'], ['\u2014', '---'], ['\xf8',
    '{\\o}'], ['\xd8', '{\\O}'], ['\xdf', '{\\ss}'], ['\xa1', '{!`}'], [
    '\xbf', '{?`}'], ['\\', '\\\\'], ['~', '\\~'], ['&', '\\&'], ['$',
    '\\$'], ['{', '\\{'], ['}', '\\}'], ['%', '\\%'], ['#', '\\#'], [
    '_', '\\_'], ['\u2265', '$\\ge$'], ['\u2264', '$\\le$'], ['\u2260',
    '$\\neq$'], ['\xa9', '\\copyright'], ['\u0131', '{\\i}'], ['\xb5',
    '$\\mu$'], ['\xb0', '$\\deg$'], ['\u2018', '`'], ['\u2019', "'"], [
    '\u201c', '``'], ['\u201d', "''"], ['\u201a', ','], ['\u201e', ',,']]
Replace all accented characters by their LaTeX equivalent