21.3.12

Inkscape to TikZ exporter


Tomado de http://code.google.com/p/inkscape2tikz/

An Inkscape extension for exporting SVG paths as TikZ/PGF paths. Similar to my Blender to TikZ exporter.

Note: This extension is a work in progress.

Example

Exporting the above path will generate the following code:
\documentclass{article}
\usepackage{tikz}
\usepackage[active,tightpage]{preview}
\PreviewEnvironment{tikzpicture}
\begin{document}
\definecolor{cff8080}{RGB}{255,128,128}
\begin{tikzpicture}[y=0.80pt,x=0.80pt,yscale=-1]
\begin{scope}[draw=black,line join=round,miter limit=4.00,line width=3.200pt]
  \path[draw=black,fill=cff8080,line join=round,even odd rule,line cap=butt,miter
    limit=4.00,line width=3.200pt] (91.0455,165.7194) rectangle
    (250.7252,347.8104);
  \path[draw=black,line join=round,even odd rule,line cap=butt,miter
    limit=4.00,line width=3.200pt] (168.0839,258.1656) .. controls
    (169.6992,260.2725) and (166.0408,261.3824) .. (164.5822,260.8503) .. controls
    (160.6293,259.4083) and (160.6636,254.1057) .. (162.7146,251.1621) .. controls
    (166.3833,245.8967) and (174.0594,246.2369) .. (178.5892,250.1116) .. controls
    (185.2369,255.7979) and (184.5602,266.1224) .. (178.8226,272.1726) .. controls
    (171.1753,280.2366) and (158.1221,279.2067) .. (150.5752,271.5890) .. controls
    (141.0782,262.0028) and (142.4690,246.1872) .. (151.9759,237.1551) .. controls
    (163.4900,226.2161) and (182.0854,227.9716) .. (192.5962,239.3729) .. controls
    (204.9828,252.8090) and (202.8604,274.1941) .. (189.5613,286.1796) .. controls
    (174.2071,300.0173) and (150.0257,297.5267) .. (136.5682,282.3277) .. controls
    (121.2770,265.0577) and (124.1368,238.0757) .. (141.2372,223.1481) .. controls
    (160.4213,206.4017) and (190.2069,209.6312) .. (206.6032,228.6342) .. controls
    (224.8061,249.7311) and (221.2064,282.3227) .. (200.3000,300.1866);
\end{scope}
\end{tikzpicture}
\end{document}

Installing

Installing is as simple as copying the script (unless it resides in your path) and its INX files to the Inkscape extensions directory.

Windows

Copy the tikz_extport.py file and the tikz_export_effect.inx and tikz_export_output.inx files to your inkscape/share/extensionsdirectory.

Linux and OSX

Copy the tikz_extport.py file and the tikz_export_effect.inx and tikz_export_output.inx files to your home/.inkscape/extensionsdirectory. If you are using Inkscape 0.47 the directory is home/.config/inkscape/extensions.
Additionally you have to copy the following dependencies to the same directory as above:
  • inkex.py
  • simplestyle.py
  • simplepath.py
The above files should be bundled with Inkscape. Look in the main extensions directory. You can also download them from the repository

Usage

If the extension has been installed correctly, you will find the exporter in the Effects -> Export -> Export to TikZ path... menu. You can also select Save As and select TikZ code as output format.
If any objects are selected, only the selected objects will be exported. If no objects are selected, every object will be exported.

Features

  • All SVG paths and shapes are exported
  • Text is exported as TikZ nodes
  • All graphical properties, except shading, supported
  • High level output. Easy to modify.

Limitations

  • No support for markers. If markers are needed, convert stroke to path before export.
  • No shadings or patterns yet
  • The generated code is unnecessary complex. Smarter output is a priority.
  • No support for style references yet.

18.3.12

.: LATEX Beamer Themes :.


Tomado de http://latex.simon04.net/

Introduction

This page is for those who use the Beamer Class for their LATEX presentations, but are not happy with the default set of themes that comes with the package. Here I try to maintain an index of custom themes that are available on the internet. If you're lazy, just pick a theme and install it, or maybe use it for some inspiration and create your own.
Do you know a theme that should be on this list? Please let me know and I'll include it.
This list was created by Rogier Koppejan during his computer science studies at the University of Amsterdam. He hosted this page on his university website. To retain this collection after discontinuation of his account, he handed it over to me.

Themes

Amsterdam 
This theme is called "Amsterdam". I made it myself, it's based on Dresden but with custom colors. You can download it here.

Bouveret 
Sylvain Bouveret has built an alternative beamer theme called progressbar, for more information, see his website (GitHubsome more themes). 

CEA 
An unofficial CEA theme for latex beamer made by Fabrice Gadaud. Link. 

Diepen 
For those that like airplanes (or any other background image I suppose), see Guido Diepen's theme here. 

