28.11.11

Resize a picture in Windows


You can change the size or resolution of a digital picture by changing:

  • The number of pixels. The resolution, or sharpness, of a picture is determined by the number of pixels it has. More pixels improve the resolution of a picture, which allows you to make a larger print without reducing visual quality. Keep in mind, however, that the more pixels a picture has, the larger its file size will be.
  • The file size. The amount of space a picture takes up on your computer and how long it takes to send as an e‑mail attachment is determined by the picture's file size. Although more pixels often means a larger file size, the picture's file type (JPEG or TIFF, for example) usually has more to do with file size. For example, a picture saved using TIFF will be much larger than the same picture saved using JPEG. This is because JPEG pictures can be compressed, which makes the file smaller at the cost of slightly lower visual quality.
    If the picture isn't already a JPEG, you can usually save a significant amount of space by saving the file as a JPEG, and then deleting the original TIFF version from your computer. For information about saving a picture as a different type of picture file using Paint, see Change a picture's file type (file format) using Paint.
To resize a picture using Paint
  1. Open Paint by clicking the Start button Picture of the Start button, clicking All Programs, clickingAccessories, and then clicking Paint.
  2. Click the Paint button Picture of the Paint button, click Open, click the picture you want to resize, and then click Open.
  3. On the Home tab, in the Image group, click Resize.
  4. In the Resize and Skew dialog box, select the Maintain aspect ratio check box so that the resized picture will have the same aspect ratio as the original picture.
    If the Maintain aspect ratio check box is selected, you only need to enter the horizontal value (width) or vertical value (height). The other box in the Resize area is updated automatically.
  5. Do one of the following in the Resize area, and then click OK:
    • To resize your picture by a certain percentage, click Percentage, and then enter a percentage to reduce the width by in the Horizontal box or a percentage to reduce the height by in the Vertical box.
    • To resize the picture so it's a specific size, click Pixels, and then enter a new width in the Horizontal box or new height in the Vertical box.
  6. Click the Paint button Picture of the Paint button, point to Save as, and then click the picture file type for the resized image.
  7. Type a new file name in the File name box, and then click Save.

    To resize a picture using Imageresizer 

    Other way to resize pictures is with the program Imageresizer

3.11.11

Webs with Tips and tricks in LaTeX


http://www.kronto.org/thesis/tips/

Algunos trucos para LaTeX



Aquí van algunos truquillos para la inmensa minoría que se está iniciando en el mejor sistema de composición tipográfica jamás creado:LaTeX. Espero que les sea útil.
  • Control de viudas y huérfanas. Para el que no lo sepa, las viudas y las huérfanas son aquellas líneas de principio o fin de párrafo que se quedan solas al final o al inicio de una página, dando un aspecto feo y tipográficamente incorrecto. Curiosamente, LaTeX no penaliza por defecto estas líneas. Para que lo haga, basta con escribir en nuestro preámbulo las siguientes órdenes: 
          \clubpenalty=10000
          \widowpenalty=10000
           ...y no habrá viuda o huérfana que se le resista.
  • Establecer sangría de primera línea. Esta sangría en LaTeX es por defecto un poco más larga de lo que la tradición tipográfica española prescribe (1em, es decir, el tamaño medio de la fuente y que equivale a la anchura de la letra "m". También se conoce esta medida como "cuadratín"). Bueno, si a alguien le quita el sueño este comportamiento, declararemos en nuestro preámbulo una nueva sangría de primera línea:


          \setlength{\parindent}{1em}
  • Usar letras capitulares. Basta con echar mano del paquete "lettrine", incluido en TeXLive y MikTeX. Un ejemplo de uso:


          \lettrine{E}n un lugar de la Mancha...
           En fin, eso es todo. Ya caerán más trucos.

24.10.11

Nice overlay effect in LaTeX Beamer

By Christian Gogolin in http://www.cgogolin.de/Computer.html


