File: alignment_lr.xp

package info (click to toggle)
epix 1.2.22-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,256 kB
  • sloc: cpp: 16,847; sh: 5,054; makefile: 159; lisp: 6
file content (24 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/* -*-ePiX-*- */
/* alignment_lr.c -- ePiX's reverse-LaTeX label alignment option */
#include "epix.h"
using namespace ePiX;

P p1(-1,0), p2(1,0);

int main()
{
  bounding_box(P(-1,-1), P(1,1));
  picture(P(72,24));
  unitlength("1pt");

  begin();

  font_face("tt");
  dot(p1, P(0,0), "[l]", l); 
  label(p1, P(0,0), "[r]", r); 

  dot(p2, P(0,0), "[t]", t); 
  label(p2, P(0,0), "[b]", b); 

  end();
}