13.6.14

INSTALAR UN PAQUETE LATEX MANUALMENTE EN LINUX


Normalmente en una distribución basada en Debian utilizaba el comando
$ sudo apt-get install texlive-full

El cual me instalaba todos los paquetes disponibles para Linux.

Desgraciadamente, no puedo hacer lo mismo en Manjaro (usando pacman ni yaourt), por lo que opté por la opción hard: instalación manual de los paquetes LaTeX.

El siguiente procedimiento me ha funcionado hasta ahora.

1. Digamos que queremos el paquete algorithms (http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms/). Nos descargamos el archivo zip.

2. Si el paquete que queremos viene con un archivo .sty entonces el trabajo ya está hecho, solo tenemos que copiar la carpeta descargada en la ruta /usr/share/texmf-dist/tex/latex/

2. Sin embargo, en el caso del paquete algorithms, no tenemos el archivo .sty por lo que necesitaremos compilar el archivo .ins, el cual creará el archivo .sty. Luego de compilar y generar el archivo .sty sólo nos quedará copiar la carpeta en la ruta /usr/share/texmf-dist/tex/latex/

$ latex algorithms.ins 

This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Arch Linux)
 restricted \write18 enabled.
entering extended mode
(./algorithms.ins
LaTeX2e <2011>
Babel  and hyphenation patterns for english, dumylang, nohyphenation, ge
rman-x-2012-05-30, ngerman-x-2012-05-30, afrikaans, ancientgreek, ibycus, arabi
c, armenian, basque, bulgarian, catalan, pinyin, coptic, croatian, czech, danis
h, dutch, ukenglish, usenglishmax, esperanto, estonian, ethiopic, farsi, finnis
h, french, friulan, galician, german, ngerman, swissgerman, monogreek, greek, h
ungarian, icelandic, assamese, bengali, gujarati, hindi, kannada, malayalam, ma
rathi, oriya, panjabi, tamil, telugu, indonesian, interlingua, irish, italian, 
kurmanji, latin, latvian, lithuanian, mongolian, mongolianlmc, bokmal, nynorsk,
 polish, portuguese, romanian, romansh, russian, sanskrit, serbian, serbianc, s
lovak, slovenian, spanish, swedish, turkish, turkmen, ukrainian, uppersorbian, 
welsh, loaded.
(/usr/share/texmf-dist/tex/latex/base/docstrip.tex
Utility: `docstrip' 2.5d <2005>
English documentation    <1999>

**********************************************************
* This program converts documented macro-files into fast *
* loadable files by stripping off (nearly) all comments! *
**********************************************************

********************************************************
* No Configuration file found, using default settings. *
********************************************************

)

Generating file(s) ./algorithm.sty 

Processing file algorithms.dtx (algorithm) -> algorithm.sty
Lines  processed: 1272
Comments removed: 984
Comments  passed: 0
Codelines passed: 14


Generating file(s) ./algorithmic.sty 

Processing file algorithms.dtx (algorithmic) -> algorithmic.sty
Lines  processed: 1272
Comments removed: 984
Comments  passed: 0
Codelines passed: 14

*********************************************************
*
* To finish the installation you have to move the
* following files into a directory searched by LaTeX:
*
*   algorithm.sty
*   algorithmic.sty
*
* To produce the documentation run the file
* `algorithms.dtx' through LaTeX.
*
* Happy TeXing!
*********************************************************
Overall statistics:
Files  processed: 2
Lines  processed: 2544
Comments removed: 1968
Comments  passed: 0
Codelines passed: 28
 )
No pages of output.
Transcript written on algorithms.log.

3. Finalmente sólo debemos actualizar la base de datos de latex.

$ mktexlsr

mktexlsr: Updating /etc/texmf/ls-R... 
mktexlsr: Updating /usr/share/texmf/ls-R... 
mktexlsr: Updating /usr/share/texmf-dist/ls-R... 
mktexlsr: Updating /var/lib/texmf/ls-R... 
mktexlsr: Done.

11.6.14

Illustrator Help / Enhanced reshape workflows with touch support

Take from http://helpx.adobe.com/illustrator/using/enhanced-reshape-touch-support.html

Reshape segment workflows & touch support

The reshape path segment workflows have been enhanced to support reshaping with touch input on touch-based devices.
In earlier releases of Illustrator, curved path segments could be reshaped using the Direct Selection tool, but their handles were always constrained to their original angles. Now, the reshaping of segments is unconstrained. Also, converting straight segments to curved paths is now possible by simply dragging the segment itself. There are three ways to reshape path segments.

Pen Tool

  1. While using the pen tool, press the Alt / Option key.
  2. When you hover the pointer over a path segment, the cursor changes to the Reshape Segment cursor. 
  3. Dragging a segment will reshape the path segment
    A combination of the path segments, reshaped using the Pen tool

    A. Original shape B. The Reshape Segement cursor indicates a reshape-ready segement C. When the Reshape Segment cursor is visible, modify the shape of the segment by clicking and dragging. D.Reshape as many segments as required E. Final shape when reshaping tasks are complete 
  4. To continue drawing with the Pen tool, release the Alt / Option key.
  5. To create a semi-circular segment hold the Shift key while reshaping a segment. Holding the Shift modifier constrains the handles to a perpendicular direction, and ensures that the handles are of equal length.

Convert Anchor Point Tool

  1. Select the Convert Anchor Point tool, and then hover the pointer over a path segment.
  2. When the Reshape Segment cursor is displayed, drag the path segment to reshape it.
    Artwork modified by reshaping a line segment with the Anchor Point tool

    A. Original artwork B. Reshaping a segment with the Anchor Point tool C. Modified shape 
  3. To create a copy of the path segment, press Alt / Option while performing Step 2. 
  4. To create a semi-circular segment hold the Shift key while reshaping a segment. Holding the Shift modifier constrains the handles to a perpendicular direction, and ensures that the handles are of equal length.

Direct Selection Tool

Using the Direct Selection tool on a straight segment moves the segment. However, when used on a curved segment, reshaping is unconstrained, similar to the Convert Anchor point tool or Pen tool. 

Constraining Handles in the Perpendicular Direction

Holding the Shift key while reshaping with the Pen, Convert Anchor Point, and Direct Selection tools constrains the handles in the perpendicular direction. This enables you to reshape curves to semi-circular shapes. This also ensures that the handles are of equal length.

Illustrator Help / Enhanced Pencil Tool

Take from http://helpx.adobe.com/illustrator/using/enhanced-pencil-tool.html

The Pencil Tool has been improved to facilitate better curve-fitting, auto-closing of paths, and drawing of constrained and unconstrained straight line segments.

Pencil Tool

Presets
Double-click the Pencil Tool icon in the Toolbox to open the Pencil Tool Options dialog. The Fidelityslider has four presets you can choose from. The leftmost slider preset (Accurate) is most accurate for drawing paths. The rightmost slider preset (Smooth) creates the smoothest paths. Choose a preset that suits your drawing needs best.
Auto-closing paths
When the endpoints of a path you are drawing are in close proximity and within a certain predefined number of pixels of each other, the path-close cursor () is shown. When you release the mouse button, such a path is closed automatically.
The predefined number of pixels is set in the Pencil Tool Options dialog box > Within field.   
Drawing constrained or unconstrained straight segments
You can use the pencil tool to draw constrained or unconstrained straight segments. While drawing a straight segment, the straight-segment cursor () is displayed.
Constrained straight segments
Hold the Shift key, and then use the Pencil tool to draw straight segments constrained to 0, 45 or 90 degrees.
Unconstrained straight segments
Hold the Alt/Opt key to draw unconstrained straight segments. However, to draw a polyline path:
  1. Draw a line segment.
  2. Do one of the following:
    1. Keeping the Shift or Alt/Opt key pressed, place the cursor at the endpoint of the line. When the path-continuation cursor () is displayed, click the mouse button and draw another line.
    2. Keeping the mouse button pressed, release and press the Shift or Alt/Opt key, and draw the next segment.
Continuing a path
The continue-path cursor () is shown when the mouse pointer is within a predefined number of pixels from the endpoint.
The predefined number of pixels is set in the Pencil Tool Options dialog box > Within field.
Merging paths
To merge two paths:
  1. Select the paths you want to merge.
  2. Extend one path, and bring it closer to the other path.
  3. When the path-merge cursor () appears, release the mouse button to merge the paths.

Smooth Tool

Presets
Double-click the Smooth Tool icon in the Toolbox to open the Smooth Tool Options dialog. A preset-based Fidelity slider is available for the Smooth tool.
Note:
The Smooth tool is no longer available by holding Alt/Opt key while using the Pencil tool.
Paintbrush and Blog Brush tool
The four preset slider is also available in Paintbrush and Blob Brush Tool Options dialogs.