> As an addition, I would also propose to replace the
> \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]
> {hyperref}
> line by using the if xetex switch as follow:
> $if(xetex)$
> \usepackage{ifxetex}
> \ifxetex
> \usepackage{fontspec,xltxtra,xunicode}
> \defaultfontfeatures{Mapping=tex-text,Scale=MatchLowercase}
> \usepackage[
> setpagesize=false, % page size is defined by xetex
> unicode=false, % unicode breaks when used with xetex
> xetex
> ]{hyperref}
> \else
> \usepackage[mathletters]{ucs}
> \usepackage[utf8x]{inputenc}
> \usepackage[
> unicode=true
> ]{hyperref}
> \fi
> $else$
> \usepackage[mathletters]{ucs}
> \usepackage[utf8x]{inputenc}
> \usepackage[unicode=true]{hyperref}
> $endif$
> \hypersetup{
> breaklinks=true,
> pdfborder={0 0 0}
> }
> This suggestion is because using unicode=true with xetex breaks
> accentuated characters in bookmarks while using the combination
> unicode=false,xetex does the job.
> If you need myself to propose a pull request with corrected template
> from my proposals, just ask me.
> Regards.
> Mat
> On Apr 8, 10:12 am, CircleCode <codr...@gmail.com> wrote:
> > to be more precise, in the latex template (I've got it with `pandoc -D
> > latex`), the command
> > \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
> > is called on line 50 (only if you have some striked text).
> > But hyperref is loaded on line 71 with command
> > \usepackage[breaklinks=true,unicode=true,pdfborder={0 0 0}]
> > {hyperref}
> > and \pdfstringdefDisableCommands is provided by hyperref package.
> > So when you try to "compile" a latex document which have striked text,
> > latex gives an error on line with `
> > \pdfstringdefDisableCommands{\renewcommand{\sout}{}}` saying that
> > command `\pdfstringdefDisableCommands` is unknown.
> > I solved the problem by moving the block
> > $if(strikeout)$
> > \usepackage[normalem]{ulem}
> > % avoid problems with \sout in headers with hyperref:
> > \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
> > $endif$
> > after line 71.
> > This was just an indication so that you could make the correction in
> > default latex template.
> > Matthieu
> > On Apr 6, 7:46 pm, fiddlosopher <fiddlosop...@gmail.com> wrote:
> > > Sorry, could you give some more context?
> > > Are you getting an error with pandoc?
> > > If so, describe what you're doing and what error you get.
> > > On Apr 6, 8:36 am, CircleCode <codr...@gmail.com> wrote:
> > > > in latex template, it seems that
> > > > \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
> > > > could be inserted before including hyperref
> > > > which would lead to error when producing the pdf from latex
> > > > simply moving
> > > > \pdfstringdefDisableCommands{\renewcommand{\sout}{}}
> > > > below seems to be sufficient to solve the problem.