From 0de08fd49e2cfca4ff67b3ceae0e7413ad9d746f Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 11 Jan 2024 17:17:06 +0300 Subject: [PATCH] [PDF] Fix searching and copy-pasting underscore characters 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). --- tools/acle_template.tex | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/acle_template.tex b/tools/acle_template.tex index f369b10c..24e3779a 100644 --- a/tools/acle_template.tex +++ b/tools/acle_template.tex @@ -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}