File:Pstricks exo benzene.png

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Pstricks_exo_benzene.png(120 × 105 pixels, file size: 4 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[edit]

Description
English: Exercise for the PSTricks wikibook in french: benzene molecule
Français : Exercice pour le wikilivre francophone sur PSTricks : molécule de benzène
Date
Source Own work
Author Cdang
Permission
(Reusing this file)
GFDL

Code source[edit]

Deux solutions sont proposées.

La première consiste à tracer un polygone, le sommet n ayant pour coordonnées (cos(n⋅60°), sin(n⋅60°)), n allant de 0 à 5.

\documentclass{article}

\usepackage{pstricks}

\begin{document}

\begin{pspicture}(-1,-1)(1,1)
   \pspolygon(1,0)
      (0.5,0.87)
      (-0.5,0.87)
      (-1,0)
      (-0.5,-0.87)
      (0.5,-0.87)
   \pscircle(0,0){0.6}
\end{pspicture}

\end{document}

La seconde solution consiste à définir un des segments par une commande personnnelle, et à faire tourner ce segment autour du centre. Cette solution est déconseillée car elle génère des problèmes pour les traits épais, elle n'est présentée qu'à titre d'exercice.

\documentclass{article}

\usepackage{pstricks}

\newcommand{\liaison}{\psline(-0.5,-0.87)(0.5,-0.87)} % segment de base

\begin{document}

\begin{pspicture}(-1,-1)(1,1)
   \liaison
   \rput{60}(0,0){\liaison}
   \rput{120}(0,0){\liaison}
   \rput{180}(0,0){\liaison}
   \rput{-120}(0,0){\liaison}
   \rput{-60}(0,0){\liaison}
   \pscircle(0,0){0.6}
\end{pspicture}

\end{document}

Licensing[edit]

I, the copyright holder of this work, hereby publish it under the following license:
GNU head Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license is included in the section entitled GNU Free Documentation License.
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
This licensing tag was added to this file as part of the GFDL licensing update.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current18:19, 20 November 2007Thumbnail for version as of 18:19, 20 November 2007120 × 105 (4 KB)Cdang (talk | contribs){{Information |Description={{en|Exercise for the PSTricks wikibook in french: benzene molecule}} {{fr|Exercice pour le wikilivre francophone sur PSTricks : molécule de benzène}} |Source=self-made |Date=20 november 2007 |Author= Cdang |Per

The following page uses this file:

File usage on other wikis