File:Latex example subfig.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
Size of this preview: 800 × 292 pixels. Other resolutions: 320 × 117 pixels | 1,128 × 412 pixels.
Original file (1,128 × 412 pixels, file size: 436 KB, MIME type: image/png)
File information
Structured data
Captions
Summary[edit]
DescriptionLatex example subfig.png |
example to be used in the wikibook about LaTeX. As sample, I have used three featured pictures of Commons, renaming them just to make the code look simpler. They are:
I saved them in a local folder and then I created a file called subfig_test.tex and I put the following code in it: \documentclass[a4paper,12pt]{article} \usepackage[english]{babel} \usepackage{graphicx} \usepackage{subfigure} \begin{document} \begin{figure} \centering \subfigure[A gull]{\label{fig:gull}\includegraphics[width=0.3\textwidth]{gull}} \subfigure[A tiger]{\label{fig:tiger}\includegraphics[width=0.3\textwidth]{tiger}} \subfigure[A mouse]{\label{fig:mouse}\includegraphics[width=0.3\textwidth]{mouse}} \caption{Pictures of animals} \label{fig:animals} \end{figure} \end{document}then I compiled it with pdflatex thus getting subfig_test.pdf. I opened it with acrobat reader, I took a snapshot of it with GIMP and I cropped the part I was interested in, saving in PNG. I optimized it with optipng. |
Date | |
Source | Own work |
Author | Alessio Damato |
Licensing[edit]
I, the copyright holder of this work, hereby publish it under the following licenses:
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 |
You may select the license of your choice.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 13:40, 12 January 2007 | 1,128 × 412 (436 KB) | Alejo2083 (talk | contribs) | {{Information |Description=example to be used in the wikibook about LaTeX. As sample, I have used three featured pictures of Commons, renaming them just to make the code look simpler. They are: :Image:Gull portrait ca usa.jpg --> gull.jpg :[[:Mus_Mus |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on en.wikibooks.org
- Usage on es.wikibooks.org