emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* fontenc makes pdf non-searchable
@ 2015-03-21  4:47 Martin Leduc
  2015-03-21 16:24 ` William Denton
  2015-08-05  0:00 ` Bastien Guerry
  0 siblings, 2 replies; 12+ messages in thread
From: Martin Leduc @ 2015-03-21  4:47 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 714 bytes --]

Hi all,
  I'm using org-mode to write a paper and export it to a pdf. It compiles just fine. 

However, when opening the experted pdf (with evince or okular) and searching for a word, the output from the search function is a list of words with apparently incorrect character encoding. 

I get the same result when compiling directly the exported tex file. However, if I remove the line:

\usepackage[T1]{fontenc}

the compiled pdf becomes correctly interpreted by the search function. According to the documentation of the org-article latex class, "There
is no facility to disable loading fontenc".

What should I do to make the pdf searchable with the org exporter ?

Thanks,
Martin

 		 	   		  

[-- Attachment #2: Type: text/html, Size: 968 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread
* Re: fontenc makes pdf non-searchable
@ 2015-03-23 22:50 Martin Leduc
  0 siblings, 0 replies; 12+ messages in thread
From: Martin Leduc @ 2015-03-23 22:50 UTC (permalink / raw)
  To: Stefan Nobis; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1410 bytes --]

You're right, I customized org-latex-pdf-process, which now call a script that basically does latex/dvips/ps2pdf. 
I cannot use pdflatex since my figures are from eps images.

Martin


dboyd2 <at> mmm.com (J. David Boyd) writes:

> And how did you determine that please?

I assume you mean how I determined that the PDF has been produced by
dvips and Ghostscript. In this case: I've just looked into the
document information of the PDF file. For example with Acrobat Reader
I just press CMD+D, with Apple Preview its CMD+I (look out in the
menus for document information or properties).

In this document information there is somewhere a line like "PDF
creator". If the PDF is created with pdftex or pdflatex, this line
should read something like "pdfTeX-1.40.15".

Each PDF viewer shows a different degree of details about the file.
For example with Apple Preview I do not see the used fonts, these are
only shown by Acrobat Reader (or command line tools like pdffonts from
xpdf).

> And how would it be switched?

The default settings of org-mode uses pdflatex. The compilation
process is configurable via the variable org-latex-pdf-process.

I don't know why and how Martin used dvips+gs. Maybe he just generated
the tex file with org and used another tool for generating PDF. Or
maybe he customized org-latex-pdf-process.

-- 
Until the next mail...,
Stefan. 		 	   		  

[-- Attachment #2: Type: text/html, Size: 1662 bytes --]

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2015-08-08  8:48 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-21  4:47 fontenc makes pdf non-searchable Martin Leduc
2015-03-21 16:24 ` William Denton
2015-03-21 18:56   ` Martin Leduc
2015-03-22 17:56     ` William Denton
2015-03-22 23:52       ` Martin Leduc
2015-03-23  7:18     ` Stefan Nobis
2015-03-23 16:07       ` J. David Boyd
2015-03-23 17:10         ` Stefan Nobis
2015-08-05  0:00 ` Bastien Guerry
2015-08-08  2:30   ` Martin Leduc
2015-08-08  8:48     ` Bastien
  -- strict thread matches above, loose matches on Subject: below --
2015-03-23 22:50 Martin Leduc

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).