Pdf Latex Notes - Waikato Linux Users Group. Bo Zhang’s Homepage » [转载] PDF with animations. Jens Uwe Nöckel 系里的老师推荐的东西,在PDF文件中插入动画的教程,前提是了解LaTeX的基本使用,且动画文件的格式合适(如avi)。 文章的来源是这里。 实习期间实在紧张,来不及翻译,就直接贴原文了。 Including animations in PDF using LaTeX The Portable Document Format (PDF) is much more than just a substitute for paper. The context of this page is the problem of how to prepare scientific/technical documents. In particular, I included some links to LaTeX-based PDF presentation tools that can do almost anything that Keynote can do, based on the power of Adobe Reader. The movie15 Package However, one thing that isn’t explained very well on other web sites is how to put multimedia content into PDF presentations. On this page, I’ll describe the approach that is best suited for a small, "bare-bones" presentation without much stylistic overhead.
Movie15.zip from the CTAN archive. How is it done? Prerequisites PDF movies can be displayed with Adobe Reader. Also note that you cannot use acroread to display multimedia embedded with the help of this package. Creating the files. Untitled. Rubber — a wrapper for LaTeX and friends in Launchpad. TeX and xfig at F&M. This web page was written on January 28, 2004 and last updated on January 9, 2007. Caveat lector, especially as the page gets old. Professor Ressler's LaTeX page is more recent. Except for Mathematica, all the software I describe here is free, assuming you already have OS X. F&M has a site license for Mathematica which allows local users to install and run it.
This is not a how-to on writing TeX documents. That's a long story, but the best way to learn is probably buy or borrow a reference manual, then just plunge in using an existing document as a model, and look up what you need when you need it. Here is a place to look for places to look: TeX resources on the web. Nor is this web page original in any way. My current TeX setup (as of January 2007) uses TeXShop as a front end to Gerben Wierda's teTeX installation. Xfig is an X-windows drawing program. Xfig is available via i-Installer. The xfig instructions below are sketchy. Unfortunately, xfig wants a three-button mouse. LaTeX Utilities - BibTeX Style Examples. It can be difficult to decide which of the large range of style files is closest to the format needed.
The following provides examples using a variety of public-domain files that can be downloadeded from CTAN (Comprehensive TeX Archive Network). For example, consult the CTAN UK Mirror. Some of the styles below require auxiliary styles, so their representation here is only approximate. In each case, citations are given as they would appear in the body of a document. Cambridge University Engineering Department - Squeezing Space in LaTeX. Here are some tips on how to squeeze a little more onto LaTeX pages. Note that these methods may adversely affect the appearance of the document, so use them with caution. Rephrasing and editing your text often leads to better results.
The savetrees package executes many of these methods, packing as much text as possible onto each page. Fonts Without changing the point size of a font you might be able to fit more text on a page by choosing a more compact font like Times Page Layout The a4 package will give you narrower margins. Prof. Changing lengths There are many variables in LaTeX determining lengths. Some useful variables are Environments The atbeginend.sty package provides \BeforeBegin{environment}{code-to-execute}, \AfterEnd ... etc. The mdwlist package has a itemize* environment.
The paralist package offers a compactitem environment (that puts less space between items) and an inparaenum environment (that doesn't create new paragraphs for each item). Figures and Tables Headings. Producing hyperlinked PDF documents from LaTeX. It is often convenient to generate some hyperlinks on the PDF output from a LaTeX document.
Simple hyperlinking can be done from the table of contents to the actual sections, references to floats, index to terms, etc., in an automatic way. Also, URLs can be hyperlinked too, if they are added to the LaTeX source. For this purpose the LaTeX hyperref package can be used. It is included in most modern LaTeX installations. For basic use include \usepackage{hyperref} at the end of the LaTeX document preamble. By default the hyperref package will use the hypertex driver. It is often desirable to use other drivers than the default hypertex one, to take advantage of extra PDF features. \usepackage[dvips, bookmarks, colorlinks=false, pdftitle={An example PDF file from LaTeX}, pdfauthor={Diego Santa Cruz}, pdfsubject={From LaTeX to PDF}, pdfkeywords={PDF, LaTeX, hyperlinks, hyperref}]{hyperref} Note that not all the drivers are able to process all the options and PDF specifics.
Graphics and colour with LaTeX. 1 Introduction 2 Importing external graphics 2.1 Importing with the graphics package 2.2 Scaling 2.3 Reflection 2.4 Rotation 2.5 Importing, scaling, rotating with the graphicx package 3 Additional graphics packages 3.1 The epsfig package 3.2 The lscape package 3.3 The rotating package 4 Troubleshooting 4.1 How importation works 4.2 Problems with importation 5 Configuring graphics importation 5.1 Default driver 5.2 Search path for graphics files 5.3 Default extensions 5.4 Graphics types 5.5 Compressing graphics files 6 Colours 7 The named colour model 1 Introduction The advent of PostScript drivers for TeX has offered the opportunity to expand the capabilities of to include a number of very useful features, such as the importation, scaling, and rotation of external graphics files, and colour.
However, since each driver tended to have its own packages and user interface commands, the resulting document files threatened to become tied to one particular driver. With 2 Importing external graphics. LaTeX/Hyperlinks. LaTeX enables typesetting of hyperlinks, useful when the resulting format is PDF, and the hyperlinks can be followed.
It does so using the package hyperref. Hyperref[edit] The package hyperref[1] provides LaTeX the ability to create hyperlinks within the document. It works with pdflatex and also with standard "latex" used with dvips and ghostscript or dvipdfm to build a PDF file. If you load it, you will have the possibility to include interactive external links and all your internal references will be turned to hyperlinks. The compiler pdflatex makes it possible to create PDF files directly from the LaTeX source, and PDF supports more features than DVI. Usage[edit] The basic usage with the standard settings is straightforward. This will automatically turn all your internal references into hyperlinks.
Commands[edit] The package provides some useful commands for inserting links pointing outside the document. \hyperref[edit] Usage: with the hyperlink as expected. \url[edit] \href[edit] ! ! ! ! Eqnarray vs. align - TeXblog - Typography with TeX and LaTeX. Prevent floating of figures or tables - TeXblog - Typography with TeX and LaTeX. Often images are embedded using the figure environment, they can get a caption, a label for reference and they will get numbered and appear in the list of figures. Figure environments are intended to float, but sometimes it is needed to place an image exactly at a specific position, still wanting to benefit from the other mentioned features of the figure environment. A similar problem is the exact placement of tables where usually the table environment is used.
One possibility that may not always prevent floating is to set more positioning parameter: This may work well, but not in all cases. To prevent floating at all we must not use the figure environment. The figure counter is used for numbering and the image will be listed by the \listoffigures command. The caption package is very recommendable, it has a lot of features and is very well documented. The float package provides another very easy alternative for preventing floating: just use the H positioning parameter: LaTeX/Labels and Cross-referencing. Introduction[edit] Another good point of LaTeX is that you can easily reference almost anything that is numbered (sections, figures, formulas), and LaTeX will take care of numbering, updating it whenever necessary. The commands to be used do not depend on what you are referencing, and they are: \label{marker} you give the object you want to reference a marker, you can see it like a name.
\ref{marker} you can reference the object you have marked before. This prints the number that was assigned to the object. \pageref{marker} It will print the number of the page where the object is. LaTeX will calculate the right numbering for the objects in the document; the marker you have used to label the object will not be shown anywhere in the document. LaTeX Warning: There were undefined references. and it will replace "\ref{unknown-marker}" with "?? " LaTeX Warning: Label(s) may have changed. Another suggestion: try to avoid using numbers within labels.
Examples[edit] Sections[edit] Pictures[edit] eqref[edit] [texhax] animated gif files in Latex/Beamer. LaTeX:Layout. From AoPSWiki This article outlines some of the basics of layout in LaTeX. Note: Rather than typing up all the examples, you can copy-paste the examples into your TeXnicCenter files. We highly recommend opening up your TeXnicCenter and trying out each of the examples as you go. It takes almost no time at all to just copy-paste, compile, and view the results. Source File Format The source file of a LaTeX broadly consists of two parts, the preamble and the document itself.
Our next three sections deal primarily with preamble items, while the rest cover tools you might use within your document. The Preamble Document Class The first line of the file sets the document class with the \documentclass[''options'']{''class''} command. Article . Book report , and letter .) \documentclass , but generally they can be left to their defaults. Packages Packages are included after the \documentclass statement using \usepackage[''options''][''packagename''] . Page Setup The Easy Way \usepackage[margin=2.5cm]{geometry} .
The. LaTeX/Advanced Mathematics. This page outlines some more advanced uses of mathematics markup using LaTeX. In particular it makes heavy use of the AMS-LaTeX packages supplied by the American Mathematical Society. Equation numbering[edit] The equation environment automatically numbers your equation: You can also use the \label and \ref (or \eqref from the amsmath package) commands to label and reference equations, respectively. And \eqref results in Further information is provided in the labels and cross-referencing chapter. To have the enumeration follow from your section or subsection heading, you must use the amsmath package or use AMS class documents. To the preamble to get enumeration at the section level or to have the enumeration go to the subsection level.
To remove the duplicate dot, add the following command immediately after \numberwithin{equation}{section}: For a numbering scheme using \numberwithin{equation}{subsection}, use: in the preamble of the document. Subordinate equation numbering[edit] and for harpoons: Latex-beamer-users - Floating figures. On Donnerstag 08 Januar 2009, Christopher Bourke wrote: > I'd like to present a figure next to the regular text in a frame. I'm > well aware that you can split a frame into columns using the columns > environtment. But that doesn't seem like a good solution: correct me if > I'm wrong, but it seems that you *must* specify an absolute width for each > column.
Is there not a way to allow latex to figure out the best width? > Specifically, if I place a figure/image/floating body in one column and > text in the other without having to mess with widths. You may want to use the wrapfigure environment - wait, check Piet van Oostrum's postings on comp.text.tex on wrapfig vs. picinpar etc. HTH, Hans. LaTeX examples - reference a figure or table | LaTeX - table or figure reference. LaTeX table/figure FAQ: How do I reference a table or figure in a LaTeX document? Being able to automatically reference a figure within a LaTeX document is a very cool thing. This referencing capability lets you easily give readers the exact number of a figure, or tell them what page number a figure is located on with the use of a few simple commands (\label, \ref, and \pageref).
The same technique works for referencing other objects within a LaTeX document, including tables and equations. Here’s the simple two-step process to use and reference figures in LaTeX documents. Back to top 1) Define your LaTeX figure To begin with, assume that you have a figure defined somewhere in a LaTeX document like this: (As you’ll see from the many comments below, the order of these lines is very important: The \caption tag must come before the \label tag. Let’s further assume that as it turns out, in the current version of your document, this is Figure 11-1 in the document, and it appears on page 69. Summary. Symbols - How does one insert a backslash or a tilde into LaTeX. LaTeX Notes: Structuring Large Documents. You are here: Robert Dale's Home Page > Resources > Writing Advice for Students > Structuring Large Documents As soon as you start to produce documents which have multiple chapters, or documents which are of any decent size, keeping all the source text in one file becomes unmanageable.
There are two basic methods you can use for managing large documents; the first is very easy to use but limited in usefulness, so we'll get that out of the way first. In each case the idea is that you have some top level document file and a number of files that get included in this file automatically when you run LaTeX. 1 The Simple Method Using the simple method, you set up a top level document like this: \documentstyle{...} ...
\begin{document} \input{firstfile} \input{secondfile} ... You then segment your text into chunks, which you keep in the files firstfile.texsecondfile.tex and so on; each of these might be a chapter, or a major section. This method is limited, in the following ways: but this is not: Generating PDF with animations using LaTeX. Including animations in PDF using LaTeX The Portable Document Format (PDF) is much more than just a substitute for paper. While printable documents are thought of as static, PDF can be dynamic and interactive, see for example these interactivity demos. In fact, since Adobe has acquired Macromedia, some convergence of PDF and Flash might be expected in the future. But if you go through my example on this page, it will be clear that PDF all by itself at this point in time has (almost) all the features a multimedia author could ask for.
The context of this page is the problem of how to prepare scientific/technical documents. If you have looked at my suggestions for doing scientific presentations using Apple's Keynote, you should be convinced by now that LaTeX is an essential ingredient for any computer-based talk with mathematical content. Traditional movies are essentially sequences of resolution-dependent (rasterized) images, with additional information on how fast to play the frames. Arrows with text. LaTeX font commands. [Lowerbounds, Upperbounds] » Blog Archive » Continuous LaTeX Compilation Using latexmk.
Automation - Don't make me manually abort a LaTeX compile when there's an error. LaTeX composition in (g)vim with live update-as-you-type PDF preview (Page 1) / Community Contributions.