Babel and graphicx
Jun. 4th, 2004 07:36 pm![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Any of the LaTeX users (and I'm too lazy to work out how to type set that properly) used both Babel and graphicx in the same document? They're not working together for me. I was adding .eps graphics to my document (they're graphs produced in other programmes) and they started out as full page landscape (because that's the easiest size to get from the other programme) so I wanted to shrink and rotate them. However, when I first tried this I got errors like:
! Package keyval Error: scale=.25 undefined.
See the keyval package documentation for explanation.
Type H for immediate help.
...
l.6 \includegraphics[scale=.25]{WediGoverns}
and
! Missing \endcsname inserted.
\textwidth
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Missing number, treated as zero.
\endcsname
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Illegal unit of measure (pt inserted).
\endcsname
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Extra \endcsname.
\endcsname
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Package keyval Error: height=\textwidth undefined.
See the keyval package documentation for explanation.
Type H for immediate help.
...
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
I thought I'm sure I've done things like this before and checked and indeed I had in my MethSoc termcard. I eventually realised that in that I'd not used carys.sty (the package of my defined commands) and indeed when I commented that out, the graphicx commands worked. A bit more fiddling identified
\usepackage[greek,latin,german,frenchb,breton,irish,welsh,english]{babel}\languageattribute{greek}{polutoniko}
as the problem element. If I comment that out, the figures work but I get all sorts of complaints about welsh etc not being defined. As a linguist marking things as different languages (even if I don't have hyphenation patterns for them) is very useful, especially as it means I can quote stuff in Greek and get the breathings and accents. Does anyone know a way round this problem?
! Package keyval Error: scale=.25 undefined.
See the keyval package documentation for explanation.
Type H
...
l.6 \includegraphics[scale=.25]{WediGoverns}
and
! Missing \endcsname inserted.
\textwidth
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Missing number, treated as zero.
\endcsname
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Illegal unit of measure (pt inserted).
\endcsname
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Extra \endcsname.
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
?
! Package keyval Error: height=\textwidth undefined.
See the keyval package documentation for explanation.
Type H
...
l.14 ...cs[height=\textwidth, angle=-90]{Weditext}
I thought I'm sure I've done things like this before and checked and indeed I had in my MethSoc termcard. I eventually realised that in that I'd not used carys.sty (the package of my defined commands) and indeed when I commented that out, the graphicx commands worked. A bit more fiddling identified
\usepackage[greek,latin,german,frenchb,breton,irish,welsh,english]{babel}\languageattribute{greek}{polutoniko}
as the problem element. If I comment that out, the figures work but I get all sorts of complaints about welsh etc not being defined. As a linguist marking things as different languages (even if I don't have hyphenation patterns for them) is very useful, especially as it means I can quote stuff in Greek and get the breathings and accents. Does anyone know a way round this problem?
Solution
Date: 2004-06-25 11:32 am (UTC)Re: Solution
Date: 2004-10-02 09:50 am (UTC)Re: Solution
Date: 2004-10-02 11:46 am (UTC)You certainly aren't the only LaTeX users at LSM; I can think of two others of the top of my head. I have to admit though that I can't place you at all. I'm also intrigued as to why you were reading something I posted in June!
Re: Solution
Date: 2004-10-04 01:18 pm (UTC)