[personal profile] yrieithydd
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?

Solution

Date: 2004-06-25 11:32 am (UTC)
From: [identity profile] yrieithydd.livejournal.com
The simple solution I found was to use graphics rather than graphicx. Less elegant syntax but it works with Babel!

Re: Solution

Date: 2004-10-02 09:50 am (UTC)
From: (Anonymous)
A better solution is to put \shorthandoff= just after \begin{document} The = is used to put a macron on a following Latin vowel; this conflicts with its use in providing parameters to includegraphics. See tlc2 p.557. David Stone, who now knows he's not the only LaTeX user at LSM. p.s. btw, news:comp.text.tex would get you a quicker answer.

Re: Solution

Date: 2004-10-02 11:46 am (UTC)
From: [identity profile] yrieithydd.livejournal.com
That's all very well if I don't need to put macrons on Latin vowels which is potentially the case. I haven't quoted much Latin as yet, but I might have too. I know there are longhand ways of doing it, but graphics is working for me. Printing proper EPS helps too because I don't need to rotate stuff so the syntax is less horrible anyway.

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)
From: (Anonymous)
just use \shorthandon= to re-enable it for macrons, \shorthandoff= to disable it again. I stumbled on your journal because it's the only google result for `versicle response character latex'. dfs.

Profile

yrieithydd

May 2023

S M T W T F S
 1234 56
78910111213
14151617181920
21222324252627
28293031   

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 16th, 2025 03:07 pm
Powered by Dreamwidth Studios