\usepackage{pstricks}
\usepackage{pst-barcode}


 \begin{pspicture}(30mm,30mm)
    \obeylines
    \psbarcode{%
      BEGIN:VCARD^^J
      VERSION:3.0^^J
      N:Lee;Jeong Han^^J
      FN:Jeong Han Lee^^J
      ORG:-^^J
      TITLE:-^^J
      URL:^^J
      EMAIL;TYPE=internet,pref:xxxx@xxx.xxx^^J
      TEL;TYPE=voice,cell,pref:+82 00 0000 0000^^J
      TEL;TYPE=voice,work:+82 11 1111 0000^^J
      TEL;TYPE=fax,work:+82 11 1111 0001^^J
      ADR;TYPE=intl,work,postal,parcel:;;0 beta-daero 1689 gil beta-gu;Daejeon;;305-811;;South Korea^^J
      END:VCARD
    }{eclevel=L width=1.181 height=1.181}{qrcode}%
  \end{pspicture}


References


posted by citadel
  • In normal latex environment, pstricks works great. But, when I want to do this with pdflatex environment, it does not work. Then I decide to create eps file.
  • make one stand alone TeX file

    more..

  • latex filename.tex
  • dvips -E -o target_filename.eps  filename.dvi
    This eps file has the wrong bounding box information, thus one must correct it.
  • gs -sDEVICE=bbox -dNOPAUSE -dBATCH target_filename.eps
    will return the information about a correct bounding box.

    more..

  • emacs target_filename.eps, replace %%BoundingBox information with the above return values, and save the file.

'Computer > linux' 카테고리의 다른 글

ROOT gui default fonts  (0) 2007.05.24
How to create a stand alone eps file by using pstricks  (0) 2007.05.14
sshfs  (0) 2007.05.10
Running programs in the background.  (0) 2007.03.10
posted by citadel