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)
File information
Structured data
Captions
File:Pstricks exo benzene.svg is a vector version of this file. It should be used in place of this PNG file when not inferior.
File:Pstricks exo benzene.png → File:Pstricks exo benzene.svg
For more information, see Help:SVG.
|
Summary[edit]
DescriptionPstricks exo benzene.png |
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:
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.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license. | ||
| ||
This licensing tag was added to this file as part of the GFDL licensing update.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 18:19, 20 November 2007 | 120 × 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 |
You cannot overwrite this file.
File usage on Commons
The following page uses this file:
File usage on other wikis
The following other wikis use this file: