Discussion:
Logo Not Displaying ... Still
Rich Shepard
2009-05-02 23:15:42 UTC
Permalink
Last Wednesday I posted a message to the beamer-linux-users mail list on
sourceforge.net and have not seen a response to it, or any other post to
that mail list.

I'm back in the grove using the beamer class but still cannot get the logo
to display on each slide. (It doesn't display on the title slide, but that
is normal as I recall.)

I'd greatly appreciate some more thoughts on how to identify the problem.
The code I'm using matches what is required based on the user's guide, and
it does work for others here. Why it's not working here is what I need to
learn.

The logo, like all the images in this presentation, are in .pdf format and
I use pdflatex to view and export the developing document. It's quite
frustrating as this is the last issue I need to resolve.

There is a sample page attached that shows how the box and text are
displayed rather than the image itself.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Jürgen Spitzmüller
2009-05-03 09:11:11 UTC
Permalink
Post by Rich Shepard
There is a sample page attached that shows how the box and text are
displayed rather than the image itself.
How do you include the image? Do you use \pgfdeclareimage?

An example file would probably be enlighting.

Jürgen
Rich Shepard
2009-05-03 14:36:54 UTC
Permalink
Post by Jürgen Spitzmüller
How do you include the image? Do you use \pgfdeclareimage?
An example file would probably be enlighting.
Juergen,

My apologies for not including this in the original message:

\pgfdeclareimage[height=0.5cm]{institution-logo}{aesi-logo.pdf}
\logo{\pgfuseimage{institution-logo}}

The above is copied and pasted directly from the document. At the
suggestion of someone here I added to the preamble \usepackage{pgfpages}
which I've not done before. Makes no positive difference.

The document I copied for the new presentation (finalized Aug 2, 2006)
uses the same structure, and that built the pdf so the logo displays
correctly.

I don't know that this is related, but previous versions of documents I
created with LyX have the ERT in collapsed grey boxes. These new documents
have them all expanded with red outlines. This seems to be the say 1.6.2
displays the embedded LaTeX.

Thanks,

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Jürgen Spitzmüller
2009-05-03 16:35:42 UTC
Permalink
Post by Rich Shepard
\pgfdeclareimage[height=0.5cm]{institution-logo}{aesi-logo.pdf}
\logo{\pgfuseimage{institution-logo}}
where is that file aesi-logo.pdf stored? Since LyX compiles your file in a
temporary directory, you must either

* store it somewhere where TeX can find it (i.e., in texmf/)
* give a full path, e.g.
\pgfdeclareimage[height=0.5cm]{institution-logo}{/home/rich/aesi-logo.pdf}
* put the following in the preamble: \def\***@path{{/path/to/the/lyx/file}}

Jürgen
Rich Shepard
2009-05-03 17:22:58 UTC
Permalink
Post by Jürgen Spitzmüller
where is that file aesi-logo.pdf stored? Since LyX compiles your file in a
temporary directory, you must either
It is in the pwd with the .lyx files.

Even when I provide the full path (which I had done before trying
yesterday it with the assumption of the pwd), it makes no difference.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Jürgen Spitzmüller
2009-05-03 17:30:28 UTC
Permalink
Post by Rich Shepard
It is in the pwd with the .lyx files.
Then, giving simply the file name will not work.

