|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Perspective transformation on text?Dear Friends, I would like to slant the text more. Can this be done? \documentclass[]{article} \usepackage{tikz,pgfbaseimage} \usepackage{amssymb,amsmath,pifont,latexsym} \usetikzlibrary{shapes,arrows} \usepackage{xspace} \usepackage[active,tightpage,pdftex]{preview} \PreviewEnvironment{tikzpicture} \begin{document} \begin{preview} \begin{tikzpicture}[scale = 3] % Define the points of the front of the cube \path (0,0) coordinate (SW); \path (0,1) coordinate (NW); \path (1,1) coordinate (NE); \path (1,0) coordinate (SE); \draw (SW) -- (NW) -- (NE) -- (SE) -- cycle; \draw (SW) -- (-.4, .36) coordinate (C1); \draw (NW) -- (-.4, 1.36) coordinate (C2); \draw (NE) -- (1-.4, 1.36) coordinate (C3); \draw (C1) -- (C2) -- (C3); \draw[thin] (-.1, .09) -- (-.1, 1+.09); \draw[thin] (-.2, .18) -- (-.2, 1+.18); \draw[thin] (-.3, .27) -- (-.3, 1+.27); \node[rotate = 90, blue] at (-.05, .5+.09) {\sl curiosity}; \end{tikzpicture} \end{preview} \end{document} _____________________________ Professor Michael Kubovy University of Virginia Department of Psychology USPS: P.O.Box 400400 Charlottesville, VA 22904-4400 Parcels: Room 102 Gilmer Hall McCormick Road Charlottesville, VA 22903 Office: B011 +1-434-982-4729 Lab: B019 +1-434-982-4751 Fax: +1-434-982-4766 WWW: http://www.people.virginia.edu/~mk9y/ ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
|
|
Re: Perspective transformation on text?Hi,
A fairly simple solution could be \def\tikzsl#1#2{\tikz\node[transform shape, xslant=#1]{#2};} \tikz\node {\tikzsl{0}{Normal}}; \tikz\node {\tikzsl{.5}{Slanted}}; \tikz\node {\tikzsl{1.0}{More Slanted}}; \tikz\node {\tikzsl{1.5}{Very Slanted}}; \tikz\node {\tikzsl{2}{Extreemly Slanted}}; But, with a bit of extra work it is possible to tie it all up fairly neatly in a style: \makeatletter \tikzset{slant text/.style={% execute at begin node={% \setbox\pgf@hbox=\hbox\bgroup% },% execute at end node={% \egroup% \pgfpicture% \pgftransformxslant{#1}% \pgftext{\unhbox\pgf@hbox}% \endpgfpicture% }}} \makeatother \tikz\node [slant text=0] {Normal}; \tikz\node [slant text=0.5]{Slanted}; \tikz\node [slant text=1] {More Slanted}; \tikz\node [slant text=1.5]{Very Slanted}; \tikz\node [slant text=2.0]{Extreemly Slanted}; Regards Mark ------------------------------------------------------------------------- Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW! Studies have shown that voting for your favorite open source project, along with a healthy diet, reduces your potential for chronic lameness and boredom. Vote Now at http://www.sourceforge.net/community/cca08 _______________________________________________ pgf-users mailing list pgf-users@... https://lists.sourceforge.net/lists/listinfo/pgf-users |
| Free Forum Powered by Nabble | Forum Help |