screenshot of a sample slideWhen doing slides for a talk you sometimes want to first give an overview of a certain idea and then explain some parts of it in more detail. One way of doing this is to uncover the information bitwise. Sometimes this might not be ideal for a couple of reasons. For example, you must be careful to leave enough space for the extra information, which can easily lead to an odd looking layout. Alternatively, and in particular if you have quite a lot of extra information, you could create an entirely new page covering the extra information and then come back to the overview page once you have finished explaining them. This approach also has certain downsides, the most important of which probably is that the audience might miss the fact that you are still talking about the same thing. Especially if you want to provide details concerning several different aspects of you main idea this can be very confusing.
So, what to do?
I think that a quite elegant way to deal with such a situation is the following: Put the details in a box that hovers above the overview slide. This way you can avoid ending up with a cluttered layout and still give the audience some visual guidance that will help them to intuitively understand that you have not switched subject but are rather giving some details. An example of how this can look like can be seen in the picture on the left or in the slides of my talk"Thermalization in nature and on a quantum computer".
And here is how you can implement this using TikZ and LaTeX Beamer:
\newcommand<>{\hover}[1]{\uncover#2{%
 \begin{tikzpicture}[remember picture,overlay]%
 \draw[fill,opacity=0.4] (current page.south west)
 rectangle (current page.north east);
 \node at (current page.center) {#1};
 \end{tikzpicture}}
 }
      
This command will cover the entire page with an opaque black rectangle and the draw what ever you give it as main argument in the middle of the page above this rectangle. The <> after the \newcommand makes it overlay specification aware. A standard use case would be the following:

      \begin{frame}
      \frametitle{A frame}
      Some text
      \hover<2>{
      \begin{minipage}{0.8\linewidth}
      \begin{block}{A block hovering above the slide}
      I am visible on slide two.
      \end{block}
      \end{minipage}
      }
      \end{frame}
      
The effect works particularly well with the option [realshadow] of my inner themebeamerinnerthemechamfered.
There is however one problem with LaTeX Beamer themes that include a foot line. The foot line is drawn after the content of the frame. There is thus no (easy) way to have the opaque rectangle cover the foot line. The foot line of my outer theme beamerouterthemewuerzburg can be suppressed by giving the [nofootline] option.

16.10.11

Beamer and Latex With Keynote Theme



 LaTeX is a typsetting system that allows you to make great-looking documents, and is well-used to make academic papers. I even use it for homeworks and other documents. There are also packages that allow it to make fantastic posters and slide presentations as well. I spent the last few days getting caught up on this, and want to share what I’ve figured out:

  • A sexy Beamer theme that looks like Keynote
  • How to format the footer
  • How to make slide numbers
  • How to remove the navigation symbols
  • How to make movies show up in presentations
  • The best references
I’ll talk about each of these briefly and give links to download a demo presentation and the .tex and .sty files that made it. Here’s a sneak peek of what it looks like!

keynote beamer presentation

I’ve known about the possibility of LaTeX slides for a while, but never took the time to figure it out. Now that I have, I must say that this is *way* easier and better than Powerpoint. This is even more true when you’re presenting material that you have already written up as a paper in LaTeX. Copying figures and equations couldn’t be easier! I really recommend everyone try it out (especially grad students!).
My experiences have been with Beamer (but other options exist.) Phase I is to get this set up and working with LaTeX. Once this is done you’ll find it very simple to throw together a quick presentation. If, however, you are a man (or woman) of style, you’ll yearn for something that shines a little brighter.
I really wanted my presentation to look like those classy Keynote presentations you’re always seeing Steve Jobs giving. I’ve got something nice now and I use a few other tricks to get things just right for me. Hopefully this helps you out.

Keynote Beamer Theme

Here’s what we’re going for:

steve jobs presentation

I think I capture that pretty well! Download the style file and place it somewhere in the Beamer path (or in the same directory as the presentation). Then put this at the top of your document:
\usetheme{lankton-keynote}
Voila! You’ve well on your way to a classy presentation. I also included my .tex code and the finished .pdf of this presentation. This file shows all the other tricks I talk about in this post as well.

Formatting the Footer

You’ll often want abbreviated author lists and titles in the footer of your document. Remember that the \authors{} and \title{} commands have options. Hence, use them this way:

\authors[First Author]{First Author\quad Second Author}
\title[Short Title]{Longer Title for the First Slide}
This essentially gives you the ability to put anything on the footer as in the next section:

Slide Numbers in the Footer