Jürgen
Paul A. Rubin
2009-05-03 14:45:36 UTC
Permalink
Post by Rich Shepard
Last Wednesday I posted a message to the beamer-linux-users mail list on
sourceforge.net and have not seen a response to it, or any other post to
that mail list.
I'm back in the grove using the beamer class but still cannot get the logo
to display on each slide. (It doesn't display on the title slide, but that
is normal as I recall.)
Mine display on the title slide, but I use a somewhat different approach.
Post by Rich Shepard
I'd greatly appreciate some more thoughts on how to identify the problem.
The code I'm using matches what is required based on the user's guide, and
it does work for others here. Why it's not working here is what I need to
learn.
That coupled with the printing of the internal image name makes me think
that beamer can't find the actual image file (or thinks it can't find
it). I'll second Jürgen on this: can you post a stripped document
(maybe just title slide and first content slide) plus the image file?
Post by Rich Shepard
The logo, like all the images in this presentation, are in .pdf format and
I use pdflatex to view and export the developing document. It's quite
frustrating as this is the last issue I need to resolve.
FWIW, I hacked a few of the beamer style files to create a style for my
class slides. Most of the changes are probably stuff you would have no
interest in, but the changes to the beamerthemeWhatever.sty files
included declaring a couple of image files, one used as a watermark just
on the title slide, the other tucked into the lower right of every slide
(including the title slide). If you're going to use the same theme,
same logo for multiple presentations, creating your own theme is
probably worth the modest amount of effort. Incidentally, I put the
hacked theme files in my local texmf tree, including the image files,
which obviates the need for path information when I load them.

If you want to see my hacks, let me know.

