예제 #1
0
 def __init__(self):
     code_block_opening = '<pre class="abjad">\n'
     code_block_closing = '</pre>\n'
     code_indent = 0
     image_block = '<img alt="" src="images/{}.png"/>\n'
     image_format = 'png'
     OutputFormat.__init__(self, code_block_opening, code_block_closing,
         code_indent, image_block, image_format)
예제 #2
0
 def __init__(self):
     code_block_opening = '::\n\n'
     code_block_closing = '\n'
     code_indent = 3
     image_block = '.. image:: images/{image_file_name}.png\n'
     image_format = 'png'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
         )
예제 #3
0
 def __init__(self):
     code_block_opening = '::\n\n'
     code_block_closing = '\n'
     code_indent = 3
     image_block = '.. image:: images/{image_file_name}.png\n'
     image_format = 'png'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
     )
예제 #4
0
 def __init__(self):
     code_block_opening = '<pre class="abjad">\n'
     code_block_closing = '</pre>\n'
     code_indent = 0
     image_block = '<img alt="" src="images/{image_file_name}.png"/>\n'
     image_format = 'png'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
     )
예제 #5
0
 def __init__(self):
     code_block_opening = '\\begin{lstlisting}\n'
     code_block_closing = '\n\end{lstlisting}\n'
     code_indent = 0
     image_block = '\\noindent\\includegraphics[scale={scale}]'
     image_block += '{{images/{image_file_name}.pdf}}\n'
     image_format = 'pdf'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
         )
예제 #6
0
 def __init__(self):
     code_block_opening = '\\begin{lstlisting}\n'
     code_block_closing = '\n\end{lstlisting}\n'
     code_indent = 0
     image_block = '\\noindent\\includegraphics[scale={scale}]'
     image_block += '{{images/{image_file_name}.pdf}}\n'
     image_format = 'pdf'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
     )
예제 #7
0
 def __init__(self):
     code_block_opening = '\\begin{lstlisting}'
     code_block_opening += '[basicstyle=\\footnotesize\\ttfamily, breaklines=True, tabsize=4, '
     code_block_opening += 'showtabs=false, showspaces=false]\n'
     code_block_closing = '\\end{lstlisting}\n'
     code_indent = 0
     image_block = '\\includegraphics{{images/{}.pdf}}\n'
     image_format = 'pdf'
     OutputFormat.__init__(
         self, 
         code_block_opening, 
         code_block_closing,
         code_indent, 
         image_block, 
         image_format,
         )
예제 #8
0
 def __init__(self):
     code_block_opening = '\\begin{lstlisting}'
     code_block_opening += '[basicstyle=\\footnotesize\\ttfamily, '
     code_block_opening += 'breaklines=True, tabsize=4, '
     code_block_opening += 'showtabs=false, showspaces=false]\n'
     code_block_closing = '\n\\end{lstlisting}\n'
     code_indent = 0
     image_block = '\\includegraphics[scale={scale}]'
     image_block += '{{images/{image_file_name}.pdf}}\n'
     image_format = 'pdf'
     OutputFormat.__init__(
         self,
         code_block_opening,
         code_block_closing,
         code_indent,
         image_block,
         image_format,
     )