X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fcommon-macros.itexi;h=2c42b5185ebc9f0273793c2e33a20d9bcdbf51fd;hb=43bdc4023b8724942b54457d905ec2e1c24266f4;hp=a971723ab7ddb013847e780f90731e20b518fe4f;hpb=77135a6a36935d2ecaca9238660486c4388bfdf1;p=lilypond.git diff --git a/Documentation/common-macros.itexi b/Documentation/common-macros.itexi index a971723ab7..2c42b5185e 100644 --- a/Documentation/common-macros.itexi +++ b/Documentation/common-macros.itexi @@ -1,6 +1,9 @@ @c -*- coding: utf-8; mode: texinfo; -*- +@c *********************************************** +@c SEE MACRO DEFINITION GUIDELINES IN macros.itexi +@c *********************************************** @c Don't replace quotes with directed quotes. @@ -50,7 +53,7 @@ @ifnotinfo @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT} -@image{\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\} +@image{pictures/\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\} @end macro @end ifnotinfo @@ -58,7 +61,7 @@ @ifinfo @macro sourceimage{FILENAME,WIDTH,HEIGHT,ALTTEXT} -@image{lilypond/\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\} +@image{lilypond/pictures/\FILENAME\,\WIDTH\,\HEIGHT\,\ALTTEXT\} @end macro @end ifinfo @@ -66,10 +69,12 @@ @c ***** Headers ***** +@ifclear snippets-sections @macro lydoctitle {TEXT} +@need 600 @emph{\TEXT\} @end macro - +@end ifclear @c ***** Indexing ***** @@ -123,3 +128,106 @@ UNTRANSLATED NODE: IGNORE ME @end macro @end ifnothtml + + +@c ***** Macros specific to the web site ***** + +@ifset web + +@macro divId {ID} +@html +
+@end html +@end macro + +@macro divClass {CLASS} +@html +
+@end html +@end macro + +@macro divEnd +@c keep the space for proper nesting of

+ +@html +
+@end html +@end macro + +@macro spanClass {CLASS} +@html + +@end html +@end macro + +@macro spanEnd +@c keep the space for proper nesting of

+ +@html +
+@end html +@end macro + + +@c not strictly necessary, but it makes things easier for updating news +@macro newsItem +@html +
+@end html +@end macro + +@macro newsEnd +@c keep the space for proper nesting of

+ +@html +
+@end html +@end macro + + +@macro imageClickable{IMAGE-FILE, EXT, MORE-TEXT, CLICK-FILE, CLICK-EXT, POSITION} +@html +
+ + \IMAGE-FILE\ + +

+ \MORE-TEXT\ +

+
+@end html +@iftex +@image{pictures/\IMAGE-FILE\,,,\IMAGE-FILE\} +@end iftex +@ifinfo +@image{lilypond/pictures/\IMAGE-FILE\,,,\IMAGE-FILE\} +@end ifinfo +@end macro + +@macro imageFloat{IMAGE-FILE, EXT, POSITION} +@html +\IMAGE-FILE\ +@end html +@iftex +@image{pictures/\IMAGE-FILE\,,,\IMAGE-FILE\,\EXT\} +@end iftex +@ifinfo +@image{lilypond/pictures/\IMAGE-FILE\,,,\EXT\} +@end ifinfo +@end macro + +@macro imageId{ID, IMAGE-FILE, EXT, ALT} +@html +
+ \ALT\ +
+@end html +@iftex +@image{pictures/\IMAGE-FILE\,,,\ALT\} +@end iftex +@ifinfo +@image{lilypond/pictures/\IMAGE-FILE\,,,\ALT\} +@end ifinfo +@end macro + +@end ifset