/extras/txt2tagsrc

http://txt2tags.googlecode.com/ · #! · 94 lines · 79 code · 15 blank · 0 comment · 0 complexity · d0ad6a1b558e14fa7a4c65b252973e35 MD5 · raw file

  1. %
  2. % txt2tags sample config file
  3. %
  4. % This is a sample for the .txt2tagsrc user config file.
  5. % Part of the txt2tags project (http://txt2tags.org).
  6. %
  7. % Copy this file to $HOME/.txt2tagsrc (or %homepath%/_t2trc
  8. % on Windows) and edit it to fit your needs. All configs are
  9. % COMMENTED, just remove the leading % for the ones you want
  10. % to use.
  11. %
  12. % The config syntax is:
  13. %
  14. % %!keyword (target) : value
  15. %
  16. % Keywords:
  17. % target, options, encoding, style, preproc, postproc,
  18. % guicolors
  19. % Targets:
  20. % The valid txt2tags targets (i.e.: html, man, tex)
  21. %
  22. % Details:
  23. % - If the '(target)' part is omitted, the config is valid for
  24. % all targets
  25. % - The %!keyword must be at the line start, no leading spaces
  26. % - All the options defined here can be overwritten by command
  27. % line options and document config
  28. %
  29. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  30. % Set a default target if none specified
  31. % Useful if you always use the same target for all documents
  32. %%!target: html
  33. % Set the default encoding for all documents
  34. % Examples: iso-8859-1, UTF-8
  35. % This can be turned off later with --no-encoding
  36. %%!encoding: UTF-8
  37. % Set the TOC depth for all targets
  38. % Valid values: 1, 2, 3, 4, 5
  39. % The default is 3
  40. %%!options: --toc-level 2
  41. % Always use CSS-friendly tags in HTML and XHTML
  42. % This uses H1, H2 and H3 for document top title and
  43. % defines the following DIV areas: header, toc, body
  44. % This can be turned off later with --no-css-sugar
  45. %%!options( html): --css-sugar
  46. %%!options(xhtml): --css-sugar
  47. % Always mask e-mails from robots in HTML and MOIN documents
  48. % Example: john@company.com turns to <john (a) company com>
  49. % This can be turned off later with --no-mask-email
  50. %%!options(html): --mask-email
  51. %%!options(moin): --mask-email
  52. % Always enumerate all title lines for text output
  53. % This can be turned off later with --no-enum-title
  54. %%!options(txt): --enum-title
  55. % Always make TOC (Table of Contents) in LaTeX documents
  56. % This can be turned off later with --no-toc
  57. %%!options(tex): --toc
  58. % Change the graphical interface colors
  59. % Valid values for colors: colorname, #RGB, #RRGGBB
  60. % The order is: bg1, fg1, bg2, fg2
  61. %%!guicolors: blue white brown yellow
  62. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  63. %%% FILTERS
  64. %
  65. % PreProc and PostProc filters are powerful tools to customize
  66. % txt2tags behavior and perform nice tricks. But be careful,
  67. % they do use Regular Expressions and can be dangerous if bad
  68. % written. Really test them before including here.
  69. % Shorthand for the javascript BACK call in HTML
  70. % Contribution from Prof. Sergio de Albuquerque Souza
  71. % Example: [Click here JAVABACK] to go back.
  72. %%!postproc(html): JAVABACK javascript:history.back()
  73. % Trick to create super/subscript text in HTML
  74. % Example: I will use ^^superscript^^ and also ,,subscript,,
  75. %%!postproc(html): '\^\^(.*?)\^\^' '<span style="vertical-align:super">\1</span>'
  76. %%!postproc(html): ',,(.*?),,' '<span style="vertical-align:sub">\1</span>'
  77. % LaTeX and TeX names appearing on their classical formats
  78. %%!postproc(tex): LaTeX \\LaTeX{}
  79. %%!postproc(tex): \bTeX \\TeX{}