12.07.2015 Views

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

The memoir class - The UK TeX Archive

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10. FLOATS AND CAPTIONSdocument. If you do not do this, then the ‘List of. . . ’ captions will come out in the wrongorder (the lists are ordered according the page number in the typeset document, not yoursource input order).10.8 BILINGUAL CAPTIONSSome documents require bilingual (or more) captions. <strong>The</strong> <strong>class</strong> provides a set of commandsfor bilingual captions. Extensions to the set, perhaps to support trilingual captioning,are left as an exercise for the document author. Essentially, the bilingual commandscall the \caption command twice, once for each language.Several commands for bilingual captions are provided. <strong>The</strong>y all produce the sameappearance in the text but differ in what they put into the ‘List of. . . ’.\bitwonumcaption[〈label〉]{〈short1〉}{〈long1〉}%{〈NAME〉}{〈short2〉}{〈long2〉}\bionenumcaption[〈label〉]{〈short1〉}{〈long1〉}%{〈NAME〉}{〈short2〉}{〈long2〉}Bilingual captions can be typeset by the \bitwonumcaption command which has sixarguments. <strong>The</strong> first, optional argument 〈label〉, is the name of a label, if required. 〈short1〉and 〈long1〉 are the short (i.e., equivalent to the optional argument to the \caption command)and long caption texts for the main language of the document. <strong>The</strong> value of the〈NAME〉 argument is used as the caption name for the second language caption, while〈short2〉 and 〈long2〉 are the short and long caption texts for the second language. For example,if the main and secondary languages are English and German and a figure is beingcaptioned:\bitwonumcaption{Short}{Long}{Bild}{Kurz}{Lang}If the short title text(s) is not required, then leave the appropriate argument(s) either emptyor as one or more spaces, like:\bitwonumcaption[fig:bi1]{}{Long}{Bild}{ }{Lang}Both language texts are entered into the appropriate ‘List of. . . ’, and both texts are numbered.Figure 10.16, typeset from the following code, is an example.\begin{figure}\centeringEXAMPLE FIGURE WITH BITWONUMCAPTION\bitwonumcaption[fig:bi1]%{}{Long \cs{bitwonumcaption}}%{Bild}{ }{Lang \cs{bitwonumcaption}}\end{figure}Both \bionenumcaption and \bitwonumcaption take the same arguments. <strong>The</strong> differencebetween the two commands is that \bionenumcaption does not number the secondlanguage text in the ‘List of. . . ’. Figure 10.17, typeset from the following, is an exampleof this.\begin{figure}\centering192

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!