txt:txt2tags

txt2tags

Tu będą notatki nt. fenomenalnego programiczku txt2tags, który pozwala na konwersję z prostej metody zapisu w pliku tekstowym na HTML, LaTeX oraz wiele innych.

Przypisy czyli footnotes

Tytuł dokumentu Autora Imię i Nazwisko Data modyfikacji: mtime(%A %B %d, %Y) %!encoding: utf-8 % Footnotes (przypisy to potrójny nawias!!! % For manage Footnotes in LaTeX %!postproc(tex): \(\(\((.*?) \\footnote{\1 %!postproc(tex): \)\)\) } For manage Footnotes in HTML %!postproc(html): \(\(\( <small>( %!postproc(html): \)\)\) )</small> === wstawianie tagów LaTeXa === Należy umieścić to w polu konfiguracji pliku t2t <code> % wstawianie tagów LaTeX %!preproc(tex):
SSS %!preproc(tex): { BBB %!preproc(tex): } ZZZ %!postproc(tex): SSS
%!postproc(tex): BBB { %!postproc(tex): ZZZ } </code> I można używać składni LaTeXa do wstawiania dowolnego prostego znacznika, np. przypisy:

Blala ba blabla\footnote{to nie o to chodzi} bla brum.
  Headers           First 3 lines of the source file
  Title             = words =
  Numbered title    + words +
  Comment           % comments
  Separator line    -----------------------...
  Strong line       =======================...
  Image             [filename.jpg]
  Link              [label url]
  
  Bold              **words**
  Italic            //words//
  Underline         __words__
  Strike            --words--
  Monospaced        ``words``
  Raw               ""words""
  Tagged            ''words''
  
  Paragraph         words
  Quote             <TAB>words
  List              - words
  Numbered list     + words
  Definition list   : words
  Table             | cell1 | cell2 | cell3...
  
  Verbatim line     ``` words
  Raw line          """ words
  Tagged line       ''' words
  
  Verbatim block    ```
                    lines
                    ```
  Raw block         """
                    lines
                    """
  Tagged block      '''
                    lines
                    '''
  • txt/txt2tags.1428942472.txt.gz
  • ostatnio zmienione: 2022/05/22 10:38
  • (edycja zewnętrzna)