asciidoctor/asciidoctor-latex

Fix, potentially, for fontspec/pdflatex problem

NormanDunbar opened this issue · 0 comments

The code generated by asciidoctor-latex in the preamble is as follows:

% Needed to properly typeset
% standard unicode characters:
%
\RequirePackage{fix-cm}
\usepackage{fontspec}
\usepackage[Latin,Greek]{ucharclasses}

I believe this is to allow UTF8 charactersets in the generated tex file. Unfortunately, this also prevents the use of pdflatex.

I have been using the following with pdflatex for some time and this also allows tex files to use utf8 encoding:

\usepackage[utf8]{inputenc}

This line could be used to replace the ones currently being output.

I'm not sure if the lack of fontspec will cause problems elsewhere of course, but people with better brains than me will know.

Cheers,
Norm.