asciidoctor / asciidoctor-latex

:triangular_ruler: Add LaTeX features to AsciiDoc & convert AsciiDoc to LaTeX
http://asciidoctor.org
Other
111 stars 26 forks source link

Fix, potentially, for fontspec/pdflatex problem #79

Open NormanDunbar opened 5 years ago

NormanDunbar commented 5 years ago

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.