Page 1 of 1

How to view texi files?

Posted: Mon Mar 14, 2011 6:09 pm
by minibuffer
I'd like to read the spanish translation of emacs-lisp-intro

emacs-lisp-intro-es.texi

http://mercurial.intuxication.org/hg/em ... 91208876da

After downloading and starting the texi file in emacs, what should I do to see it in readable form?

Re: How to view texi files?

Posted: Mon Mar 14, 2011 8:05 pm
by nuntius
Make sure you're viewing them as texinfo files ("M-x texinfo-mode").
Display the structure menu ("C-c C-s").

These FreeBSD docs may be helpful.

If that doesn't look good, texi2html or texi2pdf may be more useful.

Re: How to view texi files?

Posted: Tue Mar 15, 2011 6:04 am
by minibuffer
The mode seems to be the "texinfo" mode, emacs does it ok. But all I get is an unreadable html source view with all the html tags in between (or is it xml?)

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<link rel="icon" href="/hgweb/elisp-es/static/hgicon.png" type="image/png" />
<meta name="robots" content="index, nofollow"/>
...

When I press C-c C-s I get a message:

Code: Select all

Searched 1 buffer; no matches for `^\(?:\...
Can it be something wrong with the texi file, or? It is about 4MB, so if anyone wants to see it...

Re: How to view texi files?

Posted: Tue Mar 15, 2011 1:39 pm
by minibuffer
Now this begins to clarify. I stupidly tried to download the corresponding html-page instead of the gz-packet. No wonder why it looked so strange with all the tags inside it.

Re: How to view texi files?

Posted: Tue Mar 15, 2011 5:36 pm
by trillioneyes
Hehe, I have done this before. I am glad I'm not the only one! :oops: