Faheem Mitha | 1 Oct 04:31 2002
Picon

minor problem with showlabels option

I have the following equation.

\begin{align}
\label{mh_single_comp}
\alpha(X_{[1, i-1]}, X_i, X_{[i+1, n]}, Y_{i}) &= \min \left( 1,
  \frac{\pi(Y_i|X_{-i}) q_i(X_i|X_{[1, i-1]}, Y_{i}, X_{[i+1, n]})}
{ \pi(X_i|X_{-i}) q_i(Y_i|X_{[1, i-1]}, X_i ,X_{[i+1, n]})} \right)
\end{align}

The showlabels option produces a nice box with mh_single_comp to the
left of the equation, but in this case it overwrites the
equation. This isn't a big deal, but there might be a more optimal way
of handling things so this doesn't happen. Not sure what it might be,
though.

I'm using reftex, so showlabels is not really essential anyway. I'm
considering whether to turn it off.

                                                    Faheem.

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Chris Lott | 9 Oct 10:40 2002

compiling on Windows with Gnu Emacs CVS

I have compiled Gnu Emacs on Windows using MingW and the Emacs is working
fine. When I try to run configure for the CVS version of Preview Latex, I
get the following error about Emacs not supporting images:

chrisl <at> TRS80 /c/src/preview
$
./configure --with-emacs=c:/gnu/emacs --with-lispdir=c:/home/elisp --with-te
x
-site=c:/home/elisp/auctex
checking whether make sets ${MAKE}... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for c:/gnu/emacs... c:/gnu/emacs
checking if c:/gnu/emacs is really XEmacs... cat: ./conftest-1904: No such
file
or directory

checking if c:/gnu/emacs supports images... cat: ./conftest-1904: No such
file o
r directory
configure: error: "You need an Emacs that supports images"

Does this mean I need to compile something differently for my emacs or is
there a problem with the configure script?
Emacs version is: GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of 2002-10-08
on TRS80

c
--
Chris Lott

(Continue reading)

David Kastrup | 9 Oct 11:07 2002
Picon

Re: compiling on Windows with Gnu Emacs CVS

"Chris Lott" <chris <at> chrislott.org> writes:

> I have compiled Gnu Emacs on Windows using MingW and the Emacs is working
> fine. When I try to run configure for the CVS version of Preview Latex, I
> get the following error about Emacs not supporting images:
> 
> chrisl <at> TRS80 /c/src/preview
> $
> ./configure --with-emacs=c:/gnu/emacs --with-lispdir=c:/home/elisp --with-te
> x
> -site=c:/home/elisp/auctex
> checking whether make sets ${MAKE}... yes
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for c:/gnu/emacs... c:/gnu/emacs
> checking if c:/gnu/emacs is really XEmacs... cat: ./conftest-1904: No such
> file
> or directory
> 
> checking if c:/gnu/emacs supports images... cat: ./conftest-1904: No such
> file o
> r directory
> configure: error: "You need an Emacs that supports images"
> 
> 
> Does this mean I need to compile something differently for my emacs or is
> there a problem with the configure script?
> Emacs version is: GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of 2002-10-08
> on TRS80

What does
(Continue reading)

Chris Lott | 9 Oct 17:14 2002

Re: compiling on Windows with Gnu Emacs CVS

David Kastrup <David.Kastrup <at> t-online.de> spake thusly:

>> Does this mean I need to compile something differently for my emacs
>> or is there a problem with the configure script?
>> Emacs version is: GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of
>> 2002-10-08 on TRS80
> 
> What does
> 
> M-: image-types RET
> 
> tell ?

Returns:
(xpm pbm)

c

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
David Kastrup | 9 Oct 17:25 2002
Picon

Re: compiling on Windows with Gnu Emacs CVS

"Chris Lott" <chris <at> chrislott.org> writes:

> David Kastrup <David.Kastrup <at> t-online.de> spake thusly:
> 
> 
> >> Does this mean I need to compile something differently for my emacs
> >> or is there a problem with the configure script?
> >> Emacs version is: GNU Emacs 21.3.50.1 (i386-mingw-nt5.0.2195) of
> >> 2002-10-08 on TRS80
> > 
> > What does
> > 
> > M-: image-types RET
> > 
> > tell ?
> 
> Returns:
> (xpm pbm)

In that case it would appear that the configure script is broken.
Alan, any ideas?

Try removing that test.

Note that the resulting preview-latex will not work unless you do a
M-x configure-variable RET preview-image-type RET
set the type to pnm and do a "save for future sessions".

--

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
(Continue reading)

Chris Lott | 9 Oct 19:11 2002

Re: compiling on Windows with Gnu Emacs CVS

A couple of other questions:

I commented out the images check and will set it manually.

The configure script wants GS -- I assume this is equivalent to the command
line gswin32c.exe in windows -- so I created a link to that as gs.exe and
that part went fine.

