Tag Info

Hot answers tagged

19

This should be a starting point. I am colour blind at the moment. \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,shapes.geometric,calc} \tikzset{my cylinder/.style={cylinder, cylinder uses custom fill,rotate=-30,outer sep=0pt} } \begin{document} \begin{tikzpicture}[] \node [my cylinder,shape aspect=1,minimum ...


18

Here's an attempt in Metapost. Using the direction x of y macro to find the required angle of reflection. Here's what you get with r=0: And with r=0.33: prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); path base, ray[]; u = 5mm; r=0.33; base = (-6u,0) for x=-5.8u step 0.2u until 5.8u: -- (x,r*normaldeviate) endfor -- (6u,0); draw ...


12

Our TikZers getting lazy I guess. This can't get away without a TikZ answer :P Same idea but using decorations (over and over again). \documentclass[tikz]{standalone} \usetikzlibrary{decorations.pathmorphing,decorations.markings,calc} \begin{document} \begin{tikzpicture} \shadedraw[thick,top color=gray!10,bottom color=gray, postaction=decorate, ...


7

Ornament Just for fun with PSTricks. The package psvectorian is not included in TeXLive so you need to download it from http://melusine.eu.org/syracuse/pstricks/vectorian/ and install it. Unfortunately, the manual in English is not available. \documentclass[pstricks,border=12pt]{standalone} \usepackage{psvectorian} ...


5

The vanishing points for lines that are parallel to the ground lie at eye level, so the z position of the point objects needs to be equal to the z value of the viewpoint. The vanishing points for lines pointing in a horizontal angle theta lie at x=tan(theta)*yv + xv, where yv and xv are the x and y components of the viewpoint. The vanishing points lie on ...


4

\documentclass{article} \usepackage{pstricks} \begin{document} \psset{xunit=1.2cm, yunit=1.2cm} \begin{pspicture}[showgrid](-2.3,-2.7)(2.1,2.55) \psline (0,0)(0,1) \psline (0,0)(1,0) \pscustom{ \moveto(0,0) \lineto(-1,0) \moveto(0,0) \lineto(0,-1) \stroke[linewidth=2pt,linecolor=red] } \end{pspicture} \end{document} if you do not want the ...


3

It makes no sense to view the dvi output. It cannot show rotations and also sometimes not the correct image size. Use always the pdf output which should be upside down and cropped. latex <file> dvips -o <file>.ps <file> ps2pdf -dAutoRotatePages=/None <file>.ps However, the easiest way is to run xelatex, it does the conversion ...


3

I have no idea where yoiu really want to print the value of the sin curve. However, here is an example: \documentclass[border=10pt]{standalone} \usepackage{animate} \usepackage{pstricks-add} \usepackage{multido} \def\TINY{\fontsize{2pt}{2.1pt}\selectfont} \begin{document} %-------------------- write timeline file ---------------------% ...


3

\rput{270}(-155,1){\psBoxplot[yunit=0.2,fillcolor=blue!30]{\data}} ^^^^^^ you also have to transform the x coordinate for the plot: -155 instead of 0


3

For a single image use documentclass standalone: \documentclass[pstricks,border=2mm]{standalone} \usepackage[utf8]{inputenc} \usepackage{pst-plot} \begin{document} \readdata{\OPA}{transferCharacteristics.txt} \readdata{\OPB}{transferCharacteristics2.txt} \readdata{\OPC}{transferCharacteristics3.txt} ...


2

Or you can use preview package plus article class instead of standalone class to get the same (based on our bare eyes) result. \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage{pst-plot} \usepackage[active,tightpage]{preview} \PreviewEnvironment{pspicture} \PreviewBorder=12pt\relax % if you need 12pt border around the output ...


2

Rescale it to the linewidth of the document: \begin{document} \noindent \resizebox{\linewidth}{!}{% \psframebox*[fillstyle=solid,fillcolor=black!10,framesep=10pt]{% \begin{pspicture}(0,-7.8)(19.2,7.8) \psframe[linewidth=0.04, dimen=outer](14.8,7.8)(9.2,5.8) \rput[l](10.0,7.0){\tabular{@{}ll@{}} \rlap{Input:}\\ \textbullet & Load geo.xyz\\ ...


2

The problem is GhostScript. With the version 9.10 it works, with the current version 9.15 it doesn't work. Also with some other GS versions. I installed GhostScript from the source into /usr/local/src: wget http://downloads.ghostscript.com/public/ghostscript-9.10.tar.gz tar -xvzf ghostscript-9.10.tar.gz cd ghostscript-9.10 ./configure make sudo make ...


2

\pstScalePoints(1,1){1000 div}{1000 div 7 sub} \listplot[plotstyle=dots, dotstyle=o,fillcolor=blue]{\data} and, by the way, minimal examples may be fine!


2

It makes no real sense to use it with pst-pdf. However, you have to use the postscript environment and a dummy character inside this environment because it will be inserted as an image later. \documentclass{minimal} \usepackage{pstricks} \usepackage[pspdf={-dNOSAFER -dAutoRotatePages=/None}, crop=off]{auto-pst-pdf} \begin{document} \begin{postscript} ...


2

Another option, if you are looking for multiline shadow text is to use the textpos package to create a textblock of the main text and then offset the box slightly to create the 'shadow' portion. Note, the 'gray' text needs to be created first so the black text can overlay it. \documentclass{article} \usepackage[absolute]{textpos} \TPGrid{100}{100} ...


1

Step 1: Create the diagram. % filename: diagram.tex % compile it with the following sequence to get diagram.pdf % latex diagram % dvips diagram % ps2pdf -dAutoRotatePages=/None diagram.ps \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{pst-tree} \psset{treemode=R} \begin{document} \psTree{\Tcircle{16}} ...


1

After checking the recently updated packages, I found ghostscript was updated from 9.14-1 to 9.15-1, which is very suspicious as I could find any problem exists in Texlive 2014 itself. After downgrading, this problem is solved. I am not sure what is wrong with this new ghostscript. Xelatex must called some postscript functionalities from ghostscript.


1

I had been working on this for quite some while: getting pst-intersect to work together with pst-optexp to allow using arbitrarily shaped interfaces. There is the development branch 'arbifc' where this seems to work quite fine. Using that version, the following works fine: \documentclass[pstricks, margin=5pt]{standalone} \usepackage{pst-optexp} ...



Only top voted, non community-wiki answers of a minimum length are eligible