Hi,
Back here after a long time quit, just wanted to ask a quick question, I
hope the customs here haven’t changed that much that I appear rude.
My problem: I have the following minimal document:
\documentclass
[ucs]
{beamer}
\author{
\url{http://tcl.sfs.uni-tuebingen.de/~um}
}
\begin{document}
\maketitle
\end{document}
I get the following errors on the line with \url:
====errors====
! Undefined control sequence.
\hyper@linkurl ...n/S/URI/URI(#2)>>}\Hy@colorlink
{\@urlcolor
}#1\close@pdfl...
l.7 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
LaTeX Font Info: Try loading font information for PU+cmtt on input
line 7.
LaTeX Font Info: No file PUcmtt.fd. on input line 7.
LaTeX Font Warning: Font shape `PU/cmtt/m/n' undefined
(Font) using `PU/pdf/m/n' instead on input line 7.
LaTeX Font Info: Try loading font information for U+msa on input line 7.
(/usr/share/texmf/tex/latex/amsfonts/umsa.fd
File: umsa.fd 2002/01/19 v2.2g AMS font definitions
)
LaTeX Font Info: Try loading font information for U+msb on input line 7.
(/usr/share/texmf/tex/latex/amsfonts/umsb.fd
File: umsb.fd 2002/01/19 v2.2g AMS font definitions
)
! Undefined control sequence.
\close@pdflink ->\Hy@endcolorlink
\pdfendlink
l.7 }
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\begingroup' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\catcode' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\active' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<def>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\csname\endcsname' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\catcode' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\active' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\csname\endcsname' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\%' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\catcode' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\active' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<def>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\csname\endcsname' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<def>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\#' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<def>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\textunderscore' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\_' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\catcode' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\active' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\csname\endcsname' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\csname\endcsname' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\~' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<let>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\textasciitilde' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\<def>-command' on input line 7.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\Hy@tempa' on input line 7.
====errors====
Note that the file is in UTF-8 encoding.
Additionaly, the line with \maketitle triggers the following warning:
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font) size <5> substituted on input line 11.
Commenting out the line [ucs] removes the errors but keeps the warnings.
Strangest of all: the string is rendered fine, with the ~ in it.
Any help to get rid of this annoying problem is much appreciated.
Cheers, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGrbSde+7xMGD3itQRAtYtAJ9zNv4KkfSBu3JEeILXec/Hep4P+gCdHOHS
2FB8AjbZdO4x2NVV3SRXqdE=
=ytlp
-----END PGP SIGNATURE-----
This works fine - placing the \author{...} definition in the main
LaTeX document/not in the document preamble:
\documentclass[ucs]{beamer}
\begin{document}
\author{\url{http://tcl.sfs.uni-tuebingen.de/~um}}
\maketitle
\end{document}
Werner
Werner Grundlingh schreef:
> On Jul 30, 2:51 am, Hendrik Maryns <hendrik_mar...@despammed.com>
> wrote:
> Hi,
>
> Back here after a long time quit, just wanted to ask a quick question, I
> hope the customs here haven't changed that much that I appear rude.
>
> My problem: I have the following minimal document:
>
> \documentclass
> [ucs]
> {beamer}
>
> \author{
> \url{http://tcl.sfs.uni-tuebingen.de/~um}
>
> }
>
> \begin{document}
>
> \maketitle
>
> \end{document}
>
> I get the following errors on the line with \url:
<snip errors and warnings>
> This works fine - placing the \author{...} definition in the main
> LaTeX document/not in the document preamble:
> \documentclass[ucs]{beamer}
> \begin{document}
> \author{\url{http://tcl.sfs.uni-tuebingen.de/~um}}
> \maketitle
> \end{document}
> Werner
Not exactly: now I get the warning
Package hyperref Warning: Option `pdfauthor' has already been used,
(hyperref) setting the option has no effect on input line 5.
and
LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
(Font) size <5> substituted on input line 7.
But the latter has been there all the time, seems like some font is missing.
Thanks anyway, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGrjpve+7xMGD3itQRAq0OAJ9uz5iw2rQwmXzF45e0M91up0X1vwCfW5v8
Ed9i+CP7b09oEwLlN11wk4M=
=ndbd
-----END PGP SIGNATURE-----
I'm not sure how to correct the hyperref warning...however, to fix the
font problem, add
\usepackage[T1]{fontenc} % allow other font encodings to be used
\usepackage{fix-cm,type1cm} % allow Computer Modern fonts of all
sizes
to your document preamble, and possible install the cm-super family of
fonts, available from CTAN at
http://tug.ctan.org/cgi-bin/ctanPackageInformation.py?id=cm-super
Also see the entry
http://www.tex.ac.uk/cgi-bin/texfaq2html?label=newfont
on the UK TeX FAQ.
Werner
> Back here after a long time quit, just wanted to ask a quick question, I
> hope the customs here haven’t changed that much that I appear rude.
>
> My problem: I have the following minimal document:
>
> \documentclass
> [ucs]
> {beamer}
>
> \author{
> \url{http://tcl.sfs.uni-tuebingen.de/~um}
> }
>
> \begin{document}
>
> \maketitle
>
> \end{document}
>
> I get the following errors on the line with \url:
>
> ====errors====
>
> ! Undefined control sequence.
> \hyper@linkurl ...n/S/URI/URI(#2)>>}\Hy@colorlink
> {\@urlcolor
> }#1\close@pdfl...
> l.7 }
beamer puts the author in a hypersetup. So you should avoid commands
that are not allowed in bookmarks:
\documentclass
[ucs]{beamer}
\author{
\texorpdfstring{\url{http://tcl.sfs.uni-tuebingen.de/~um}}{http}
}
\begin{document}
\maketitle
\end{document}
> Note that the file is in UTF-8 encoding.
>
> Additionaly, the line with \maketitle triggers the following warning:
>
> LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
> (Font) size <5> substituted on input line 11.
Font substituations are in most cases normal. You can use
\usepackage{fix-cm} if you are using type1 (scalable fonts).
--
Ulrike Fischer
Hendrik Maryns schreef:
> Ulrike Fischer schreef:
> That’s it, thanks very much!
\texorpdfstring does not seem to be something defined by Beamer. What
is it, and where is it defined?
TIA, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGrz52e+7xMGD3itQRAoNtAJwMdVvAFRbOso7oqndUBX6cQJQpmgCdFKyD
zVUdxO7BzBJd+1Hofrukp6o=
=N7Vz
-----END PGP SIGNATURE-----
Ulrike Fischer schreef:
That’s it, thanks very much!
>> Note that the file is in UTF-8 encoding.
>>
>> Additionaly, the line with \maketitle triggers the following warning:
>>
>> LaTeX Font Warning: Font shape `OT1/cmss/m/n' in size <4> not available
>> (Font) size <5> substituted on input line 11.
>
> Font substituations are in most cases normal. You can use
> \usepackage{fix-cm} if you are using type1 (scalable fonts).
Indeed, or \usepackage{lmodern}.
To finish up, a working, warning-free minimal example is the following:
\documentclass[ucs]{beamer}
\usepackage[T1]{fontenc}
\usepackage{fix-cm}
% \usepackage{lmodern}
\author{
\texorpdfstring{\url{http://tcl.sfs.uni-tuebingen.de/~um}}{http}
}
\begin{document}
\maketitle
\end{document}
Where either fix-cm or lmodern can be used (the output of course looks
slightly different).
Cheers both, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGrz3Je+7xMGD3itQRAtnPAJ4sUFpj0++meIpDrp2QrZfNfssZHwCfQfKc
Mz8ka1OdIp3UVvC+WTy35mg=
=+iBe
-----END PGP SIGNATURE-----
Ok, sorry, I found it is part of Hyperref, however, the problem is still
not entirely solved, now I get a ‘missing \item’ error:
\documentclass[ucs]{beamer}
\usepackage[T1]{fontenc}
\usepackage{fix-cm}
% \usepackage{lmodern}
\author{Uwe Mönnich\\
\texorpdfstring{\url{u...@sfs.uni-tuebingen.de}}{email}\\
\texorpdfstring{\url{http://tcl.sfs.uni-tuebingen.de/~um}}{website}
}
\begin{document}
\maketitle
\end{document}
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 }
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
! LaTeX Error: Something's wrong--perhaps a missing \item.
See the LaTeX manual or LaTeX Companion for explanation.
Type H <return> for immediate help.
...
l.10 }
Try typing <return> to proceed.
If that doesn't work, type X <return> to quit.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\\' on input line 10.
Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
(hyperref) removing `\\' on input line 10.
I hope you have an equally astute answer to this one...
TIA! H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGr0Dme+7xMGD3itQRAlSCAKCAk7YbG70LqpeC6c6sVfDd7IkJ+QCZATQ3
8s9+8SZ83wb6v7/uV9UzneM=
=Eb/M
-----END PGP SIGNATURE-----
> \author{Uwe Mönnich\\
> \texorpdfstring{\url{u...@sfs.uni-tuebingen.de}}{email}\\
> \texorpdfstring{\url{http://tcl.sfs.uni-tuebingen.de/~um}}{website}
> ! LaTeX Error: Something's wrong--perhaps a missing \item.
> Package hyperref Warning: Token not allowed in a PDFDocEncoded string,
> (hyperref) removing `\\' on input line 10.
>
> I hope you have an equally astute answer to this one...
Isn't it obvious? \\ is also a command that isn't allowed in
bookmarks/pdfauthor-key. Move the \\ inside the \texorpdfstring.
--
Ulrike Fischer
Ulrike Fischer schreef:
It is indeed obvious. /me hits himself on the head.
Thanks, H.
- --
Hendrik Maryns
http://tcl.sfs.uni-tuebingen.de/~hendrik/
==================
http://aouw.org
Ask smart questions, get good answers:
http://www.catb.org/~esr/faqs/smart-questions.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGr1Bze+7xMGD3itQRArV2AJ4jjy15FS+izwA08FDZ+bXjyQug3ACeMeJs
rofI+OCVaemW40/SK6crO/o=
=rcaf
-----END PGP SIGNATURE-----