diff options
author | Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com> | 2012-03-26 10:30:55 +0200 |
---|---|---|
committer | Elena ``of Valhalla'' Grandi <elena.valhalla@gmail.com> | 2012-03-26 10:30:55 +0200 |
commit | 879e1eec31496773c9b8fddc7e0d0261d26291cf (patch) | |
tree | 9d763f76b605356a11ccc3ca6ea5a27d4706252d /esempi | |
parent | eb5e8eaa685572d2eb8b8ca07f2c93327389a87d (diff) |
Immagini
Diffstat (limited to 'esempi')
-rw-r--r-- | esempi/08.rst | 33 | ||||
-rw-r--r-- | esempi/greg.png | bin | 0 -> 5368 bytes | |||
-rw-r--r-- | esempi/greg.svg | 132 |
3 files changed, 165 insertions, 0 deletions
diff --git a/esempi/08.rst b/esempi/08.rst index 5d9b5ad..f95f4d2 100644 --- a/esempi/08.rst +++ b/esempi/08.rst @@ -1,3 +1,36 @@ ================= Immagini e figure ================= + +Per inserire una semplice immagine nel documento si può usare la direttiva +``image``. + +.. image:: greg.png + +.. image:: greg.png + :alt: Il logo del LIFO + :scale: 100% + :align: right + :target: http://lifolab.org + +.. image:: greg.svg + :height: 100 px + +La direttiva ``figure`` rappresenta invece una figura, ovvero un immagine +eventualmente accompagnata da didascalia e legenda e che in molti +formati potrebbe essere separata dal resto del testo. + +.. figure:: greg.svg + :height: 200 px + :alt: logo LIFO + :align: right + :figwidth: 200 px + + Il logo del LIFO - Laboratorio Informatico Free ed Open + +Infine esiste una direttiva inline usabile nelle sostituzioni, per inserire +immagini che scorrono con il testo come |Greg|. + +.. |Greg| image:: greg.svg + :height: 2 em + diff --git a/esempi/greg.png b/esempi/greg.png Binary files differnew file mode 100644 index 0000000..dc0b14a --- /dev/null +++ b/esempi/greg.png diff --git a/esempi/greg.svg b/esempi/greg.svg new file mode 100644 index 0000000..f5ef875 --- /dev/null +++ b/esempi/greg.svg @@ -0,0 +1,132 @@ +<?xml version="1.0" encoding="UTF-8" standalone="no"?> +<!-- Created with Inkscape (http://www.inkscape.org/) --> +<svg + xmlns:dc="http://purl.org/dc/elements/1.1/" + xmlns:cc="http://web.resource.org/cc/" + xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" + xmlns:svg="http://www.w3.org/2000/svg" + xmlns="http://www.w3.org/2000/svg" + xmlns:sodipodi="http://inkscape.sourceforge.net/DTD/sodipodi-0.dtd" + xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" + width="100%" + height="100%" + viewBox="0 0 744.09448819 1052.3622047" + id="svg2" + sodipodi:version="0.32" + inkscape:version="0.43" + sodipodi:docbase="/home/valhalla/groups/lifo/utilia-develop" + sodipodi:docname="greg.svg"> + <defs + id="defs4" /> + <sodipodi:namedview + id="base" + pagecolor="#ffffff" + bordercolor="#666666" + borderopacity="1.0" + inkscape:pageopacity="0.0" + inkscape:pageshadow="2" + inkscape:zoom="0.5" + inkscape:cx="207.65105" + inkscape:cy="611.42858" + inkscape:document-units="px" + inkscape:current-layer="layer1" + inkscape:window-width="969" + inkscape:window-height="683" + inkscape:window-x="0" + inkscape:window-y="0" + showguides="true" + inkscape:guide-bbox="true" /> + <metadata + id="metadata7"> + <rdf:RDF> + <cc:Work + rdf:about=""> + <dc:format>image/svg+xml</dc:format> + <dc:type + rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> + <dc:title>Greg</dc:title> + <dc:creator> + <cc:Agent> + <dc:title>Akhrod</dc:title> + </cc:Agent> + </dc:creator> + <dc:contributor> + <cc:Agent> + <dc:title>vector version: Elena ''of Valhalla'' Grandi</dc:title> + </cc:Agent> + </dc:contributor> + <dc:subject> + <rdf:Bag> + <rdf:li>lifo</rdf:li> + <rdf:li>greg</rdf:li> + </rdf:Bag> + </dc:subject> + <dc:date>2009-11-15</dc:date> + <dc:publisher> + <cc:Agent> + <dc:title>LIFO - Laboratorio Informatico Free ed Open</dc:title> + </cc:Agent> + </dc:publisher> + <dc:description>LIFO logo</dc:description> + </cc:Work> + </rdf:RDF> + </metadata> + <g + inkscape:label="Layer 1" + inkscape:groupmode="layer" + id="layer1"> + <g + id="g11001" + transform="translate(11.73518,101.9314)"> + <path + sodipodi:nodetypes="cccscccccccccccccccccccccccccccc" + id="path1365" + d="M 167.38104,416.02563 C 189.58004,373.2708 229.85426,339.19722 257.84333,332.77804 C 255.4087,259.25693 341.51111,261.4413 304.74565,329.77804 C 291.72488,343.39826 304.35776,341.86065 311.90013,331.77833 C 314.78117,327.92707 316.75634,320.41634 320.77563,312.191 C 541.06186,305.32407 556.36758,528.37899 558.36073,542.39023 C 602.63916,554.59629 608.89377,468.40207 582.33641,396.66555 C 550.34008,310.23733 534.9334,201.03239 596.37718,132.09526 C 557.47313,195.54391 549.83666,269.27677 593.11103,361.84838 C 662.77342,510.86867 645.42923,607.33999 542.98839,633.40957 C 502.4618,678.8381 435.88652,664.47908 362.17795,646.89603 C 338.46922,641.73451 331.07518,649.44849 334.26209,672.25483 C 344.97732,691.82647 329.61636,703.29335 320.33269,717.60009 L 317.50387,732.74419 C 315.60763,740.6564 306.45985,743.23429 310.79605,730.02126 C 330.93533,668.65398 307.69398,681.78753 298.63153,650.78191 C 249.29949,567.32389 356.35511,517.01051 386.69439,514.81673 C 399.03038,513.20197 399.2797,504.61402 388.48066,504.59116 C 379.58303,505.18938 362.65201,512.09874 337.09091,522.41731 C 337.07082,516.15559 336.81527,510.01161 341.97679,501.15909 C 396.12149,490.22418 404.67783,469.0939 405.40909,446.71325 C 407.70487,424.00981 395.41233,430.54009 396.47969,449.27031 C 393.66984,475.77548 373.48911,484.09501 351.54391,492.24566 C 317.93834,502.08749 304.5242,487.01431 259.68569,497.33027 C 249.67328,500.11495 241.49467,500.90613 254.29949,491.67979 C 296.25367,476.18676 330.66838,452.98539 349.63443,427.18327 C 355.81828,417.62018 350.65817,416.63118 344.36267,422.85445 L 324.16151,444.99855 C 311.39765,407.42379 284.95256,452.64773 228.48453,444.32737 C 242.443,433.47295 229.70474,431.99783 215.55513,444.49855 C 204.41387,444.83622 183.81532,438.20353 171.47886,426.32556 C 167.49879,422.76625 169.68255,421.77546 167.38104,416.02563 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="ccccccsccccccccccccccccccccccccsccscc" + id="path4005" + d="M 159.7234,416.02563 C 172.96509,388.07519 195.35293,351.48269 251.12863,325.56334 C 241.77223,284.19144 316.36254,235.32665 321.16151,304.09042 C 431.0385,301.63266 540.73627,351.92013 565.6325,536.84671 C 593.51602,536.00265 597.28964,476.36544 580.37102,416.39108 C 571.96013,386.71213 558.43436,356.53676 551.82334,318.38683 C 544.88485,281.45425 539.13117,219.88206 565.61641,162.85397 C 575.35791,141.87856 589.1991,126.23895 605.93424,108.00822 C 620.5974,95.872481 625.789,102.46468 616.36364,115.55174 C 604.02315,133.09171 563.97582,188.26826 572.59816,265.10158 C 575.05805,295.3639 588.34023,332.01954 608.9207,379.00918 C 638.02231,454.49446 691.57165,595.09387 546.31721,641.18133 C 505.07879,687.58689 432.42319,669.71536 360.73501,655.55367 C 349.31141,649.83356 338.65861,648.02442 341.03385,668.98307 C 350.69025,694.72371 342.84717,700.89325 326.16151,719.92891 C 322.06748,757.95362 300.00222,751.6797 303.26597,726.29148 C 309.7617,702.35421 310.84732,693.15944 310.23211,687.29835 C 295.10252,652.97295 236.05959,601.65451 330.10445,526.68907 L 329.99033,504.48791 L 298.18859,502.10203 C 288.99493,500.89464 284.2523,500.83813 289.64507,514.58849 C 290.23627,523.08007 289.70757,530.45176 278.48743,527.13201 C 239.9042,525.99871 201.91658,526.65222 164.66634,529.51789 C 122.37146,530.88976 136.05486,534.51932 117.09284,496.25967 C 117.09284,496.25967 92.436458,422.15672 81.921469,390.55468 C 75.77236,365.01971 72.287528,370.97422 99.032882,360.35154 C 129.35756,347.77381 118.07219,346.27862 126.70696,370.09332 C 126.70696,370.09332 144.54817,435.82939 153.27375,464.62775 C 162.93584,495.03433 160.86464,487.08074 183.10928,487.28675 L 228.64217,490.55851 C 249.6004,488.51345 278.32336,471.16165 308.00387,456.65619 C 317.02677,451.80693 317.95679,445.69866 313.81153,439.86309 C 311.59216,436.73873 305.44236,436.71215 297.96035,439.66973 C 257.59627,458.03571 238.77698,452.35669 218.46333,451.50715 C 212.59102,454.57216 202.53563,452.08156 192.44516,447.3119 C 182.51652,442.61872 173.6277,437.51576 164.49516,430.45503 C 154.31616,429.07067 153.9058,424.07566 159.7234,416.02563 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="ccccc" + id="path6628" + d="M 208.5,372.86218 C 200.50084,382.31611 206.61214,385.37153 213,379.36218 L 217.5,374.86218 C 223.01412,366.65201 218.63999,364.91554 213,368.86218 L 208.5,372.86218 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="csccscc" + id="path7503" + d="M 264,320.86218 C 266.84026,307.22969 269.40087,303.3027 273.02047,297.87165 C 293.03646,267.83854 314.02395,298.22202 291,321.36218 C 275.53393,335.08407 278.32375,321.99714 284.5,317.86218 C 306.22249,296.80816 288.26465,280.53616 277.17341,302.18516 C 275.04567,306.3383 271.83384,313.5591 270.5,320.36218 C 267.039,328.81611 263.62859,331.06194 264,320.86218 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="cscsc" + id="path8378" + d="M 114,431.86218 C 92.14015,363.77182 86.516913,374.1088 105,365.86218 C 124.06309,357.35678 112.69005,352.63622 133.5,421.36218 C 154.523,497.89683 157.69845,486.70438 149.5,495.86218 C 137.53492,509.22737 142.03527,511.84353 114,431.86218 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + <path + sodipodi:nodetypes="ccccccc" + id="path9253" + d="M 192.5,495.86218 C 161.83161,494.23862 163.55246,491.33011 153,501.86218 C 137.5212,515.27701 158.21831,509.68206 217,511.36218 C 274.33075,508.7782 278.7887,513.47602 279,506.86218 C 279.74117,498.11103 275.49775,501.25776 259.5,503.36218 C 228.7967,509.5248 235.2614,503.65209 234.5,498.36218 L 192.5,495.86218 z " + style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#000000;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" /> + </g> + <text + xml:space="preserve" + style="font-size:12px;font-style:normal;font-weight:normal;line-height:125%;fill:#000000;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:FreeMono" + x="66.531555" + y="304.36218" + id="text11021" + sodipodi:linespacing="125%"><tspan + sodipodi:role="line" + id="tspan11023" + x="66.531555" + y="304.36218" + style="font-size:256px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;font-family:FreeMono">LIFO</tspan></text> + <rect + style="opacity:1;fill:none;fill-opacity:1;fill-rule:nonzero;stroke:#000000;stroke-width:4;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1" + id="rect1355" + width="664" + height="780.05035" + x="40.047241" + y="107.1559" /> + </g> +</svg> |