Skip to content

Commit

Permalink
[PDF] Fix searching and copy-pasting underscore characters
Browse files Browse the repository at this point in the history
In the existing setup, the *.md source files are converted to PDF by
pandoc that invokes pdflatex internally. With the default font encoding,
underscore characters inside paragraphs of text look like whitespace
(or absent) in the produced PDF documents w.r.t. copy-pasting text from
PDF viewer or searching. This may confuse users as it makes
`__ARM_FEATURE_name` and `long_function_name` strings invisible to the
"Search ..." function of a viewer, but only if they are not inside a
standalone block of code.

One of the solutions is to use T1 font encoding and ensure that Type 1
fonts are available (i.e. pdflatex does not have to use rasterized
Type 3 fonts).
  • Loading branch information
atrosinenko authored and vhscampos committed Jan 15, 2024
1 parent 9d7d2e4 commit 0de08fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/acle_template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
% See `data/templates` in `COPYRIGHT` at https://github.com/jgm/pandoc

\documentclass[a4,10pt]{report}
\usepackage[T1]{fontenc}
\usepackage{xcolor}
\usepackage{sectsty}
\usepackage{hyperref}
Expand Down

0 comments on commit 0de08fd

Please sign in to comment.