TU Eindhoven 
Here's a page that provides the TU Eindhoven style (it's the post dated January 31, 2008). 

DIUF 
This theme was designed for the Theoretical Computer Science Research Group of the University of Fribourg, Switzerland. You can find more information here. 

Frederiksberg 
Frederiksberg beamer theme from the university of Copenhagen. Download here. 

IAS 
Here's a theme created by Frans Oliehoek. He's part of the same research group (IAS) as I am and he made a theme to fit our IAS colors. Check it out on his webpage. 

Oxygen/Air 
Two beautiful KDE themes exist, one's called "Oxygen", the other "Air". See this site for further details. 

Stockton 
This is the Stockton Beamer Theme from the University of the Pacific. 

Torino 
A fresh looking theme called "Torino" made by Marco Barisione. You can download it from his blog. 

Trondheim 
A Beamer theme for NTNU made by Jorg Cassens. It's called "Trondheim". More info here. 

Antwerpen 
The Universiteit Antwerpen has its own theme too, and it looks real nice! Check it out. 

UMBC 
A couple of themes made Rouben Rostamian for UMBC University. See his beamer quickstart. 

Nebraska-Lincoln 
Chris Bourke made a nice theme for the University of Nebraska- Lincoln. See his page for more details. 

Uppsala 
And another one, this time for the Uppsala University of Sweden made by Frédéric Haziza. He maintains a seperate page here.

JAutomation 
A beamer style related to the Jacobs University is available from GitHub.

Kansai 
A Kansai Debian Presentation template is also available from GitHub.

Lleida 
Lleida's theme on GitHub. 

Sybila 
Sybila's theme on GitHub. 

DrBunsen 
Seth Brown (DrBunsen) created lightweight theme for his work. See more on his websiteor fetch it from Bitbucket. 

Ghent 
Peter Belmans has created a beamer theme for the University of Ghent. See his blog. 

LSE 
An unofficial beamer theme for the London School of Economics created by Christopher Gandrud is available from GitHub. 

ZBH 
A theme of the Zentrum fùr Bioinformatik, University of Hamburg on GitHub. 

TU Braunschweig 
A beamer theme complying with the corporate design of TU Braunschweig: GitHub. 

Carlworld 
Carl Compliant Beamer slide theme on GitHub. 

intridea 
A nice theme using xelatex and the font Gill Sans: GitHub. 

HongKong 
A theme related to the Hong Kong Polytechnic University on GitHub. 

lankton-keynote 
A theme simulating Apple's Keynote presentations: here. 

McGill 
A theme with a nice McGill layout: here (section Latex). 

subdued 
A subdued, stylish beamer template: here. 

Beamer: themes y como personalizar temas



De manera rápida, aquí pondre comandos que nos sriven paramodificar ciertos aspectos de como se ven las presentaciones en Beamer.

Temas en Beamer

Lo primero, es ver cuales temas hay disponibles. Entre los más populares están (sin contar el tema que viene por default):
  • Antibes
  • bars
  • Bergen
  • Berkeley
  • Berlin
  • Boadilla
  • Boxes
  • classic
  • Copenhagen
  • Darmstadt
  • Dresden
  • Frankfurt
  • Goettingen
  • Hannover
  • Ilmenau
  • JuanLesPins
  • lined
  • Luebeck
  • Madrid
  • Malmoe
  • Marburg
  • Montpellier
  • PaloAlto
  • Pittsburgh
  • Rochester
  • shadow
  • sidebar
  • Singapore
  • split
  • Szeged
  • Tree
  • Warsaw
Aquí podemos ver un preview de estos temas (no tomar en cuenta los colores, porque se pueden modificar, sólo contar el estilo):
Previsualización de los temas.
Para usar un tema especifico en nuestra presentación, usamos
usetheme{nombre del tema}

Colores de los temas

Las combinaciones de colores que hay disponibles para los temas son:
1) albatross (azul marino)
2) beetle (azul y gris)
3) crane (naranja y blanco)
4) default (por defecto)
5) dolphin (azul marino y blanco)
6) dove (gris y blanco)
7) fly (gris)
8 ) lily
9) orchid
10) rose
11) seagull (gris y blanco)
12) seahorse
13) sidebartab
14) structure
15) whale (azul marino y blanco)
y para indicar cual combinación de colores usar, utilizamos el comando
usercolortheme{nombre de la combinación de colores}

Otras opciones

Modificar la fuente del título de la presentación:
setbeamerfont{title}{shape=itshape,family=rmfamily}
Modificar color del título de la presentación:
setbeamercolor{title}{fg=red!80!black,bg=red!20!white}
Modificar la fuente de letra de la presentación:
usefonttheme[onlylarge]{structuresmallcapsserif}
usefonttheme[onlysmall]{structurebold}

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.