<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>briandalessandro.com</title>
	<atom:link href="http://www.briandalessandro.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.briandalessandro.com</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 01:56:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Make a Borderless Subplot of Images in MATLAB</title>
		<link>http://www.briandalessandro.com/blog/how-to-make-a-borderless-subplot-of-images-in-matlab/</link>
		<comments>http://www.briandalessandro.com/blog/how-to-make-a-borderless-subplot-of-images-in-matlab/#comments</comments>
		<pubDate>Sat, 28 Jan 2012 01:56:31 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=407</guid>
		<description><![CDATA[Let&#8217;s say that you have a set of images that you want to tile using imshow() and subplot() in a MATLAB figure. By default, both functions add a padded space around the images to separate them, as this example shows: I1 = zeros(500,'uint8'); I2 = zeros(500,'uint8')+127; I3 = zeros(500,'uint8')+255; figure subplot(1,3,1), imshow(I1); subplot(1,3,2), imshow(I2); subplot(1,3,3), [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say that you have a set of images that you want to tile using imshow() and subplot() in a MATLAB figure. By default, both functions add a padded space around the images to separate them, as this example shows:</p>
<p><code><br />
I1 = zeros(500,'uint8');<br />
I2 = zeros(500,'uint8')+127;<br />
I3 = zeros(500,'uint8')+255;</p>
<p>figure<br />
subplot(1,3,1), imshow(I1);<br />
subplot(1,3,2), imshow(I2);<br />
subplot(1,3,3), imshow(I3);<br />
</code></p>
<p>Result:</p>
<p><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2012/01/ImgsWithGaps.png" alt="" title="Images With Gaps" width="576" height="278" class="aligncenter size-full wp-image-411" /></p>
<p>However, what if you want to tile the images <em>without</em> any space between them? The imshow() function does have a property to remove the border around a displayed image, by using imshow(I, &#8216;border&#8217;, &#8216;tight&#8217;). This is fine when only one image is being displayed, but subplot() itself adds additional spacing between images. Removing this space is not straightforward, but a gap-less subplot grid can be constructed by using the following function in place of subplot():</p>
<p><code><br />
function subplottight(n,m,i)<br />
&nbsp;&nbsp;&nbsp;&nbsp;[c,r] = ind2sub([m n], i);<br />
&nbsp;&nbsp;&nbsp;&nbsp;subplot(n,m,i, 'Position', [(c-1)/m, 1-(r)/n, 1/m, 1/n])<br />
</code></p>
<p>By using this function, a completely borderless subplot of images can be constructed as follows:</p>
<p><code><br />
I1 = zeros(500,'uint8');<br />
I2 = zeros(500,'uint8')+127;<br />
I3 = zeros(500,'uint8')+255;</p>
<p>figure<br />
subplottight(1,3,1), imshow(I1, 'border', 'tight');<br />
subplottight(1,3,2), imshow(I2, 'border', 'tight');<br />
subplottight(1,3,3), imshow(I3, 'border', 'tight');<br />
</code></p>
<p>Result:</p>
<p><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2012/01/ImgsNoGaps.png" alt="" title="Images No Gaps" width="576" height="278" class="aligncenter size-full wp-image-412" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/how-to-make-a-borderless-subplot-of-images-in-matlab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add the arg max and arg min Functions to Lyx</title>
		<link>http://www.briandalessandro.com/blog/how-to-add-the-arg-max-and-arg-min-functions-to-lyx/</link>
		<comments>http://www.briandalessandro.com/blog/how-to-add-the-arg-max-and-arg-min-functions-to-lyx/#comments</comments>
		<pubDate>Sun, 30 Oct 2011 19:01:33 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[Lyx]]></category>
		<category><![CDATA[Math]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=402</guid>
		<description><![CDATA[The arg max and arg min functions are not standard as math functions in LaTeX. As a result, they are not straightforward to use in Lyx either. However, it is quite simple to do so: Add the following code to the LaTeX preamble in Lyx (Document > Settings > LaTeX Preamble): \usepackage{amsmath} \DeclareMathOperator*{\argmax}{arg\,max} \DeclareMathOperator*{\argmin}{arg\,min} When [...]]]></description>
			<content:encoded><![CDATA[<p>The arg max and arg min functions are not standard as math functions in LaTeX. As a result, they are not straightforward to use in Lyx either. However, it is quite simple to do so:</p>
<ol>
<li>Add the following code to the LaTeX preamble in Lyx (<strong>Document > Settings > LaTeX Preamble</strong>):<br />
<code><br />
\usepackage{amsmath}<br />
\DeclareMathOperator*{\argmax}{arg\,max}<br />
\DeclareMathOperator*{\argmin}{arg\,min}<br />
</code>
</li>
<li>When you create a new math field in Lyx, simply type <code>\argmax</code> or <code>\argmin</code>. You can follow it by an underscore if you need text below the arg max or arg min functions. This text will be centered across all six letters.</li>
</ol>
<p>It&#8217;s that simple!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/how-to-add-the-arg-max-and-arg-min-functions-to-lyx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Use a New Latex Class in Lyx</title>
		<link>http://www.briandalessandro.com/blog/how-to-use-a-new-latex-class-in-lyx/</link>
		<comments>http://www.briandalessandro.com/blog/how-to-use-a-new-latex-class-in-lyx/#comments</comments>
		<pubDate>Mon, 01 Aug 2011 19:47:49 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[Lyx]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=394</guid>
		<description><![CDATA[Let&#8217;s say we have a custom new Latex class called &#8220;newclass.cls&#8221; which we want to be able to use with Lyx under Windows. Copy the new Latex class file &#8220;newclass.cls&#8221; into the MikTeX directory within your user settings folder like so: C:\Users\UserName\AppData\Roaming\MiKTeX\2.8\tex\latex\newclass\newclass.cls. Remember to replace UserName with your own Windows user name. Update the MikTeX [...]]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say we have a custom new Latex class called &#8220;newclass.cls&#8221; which we want to be able to use with Lyx under Windows. </p>
<ol>
<li>Copy the new Latex class file &#8220;newclass.cls&#8221; into the MikTeX directory within your user settings folder like so: <b>C:\Users\<i>UserName</i>\AppData\Roaming\MiKTeX\2.8\tex\latex\<i>newclass</i>\<i>newclass.cls</i></b>. Remember to replace UserName with your own Windows user name.</li>
<li>Update the MikTeX list of classes by clicking the Windows Start button and typing <b>cmd</b> into the search box. When the black command line window displays, type <b>texhash</b> and hit Enter.</li>
<li>Next we need to create a layout file for Lyx to work with. This file contains instructions on how to roughly format a document when displayed within the Lyx program itself. More importantly, the layout file points to the Latex class for generating the final output. It is helpful to start by just modifying an existing layout file which is similar in purpose to the Latex class we are trying to add. For example, if our new Latex class is a template for an article, we might want to start by copying <b>article.layout</b> from <b>C:\Program Files (x86)\LyX20\Resources\layouts</b> and pasting it into <b>C:\Users\<i>UserName</i>\AppData\Roaming\LyX2.0\layouts</b>. Rename the file to match your class name, say, &#8220;newclass.layout&#8221;</li>
<li>Open up your new layout file, and look at the second line. Replace it with:<br />
<code>#  \DeclareLaTeXClass[<i>newclass</i>]{<i>Title of Class</i>}</code><br />
Enter your class name within the <code>[]</code> brackets, and enter whatever descriptive name you want to call the class within the <code>{}</code> braces.</li>
<li>Open Lyx, and click <b>Tools > Reconfigure</b>. Restart the Lyx program when it prompts you to do so.</li>
</ol>
<p>That&#8217;s it! When you start a new document in Lyx, your new class should appear within the drop-down box for Document Class in the Document Settings window (<b>Document > Settings</b>).</p>
<p><i>Tested with Lyx 2.0 and MikTeX 2.8 under Windows 7.</i></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/how-to-use-a-new-latex-class-in-lyx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution: Individual Stats Missing using WordPress Stats</title>
		<link>http://www.briandalessandro.com/blog/solution-individual-stats-missing-using-wordpress-stats/</link>
		<comments>http://www.briandalessandro.com/blog/solution-individual-stats-missing-using-wordpress-stats/#comments</comments>
		<pubDate>Thu, 09 Jun 2011 14:02:10 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=346</guid>
		<description><![CDATA[Around the time that I upgraded this blog to WordPress 3.1.3 with the WordPress.com Stats Plugin version 1.8.1, I began noticing that I could no longer view the stats graph for individual pages properly. My overall site stats still displayed, such as the total Views per day graph of my site, the Top Posts &#038; [...]]]></description>
			<content:encoded><![CDATA[<p>Around the time that I upgraded this blog to WordPress 3.1.3 with the WordPress.com Stats Plugin version 1.8.1, I began noticing that I could no longer view the stats graph for individual pages properly. My overall site stats still displayed, such as the total Views per day graph of my site, the Top Posts &#038; Pages with correct view counts, etc. </p>
<p>However, when I clicked the small graph icon to view the stats graph for individual posts, I would get a blank graph and the error message &#8220;We don&#8217;t have that post on record yet&#8221; followed by the post id. Similarly, when I logged into wordpress.com to check my blog stats using their interface, the title for the posts would be missing (it would only show the post id followed by &#8220;loading title&#8221;) and trying to view the stats for individual posts would result in a 403 error. </p>
<p>Almost coincidentally, I was browsing through some of my site logs and noticed a few requests for a file, &#8220;xmlrpc.php&#8221; in my root directory. I noticed requests for this file coincided with my attempts to view individual stats. As it turns out, xmlrpc.php is a WordPress file found in the main WordPress directory, and is used for remote posting, pingbacks, and trackbacks. Apparently, it is also used to read post data for WordPress&#8217;s stat system. The problem is, the stats system was looking for xmlrpc.php in the root directory of my site, but my blog resides in a subdirectory on my server. Since the file appeared to be missing, the correct data could not load, and individual stats would not display. </p>
<p>To solve this problem, I simply copied xmlrpc.php from my WordPress subdirectory into the root directory of my site. I only needed to edit one line, the include statement for wp-load.php. I adjusted the path so it pointed to the actual wp-load.php in my WordPress subdirectory. After doing this, individual stat graphs worked perfectly! </p>
<p>Instead of this method, it might also be possible to <a href="http://digwp.com/2009/06/xmlrpc-php-security/">use an .htaccess edit to redirect requests for the xmlrpc.php file</a>, but I did not try this. I hope this information might help someone who stores their WordPress blog in a subdirectory and has experienced this same problem. I was unable to find any information about something like this on Google or the WordPress forums.</p>
<p>More information on xmlrpc.php:<br />
<a href="http://codex.wordpress.org/XML-RPC_Support">http://codex.wordpress.org/XML-RPC_Support</a><br />
<a href="http://digwp.com/2009/06/xmlrpc-php-security/">http://digwp.com/2009/06/xmlrpc-php-security/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/solution-individual-stats-missing-using-wordpress-stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Add a Double Outline Style Around Text in Photoshop</title>
		<link>http://www.briandalessandro.com/blog/how-to-add-a-double-outline-style-around-text-in-photoshop/</link>
		<comments>http://www.briandalessandro.com/blog/how-to-add-a-double-outline-style-around-text-in-photoshop/#comments</comments>
		<pubDate>Mon, 06 Jun 2011 16:02:21 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=334</guid>
		<description><![CDATA[The easiest way to add a single outline to a text layer in Adobe Photoshop is by applying a Stroke to the text in the Layer Style options. But since only one stroke per layer is allowed, how can you add a double outline, or a double stroke? It turns out you can get nearly [...]]]></description>
			<content:encoded><![CDATA[<p>The easiest way to add a single outline to a text layer in Adobe Photoshop is by applying a Stroke to the text in the Layer Style options. But since only one stroke per layer is allowed, how can you add a double outline, or a double stroke? It turns out you can get nearly the same effect by clever use of the Outer Glow style, in addition to the Stroke style. To add a double outline to a text layer, do the following:</p>
<ol>
<li>Create your initial text layer. I used 48pt Arial for my example.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/doubleOutline-01.png" alt="" title="doubleOutline-01" width="360" height="72" class="alignnone size-full wp-image-336" /></li>
<li>Create the first outline. Go to <b>Layer > Layer Style > Stroke</b>. Select your desired size and color. Make sure the Position is Outside, Blend Mode is Normal, and Opacity is 100%.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/doubleOutline-stroke.png" alt="" title="doubleOutline-stroke" width="315" height="192" class="alignnone size-full wp-image-340" /><br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/doubleOutline-02.png" alt="" title="doubleOutline-02" width="360" height="72" class="alignnone size-full wp-image-337" /></li>
<li>Now add the Outer Glow effect. Click <b>Outer Glow</b> in the Styles list in the Layer Style window. Set the Blend Mode to Normal and Opacity to 100%. Select the color you want for the second outline.</li>
<li>Adjust the Size to any desired number, but make sure it is larger than your previous Stroke size.</li>
<li>Reduce the Range setting to a low value, somewhere between 1%-5%. A lower value will make the second outline appear more crisp, while a higher value will blur the outer edges slightly.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/doubleOutline-outerGlow.png" alt="" title="doubleOutline-outerGlow" width="320" height="333" class="alignnone size-full wp-image-339" /><br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/doubleOutline-03.png" alt="" title="doubleOutline-03" width="360" height="72" class="alignnone size-full wp-image-338" /></li>
</ol>
<p>When the proper settings are adjusted, the Outer Glow acts as a second stroke. You now have a double outline around your text!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/how-to-add-a-double-outline-style-around-text-in-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Convert a Video File into an Animated .GIF with Photoshop</title>
		<link>http://www.briandalessandro.com/blog/convert-a-video-file-into-an-animated-gif-with-photoshop/</link>
		<comments>http://www.briandalessandro.com/blog/convert-a-video-file-into-an-animated-gif-with-photoshop/#comments</comments>
		<pubDate>Thu, 02 Jun 2011 19:23:24 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[GIF]]></category>
		<category><![CDATA[Photoshop]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=322</guid>
		<description><![CDATA[It is popular nowadays to create short animated GIFs out of video or movie clips for easy viewing in forums and blogs. With some of the animation features in recent versions of Adobe Photoshop, it is quite easy to create these yourself! Open up your video file in Photoshop (File > Open). Photoshop can read [...]]]></description>
			<content:encoded><![CDATA[<p>It is popular nowadays to create short animated GIFs out of video or movie clips for easy viewing in forums and blogs. With some of the animation features in recent versions of Adobe Photoshop, it is quite easy to create these yourself!</p>
<ol>
<li>Open up your video file in Photoshop <b>(File > Open)</b>. Photoshop can read in a number of different video formats (MOV, AVI, MPG, MPEG, MP4, M4V). If your video file is not one of these, you will need to convert it using a different program.</li>
<li>Open the Animation palette (<b>Window > Animation</b>). You should see a timeline of your video in the palette.</li>
<li>Set the start and end points of the clip you want to convert. Drag the blue handles above the timeline (shown circled in red in the image below) to select the duration of your clip. In the Animation palette menu (found at the top right corner of the palette), click <b>Trim Document Duration to Work Area</b>. If you want to convert the entire video into an animated GIF, then this step is not needed.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/animationTimeline.png" alt="Animation Timeline View" title="animationTimeline" width="487" height="143" class="alignnone size-full wp-image-328" /></li>
<li>Back in the Animation palette menu, click <b>Flatten Frames Into Layers</b>. A layer will be created for each frame of the video. You then need to delete the original video layer. In the Layers palette, right click on the original layer (which has a video clip icon in its thumbnail, and is probably called &#8220;Layer 1&#8243;), and click <b>Delete Layer</b>.</li>
<li>Next, click <b>Make Frames From Layers</b> in the Animation palette menu.</li>
<li>Finally, go to <b>File > Save for Web &#038; Devices</b>. Make sure the format is set to GIF. On the bottom right corner of the window there is a drop down for Looping Options, which allows you to make the GIF loop once, forever, or a specific number of times. Click <b>Save</b> and you are done!</li>
</ol>
<p>Your have successfully converted a video into an animated GIF! This has been tested in Photoshop CS4 and Photoshop CS5.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/convert-a-video-file-into-an-animated-gif-with-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Paste Transparent GIF or PNG Images into Photoshop</title>
		<link>http://www.briandalessandro.com/blog/pasting-transparent-gif-or-png-images-into-photoshop/</link>
		<comments>http://www.briandalessandro.com/blog/pasting-transparent-gif-or-png-images-into-photoshop/#comments</comments>
		<pubDate>Wed, 01 Jun 2011 16:58:39 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[GIF]]></category>
		<category><![CDATA[Photoshop]]></category>
		<category><![CDATA[PNG]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=310</guid>
		<description><![CDATA[When copying and pasting transparent GIF or PNG images from the internet into Photoshop, the transparent areas of the image may be converted into black. The problem is that transparency is not recognized during the copy/paste command, and so, the transparent areas default to black. How can this be avoided? Method 1: Save the image [...]]]></description>
			<content:encoded><![CDATA[<p>When copying and pasting transparent GIF or PNG images from the internet into Photoshop, the transparent areas of the image may be converted into black. The problem is that transparency is not recognized during the copy/paste command, and so, the transparent areas default to black. How can this be avoided?</p>
<p><div id="attachment_312" class="wp-caption alignnone" style="width: 110px"><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/blackBG.png" alt="" title="blackBG" width="100" height="50" class="size-full wp-image-312" /><p class="wp-caption-text">Incorrectly Pasted</p></div><br />
<div id="attachment_313" class="wp-caption alignnone" style="width: 110px"><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2011/06/transparentBG.png" alt="" title="transparentBG" width="100" height="50" class="size-full wp-image-313" /><p class="wp-caption-text">Correctly Pasted</p></div></p>
<p><b>Method 1: Save the image first.</b><br />
The simplest way to get around this problem is to simply save the image from the web to your hard drive, instead of copying it. Once the actual GIF or PNG image file is on your hard drive, you can easily open the file in Photoshop. The transparency will be recognized, and you can copy/paste within Photoshop into other open files as needed.</p>
<p><b>Method 2: Manually remove the black.</b><br />
Another possibility, although more complicated, is to manually delete the black area after pasting from the web. This is not a good idea if your image already has black in it. Go to <b>Select > Color Range</b>, make sure the Select drop down is on &#8220;Sampled Colors,&#8221; and then use they eyedropper tool to select an area of the color black which you wish to remove. Turn the Fuzziness down to 0, and click OK. Now simply hit the Delete key to remove the selected black area. Be careful! If your original image has any black pixels in it, these will be removed as well, because after the transparency gets converted to black there is no way to tell the difference. Method 1 is guaranteed to keep the original image intact, but it is useful to know all the options!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/pasting-transparent-gif-or-png-images-into-photoshop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Solution: Colormap missing during MATLAB figure export to Illustrator</title>
		<link>http://www.briandalessandro.com/blog/solution-colormap-missing-during-matlab-figure-export-to-illustrator/</link>
		<comments>http://www.briandalessandro.com/blog/solution-colormap-missing-during-matlab-figure-export-to-illustrator/#comments</comments>
		<pubDate>Sat, 22 Jan 2011 22:00:08 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Matlab]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=301</guid>
		<description><![CDATA[I usually export my MATLAB figures to Adobe Illustrator .AI format. However, I have noticed that if my figure contains a colorbar, the colormap is blank when I open the AI file in Illustrator. To fix this, I found that you can instead save the figure as an EPS file (*.eps, standing for Encapsulated PostScript). [...]]]></description>
			<content:encoded><![CDATA[<p>I usually export my MATLAB figures to Adobe Illustrator .AI format. However, I have noticed that if my figure contains a colorbar, the colormap is blank when I open the AI file in Illustrator. </p>
<p>To fix this, I found that you can instead save the figure as an EPS file (*.eps, standing for Encapsulated PostScript). This file can be opened in Illustrator, and still contains all the layer and path information I need.</p>
<p>Another useful trick I use before exporting a figure with colormaps is to increase the step size of the colormap. By default, the colormap contains 64 colors, but you can usually see the edge between each color. To smooth out the colormap, I like to use:</p>
<p><code>colormap(gray(256))</code></p>
<p>This tells the colormap to use 256 colors instead of only 64. Of course, the colormap <code>gray</code> can be replaced by any other colormap name, e.g., <code>hsv</code> or <code>jet</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/solution-colormap-missing-during-matlab-figure-export-to-illustrator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Copy an Equation from MathType to Lyx</title>
		<link>http://www.briandalessandro.com/blog/how-to-copy-an-equation-from-mathtype-to-lyx/</link>
		<comments>http://www.briandalessandro.com/blog/how-to-copy-an-equation-from-mathtype-to-lyx/#comments</comments>
		<pubDate>Fri, 24 Dec 2010 17:49:57 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Latex]]></category>
		<category><![CDATA[Lyx]]></category>
		<category><![CDATA[MathType]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=284</guid>
		<description><![CDATA[Recently, I&#8217;ve been using Latex with Lyx instead of Microsoft Word to format my dissertation and research papers. I find managing the formatting to be much easier, and the layout is guaranteed to be consistent throughout the document. However, much of what I have done previously was in Word, and I often want to transfer [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I&#8217;ve been using Latex with <a href="http://www.lyx.org/">Lyx</a> instead of Microsoft Word to format my dissertation and research papers. I find managing the formatting to be much easier, and the layout is guaranteed to be consistent throughout the document. However, much of what I have done previously was in Word, and I often want to transfer math equations I wrote previously in MathType over to Lyx rather than rewriting them from scratch.</p>
<p>While the method is somewhat of a nuisance because of the terrible way MathType handles Latex, it is certainly possible, and can often be faster than rewriting an equation.</p>
<ol>
<li>In Microsoft Word, select the MathType equation you want to copy over to Lyx.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/SelectEq.png" alt="" width="276" height="69" class="aligncenter size-full wp-image-286" /></li>
<li>Click the <strong>MathType </strong>tab at the top of Word. Click <strong>Toggle Tex</strong>. This will convert the MathType equation image into Latex code.<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/ToggleTex.png" alt="" title="ToggleTex" width="288" height="112" class="aligncenter size-full wp-image-285" /></li>
<li>Copy the Latex code. In my example, I get:<br /><code>\[\hat{F}(u,v)=\left[ \frac{{{H}^{*}}(u,v)}{{{\left| H(u,v) \right|}^{2}}+{1}/{\text{SNR}}\;} \right]G(u,v)\]</code></li>
<li>Insert a new math formula field in Lyx. Here is the tricky part. You cannot simply paste the Latex code you have copied directly into this formula field. Otherwise, it will show up as text, not a formatted equation, like so:<img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/wrong.png" alt="" width="387" height="56" class="aligncenter size-full wp-image-291" /></li>
<li>MathType adds the <code>\[</code> characters to the beginning and the <code>\]</code> characters to the end of the Latex code. DELETE these characters before pasting into Lyx. (For multi-line equations, MathType also may surround the Latex code with <code>\begin{align}</code> and <code>\end{align}</code>. These must be deleted too to paste into Lyx properly). In my example, I end up with:<br /><code>\hat{F}(u,v)=\left[ \frac{{{H}^{*}}(u,v)}{{{\left| H(u,v) \right|}^{2}}+{1}/{\text{SNR}}\;} \right]G(u,v)</code></li>
<li>With the extra two characters removed from the beginning and end of the Latex code, the code will paste properly into Lyx:<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/messy.png" alt="" width="471" height="106" class="aligncenter size-full wp-image-292" /></li>
<li>However, as you can see in the example, MathType inserts extra braces into the Latex code, more than are necessary. These must be removed manually, but at least the majority of the equation formatting is preserved and recognized by Lyx&#8217;s formula editor. Once removed, you are done!<br /><img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/pretty.png" alt="" title="pretty" width="389" height="102" class="aligncenter size-full wp-image-298" /></li>
</ol>
<p><small>This method was tested using MathType 6.5 and Lyx 1.6.8</small></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/how-to-copy-an-equation-from-mathtype-to-lyx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Periodic Table of the Elements in Adobe Illustrator Format</title>
		<link>http://www.briandalessandro.com/blog/the-periodic-table-of-the-elements-in-adobe-illustrator-format/</link>
		<comments>http://www.briandalessandro.com/blog/the-periodic-table-of-the-elements-in-adobe-illustrator-format/#comments</comments>
		<pubDate>Wed, 22 Dec 2010 18:38:12 +0000</pubDate>
		<dc:creator>Brian D'Alessandro</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[Illustrator]]></category>
		<category><![CDATA[Periodic Table]]></category>

		<guid isPermaLink="false">http://www.briandalessandro.com/?p=276</guid>
		<description><![CDATA[I needed the Periodic Table in vector format, so I decided to just draw one myself. If anyone else needs it as well, here is the Periodic Table of the Elements in Adobe Illustrator format. Download Periodic Table as .AI (1.1 MB) My source for the data was from the International Union of Pure and [...]]]></description>
			<content:encoded><![CDATA[<p>I needed the Periodic Table in vector format, so I decided to just draw one myself. If anyone else needs it as well, here is the Periodic Table of the Elements in Adobe Illustrator format.</p>
<p><center><a href="http://www.briandalessandro.com/software/periodic_table.ai">Download Periodic Table as .AI (1.1 MB)</a><br />
<img src="http://www.briandalessandro.com/blog/wp-content/uploads/2010/12/periodic_table.png" alt="" title="periodic_table" width="512" height="326" class="aligncenter size-full wp-image-280" /></center></p>
<p>My source for the data was from the International Union of Pure and Applied Chemistry (IUPAC), 2007 (<a href="http://old.iupac.org/reports/periodic_table/">http://old.iupac.org/reports/periodic_table/</a>).</p>
<p>If you want to change the font, color, or size of all element properties at once, I have tagged each object type with its own Attribute Note (element_name, atomic_number, element_symbol, atomic_mass, box). For information on how to select objects with the same attribute note, please see my previous post on that topic: <a href="http://www.briandalessandro.com/blog/how-to-select-the-same-sub-objects-in-multiple-copies-of-a-group-in-adobe-illustrator/">How to select the same sub-objects in multiple copies of a group in Adobe Illustrator</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.briandalessandro.com/blog/the-periodic-table-of-the-elements-in-adobe-illustrator-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 825/888 objects using disk: basic

Served from: www.briandalessandro.com @ 2012-02-06 09:18:02 -->