Now it wants texhash -- MikTeX doesn't use texhash, but uses initexmf -- I
am concerned in that case, though, that the arguments will be different when
the command isused later. Should I comment out this text, create a link from
initexmf to texhash or just run initexmf manually later?

c
--
Chris Lott

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Alan Shutko | 10 Oct 12:30 2002
Picon

Re: compiling on Windows with Gnu Emacs CVS

David.Kastrup <at> t-online.de (David Kastrup) writes:

> In that case it would appear that the configure script is broken.
> Alan, any ideas?

Not offhand... I seem to have missed the beginning of this thread.
Anyone else notice that the mailing list archives on SF don't have
anything past February?!

Chris, could you post your config.log?

--

-- 
Alan Shutko <ats <at> acm.org> - In a variety of flavors!

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Angus Leeming | 11 Oct 11:30 2002
Picon
Picon

Notes and queries on using preview-latex with LyX

Hello all.

With David's help I've been using preview-latex to generate previews of 
things like math equations for insertion into LyX. In truth, it has all 
gone far more smoothly than I expected, but one niggling problem remains.

preview-latex tries to create a tight bounding box around the snippet, but 
has problems with math equations in display mode. The space to the left of 
the eqaution is not stripped.

Attached is a tiny sample tex file and the resultant png snippet produced 
by dvipng (I just tried that for the first time yesterday: v. nice!). Do 
you see the problem?

On Tuesday 27 August 2002 11:58 am, David Kastrup wrote:
> You might want to run preview.sty with the showbox option to
> find out about the structure of the shipped-out box.
> Immediately preceding space is supposed to get stripped,
> but maybe without a preceding \noindent the structure
> gets too complicated.

Well, I tried this, but ran into problems with the showbox option. I 
upgraded to yesterday's preview-latex cvs but to no avail. Latex hangs with:

! OK.
\pr <at> ship <at> end ...ber \wd \pr <at> box }\showbox \pr <at> box

l.10 \end{preview}

Incidentally, David, adding \noindent to the start of the previewed snippet 
(Continue reading)

David Kastrup | 11 Oct 12:17 2002
Picon

Re: Notes and queries on using preview-latex with LyX

Angus Leeming <a.leeming <at> ic.ac.uk> writes:

> With David's help I've been using preview-latex to generate previews of 
> things like math equations for insertion into LyX. In truth, it has all 
> gone far more smoothly than I expected, but one niggling problem remains.
> 
> preview-latex tries to create a tight bounding box around the snippet, but 
> has problems with math equations in display mode. The space to the left of 
> the eqaution is not stripped.

preview-latex does a bit of space stripping, mostly vertical.  Getting
inside of math boxes would be overkill.  You have to be aware that
preview.sty operates solely on TeX boxes.  If you don't like what it
does, the solution is to change the TeX boxes.

In your case, you want equations that are flush left.  Well, then
declare the fleqn option to the document class!

Actually, if preview-latex had any possibility to do so and stripped
this space, then sequences of equations would no longer have their
equation numbers line up properly.  This looks quite ugly.  Back in
olden time of preview-latex, the bounding boxes were determined by
dvips, so space was tightly stripped including the left border.  The
results were a source of frequent complaint, so that we actually
fudged the bounding box to start always at the left border
_manually_.  Now that TeX boxes are used for determining the image
dimensions (much more robust), it would become pretty hard to achieve
the effect that a lot of people complained about.

> Attached is a tiny sample tex file and the resultant png snippet
(Continue reading)

Angus Leeming | 11 Oct 13:05 2002
Picon
Picon

Re: Notes and queries on using preview-latex with LyX

David Kastrup wrote:

> Angus Leeming <a.leeming <at> ic.ac.uk> writes:
>> With David's help I've been using preview-latex to generate previews of
>> things like math equations for insertion into LyX. In truth, it has all
>> gone far more smoothly than I expected, but one niggling problem remains.

>> preview-latex tries to create a tight bounding box around the snippet,
>> but has problems with math equations in display mode. The space to the
>> left of the eqaution is not stripped.

> preview-latex does a bit of space stripping, mostly vertical.  Getting
> inside of math boxes would be overkill.  You have to be aware that
> preview.sty operates solely on TeX boxes.  If you don't like what it
> does, the solution is to change the TeX boxes.

> In your case, you want equations that are flush left.  Well, then
> declare the fleqn option to the document class!

Ahhhh. 
\documentclass[fleqn]{article}
\mathindent 0em

This does indeed do the trick. Note that the \mathindent command is also 
needed. Can I ask one more LaTeX-dummy question: will fleqn work with 
classes other than article. Ie, can I use it without question?

> Actually, if preview-latex had any possibility to do so and stripped
> this space, then sequences of equations would no longer have their
> equation numbers line up properly.  This looks quite ugly.
(Continue reading)


Gmane