How to have a colored background for the code blocks in the generated PDF

2009-01-26 Thread ksachdeva

Hi,

Inspired from the django documentation system I have adopted sphinx
for writing my documentation. It is really fantastic piece of work.
Thanks for the hard work you  have put into it.

In my documentation I have some code fragments and in the generated
HTML I am able to have a colored background (using css inspired from
django docs). This colored background helps in distinguishing the code
blocks from the normal text.

http://docs.djangoproject.com/en/dev/intro/overview/#intro-overview

The above page shows the output which has green background for code
blocks

I am now wondering how to have the similar thing for the PDF that I
generate from the latex.

I am on Windows Vista and use MikeTex for PDF generation.

Would really appreciate your help and advise.

Regards  thanks
Kapil

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to 
sphinx-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---



Not able to generate the PDF using MikTex 2.7

2008-11-01 Thread ksachdeva

Hi,

I am able to generate HTML and tex from a very basic (actually the
content created by sphinx quick start) setup but when I try to
generate pdf using pdftex utility I get bunch of errors and nothing
gets generated. Again, I have not added anything to the project
created by sphinx quick start.

Regards  thanks
Kapil

The log file 43 KB so just putting some bits here...

This is pdfTeX, Version 3.1415926-1.40.9 (MiKTeX 2.7) (preloaded
format=pdftex 2008.11.1)  1 NOV 2008 03:47
entering extended mode
**Test.tex Test.pdf
(Test.tex
! Undefined control sequence.
l.2 \documentclass
  [letterpaper,10pt]{manual}
?
! Undefined control sequence.
l.3 \usepackage
   [utf8]{inputenc}
?
! Undefined control sequence.
l.4 \usepackage
   [T1]{fontenc}
?
! Undefined control sequence.
l.5 \title
  {Test Documentation}
?
! Undefined control sequence.
l.6 \date
 {November 01, 2008}
?
! Undefined control sequence.
l.7 \release
{0.1}
?
! Undefined control sequence.
l.8 \author
   {ksachdeva}
?
! Undefined control sequence.
l.9 \newcommand
   {\sphinxlogo}{}
?
! Undefined control sequence.
l.9 \newcommand{\sphinxlogo
   }{}
?
! Undefined control sequence.
l.11 \makeindex

?
! Undefined control sequence.
l.12 \makemodindex

?
! Undefined control sequence.
l.13 \newcommand
[EMAIL PROTECTED]
?
! Undefined control sequence.
l.13 \newcommand\at
   [EMAIL PROTECTED]
?
! Undefined control sequence.
l.14 \newcommand
\lb{[}
?
! Undefined control sequence.
l.14 \newcommand\lb
   {[}
?
! Undefined control sequence.
l.15 \newcommand
\rb{]}
?
! Undefined control sequence.
l.15 \newcommand\rb
   {]}
?
! Undefined control sequence.
l.16 \newcommand
\PYGaz[1]{\textcolor[rgb]{0.00,0.63,0.00}{#1}}
?
! Undefined control sequence.
l.16 \newcommand\PYGaz
  [1]{\textcolor[rgb]{0.00,0.63,0.00}{#1}}
?
! Undefined control sequence.
l.16 \newcommand\PYGaz[1]{\textcolor
[rgb]{0.00,0.63,0.00}{#1}}
?
! You can't use `macro parameter character #' in horizontal mode.
l.16 ...PYGaz[1]{\textcolor[rgb]{0.00,0.63,0.00}{#
  1}}
?
! Undefined control sequence.
l.17 \newcommand
\PYGax[1]{\textcolor[rgb]{0.84,0.33,0.22}
{\textbf{#1}}}

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
sphinx-dev group.
To post to this group, send email to sphinx-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sphinx-dev?hl=en
-~--~~~~--~~--~--~---