|
|
TeX and LaTeX |
| A list of "TeX Resources on the Web" is at http://www.tug.org/interest.html.
This includes a searchable TeX faq list (http://www.tex.ac.uk/cgi-bin/texfaq2html). 2000-Mar-28 2:50pm furnstahl.1@osu.edu | |
| Major Topics:
General Questions: | |
| [New Answer in "TeX and LaTeX"] | |
| 2003-Mar-27 9:41am | |
|
|
Powerpoint-Style Presentations using LaTeX |
| Presentations using Microsoft Powerpoint (shown using a video projector) are rapidly becoming the norm for physics talks in many subfields. However, many of us want to generate platform-independent presentations with all of the good features of Powerpoint while maintaining all of the advantages of creating a talk using LaTeX.
The best solution at present is to take advantage of Adobe's Acroread PDF viewer, which is available at no charge for all of the major platforms (although not all platforms have the most up-to-date version available). The basic idea is to convert your LaTeX presentation to a PDF file and then to display it using Acroread. The features are: * full-screen mode (so all you see is your talk projected on the screen)
* transition effects including
* bullet items revealed one-by-one
* figures revealed step-by-step
* fancy page (or partial page) transitions, such as left-to-right wipes
* hyperlinks in your document so you can click them to go to other parts of
your talk or to external web pages
To create a basic talk that just projects your transparencies (no special transition effects), you just need to generate a pdf (rather than a postscript) file. Then just start up Acroread (it is called acroread on the Linux systems) on the pdf file and switch to full-screen mode (under the View menu or with a shortcut that is usually ctrl-L).
To incorporate transition effects, there are at least three choices at present: the TeXPower bundle by Stephan Lemke, the PPower4 postprocessor, and the Prosper package. Descriptions and links are given in the resource pages listed below.
PDF Classroom Demonstrations: http://www.math.uakron.edu/~dpstory/pdf_present.html Screen presentations: http://www.miwie.org/presentations/ (This site is kept up to date.) Prosper (LaTeX class for writing transparencies): http://prosper.sourceforge.net/
| |
| Subcategories:
Answers in this category: | |
| [New Answer in "Powerpoint-Style Presentations using LaTeX"] | |
| 2002-Jun-17 9:05am | |
|
|
TeXPower package |
| [Warning: The version of TeXPower described here is designated alpha. In this case, that means that the code is likely to change and the changes will not all be backwards compatible. However, the current version has most of the features you could hope for and does not appear to be buggy. (This warning is an update from one from March, 2002, at which time TeXPower was "pre-alpha".)] 2002-Oct-22 7:50am furnstahl.1@osu.edu | |
| TeXPower is a set of LaTeX style files that can be used to create dynamic presentations. The principal developer is Stephan Lehmke (Stephan.Lehmke@cs.uni-dortmund.de) but recently the TeXPower project has moved to SourceForget.net (http://texpower.sourceforge.net/). The texpower package implements the presentation effects, which include special page transitions, incremental page displays (e.g., stepping through bullet items), and color highlighting. These effects exploit the built-in capabilities of the Adobe Acroread PDF reader, which is available (at no charge) for all platforms.
You still need to use a package (or the slides class) to format your slides. Possibilities are foiltex, seminar, the LaTeX2e slides class, prosper, pdfslide, pdfscreen, ...
The features of texpower are implemented entirely using TeX and LaTeX, but the final output file must be a pdf file. There are several options, including:
I favor the pdfLaTeX approach, but your mileage may vary. | |
| Subcategories:
Answers in this category: | |
| [New Answer in "TeXPower package"] | |
| 2002-Oct-22 7:53am | |
|
|
Demonstrations and Examples |
| [Warning: These are examples from the pre-Alpha version of TeXPower!]
Here are some of the demonstration pdf files included in the TeXPower bundle: * fulldemo.pdf (http://www.physics.ohio-state.edu/~ntg/pdf/texpower/fulldemo.pdf), which demonstrates most of TeXPower's capabilities. * FAQ-display.pdf (http://www.physics.ohio-state.edu/~ntg/pdf/texpower/FAQ-display.pdf), which is the display version of the TeXPower FAQ.
| |
| TeXPower has recently moved to SourceForge.net (http://texpower.sourceforge.net/), where you can find more examples (currently for the alpha version). 2002-Oct-22 7:55am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category:
| |
| [New Answer in "Demonstrations and Examples"] | |
| 2002-Oct-22 7:58am | |
|
|
Where do I get TeXPower? |
| At the moment, TeXPower is an alpha release. You can get the current version from http://texpower.sourceforge.net/, which has a "downloads" section. Check there for the latest version. There is also a manual and a gallery there. 2002-Oct-22 7:57am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Oct-22 7:57am | |
|
|
Is there a manual for TeXPower? |
| Yes. A local version is available: </~ntg/pdf/texpower/manual.pdf> (with LaTeX source </~ntg/pdf/texpower/manual.tex>), but it may be out of date as you read this. An up-to-date manual should be available from http://lrb.cs.uni-dortmund.de/~lehmke/texpower/doc.
There is also an FAQ, available in display form: </~ntg/pdf/texpower/FAQ-display.pdf> or printable form: </~ntg/pdf/texpower/FAQ-printout.pdf>. | |
| [Append to This Answer] | |
| 2002-Mar-31 9:48am | |
|
|
Using Acrobat or Acroread for Presentations |
|
2002-Mar-30 9:09am furnstahl.1@osu.edu | |
| Subcategories:
Answers in this category: | |
| [New Answer in "Using Acrobat or Acroread for Presentations"] | |
| 2002-Mar-30 11:41am | |
|
|
Where do I get an up-to-date version of the Acrobat PDF Reader (Acroread)? |
| You can get the current version from the Adobe web site at http://www.adobe.com/products/acrobat/readstep.html. The instructions will step you through the download procedure. The basic product (which is all you need) is called the Acrobat Reader. Get the latest version (largest version number) available for your platform (Windows 9x, Windows XP, Mac OS X, Linux, etc.). 2002-Mar-30 9:15am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 9:15am | |
|
|
How do I enter/exit the Acrobat Reader (Acroread) full-screen mode? |
To enter full-screen mode:
* under the View menu, select "Full Screen"
* or use the short-cut, which is usually Ctrl+L (it is listed next to
"Full Screen" under the View menu) or Command+L (on Macs)
To exit full-screen mode:
* use the "escape button" (usually marked "Esc" in upper left of keyboard)
* use the short-cut, which is usually Ctrl+L (it is listed next to
"Full Screen" under the View menu) or Command+L (on Macs)
2002-Mar-30 9:27am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 9:27am | |
|
|
What "Full Screen Preferences" are useful for Acrobat Reader? |
| You find the "Full Screen Preferences" under the File menu: File -> Preferences -> Full Screen... Useful Navigation preferences: * Advance On Any Click if you have a remote control (e.g., RF) mouse * Loop After Last Page takes you back to the beginning * Escape Key Exits --- Esc leaves full-screen mode 2002-Mar-30 11:44am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-30 11:44am | |
|
|
How do I create a presentation with PDFLatex? |
| See "Creating Presentations in PDFLaTeX" by Matt Welsh http://www.cs.berkeley.edu/~mdw/proj/texslides/. 2001-Oct-18 10:48am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Mar-22 7:46am | |
|
|
How do I start another program from within a PDF presentation? |
| This answer is taken from the Hints and Tricks section of the Screen Presentation Tools summary (http://www.miwie.org/presentations/html/hints.html) by Michael Wiedmann.
-------------- begin excerpt ------------- Herman Bruyninckx submitted the following macros to start up movies or other programs from within a PDF presentation made with LaTeX:
The key is to write a little shell-script and launch it from within pdflatex. In the shell-script you should simply call a standard unix tool for viewing video files, e.g.: mpeg_play -controls off -dither color -position +128+96 video.mpgName this script for example videoscript.sh and make it executable. Defining the following two new commands in pdflatex, \newcommand{\pdflaunch}[1] {\pdfpageattr{/AA << /O << /S /Launch /F (#1) >>>>}}
\newcommand{\pdflaunchlink}[2]{%
\pdfannotlink attr{/Border [0 0 0]} user{/Subtype /Link /A << %
/S /Launch /F (#1) >>}%
\pdfliteral{0 1 0 0 k}%
{#2}\pdfliteral{0 0 0 1 k}\pdfendlink%
}
you have either the possibility to launch this script instantly with a new slide: \pdflaunch{videoscript.sh}
or after pressing a special link defined by: \pdflaunchlink{videoscript.sh}{Start video}
Don't forget to kill the video application when it is not needed anymore. For this purpose again define a little script e.g.: killall mpeg_play
and call it as mentioned above.
------------------ end excerpt ------------------ | |
| [Append to This Answer] | |
| 2002-Jun-17 8:59am | |
|
|
How do I automatically start a PDF presentation in full-screen mode? |
Load the hyperref package, e.g.,
\usepackage[plainpages=false]{hyperref}
and add the command:
\hypersetup{pdfpagemode=FullScreen}
(I put it just after the \usepackage commands but I don't know if the positioning is critical. I would at least put it before \begin{document}.)2002-Jun-17 9:02am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Jun-17 9:02am | |
|
|
How do I include postscript figures in a TeX file? |
| A comprehensive overview is "Using Imported Graphics in LaTeX2e". A pdf version is ftp://ftp.cdrom.com/pub/tex/ctan/info/epslatex.pdf or ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf.
[Warning: It is over 80 pages!] 2000-Mar-29 9:38am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Mar-29 9:38am | |
|
|
How do I figure out the bounding box (BoundingBox) for an encapsulated postscript file? |
Here is a section from "Using Imported Graphics in LaTeX2e"
(ftp://ftp.cdrom.com/pub/tex/ctan/info/epslatex.pdf or ftp://ftp.tex.ac.uk/tex-archive/info/epslatex.pdf):
------------ begin excerpt -------------3.2 The EPS BoundingBox By convention, the first line of a PostScript file specifies the type of PostScript and is then followed by a series of comments called the header or preamble. (Like LATEX, PostScript's comment character is %). One of these comments specifies the BoundingBox. The BoundingBox line contains four integers:
1. The x-coordinate of the lower-left corner of the BoundingBox. For example, the first 5 lines of an eps file created by gnuplot are %!PS-Adobe-2.0 EPSF-2.0 %%Creator: gnuplot %%DocumentFonts: Times-Roman %%BoundingBox: 50 50 410 302 %%EndComments Thus the gnuplot eps graphic has a lower-left corner with coordinates (50, 50) and an upper-right corner with coordinates (410, 302). The BoundingBox parameters have units of PostScript points which are 1/72 of an inch, making the above graphic's natural width 5 inches and its natural height 3.5 inches. Note that a PostScript point is slightly larger than a TEX point, which is 1/72.27 of an inch. In TEX and LATEX, PostScript points are called "big points" and abbreviated bp while TEX points are called "points" and abbreviated pt.
Single-page PostScript files without any improper commands can be converted to eps by using one of the following methods for adding a BoundingBox line. Since these methods do not check for illegal PostScript operators, they do not produce usable EPS files unless the PS files are free of forbidden operators. 1. The most convenient option is to use the ps2epsi utility distributed with Ghostscript (see Section 5), which reads the PostScript file, calculates the BoundingBox parameters, and creates an eps file (complete with a BoundingBox) which contains the PostScript graphics. The resulting file eps file is in epsi format, which means it contains a low- resolution bitmapped preview at the beginning of the file. Since this preview is ascii-encoded, it does not cause the Section 4.1 bufsize errors. However, this epsi preview increases the file size. 2. Alternatively, the BoundingBox parameters can be calculated and inserted in the PostScript file's BoundingBox line or specified in the graphics-insertion command (e.g., the \includegraphics command's bb option). There are several ways to calculate the BoundingBox parameters (a) Use Ghostview/GSview to display the PostScript graphic. As the pointer is moved around the graphic, the pointer's coordinates (with respect to the lower-left corner of the page) are displayed. To determine the BoundingBox parameters, record the pointer coordinates at the lower-left corner of the graphic and the upper-right corner of the graphic. (b) Print out a copy of the PostScript graphics and measure the horizontal and vertical distances (in inches) from the lower-left corner of the paper to the lower-left corner of the graphics. Multiply these measurements by 72 to get the BoundingBox's lower-left coordinates. Likewise, measure the distances from the lower-left corner of the paper to the upper-right corner of the graphics to get the BoundingBox's upper-right coordinates.
(c) The bbfig script uses a PostScript printer to calculate the BoundingBox.
bbfig adds some PostScript commands to the beginning of the PostScript
file and sends it to the printer. At the printer, the added PostScript
commands calculate the BoundingBox of the original PostScript file, printing the
BoundingBox coordinates superimposed on the PostScript graphic. ---------------- end excerpt ----------------- 2000-Mar-29 9:38am furnstahl.1@osu.edu | |
Here's a new way: If you have Ghostscript 6.0 (or later), the command:
gs -sDEVICE=bbox -dNOPAUSE -dBATCH file.pswill print the bounding box information for file.ps (and then exit gs). I have written a perl script that will automatically find the bounding box and correct the postscript file (or add the info if there is none). The script is </~ntg/scripts/bbox_add.pl>Be sure to make it executable: chmod +x bbox_add.plTo see the options and the defaults, bbox_add.pl --help 2001-Sep-07 5:01pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-07 5:01pm | |
|
|
Can I include a JPEG (jpg) graphic file directly into TeX or LaTeX? |
| If you want it to be portable, probably not. So you can either convert it
to encapsulated postscript (eps) using a graphics program like Gimp, or use a program called jpeg2ps, which puts
an eps wrapper on the jpeg file. This means you can treat it like a postscript
file (as long as you have at least postscript 2, which is pretty much everywhere
these days). So this is essentially like putting it directly in.
The source code (it's in C) for jpeg2ps is available from http://www.pdflib.com/jpeg2ps/.
Here is a Linux executable
(right-click on the link and save it to a file called jpeg2ps):
</~ntg/download/jpeg2ps> (of version 1.8; check the link above for updates). To create file.eps from file.jpg, the command is: jpeg2ps -o file.eps file.jpgor jpeg2ps file.jpg > file.eps 2002-Apr-02 8:19am furnstahl.1@osu.edu | |
You can find out the options to jpeg2ps by just typing it with no arguments:
jpeg2psand you'll get a list of options. I find the -a (auto rotate) option to be very useful. It automatically switches to landscape mode if the jpeg width is greater than the height. If the picture is too big to fit on a page, it will scale it appropriately. 2002-Apr-02 8:17am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2002-Apr-02 8:19am | |
|
|
Is there a way to automatically figure out and insert the bounding box in a postscript file? |
If you have Ghostscript 6.0 (or later), you can use a perl script
that will automatically find the bounding box
and correct the postscript file (or add the info if there is none).
The script is
</~ntg/scripts/bbox_add.pl>Be sure to make it executable: chmod +x bbox_add.plTo see the options and the defaults, bbox_add.pl --helpHere is what the "help" says at present: The script bbox_add.pl adds a tight bounding box to postscript files. It uses gs with the bbox option. The only mandatory command-line arguments are the names of the files to be processed. Wildcards are allowed (e.g. *.tex will process all of the TeX files.) The options are --help print this help --version version number --keep keep original file, with ".orig" appended to name --padding=i add an "i" point border around box (default is 3) 2001-Sep-07 4:59pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Sep-07 4:59pm | |
|
|
How can I convert a TeX or LaTeX file to a text (ascii) file? |
| There is a program called detex that can be used to strip away TeX and
LaTeX commands, but it is not a great solution (it is designed to be a
pre-processor for a spelling checker).
Maybe the best solution is to generate a postscript file and then use ps2ascii to convert from postscript to ascii. From the man page: ps2ascii uses gs(1) to extract ASCII text from PostScript(tm) or
Adobe Portable Document Format (PDF) files. If no files are specified
on the command line, gs reads from standard input; but PDF input
must come from an explicitly-named file, not standard input.
If no output file is specified, the ASCII text is written to
standard output.
The short script ps2ascii should be included with your gs distribution
(on linux systems you should find it in /usr/bin, ready to go).2000-Apr-24 11:28am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2000-Apr-24 11:28am | |
|
|
Where do I get RevTeX? |
| The latest version of REVTeX is REVTeX 4; you should really switch to this one is you've been using REVTeX 3.
The homepage for REVTeX 4 is http://publish.aps.org/revtex4/, which includes documentation and the files you'll need (the latter are available as http://publish.aps.org/revtex4/revtex4.tar.gz or http://publish.aps.org/revtex4/revtex4.zip or on CTAN at http://www.ctan.org).
Basically, you just need to unzip the distribution file and put all of the LaTeX files somewhere pointed to by your TEXINPUTS environment variable (e.g., /usr/local/lib/tex/inputs is frequently used). | |
| [Append to This Answer] | |
| 2001-Sep-24 11:07am | |
|
|
How do I reduce the size of postscript figure files? |
| The following answer is taken vertabim from the FAQ at the Front for the Mathematics ArXiv http://front.math.ucdavis.edu/ifaq#3.3; check there for updates.
------------------------ begin answer ---------------------------------3.3 My Postscript figure files are bloated.
You can usually reduce or eliminate Postscript bloat if you understand your Postscript. Computers cannot understand Postscript well enough to do it automatically, because Postscript, like TeX, is a full-fledged programming language. However, two Unix utilities can often fix the problem: * convert is a bitmap-based image conversion program which is part of the
ImageMagick graphics package. It interconverts nearly 100 different image
formats, including several kinds of Postscript.
* eps2eps, which is part of the ghostscript package, converts fancy Postscript
to simple Postscript. The output is frequently much shorter than the input,
even though it is functionally identical. However, it does not help much
with bitmaps.
Here are three possible reasons that your Postscript might be bloated, together with suggested remedies.* The file is a huge bitmap. This is usually because the resolution is substantially higher than necessary, because it is a black-and-white diagram saved as a full-color photograph, or because it is encoded inefficiently (using as many as 12 bytes per pixel). If you include the figure in your TeX document without rescaling it, then you should try: 2001-Oct-09 1:57pm furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2001-Oct-09 1:57pm | |
|
|
How do I find out the LaTeX page layout parameters? |
| The layout of a page in LaTeX is dtermined by various settings such as \topmargin, \textwidth, \footskip, and so on. An easy way to find out the current settings in your document is with the \layout command from the layout package.
To use it, put \usepackage{layout}
somewhere before \begin{document} and then use the command:
\layoutsomewhere in a sample document. It will generate a diagram with the settings marked. You can change the values using \setlength, e.g., \setlength{\textwidth}{13cm}
2003-Mar-27 9:45am furnstahl.1@osu.edu | |
| [Append to This Answer] | |
| 2003-Mar-27 9:45am |
| Previous: |
|
| Next: |
|
| ||||||||||