From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matthew Leifer Subject: Re: Karl Berry: Re: Nick Dokos: texi2dvi egrep regexp Date: Sat, 9 Oct 2010 17:28:35 +0100 Message-ID: References: <17038.1286563867@gamaville.dokosmarshall.org> <87sk0fk6eo.wl%ucecesf@ucl.ac.uk> <3B502F70-93E5-485E-B4B9-4850A06B7925@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0357209206==" Return-path: Received: from [140.186.70.92] (port=56466 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P4cI8-00028k-2G for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 12:29:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P4cI6-000695-IN for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 12:28:59 -0400 Received: from mail-iw0-f169.google.com ([209.85.214.169]:49079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P4cI6-00068u-D3 for emacs-orgmode@gnu.org; Sat, 09 Oct 2010 12:28:58 -0400 Received: by iwn1 with SMTP id 1so2394204iwn.0 for ; Sat, 09 Oct 2010 09:28:57 -0700 (PDT) In-Reply-To: <3B502F70-93E5-485E-B4B9-4850A06B7925@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode --===============0357209206== Content-Type: multipart/alternative; boundary=20cf3010e577a5bcfd0492319f30 --20cf3010e577a5bcfd0492319f30 Content-Type: text/plain; charset=UTF-8 Oh dear. As the person who originally suggested using texi2dvi, I feel a little bit responsible for all the trouble it has caused. I wouldn't have thought that such a widely used script would have a bug like this. Anyway, one option would be to include a patched version of texi2dvi in the org distribution, at least until the bug has been fixed in the official version. It is just a shell script, and not a huge file, so it wouldn't be too bad. Another option would be to simply inspect the contents of texi2dvi and write equivalent code in Emacs Lisp, since the original idea was just to improve the routines in org-mode that run pdflatex and bibtex. Much of the code in texi2dvi is to do with texinfo files and is irrelevant to how it is being used in org-mode so this might not be as hard as it looks. Finally, there are various LaTeX Makefiles available that attempt to build a LaTeX document with a single invocation, much like texi2dvi. They are generally a bit less sophisticated than texi2dvi and I don't think that it would be a good idea to use them directly because requiring make might be problematic on Windows. In any case, they might provide some helpful hints on how to automate LaTeX compiling. Here are links to three that I have tried: http://www.acoustics.hut.fi/u/mairas/UltimateLatexMakefile/ http://code.google.com/p/latex-makefile/ http://xpt.sourceforge.net/tools/latexmake/ I've had the most success with the third one, but that is essentially just a wrapper for texi2dvi anyway. Matt Leifer On 9 October 2010 16:27, Carsten Dominik wrote: > > On Oct 9, 2010, at 12:27 PM, Eric S Fraga wrote: > > On Fri, 8 Oct 2010 21:06:24 -0700, suvayu ali < >> fatkasuvayu+linux@gmail.com > wrote: >> >> [...] >> >> I have filed a bug report on the Fedora bugzilla[1] pointing to all >>> the relevant discussions about this issue. Feel free to add to/edit >>> it. Thanks everyone for narrowing this down. :) >>> >> >> And this bug has already been reported (twice) to Debian, as it turns >> out: >> >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=584191 >> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=586134 >> >> No resolution in either bug stream although suggestions do include >> [A-Za-z] and [[:alpha:]]. >> >> I have simply edited /usr/bin/texi2dvi (but need to do this on all of >> my other systems) and hope that next time it is upgraded the bug will >> have been fixed... >> > > Hi everyone, > > I am looking for a way out which will allow pdf compilation of Org > work out of the box, and still allow texi2dvi to be used where possible. > > I have so far come up with two possible work-arounds and would > like to hear if one of them makes sense: > > 1. I could set the environment variable LC_ALL > for the duration of the texi2dvi command to some value > like C? That should fix the egrep call, but could > it have adverse effects on the pdflatex and bibtex runs or > any other stuff used in texi2dvi? > > 2. On startup, I could use > > (if (= 0 (shell-command "echo foo | egrep \"[A-z]\"")) > .... > > > to check if there is a problem and in this case go for > manual pdflatex runs rather than using texi2dvi. THis might work, > but it would be a bit unpredictable what ends up being used, > and with no setup in Org you could get different sets of commands > on different machines. > > Any ather ideas? Comments? > > Thanks. > > - Carsten > > > > > > - Carsten > > -- >> Eric S Fraga >> GnuPG: 8F5C 279D 3907 E14A 5C29 570D C891 93D8 FFFC F67D >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > --20cf3010e577a5bcfd0492319f30 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Oh dear. =C2=A0As the person who originally suggested using texi2dvi, = I feel a little bit responsible for all the trouble it has caused. =C2=A0I = wouldn't have thought that such a widely used script would have a bug l= ike this.

