previous   An Artificial NeuronA Poster   next


Bus

This example illustrates how to:

  1. If you have not already done so, enable the grid lock via Settings->Grid->Lock Grid.

  2. Use TeX/LaTeX->Settings->Set Normal Size... to display the TeX/LaTeX Settings dialog box and set the normal font size to the value that you will be using in your document (see Figure 11.29). In my document, I have used 10pt.

    Figure 11.29: Bus Example--Setting the Normal Font Size
    Image busnormalsize.png

  3. To create the bus outline, start with the ellipse tool , and create a circle (Figure 11.30).

    Figure 11.30: Bus Example--Create a Circle
    Image bus1.png

  4. Select the circle, and select the edit path tool . The at the start of the is always the first selected when you select the edit tool (Figure 11.31(a)). Select the second segment in the path (Figure 11.31(b)).

    Figure 11.31: Bus Example--Editing the Path
    Image bus2a.png
    (a)
    Image bus2b.png
    (b)

  5. Break the path using the edit path and selecting Break path (Figure 11.32(a)). You should now have two separate semi-circles (Figure 11.32(b)). If you find that the circle has been split unevenly (i.e. you have a quadrant and a three-quarters of a circle) then you selected the wrong segment. Don't panic, just select Edit->Undo and try again.

    Figure 11.32: Bus Example--Break the Path
    Image bus3a.png
    (a)
    Image bus3b.png
    (b)

  6. Exit edit path mode. Move and rotate the top semi-circle so that it looks like Figure 11.33.

    Figure 11.33: Bus Example--Move and Rotate Top Semi-Circle
    Image bus4.png

  7. Select the open line tool and add in the two lines as shown in Figure 11.34.

    Figure 11.34: Bus Example--Adding Lines
    Image bus5.png

  8. Select all paths and use Transform->Path Union. You should now have just a single path.

  9. Select this new , and use the edit path tool to give the front end of the bus a slightly curved outline, as shown in Figure 11.35. (You may find it easier to temporarily disable the grid lock while you edit the path.)

    Figure 11.35: Bus Example--Convert Line Segment to a Curve
    Image bus6.png

  10. Add the windows, as shown in Figure 11.36.

    Figure 11.36: Bus Example--Add Windows
    Image bus7.png

  11. This next operation assumes that you haven't changed the . The main outline of the bus must be at the rear. To ensure this, select the bus outline and use the move to back function .

  12. Select all paths, and apply Transform->Subtract Paths. Set the fill colour to red using the Edit->Path->Fill Colour... dialog box. The windows should appear as holes. See Figure 11.37.

    Figure 11.37: Bus Example--Subtract Windows from Bus Outline and Set Fill Colour
    Image bus8.png

  13. Make sure that the bus is selected. Select the TeX/LaTeX->Shapepar... menu item. A dialog box will appear: select the Use Path option and click Okay. Scan lines will appear as Jpgfdraw works out the parameters. Once completed a file dialog box will appear. Give the file a name, e.g. busshape.tex.

  14. If you are using LaTeX, create a document that looks something like:
    \documentclass{article}
    \usepackage{shapepar}
    \begin{document}
    \input{busshape}\frenchspacing
    The wheels on the bus go round and round...
    
    \end{document}
    

  15. If you are using plain TeX, create a document that looks something like:
    \input shapepar.sty
    
    \input busshape.tex
    \frenchspacing
    The wheels on the bus go round and round...
    
    \bye
    

  16. The resulting shaped paragraph is shown in Figure 11.38.

    Figure 11.38: Bus Example--Resulting Shaped Paragraph
    Image bus9.png


previous   An Artificial NeuronA Poster   next