CERN Accelerating science

This website is no longer maintained. Its content may be obsolete. Please visit http://home.cern/ for current CERN information.

next up previous
Next: General Tips Up: cnl232.html Previous: UNIX Tips

Some Text Processing "Tips"

  Andreas Wagner IT/User Support



Question   -   Rotate a table or figure with LaTeX
How can I rotate a table or figure with LaTeX ?

Answer   -   Use the package rotating, e.g.:

 
    \documentclass{article}
    \usepackage{rotating}
    \begin{document}
      \begin{sideways}
        \begin{tabular}{|l|c|c|}
          \hline
           Month & number & --------- \\
          \hline\hline
           Jan & 317 & \\
           Feb & 234 & \\
           Mar & 584 & \\
          \hline
         \end{tabular}
      \end{sideways}
    \end{document}
 
Note: A detailed description of the commands provided by the package rotating can be found in The LaTeX Companion


Question   -   Background picture with HTML
In Latex there is a nice macro called

      \usepackage{draftcopy}
 
which puts "DRAFT" across the pages of a document in a "watermark" fashion. Do you know of a background picture which I could enable in HTML to create the same effect in a WWW document?

Answer   -   A background image may be included on an HTML page by using the "BACKGROUND" qualifier in the BODY tag:

        <BODY background="draft.gif">
 
A suitable image for getting the requested effect is
http://wwwinfo.cern.ch/icons/draft.gif
This will show the image underlying the text of the HTML page.

Note however that Netscape4/UNIX and Explorer/PC don't offer (to our knowledge) an option to print the background image. Netscape4/PC has an option in the menu

        File->PageSetup
 
which is called "PrintBackground".


next up previous
Next: General Tips Up: cnl232.html Previous: UNIX Tips


Cnl.Editor@cern.ch