Anyway, one option would be to include a patched version of = texi2dvi in the org distribution, at least until the bug has been fixed in = the official version. =C2=A0It is just a shell script, and not a huge file,= so it wouldn't be too bad. =C2=A0Another option would be to simply ins= pect the contents of texi2dvi and write equivalent code in Emacs Lisp, sinc= e the original idea was just to improve the routines in org-mode that run p= dflatex and bibtex. =C2=A0Much of the code in texi2dvi is to do with texinf= o files and is irrelevant to how it is being used in org-mode so this might= not be as hard as it looks.

Finally, there are various LaTeX Makefiles available that attempt = to build a LaTeX document with a single invocation, much like texi2dvi. =C2= =A0They are generally a bit less sophisticated than texi2dvi and I don'= t think that it would be a good idea to use them directly because requiring= make might be problematic on Windows. =C2=A0In any case, they might provid= e some helpful hints on how to automate LaTeX compiling. =C2=A0Here are lin= ks to three that I have tried:


I've had the= most success with the third one, but that is essentially just a wrapper fo= r texi2dvi anyway.

Matt Leifer

On 9 Oct= ober 2010 16:27, Carsten Dominik <carsten.dominik@gmail.com> wrote:

On Oct 9, 2010, at 12:27 PM, Eric S Fraga wrote:

On Fri, 8 Oct 2010 21:06:24 -0700, suvayu ali <fatkasuvayu+linux@gmail.com&g= t; wrote:

[...]

I have filed a bug report on the Fedora bugzilla[1] pointing to all
the relevant discussions about this issue. Feel free to add to/edit
it. Thanks everyone for narrowing this down. :)

And this bug has already been reported (twice) to Debian, as it turns
out:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D584191<= br> http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D586134<= br>
No resolution in either bug stream although suggestions do include
[A-Za-z] and [[:alpha:]].

I have simply edited /usr/bin/texi2dvi (but need to do this on all of
my other systems) and hope that next time it is upgraded the bug will
have been fixed...

Hi everyone,

I am looking for a way out which will allow pdf compilation of Org
work out of the box, and still allow texi2dvi to be used where possible.
I have so far come up with two possible work-arounds and would
like to hear if one of them makes sense:

1. =C2=A0I could set the environment variable LC_ALL
=C2=A0 for the duration of the texi2dvi command to some value
=C2=A0 like C? =C2=A0That should fix the egrep call, but could
=C2=A0 it have adverse effects on the pdflatex and bibtex runs or
=C2=A0 any other stuff used in texi2dvi?

2. On startup, I could use

=C2=A0(if (=3D 0 (shell-command "echo foo | egrep \"[A-z]\"= "))
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ....


=C2=A0to check if there is a problem and in this case go for
=C2=A0manual pdflatex runs rather than using texi2dvi. =C2=A0THis might wo= rk,
=C2=A0but it would be a bit unpredictable what ends up being used,
=C2=A0and with no setup in Org you could get different sets of commands =C2=A0on different machines.

Any ather ideas? =C2=A0Comments?

Thanks.

- Carsten





- Carsten

--
Eric S Fraga
GnuPG: 8F5C 279D 3907 E14A 5C29 =C2=A0570D C891 93D8 FFFC F67D

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gn= u.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

--20cf3010e577a5bcfd0492319f30-- --===============0357209206== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============0357209206==--