To get slide numbers in the footer (next to the title of the presentation) replace your \title{} command with this:
\title[Abbrev. Title\hspace{2em}\insertframenumber/
\inserttotalframenumber]{Full Title}
A good presentation should always have slide numbers to make it easier for the guy in the audience wants to make a fuss about a particular slide : )

Removing the Navigation Symbols

By default, these slideshows have a bunch of little symbols along the bottom right of the slides to assist in navigation. To remove these, include this text in your code:
\setbeamertemplate{navigation symbols}{} %no nav symbols
This is already included in my style file above.

Include Movies in the Presentation

No good presentation is *that* good unless it has a movie, right? Well, this is simple enough. Try this code:

\usepackage{multimedia}
...
\movie[height=5cm,width=6.5cm,loop]{}{move.avi}
I’ve found that this only works in Adobe Reader, but… hey! It works. This was the main thing I was worried about when I started using LaTeX to make my slides, but it really works beautifully.

Beamer Reference

I wish I had this reference right from the start: The Beam User Manual [pdf]

Making LaTeX Beamer Presentations


If you want to create overhead presentations (á la Powerpoint) with LaTeX, you can do so by using Beamer class, which creates surprisingly professional and sophisticated documents that you can then display using any pdf viewer (e.g., such as Adobe Acrobat). The advantage of using LaTeX over a program like Powerpoint is that it doesn't require expensive software for either creating or displaying your presentation; it thus makes the presentation truly "portable". And, if you already have the basics of LaTeX down, learning the basics of creating a beamer presentation does not take much effort.

getting beamer class

