From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: Use dvipdfm instead of pdflatex? Date: Thu, 9 Feb 2006 11:46:47 +0100 Message-ID: <8637EA29-65D8-41A4-9383-322F614AB26B@Web.DE> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1139482500 27726 80.91.229.2 (9 Feb 2006 10:55:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 9 Feb 2006 10:55:00 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 09 11:54:58 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F79Rs-0006ni-7q for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Feb 2006 11:54:52 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F79Rr-00043O-6l for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Feb 2006 05:54:51 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F79KE-00074s-GG for help-gnu-emacs@gnu.org; Thu, 09 Feb 2006 05:46:58 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F79KB-00073F-G7 for help-gnu-emacs@gnu.org; Thu, 09 Feb 2006 05:46:56 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F79K8-00072B-L9 for help-gnu-emacs@gnu.org; Thu, 09 Feb 2006 05:46:53 -0500 Original-Received: from [217.72.192.226] (helo=smtp08.web.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F79Ne-00053R-TI for help-gnu-emacs@gnu.org; Thu, 09 Feb 2006 05:50:31 -0500 Original-Received: from [87.193.4.26] (helo=[192.168.1.2]) by smtp08.web.de with asmtp (WEB.DE 4.105 #340) id 1F79K5-0002j1-00; Thu, 09 Feb 2006 11:46:49 +0100 In-Reply-To: X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: Paminu X-Mailer: Apple Mail (2.746.2) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33099 Archived-At: Am 08.02.2006 um 22:01 schrieb Paminu: > When I woul like to generate a pdf file from my .tex file I use the > build in > converter "pdflatex". But the pdf file that is generated will not > contain > any of the pictures that I might have included in my .tex file (I have > these pictures in .esp and .pdf format). Your so-called "convertor" pdflatex is not built-in into GNU Emacs, it's an external application, a part of TeX. pdfTeX, pdflatex's core, supports only four graphics formats: PDF, PNG, GIF, and JPEG. > > Therefore I have been told to use "dvipdfm" instead. Is there > anyway to > make emacs use this by default instead of pdflatex? You can customise AUCTeX to use another programme instead of pdfTeX. Could be AUCTeX can even work with simpdftex! As an evidence I take this variable: LaTeX-command-style '(("" "%(PDF)%(latex) %S%(PDFout)")) > > Are there any differences between the two converters, besides that > dvipdfm > works with pictures? Yes. Dvipdfm is dead, Martin Wicks neither develops nor does he seem to answer support questions. (Dvipdfmx is there, supporting Unicode.) To use dvipdfm you first need to create a DVI file. dvipdfm's output cannot be easily copied and pasted because the glyphs you see in a PDF viewer are sometimes mapped to strange characters that get then pasted into the target application. dvipdfm cannot expand or compress glyphs of PS fonts used to fill lines in a better, more pleasing way (a micro-typographic feature new since the times of Gutenberg). You could check whether your image file really exists and is of the right kind. Pressing C-x C-l in AUCTeX (the TeX buffer) opens a buffer that shows TeX's diagnostic and other output. Since I don't know which TeX is installed on your Ubuntu system, the \DeclareGraphicsExtensions statement might be needed. Since you use width=10cm you *have* to use the graphicx package, graphics does not understand the keyval syntax. The following example with the saddle's picture from TeXShop works perfectly with pdfeTeX, Version 3.141592-1.30.4-2.2 (Web2C 7.5.5) on PowerPC Mac OS X 10.4.4 with AUCTeX 11.81 and in GNU Emacs 23: \documentclass[12pt]{article} \usepackage{cmap} \usepackage{graphicx} %\usepackage[T1]{fontenc} %\usepackage{textcomp} %\usepackage[ngerman]{babel} %\usepackage[latin9]{inputenc} %%\usepackage[protrusion=true,expansion=false]{microtype} %%\usepackage[protrusion=true,expansion=true]{microtype} %\DeclareGraphicsExtensions{.pdf,.png,.gif,.jpg} \begin{document} \begin{center} \includegraphics[width=10cm]{saddle} \end{center} \end{document} And, for the record: dvipdfm supports URLs and hyperlinks since last millennium. Even in colour. -- Greetings Pete A child of five could understand this! Fetch me a child of five.