"Latex" e Meow latex Beginner Tutorial (4) Chart

Source: Internet
Author: User

It's not about latex, it's about inserting pictures that are already drawn. If you want to see paint, you can pull the scroll bar to the end. Previously review "Latex" e meow new Latex Starter Tutorial (1) Prepare for the article
"Latex" e meow new Latex starter Tutorial (2) Basic layout
"Latex" E Mew Primer for Latex Beginners Tutorial (3) Mathematical formula picture Insert a pictures says more than a thousand words. -shakespeare
I don't have a picture of you talking about XX. --The image format supported by Shakespeare Latex because it is recommended to use Xelatex in the previous tutorials, there are some natural advantages in graphic format support compared to other engines. The graphics formats supported by Xelatex are: BMP, JPEG, PNG, EPS, PDF. If you're using a Mac trench, then Xelatex will also support GIF, PICT, PSD, SGA, TGA, TIFFwaitFormat... Here is the main point of the EPs and PDF two format. EPS is a very common vector drawing format in Tex, and the mainstream technology drawing software basically supports the export of EPS format. For example, Matlab in the graphics window can directly save the graphic to the EPS format. PDF format: (who tells you that PDF is only as big as A4.) is a small size of the PDF document, in the end there is no one who has no way. The advantage of vector drawing format is that the magnification of how many times will not be distorted, printed on the paper will not appear the jagged teeth or something, is writing scientific papers, books must jiapin. Drawing software that supports exporting EPS format includes: MS Visio, OOO Draw, MATLAB, Mathematica, GNUPlot, Asymptote, and more. The graphicx illustration of the essential macro package is used with it. Why? We all use. →_→ \usepackage{graphicx} Inserting a picture in the body insert a picture very simply, use the \includegraphics{filename}. A picture Like
\includegraphics{hit300.png} We can see that the image is inserted into the text. Sometimes the pictures inserted are larger. For example, this is the case now. We can add some options for \includegraphics to zoom in on the image. A picture Like
Common options for \includegraphics[height=15pt]{hit300.png}\includegraphics are:

    • Height, specifying how high the image is to be inserted
    • width, specifying how wide to insert the picture
    • Scale, specifies the magnification of the inserted picture
    • Angle, specifies the rotation angle of the inserted picture, clockwise direction is positive
    • Draft, into draft mode, do not read the picture at this time, the final output only one and the picture size of the box, can speed up the compilation speed. You can use \usepackage[draft]{graphicx} before the final draft to speed up the compilation and remove this option from the final draft.

Height and width If one is specified, the other is scaled proportionally. If you specify it, it will deform. →_→ as to length units, you can use mm/cm/pt/em/ex/in and other length units. (em refers to the width of the capital letter M at the current font size, and ex refers to the width of the lowercase x under the current font size.) You can directly use cm ... Graphics environment simply using \includegraphics inserted graphics are not numbered, there is no way to reference what, more trouble. Latex therefore provides a figure environment, with which the graph inserted is automatically numbered and can be cross-referenced. The usage of the figure environment is as follows: \begin{figure}[options]
\centering% makes the contents of the back Center
\includegraphics{..}
\caption{Chart Title}
\label{tag for reference}
The \end{figure}figure environment produces a floating graphic object that Latex automatically places in an aesthetically pleasing position. In the options, you can specify where latex places the floating picture in priority order. where h represents here, which indicates placement at the insertion point. T indicates top, top of page. b represents bottom, the bottom of the page. P represents page, individual picture pages. The default option is [TBP], but everyone is more willing to use [HTBP] when writing articles. Meowmeow Meow.
\BEGIN{FIGURE}[HTBP]
\centering
\includegraphics[width=.8\ Textwidth]{hit300.png}
\caption{a hit!}
\LABEL{FIG:300}
\end{figure}

