]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/common-macros.itexi
Fix Issue 2146 "Illegal entry in bfrange block in ToUnicode CMap"
[lilypond.git] / Documentation / common-macros.itexi
index 83e4d0f723b398e9c18ac42c569793bfd1a431aa..1fda210772dca9152ba331fb1457d3bc1bbafa61 100644 (file)
@@ -1,11 +1,23 @@
 @c -*- coding: utf-8; mode: texinfo; -*-
 
 
+@c ***********************************************
+@c SEE MACRO DEFINITION GUIDELINES IN macros.itexi
+@c ***********************************************
+
 @c Don't replace quotes with directed quotes.
 
 @set txicodequoteundirected
 @set txicodequotebacktick
 
+@c Trick to use with proper font mappings the same NCSB fonts as
+@c LilyPond instead of those provided by TeX distribution
+@tex
+\ifpdf
+  \pdfmapfile{=lilypond.map}
+\fi
+@end tex
+
 
 @c   ***** Displaying text *****
 
@@ -130,14 +142,13 @@ UNTRANSLATED NODE: IGNORE ME
 
 @ifset web
 
-@macro help{TEXT}
-@html
-<div class="help">
-<strong>
-  <span style="text-decoration:blink">Help wanted:</span>
-</strong> \TEXT\
-</div>
-@end html
+@c make link to bugfixes for news.itexi
+@c use underscores for version: @bugfixes{2_13_13,}
+@c use specifier arg when listing multiple versions
+@c (see September 20, 2007 post for an example)
+@macro bugfixes{version,specifier}
+@uref{http://code.google.com/p/lilypond/issues/list?can=1&q=fixed_\version\&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary,Bugfixes
+\specifier\}
 @end macro
 
 @macro divId {ID}
@@ -160,41 +171,57 @@ UNTRANSLATED NODE: IGNORE ME
 @end html
 @end macro
 
+@ifclear web_version
+  @ifclear bigpage
+    @macro docLink{name,target,webLink}
+      @uref{../\target\, \name\}
+    @end macro
+  @end ifclear
+  @ifset bigpage
+    @macro docLink{name,target,webLink}
+      @uref{\target\, \name\}
+    @end macro
+  @end ifset
+@end ifclear
+@ifset web_version
+  @macro docLink{name,target,webLink}
+    \webLink\
+  @end macro
+@end ifset
 
-@c not strictly necessary, but it makes things easier for updating news
-@macro newsItem
+@macro miscLink{MISC-FILE,MISC-TEXT}
+@uref{http://lilypond.org/website/misc/\MISC-FILE\,\MISC-TEXT\}
+@end macro
+
+@macro spanClass {CLASS}
 @html
-<div class="news-item">
+<span class="\CLASS\">
 @end html
 @end macro
 
-@macro newsEnd
+@macro spanEnd
 @c keep the space for proper nesting of </p>
 
 @html
-</div>
+</span>
 @end html
 @end macro
 
-@macro exampleImage{IMAGE-FILE}
+
+@c not strictly necessary, but it makes things easier for updating news
+@macro newsItem
 @html
-<div class="float-center">
-  <a class="clickable" href="general/examples/\IMAGE-FILE\.png">
-    <img src="general/examples/\IMAGE-FILE\-small.png" alt="\IMAGE-FILE\">
-  </a>
-  <p style="text-align: center">
-    (click to enlarge)
-  </p>
-</div>
+<div class="news-item">
 @end html
-@iftex
-@image{examples/\IMAGE-FILE\-small,,,\IMAGE-FILE\,png}
-@end iftex
-@ifinfo
-@image{lilypond/examples/\IMAGE-FILE\,,,\IMAGE-FILE\,png}
-@end ifinfo
 @end macro
 
+@macro newsEnd
+@c keep the space for proper nesting of </p>
+
+@html
+</div>
+@end html
+@end macro
 
 
 @macro imageClickable{IMAGE-FILE, EXT, MORE-TEXT, CLICK-FILE, CLICK-EXT, POSITION}