/Paul
Rich Shepard
2009-05-03 15:32:34 UTC
Permalink
Post by Paul A. Rubin
Mine display on the title slide, but I use a somewhat different approach.
I think that mine used to display on the title slide, too. It's been a
while since I created a presentation so I cannot be certain of what changed
when.
Post by Paul A. Rubin
That coupled with the printing of the internal image name makes me think
that beamer can't find the actual image file (or thinks it can't find it).
I'll second Juergen on this: can you post a stripped document (maybe just
title slide and first content slide) plus the image file?
It looks that way, but specifying the full path doesn't help either
(that's how it used to be).

Small file attached. Logo to follow on separate message as total size
(even when tarred and gzipped) exceeds MLM message size of 60000 bytes.

BTW, on a related issue, how can I use the keyboard to mark a large block
of text? I cannot find this in the users guide (under selecting text) nor
can I find a keyboard shortcut to do the job. My trackball doesn't have a
wheel and trying to block a large amount of the display is a slow and
painful process because the document does not automatically scroll when the
cursor is at the bottom of the frame.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Abdelrazak Younes
2009-05-03 15:36:51 UTC
Permalink
Post by Rich Shepard
BTW, on a related issue, how can I use the keyboard to mark a large block
of text?
Pretty standard keyboard way: Shift+PageUp/Down or ArrowUp/Down.
You can also use Shift+left mouse click.

Abdel.
Rich Shepard
2009-05-03 15:48:08 UTC
Permalink
Post by Abdelrazak Younes
Pretty standard keyboard way: Shift+PageUp/Down or ArrowUp/Down.
You can also use Shift+left mouse click.
Abdel,

Huh! I must have been pressing ctrl-PgDn instead of shift-PgDn.

The shift-left mouse click is too slow as I have to move the cursor in and
out of the frame to get the text to scroll.

Thanks for the reminder,

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2009-05-03 15:45:54 UTC
Permalink
Post by Rich Shepard
Small file attached. Logo to follow on separate message as total size
(even when tarred and gzipped) exceeds MLM message size of 60000 bytes.
Aw, rats. Message still too large. I put a copy (temporarily) of the logo
on our web site. You can use wget to download it from
<http://www.appl-ecosys.com/aesi-logo.pdf>.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Paul A. Rubin
2009-05-03 16:42:11 UTC
Permalink
Ok, I don't have an answer to why you get the "institution-logo"
overprint (I did here too), but I have a workaround. Replace your two
LaTeX commands for the image with

\logo{\includegraphics[bb=0in 9.5in 2.6in 11in, clip,
height=0.5cm]{aesi-logo.pdf}}

and see if that helps.

/Paul
Rich Shepard
2009-05-03 18:16:01 UTC
Permalink
\logo{\includegraphics[bb=0in 9.5in 2.6in 11in, clip, height=0.5cm]{aesi-logo.pdf}}
and see if that helps.
Paul,

When I commented out the original two lines and added the above, it would
not run pdflatex to create a view. After a second it quit. No log file. I'll
try exporting as .tex and running pdflatex on it to see if I can find an
error message.

Sigh,

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Ingar Pareliussen
2009-05-03 18:29:26 UTC
Permalink
Hi,

I do not know what is the problem with pdf, beamer and logos, however, I have no problem using a jpg as a logo in my beamer presentations. I put in ERT on the title slide just before the first end-slide: \logo{\includegraphics[height=0.9cm]{/pwd/full/logo.jpg}} And it appears on every slide (except the title slide).

Ingar
Rich Shepard
2009-05-03 19:46:02 UTC
Permalink
Post by Ingar Pareliussen
I do not know what is the problem with pdf, beamer and logos, however, I
have no problem using a jpg as a logo in my beamer presentations. I put in
\logo{\includegraphics[height=0.9cm]{/pwd/full/logo.jpg}} And it appears
on every slide (except the title slide).
Ingar,

Thank you for the information. For whatever the reason, no format works
here with the pdfgraphics syntax. Your syntax also works with other formats,
including .pdf.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2009-05-03 18:23:05 UTC
Permalink
Ok, I don't have an answer to why you get the "institution-logo" overprint
(I did here too), but I have a workaround. Replace your two LaTeX
commands for the image with
\logo{\includegraphics[bb=0in 9.5in 2.6in 11in, clip,
\height=0.5cm]{aesi-logo.pdf}}
and see if that helps.
Paul,

Yes, it does. Thank you. I'd still like to understand what's broken with
the suggested code.

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Paul A. Rubin
2009-05-03 20:40:31 UTC
Permalink
Post by Rich Shepard
Ok, I don't have an answer to why you get the "institution-logo" overprint
(I did here too), but I have a workaround. Replace your two LaTeX
commands for the image with
\logo{\includegraphics[bb=0in 9.5in 2.6in 11in, clip,
\height=0.5cm]{aesi-logo.pdf}}
and see if that helps.
Paul,
Yes, it does. Thank you. I'd still like to understand what's broken with
the suggested code.
Rich
Ok, I think I've got this sorted out. Three things:

1. If you move the LaTeX code to a standard environment above the
title, you'll get the logo on the title page as well as on the slides.

2. The \pgfdeclareimage command does not appear to accept clipping and
bounding arguments, so if you want to use that, you'll need to redo the
image in a way that fills up the page it's drawn on in the source
document. (There may be some sneaky way to bound and clip with
\pgfdeclareimage, but I haven't yet found the docs for it, so all I know
is that it rejects bounding box options if they're put in the same
optional argument where you have the height ... unless I'm munging the
syntax.}

and <drum roll>

3. Your syntax is fine. It will work (other than the clipping issue)
if you export a .tex file and run pdflatex manually. The reason for the
"institution-logo" text is indeed that, as I suspected, PGF can't find
the logo. The reason it can't find the logo is that LyX is not copying
the image files to the temp buffer, because the image file is only
mentioned in a \pgfdeclareimage command, which LyX does not parse. If I
make the path absolute and then View -> PDF from LyX, it works (except
that the image is miniscule due to the clipping/bounding issue).

/Paul
Rich Shepard
2009-05-03 23:25:06 UTC
Permalink
Thanks, Paul. I wish I had the time to dig deeply into LaTeX, LyX, and
PSTricks.
1. If you move the LaTeX code to a standard environment above the title,
you'll get the logo on the title page as well as on the slides.
OK. Makes sense now that I think about it.
2. The \pgfdeclareimage command does not appear to accept clipping and
bounding arguments, so if you want to use that, you'll need to redo the
image in a way that fills up the page it's drawn on in the source
document. (There may be some sneaky way to bound and clip with
\pgfdeclareimage, but I haven't yet found the docs for it, so all I know
is that it rejects bounding box options if they're put in the same
optional argument where you have the height ... unless I'm munging the
syntax.}
Perhaps it's that pdf files have bounding box arguments incorporated that
has caused the problems. In prior presentations I used the .eps form of the
logo, but that didn't work here, either.
3. Your syntax is fine. It will work (other than the clipping issue) if
you export a .tex file and run pdflatex manually. The reason for the
"institution-logo" text is indeed that, as I suspected, PGF can't find the
logo. The reason it can't find the logo is that LyX is not copying the
image files to the temp buffer, because the image file is only mentioned
in a \pgfdeclareimage command, which LyX does not parse. If I make the
path absolute and then View -> PDF from LyX, it works (except that the
image is miniscule due to the clipping/bounding issue).
That's interesting. Perhaps when I get back and have time I'll look more
deeply into this.

In the View menu I have three pdf options: dvipdfm, pdflatex, and ps2pdf.
With the original syntax none of the three produce the logo. Also, exporting
to a .tex file using the pdflatex option rather than the plain TeX option
also doesn't work here.

Very much appreciated,

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Paul A. Rubin
2009-05-04 00:00:03 UTC
Permalink
Post by Rich Shepard
In the View menu I have three pdf options: dvipdfm, pdflatex, and ps2pdf.
With the original syntax none of the three produce the logo. Also, exporting
to a .tex file using the pdflatex option rather than the plain TeX option
also doesn't work here.
Exporting to a .tex file (pdflatex) and either using an absolute path
for the image or putting it in the same directory as the .tex file works
here, to the extent that the "institution-logo" thing goes away and I
get an itsy-bitsy logo image (or a decent size one if I substitute a
different version of the image file, either PNG or PDF). I can't
imagine why that wouldn't work for you, although I did find a bug report
that indicated some unfortunate user had an old version of pgf.sty lying
around that was being picked up in preference to the more recent one.
Somewhere buried in the LaTeX log file I think you'll find the version
number/date of pgf.sty. (Mine is v 1.12 2008/01/15, which is what was
mentioned in the follow-up to the bug report as the correct version.)
The poster there said he hosed the older directory, ran texhash and
fixed the problem.

Enjoy the trip.

/Paul
Rich Shepard
2009-05-05 22:06:31 UTC
Permalink
Exporting to a .tex file (pdflatex) and either using an absolute path for the
image or putting it in the same directory as the .tex file works here, to the
extent that the "institution-logo" thing goes away and I get an itsy-bitsy
logo image (or a decent size one if I substitute a different version of the
image file, either PNG or PDF).
Paul,

Serious issues have come up and I've not experienced anything like them
before.

When I use View->pdflatex I can see the logo on each slide after the
first. Now that I finished the presentation, I used File->Export->pdflatex
to produce a .pdf on disk. Viewing that with both xpdf and acroread, the
logo is not seen; I'm back to "institution-logo" across the box. Why? Why
does viewing with pdflatex work but not exporting that way?

So, I went to CTAN and grabbed all the files in the directory with pdf.sty
and copied those over the existing files in both
/usr/share/texmf/tex/latex/pgf-1.00/latex/pgf/basiclayer/ and
/usr/share/texmf/tex/latex/pgf/. Now I cannot view or export to plain LaTeX,
pdflatex, or anything.

Don't know how I got the system so FUBAR, but I need to fix it quickly.

Anyone with ideas?

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Rich Shepard
2009-05-05 22:29:17 UTC
Permalink
Post by Rich Shepard
Serious issues have come up and I've not experienced anything like them
before.
All fixed.

I downloaded pgf-2.00 and installed it in /usr/share/texmf/tex/latex/
(other than the context directory). Then I removed the pgf/ and pgf-1.00/
directories there and ran texhash.

Happy camper now. Whew!

Rich
--
Richard B. Shepard, Ph.D. | Integrity Credibility
Applied Ecosystem Services, Inc. | Innovation
<http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: 503-667-8863
Continue reading on narkive:
Loading...