You can download beamer class by either downloading the package from its webpage, or better yet, if you have Ubuntu (or Debian), just apt-get latex-beamer (which will also install it for you as well).
If you download the beamer package from the website, installation will be a bit more complicated. Follow the instructions included in the package. (Or look elsewhere for instructions on how to install LaTeX classes. It's really as easy as putting a few files in places where LaTeX knows where to look: the trick is figuring out where LaTeX looks for them. I may put up a tutorial on hand-installing LaTeX classes in the future.)

the basic document structure

Beamer class is quite feature-rich, and it's 200+ page manual may be a little intimidating. However, creating a basic presentation really requires doing only two things:
  1. Declaring beamer class in your LaTeX preamble, and
  2. Enclosing each "slide" in a special "frame" environment.
You will probably also want to include the date, title, author, etc., of your presentation. These can all be included in a separate title slide, created with the \titlepagecommand. You may also want to include titles for your frames (which are displayed in large font at the top of the slide) with the \frametitle command. Thus, a basic beamer document will look something like the following:
\documentclass{beamer}
\title{Here is my Title}
\author{Christina Huggins}
\date{July 15th, 2005}

\begin{document}

\begin{frame}
\frametitle{Optional Title for My Slide}
Here is one slide.
\end{frame}

\begin{frame}
Here is another slide.
\end{frame}

\end{document}
Note that beamer class is meant to be compiled using pdflatex to easily create a pdf presentation.
Knowing this basic document structure, you can create quite a decent presentation. At this point, I only use these presentations for my teaching lectures, and I have not the need for anything terribly fancy. However, I've found a few of the additional features to be quite useful, so I've included them below.

themes

While the default presentation looks quite clean and professional, you may want to play with the style of your presentation with themes. Beamer comes prepackaged with quite a few complete themes, (as well as what I call "sub-themes": color themes, or themes that only apply to the "outer" or "inner" part of the slide frames). The manual explains the differing themes in a bit of detail, and you can explore these different themes on your own. Once you find a theme you like (I like Boadilla), you can just declare it in the preamble like so: \usetheme{ThemeName}.

columns & blocks

There are two handy environments for structuring your slide: "blocks", which divide your slide (horizontally) into headed sections, and "columns" which divides your slide (vertically) into columns.

columns

example
\begin{frame}
\begin{columns}[c] % the "c" option specifies center vertical alignment
\column{.5\textwidth} % column designated by a command
Contents of the first column
\column{.5\textwidth}
Contents split \\ into two lines
\end{columns}
\end{frame}

\begin{frame}
\begin{columns}[t] % contents are top vertically aligned
\begin{column}[5cm] % each column can also be its own environment
Contents of first column \\ split into two lines
\end{column}
\begin{column}[T]{5cm} % alternative top-align that's better for graphics
\includegraphics[height=3cm]{graphic.png}
\end{column}
\end{columns}
\end{frame}
See resulting pdf.

blocks

example
\begin{frame}
\begin{block}{Block Heading}
Enlosing text in the ``block'' environment creates a distinct, headed block of text.
\end{block}
\begin{block}{Second Block Heading}
This lets you visually distinguish parts of your slide easily.
\end{block}
\end{frame}
See resulting pdf.

revealing things incrementally

There may be times during your presentation when you want to reveal things on a slide piecemeal (e.g., you reveal a list one item at a time).
The most straightfoward way to do this is via the "pause" command. If you want more sophisticated reveals (e.g., you want the first and last item on a list to be revealed at the same time), then you would use other methods. But, "pause" works perfectly for my purposes.
example
\begin{frame}
Since I may want to focus on one item at a time in my presentation,
\begin{itemize}
\item I want to reveal only the first item on my list initially,
\pause
\item then the second item,
\pause
\item then the third,
\pause
\item and so on...
\end{itemize}
\end{frame}
See resulting pdf.

making accompanying documents

There are several ways to create notes, handouts, or other accompanying documents for your presentation. My preferred way of doing this (since I like to include a lot of extra commentary and notes for reference later) is to use article mode. That is, I can create an article, load the package "beamerarticle", and LaTeX will render all of the beamer commands and environments within article mode.
Anything within the frames will be printed in the article; anything outside the frames will also be printed in the article (but you can specify that this text be ignored in beamer mode). So, in short, you can create your beamer presentation and and an accompanying document that includes both the beamer text and extra notes.
The most efficient way to do this is the following:
  1. Create your main .tex file (including both the text for your presentation and the notes in between). Leave off the document class declaration (let's call it name.tex).
  2. Create another file, name.beamer.tex, the content of which is the following:
    \documentclass[ignorenonframetext]{beamer}
    \input{name.tex}
  3. Create a third file, name.article.tex, the content of which is the following:
    \documentclass{article}
    \usepackage{beamerarticle}
    \input{name.tex}
Then, run pdflatex on both name.beamer.tex and name.article.tex to get your presentation and accompanying document, respectively. To demonstrate an extended example of this, I included below both the main .tex file, and the resulting beamer presentation and article that I rendered from it (I'm not including the beamer.tex and article.tex files, since they really are just as simple as the examples above). example
  1. Main .tex file
  2. Beamer pdf
  3. Article pdf
Tomado de:

Beamer Theme for the University of the Pacific


As is the convention, the style file is called beamerthemeStockton.sty.  Download beamerthemeStockton.sty here.

The beamerthemeStockton.sty file should be placed in your directory
    texmf/tex/latex/beamer/themes/theme
This is where all your beamer theme style files live.

If you also want the logo, here is it:  Seal_Cream.pdf.  Place this file in your the folder with the rest of the images used in your beamer presentation.

A sample tex file using beamerthemeStockton.sty can be found here:  sampleStockton.tex.

User Notes

This style file is based on the Beamer theme Copenhagen, using colors approved by the University Marketing Department.

Here is a screenshot:



















The command 
    \orangebox{argument 1}{argument 2} 
produces a theorem-like box with argument 1 at the top and argument 2 at the bottom.

For example, 
    \orangebox{Theorem Orange.}{If you use the orangebox command, the         
    box  will be orange.} 
produced the  first theorem-like box shown below.  Similarly, you may use \greenbox, \bluebox, \graybox, and \grassgreenbox.



















I prefer a flat bullet in itemized lists.  There is an environment to produce itemized lists using bullets in each of the colors shown above.

For example 
    \begin{grassgreenitemize} 
        \item Don't forget to match 
        \item your bullets to the box 
        \item they live in. 
    \end{grassgreenitemize}
produces the itemized list shown in the \greenbox below.




















I’m assuming you know how to use Beamer and LaTeX, but if not, I’d be glad to help.
Happy TeXing!

Tomado de:

http://www1.pacific.edu/~smerz/Pacific_Beamer_Theme.html