tkaczanowski

asciidoc varia

Feb 13th, 2012
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. #footnote without whitespace
  2. something{empty}pass:[]footnote:[whatever]
  3.  
  4. #if
  5. a2x -a paramname=true
  6. asciidoc -a paramname=true
  7. in .txt file:
  8. ifdef::paramname[]
  9. something
  10. endif::paramname[]
  11.  
  12.  
  13. grep -o '[^ ]*[A-Z][A-Z][^ ]*' *.txt | cut -d ":" -f 2 | sort | uniq > terms.txt
  14.  
  15. a2x -a icons --icons-dir /home/tomek/book/book/images/icons -k -f pdf -a docinfo1 -d book --xsltproc-opts "--stringparam generate.toc \"book toc,title,table,figure\" --param local.l10n.xml document\(\'$SRCDIR/resources/custom-format.xml\'\)" --fop $SRCDIR/book/book.txt -v -D $TARGET
  16.  
  17. <?xml version="1.0"?>
  18. <l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
  19. <l:l10n language="en">
  20. <!-- TOC title -->
  21. <l:gentext key="ListofExamples" text="List of Listings"/>
  22.  
  23. <!-- Title over each listing -->
  24. <l:context name="title">
  25. <l:template name="example" text="Listing %n. %t"/>
  26. </l:context>
  27.  
  28. <!-- References to Tables, Figures and Listings -->
  29. <l:context name="xref-number-and-title">
  30. <l:template name="table" text="Table %n"/>
  31. <l:template name="figure" text="Figure %n"/>
  32. <l:template name="example" text="Listing %n"/>
  33. <l:template name="section" text="Section %n"/>
  34. </l:context>
  35.  
  36. </l:l10n>
  37. </l:i18n>
Advertisement
Add Comment
Please, Sign In to add comment