[texhax] Placing data in margin

Thomas Schneider schneidt at mail.nih.gov
Sat Aug 3 23:37:25 CEST 2013


Jerry:

> The problem is that they want the item number, be it a number or
> letter, to be located in the margin on the left side of the form. I
> cannot figure out how to accomplish that. I did try the "marginnote"
> package; however, no matter how I tried, I could never get it to place
> a margin item anywhere but the right side of the page.

You probably can use pstricks to do this.  The \rput{} command will
place text relative to the current location without changing the
current location, perfect for what you want.
Then:

   \rput[tl](8.7,5.0){%
    \scalebox{0.8}{%
%\fbox{%
     \parbox[t][3.0cm][t]{3.0cm}{% \parbox[c][\height][t]{\width}%
      % T. D. Schneider and R. M. Stephens, Sequence Logos: A New Way
      % to Display Consensus Sequences Nucl. Acids Res. 18: 6097-6100,
      % 1990.
      \textbf{Schneider} \& \\ Stephens \\
      \emph{Nucl. Acids Res.} \\
      \textbf{18}: 6097-6100 \\
      1990
     }%
%}% fbox
    }%
   }%

This is actually a chunk of code from one of my powerdot slides!

* The rput locates the top left corner of the objecdt.
* It is then scaled to 80% size.
* Then I had an optional (inside the comment) fbox to draw a box
  around the text.  Remove both comments to use the fbox.
* Inside that is a parbox with the text.

Voila!

http://www.ctan.org/tex-archive/graphics/pstricks
Use these packages in this order:
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pstricks-add}

Tom

  Thomas D. Schneider, Ph.D.
  Senior Investigator
  National Institutes of Health
  National Cancer Institute
  Center for Cancer Research
  Gene Regulation and Chromosome Biology Laboratory
  Molecular Information Theory Group
  Frederick, Maryland  21702-1201
  schneidt at mail.nih.gov
  http://schneider.ncifcrf.gov/(current link)
  http://alum.mit.edu/www/toms (permanent link)


More information about the texhax mailing list