Figure \ref{fig:300} would show when you make a accurate in osu!.because the above code has cross-references, it needs to be compiled two times 。 Here to use a more interesting length, is \textwidth, it refers to the total width of the body text in the page, the front can also multiply a factor, of course, do not write multiplication sign .... So when you change the page settings, the picture will automatically zoom in with the page width, which is very cool. What do you think.. The illustrations are simple. In fact, the figure environment is a frame, you in the inside with two \includegraphics also no problem ... But to write the headings for them separately. We can go to see the subfig of the macro package, which is not explained in detail here. Table Insert Simple table latex has a built-in tabular table environment that is similar in usage to the array environment. \begin{tabular}{Alignment}
First line: \\
Second line: \\
....
Last line ...
\end{tabular} hold a chestnut. \begin{tabular}{|r| | l|}
\hline
$x $ & $x ^2$ \ \
\hline \hline
1 & 1 \ \hline
2 & 4 \ \cline{1-1}
3 & 9 \ \hline
4 & \ \hline
\end{tabular} In addition to \hline you can insert a horizontal line, \cline{start column-end column} You can insert horizontal lines that contain only a subset of cells. Floating table environment A floating table environment is similar to a floating graphical environment, and is also an automatically numbered and automatically formatted table environment. Its usage is similar to the floating graphic environment, change the figure to table,\includegraphics for the tabular environment. \BEGIN{TABLE}[HTBP]
\centering
\begin{tabular}{|r| | l|}
\hline
$x $ & $x ^2$ \ \
\hline \hline
1 & 1 \ \hline
2 & 4 \ \cline{1-1}
3 & 9 \ \hline
4 & \ \hline
\end{tabular}
\caption{value of $x ^2$}
\label{tbl:square}
\end{table}
Table \ref{tbl:square} is of nonsense .... Use \multicolumn across a row, cross-column table to create a cross-column cell. Usage is as follows: \multicolumn{number of columns} {alignment} {cell contents}

\begin{tabular}{|r| | l|}
\hline
$x $ & $x ^2$ \ \
\hline \hline
1 & 1 \ \hline
2 & 4 \ \cline{1-1}
3 & 9 \ \hline
4 & \ \hline
\multicolumn{2}{|c|} {...} \ \hline
\end{tabular} cross-row table to make a cross-row table, you need to use the MultiRow macro package. The \usepakcage{multirow}multirow macro package provides \multirow to produce cross-row cells. \multirow{number of columns} {width} text} The width can be written as * to automatically adapt, or to specify the length in which the text is to be wrapped. \begin{tabular}{|r| | l|}
\hline
$x $ & $x ^2$ \ \
\hline \hline
$-1$ & \multirow{2}{*}{1} \ \ \cline{1-1}
1 & \ \hline
2 & 4 \ \cline{1-1}
3 & 9 \ \hline
4 & \ \hline
\multicolumn{2}{|c|} {...} \ \hline
\end{tabular} In addition MultiRow has a number of options for readers to check out the documentation for the macro package themselves. A table that spans rows and columns. You're not finished. Combined with the above things can be. ButIt's only \multirow in \multicolumn ., it will be wrong to put it back. In the table environment mentioned earlier in the fixed-width table, the width of the cell varies depending on the width of the contents. If you want the table to specify the width or the width of a column as a whole ... You can read the Tabularx macro package document. Ben Meow stole a lazy .... A cross-page table using the tabular environment to generate a table is an integral whole, and it must be impossible to make a long, cross-page table. So here's a look at the Longtable macro package. \usepackage{longtable} It provides a longtable environment that replaces the tabular environment when using long tables. Usage more complex: \begin{longtable}{alignment}
\caption{title}\label{label}\\%← Love Write not write
Table header \ \
Optional divider line \hline something ...
\endfirsthead
continuation table header \ \
Optional divider line \hline something ...
\endhead
The divider line at the end of the table ...
\endfoot
Long Table contents:
\end{longtable} Specific effect how: So long also cut a yarn map. Everybody go back and try it. 0W0 technical Literature three-wire table using the BOOKTABS macro package, you can generate the lines required for the three-Line table. \toprule, \midrule, \bottomrule know where to put the name. The slash header uses the Diagbox macro package to draw a header cell with a slash in the upper-left corner of the table, using a giant simple usage. \diagbox{something in the lower left-hand corner}
\diagbox{the left-hand corner of something} {The upper-left corner of something} in the upper-right corner of something} want to modify advanced options such as slash direction, see Diagbox Macro Pack documentation file. Paint with Latex. The more useful drawing package is tikz. Go to see the TikZ package document, it is too thick. But the drawing effect is really not a cover. Note: Using the Xelatex engine may make some of the TikZ's fill effects worse. The recommended approach is to use Pdflatex for drawing, and use the standalone document class to generate a PDF image for Xelatex insertion. Reference and automatic generation of reference lists for the next trailer reference

from:http://blog.renren.com/share/382776374/15233443854

"Latex" e Meow latex Beginner Tutorial (4) Chart

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.