emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Carsten Dominik <carsten.dominik@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: Karl Berry: Re: Nick Dokos: texi2dvi egrep regexp
Date: Sat, 09 Oct 2010 12:42:41 -0400	[thread overview]
Message-ID: <26025.1286642561@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Carsten Dominik <carsten.dominik@gmail.com> of "Sat, 09 Oct 2010 17:27:23 +0200." <3B502F70-93E5-485E-B4B9-4850A06B7925@gmail.com>

Carsten Dominik <carsten.dominik@gmail.com> wrote:


> 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?
> 

Yes, at least theoretically. I don't think anybody has gone down
the path of investigating these effects.

> 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.
> 

The trouble with this is that you are checking on egrep which will give
you a positive for egrep versions >= 2.6.x, but the fix to texi2dvi might
have made that irrelevant. How about

     try
        texi2dvi
     except
        do Seb's thrice-repeated pdflatex (or whatever) call        

After everybody has updated to the latest texinfo, the exception code
can be taken out.

Alternatively, the texi2dvi method can be reverted: it was an idea that
was worth trying, but it has caused more harm than good at this point
- maybe it can be revisited in six months.

> Any ather ideas?  Comments?
> 

Nick

  parent reply	other threads:[~2010-10-09 16:42 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-08 18:51 Karl Berry: Re: Nick Dokos: texi2dvi egrep regexp Nick Dokos
2010-10-09  4:06 ` suvayu ali
2010-10-09 10:27   ` Eric S Fraga
2010-10-09 15:27     ` Carsten Dominik
2010-10-09 16:28       ` Matthew Leifer
2010-10-09 16:42       ` Nick Dokos [this message]
2010-10-09 17:25         ` Thomas S. Dye
2010-10-10  7:05           ` Carsten Dominik
2010-10-10 16:37             ` Thomas S. Dye
2010-10-10 18:04         ` Eric S Fraga
2010-10-09 16:59       ` Achim Gratz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=26025.1286642561@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).