<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-us">
  <title type="text">Tiki RSS feed for weblogs</title>
  <subtitle type="text">Last posts to weblogs.</subtitle>
  <logo>http://www.ipv6forthemasses.com/img/tiki/Tiki_WCG.png</logo>
  <updated>2012-05-21T05:56:41+00:00</updated>
  <generator uri="http://framework.zend.com" version="1.11.11">Zend_Feed_Writer</generator>
  <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/"/>
  <link rel="self" type="application/atom+xml" href="http://www.ipv6forthemasses.com/tiki-blogs_rss.php?ver=5"/>
  <id>http://www.ipv6forthemasses.com/</id>
  <entry>
    <title type="html"><![CDATA[Customizing InDesign Context Menu: Adding 'Insert Cross-Reference' to Right-Click]]></title>
    <summary type="html"><![CDATA[<p>My previous blog post mentioned how much faster it would be to just right-click and have an 'insert cross-reference'. It took a little more than planned, but here is a script to accomplish just that:
</p>

<pre class="codelisting"  data-wrap="y"  dir="ltr"  id="codebox1" >( function () {
/* ADD items to CONTEXT MENU
    The locale-independent name (aka "key string") for the context menus:
    - Layout menu: $ID/RtMouseLayout - when an image is selected
    - Default menu: $ID/RtMouseDefault - when nothing is seleced
    - Text menu: $ID/RtMouseText - when the mouse is in text, or text is selected
*/
var contextMenu = app.menus.itemByName("$ID/RtMouseText");

var xrefMenu = app.menus.item("$ID/Main").submenus.item("$ID/&Type").submenus.item("$ID/XRefSubMenu");
var refItem = xrefMenu.menuItems.item("$ID/New XRef...");

     try {
          contextMenu.menuItems.itemByName(refItem.name).remove();
     } catch( ex ) {};
     contextMenu.menuItems.add(refItem.associatedMenuAction,LocationOptions.AFTER,contextMenu.menuItems.itemByName("$ID/InsertSpecial Footnote"));
})();</pre>
<p>
<br />You can save the above file as AddCrossRefToContext.jsx and save in your InDesign Startup Script folder, for me that meant in C:\Program Files\Adobe\Adobe InDesign CS5.5\Scripts\startup scripts . Next time you start in-design, if you right-click in a text box you should see the following:
<br /><img src="display18" width="301" height="151" alt="Image" />
</p>

<p>Hurrah! I'll also document how to modify the script to get other menu items instead of cross-references.
</p>

<p>First, you need to understand how to get the InDesign locale-unspecific 'key'. To do so fire up "Adobe ExtendScript Toolkit CS5.5", and also open "InDesign CS5.5". Select InDesign as the linked application:
<br /><img src="display19" width="344" height="206" alt="Image" />
</p>

<p>Find the name of the menu item you want to add, for example I'll demonstrate adding the "Odd Page Break" item. This item is located in the following menu structure: Type -&gt; Insert Break Character -&gt; Insert Odd Page Break. We need to find the name of each of those menus/submenus/items.
</p>

<p>You also need to decide where in the context menu to go - I'll put it after 'Show hidden characters'.
</p>

<p>Some methods for discovering them are discussed in <a target="_blank" class="wiki"  href="http://forums.adobe.com/message/4061217">http://forums.adobe.com/message/4061217</a> . The easiest is running the following command in the Javascript Console (found by John Hawkinson):
</p>

<pre class="codelisting"  data-wrap="y"  dir="ltr"  id="codebox2" >app.findKeyStrings(app.menuActions.itemByName("Insert Cross-Reference...").title)</pre>
<p>
<br />Which gives you the "$ID/New XRef..." you see in the code. For some reason it doesn't seem to work with the break character menu. Using the other method (with 'alt' key) shown in that thread, you can discover the following:
</p>

<table class="wikitable"><tr><td class="wikicell" ><strong>Menu Name</strong></td><td class="wikicell" ><strong>Command to run in JS Console</strong></td><td class="wikicell" ><strong>ID Result</strong></td></tr><tr><td class="wikicell" >Type </td><td class="wikicell" > app.findKeyStrings("&amp;Type") </td><td class="wikicell" > $ID/&amp;Type</td></tr><tr><td class="wikicell" >Insert Break Character </td><td class="wikicell" > app.findKeyStrings("Insert Brea&amp;k Character") </td><td class="wikicell" > $ID/Insert Break Menu</td></tr><tr><td class="wikicell" >Odd Page Break </td><td class="wikicell" > app.findKeyStrings("&amp;Odd Page Break")</td><td class="wikicell" >$ID/Odd Page Break</td></tr></table>
<p>
<br />Also figure out the location in the context menu, here I use the other method to find the key:
</p>
<table class="wikitable"><tr><td class="wikicell" ><strong>Menu Name</strong></td><td class="wikicell" ><strong>Command to run in JS Console</strong></td><td class="wikicell" ><strong>ID Result</strong></td></tr><tr><td class="wikicell" >Show Hidden Characters</td><td class="wikicell" >app.findKeyStrings(app.menuActions.itemByName("Show Hidden Characters").title)</td><td class="wikicell" >$ID/Show Hidden Characters</td></tr></table>
<p>
<br />Finally:
</p>

<pre class="codelisting"  data-wrap="y"  dir="ltr"  id="codebox3" >( function () {
var contextMenu = app.menus.itemByName("$ID/RtMouseText");

var xrefMenu = app.menus.item("$ID/Main").submenus.item("$ID/&Type").submenus.item("$ID/Insert Break Menu");
var refItem = xrefMenu.menuItems.item("$ID/Odd Page Break");
 

    try {
          contextMenu.menuItems.itemByName(refItem.name).remove();
     } catch( ex ) {};
     contextMenu.menuItems.add(refItem.associatedMenuAction,LocationOptions.AFTER,contextMenu.menuItems.itemByName("$ID/Show Hidden Characters"));
})();</pre>
<p>
<br />
</p>
]]></summary>
    <published>2011-12-03T14:36:00+00:00</published>
    <updated>2011-12-03T14:36:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost10"/>
    <id>http://www.ipv6forthemasses.com/blogpost10</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[IEEE Style Endnotes/References/Bibliography with InDesign CS5.5]]></title>
    <summary type="html"><![CDATA[<p>One feature which is often mentioned lacking in InDesign CS5.5 is endnotes, even more annoying if you are using them to make a bibliography. I'll demonstrate the IEEE-endnote style, which basically uses square brackets to enclose the reference number.
</p>

<p>They actually seem pretty easy to recreate. First, you need a little setup. Create a paragraph type, this paragraph type should be setup to use a new numbered list. This will automatically create the endnote numbers as you type, as such:
<br /><img src="display14" width="659" height="550" alt="Image" />
</p>

<p>Next, create a table. Be sure to make the lines hidden in both the cell &amp; table styles, e.g.:
<br /><img src="display15" width="667" height="291" alt="Image" />
</p>

<p>Next put all your references down. Insert each one into a new row in the table, and apply your previously created style. You can adjust the indenting of the style to get the alignment to look correct:
<br /><img src="display16" width="804" height="249" alt="Image" />
</p>

<p>Finally to insert a reference, simply use the 'Type -&gt; Hyperlinks&amp;Cross References-&gt; Insert Cross Reference' command, which lets you see your list of references to easily insert the correct one:
<br /><img src="display17" width="508" height="350" alt="Image" />
</p>

<p>The advantage of putting all your references in a table before was you can reorder them alphabetically if you want too, see for example: <a target="_blank" class="wiki"  href="http://www.kahrel.plus.com/indesign/tablesort.html">http://www.kahrel.plus.com/indesign/tablesort.html</a>
</p>

<p>If you wish to have another method of referencing the endnotes, you have a few options too. Most likely you will have to hide anything you don't want visible as I demonstrated in my <a class="wiki"  href="http://www.ipv6forthemasses.com/tiki-view_blog_post.php?postId=5" rel="">previous post</a>. Or apply a certain character/paragraph style to the cross-reference you insert to make it e.g.: superscript.
</p>

<p>With a simple scrip to add the inserting of cross-references on the main right-click menu, productivity could be improved greatly I think! Something to look into perhaps...
</p>

<p>I'm far from the first person to suggest using a paragraph style in this manner. Here is a few links to get you started too:
</p>

<p><a class="wiki external" target="_blank" href="http://carijansen.com/2010/11/13/footnotes-and-endnotes-with-indesign/" rel="external nofollow">http://carijansen.com/2010/11/13/footnotes-and-endnotes-with-indesign/</a>
<br /><a class="wiki external" target="_blank" href="http://www.kahrel.plus.com/indesign/dynamic_endnotes.html" rel="external nofollow">Peter Kahrel's site has all sorts of useful scripts and information, browse around it!</a>
</p>

]]></summary>
    <published>2011-11-30T20:27:00+00:00</published>
    <updated>2011-11-30T20:27:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost9"/>
    <id>http://www.ipv6forthemasses.com/blogpost9</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Original Research Example: Using Coin Cells]]></title>
    <summary type="html"><![CDATA[<p>Sometimes the information I need for a chapter isn't readily available, so I need to do the research. One example is a guide to lifetimes of coin cell batteries in real-life usage, and comparing that lifetime across different brands/sizes.
</p>

<p>I'm building my coin cell battery tester (image below) to accomplish this. It is capable of applying different loads to the battery under computer control, and monitoring the results. I plan on publishing the raw results in the DVD attached to the book, with a few summaries/graphs in the book itself. It had been a while since I've done a PCB with fly-wires, normally SMD and custom boards are just easier. In this case the fairly simple circuit combined with easy DIP availability of all the parts made me decide to work on my fly-wiring again. The underside of this board looks a lot less tidy than the top ;-) Funnily enough I recently moved, and in the move decided to leave all my non-SMD parts in storage across the country since I never use them. Which also meant I had no bread-board, so it was built from design straight, and luckily so far seems to be working perfect...
</p>

<p><img src="display13" alt="Image" />
</p>
]]></summary>
    <published>2011-10-01T19:28:00+00:00</published>
    <updated>2011-10-01T19:28:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost8"/>
    <id>http://www.ipv6forthemasses.com/blogpost8</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Status Update]]></title>
    <summary type="html"><![CDATA[<p>Work has slowed on the book lately, partially because of my return to Dalhousie University this September, and partially because I've been working on some research for one of the book chapters. Here is a screen-shot of current page counts:
</p>

<p><img src="display12" alt="Image" />
</p>
]]></summary>
    <published>2011-10-01T19:25:00+00:00</published>
    <updated>2011-10-01T19:25:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost7"/>
    <id>http://www.ipv6forthemasses.com/blogpost7</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Adding Equations with MathType & MT-Script]]></title>
    <summary type="html"><![CDATA[<p><strong>Update Nov 20/2011:</strong>The author has made English documentation available, see <a class="wiki external" target="_blank" href="http://www.scribd.com/doc/73272275/MT-Script-or-How-to-Work-With-MathType-Equations-in-InDesign" rel="external nofollow">http://www.scribd.com/doc/73272275/MT-Script-or-How-to-Work-With-MathType-Equations-in-InDesign</a>
</p>

<p>I needed some equations added in, and InDesign doesn't have any real built-in support for this. I wanted tight integration with InDesign, and not just inserting images of equations. The main ways I found of getting them into the document:
</p>

<p>1) Use <a class="wiki external" target="_blank" href="http://www.mathmagic.com" rel="external nofollow">Math+Magic Pro</a>, which costs $300 Academic
<br />2) Use <a class="wiki external" target="_blank" href="http://movemen.com/" rel="external nofollow">MT Editor</a>, formally InMath, costs 450€, no academic discount
</p>

<p>A third option I found is the use of MathType, which does not integrate with InDesign, with a little known script called <a class="wiki external" target="_blank" href="http://www.mtscript.ru/" rel="external nofollow">MT-Script</a>. It took a fair amount of effort to get this working, but the end result is I can work with equations in my document for much less! So here is some documentation on it:
</p>

<p>MT-Script is written by a Russian developer, works only on Windows, and has both English &amp; Russian language options. See the <a class="wiki external" target="_blank" href="http://www.mtscript.ru/" rel="external nofollow">MT-Script</a> site, not everything has been translated though so you might need to use Google Translate. He posted a demo of it too on <a class="wiki external" target="_blank" href="http://www.youtube.com/watch?v=JItWg_Vyy_o" rel="external nofollow">YouTube</a>, it seems to have most of the features I needed. This includes the ability to edit equations in-place &amp; update all equations to change the font to match the rest of your document.
</p>

<p>So, here is what you do:
</p>

<p><strong>1)</strong> Install MathType, can just use the demo mode for now
<br /><strong>2)</strong> Register on <a target="_blank" class="wiki"  href="http://www.mtscript.ru">http://www.mtscript.ru</a> , you need to be registered to download
<br /><strong>3)</strong> Download the "SETUP MT-Script EXE 1.6.0.0" or whatever version you have
<br /><strong>4)</strong> Close InDesign
<br /><strong>5)</strong> Run the installer, select your version and hit 'setup'. if it fails (it did to me), see work-around below.
<br /><img src="display6" alt="Image" />
</p>

<p><strong>6)</strong> Start InDesign, by default the plugin seems to be in Russian. We'll need to fix that.
<br /><strong>7)</strong> Start a new document &amp; save it. It is just an empty document, but if you don't have (a) an open document and (b) a saved document, MT-Script gives you errors, and those errors are in russian so you can't read them (most likely).
<br /><strong>8)</strong> Go to the bottom menu item, click it, then change the preferences to English. You'll need to restart InDesign for this to take effect:
<br /><img src="display10" alt="Image" />
<br /><strong>9)</strong> Done! Be sure to watch the YouTube demonstration of all the features. It's a little long but is worth it.
<br /><strong>10)</strong> You can <a class="wiki external" target="_blank" href="http://www.mtscript.ru/index.php?option=com_content&amp;view=article&amp;id=33&amp;Itemid=2?=en" rel="external nofollow">purchase a license</a> for $30 USD of MT-Script, or use it for free with full functionality on Weekends (Sat/Sun).
</p>

<p>
<br /><strong>Work-Around For Installation Error</strong>
</p>

<p>I got the following error on installation:
<br /><img src="display8" alt="Image" />
</p>

<p>The download seems to fail for some reason. Figure out where it is downloading the file to, this should be your default download directory I think. For example for me there was a file called "MT-Script-CS5.5.zip" which had a zero-length size.
</p>

<p>The work-around is to manually download this file, and stick it where the installer is expecting it to be.
</p>

<p>For me this meant downloading <a class="wiki external" target="_blank" href="http://www.indesignscripts.ucoz.ru/myScripts/MT-Script-CS5.5.zip" rel="external nofollow">http://www.indesignscripts.ucoz.ru/myScripts/MT-Script-CS5.5.zip</a> to "My Documents\Downloads". If you have another version of InDesign change the file to download as needed. Once it is downloaded (takes a while from Russian server), mark it as Read-Only. This is critical to prevent the installer from overwriting it (note the filename is incorrect here, I had downloaded the CS5 version instead of 5.5 by accident when making the instructions):
<br /><img src="display9" alt="Image" />
</p>

<p>Now fire up the installer and try again. If your installer was previously open from the failed attempt be sure to close it &amp; open it again!
</p>

<p>It will still give you something about "Error Opening File #3" or similar, as the download fails since it cannot overwrite that file. But then it should proceed OK and give you an "Installation Successful". The easy test is to open InDesign and see if it worked!
</p>

<p><strong>Other Notes</strong>
</p>

<p>There is another website by the developer at <a class="wiki external" target="_blank" href="http://indesignscripts.ucoz.ru/" rel="external nofollow">http://indesignscripts.ucoz.ru/</a>, although the previously given one seems more updated.
</p>

]]></summary>
    <published>2011-08-15T21:47:00+00:00</published>
    <updated>2011-08-15T21:47:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost6"/>
    <id>http://www.ipv6forthemasses.com/blogpost6</id>
  </entry>
  <entry>
    <title type="html"><![CDATA[Hiding Part of Cross-Referenced Items in InDesign CS5.5]]></title>
    <summary type="html"><![CDATA[<p>For a great background in cross-referencing see <a class="wiki external" target="_blank" href="http://indesignsecrets.com/figure-numbering-in-indesign-and-cross-references-to-them.php" rel="external nofollow">this indesignsecrets.com tutorial</a> and the <a class="wiki external" target="_blank" href="http://help.adobe.com/en_US/indesign/cs/using/WS5AD79E18-AECC-4521-A699-AA94044F2D10.html" rel="external nofollow">CS5.5 help item</a>.
</p>

<p>But when referencing figures with InDesign, it doesn't seem possible to only have a reference to the number. The preceding text seems to come with the number, so you will get Figure 3.2 instead of just 3.2. This is annoying when you want to have a number of figures (e.g.: "see Figures 3.2 and 3.4") or you want the capitalization to be different from the caption (e.g.: "See figure 3.2"). If you just delete the offending text, it will automatically be put back in when you update your cross-references.
</p>

<p>Here is how I solved the problem, without resorting to buying an <a class="wiki external" target="_blank" href="http://www.dtptools.com/product.asp?id=crin" rel="external nofollow">extra plugin</a>. Partially this was for the cost savings, partially it is so my cross references remain standard CS5.5 if I need to share the file.
</p>

<p>
<br />First, insert your references as normal:
<br /><img src="display1" alt="Image" />
</p>

<p>
<br />Then, create a new character style called 'invisible'. I just made it a tiny font with no colour, you could (should) also adjust the kerning.
<br /><img src="display4" alt="Image" />
<br /><img src="display5" alt="Image" />
</p>

<p>
<br />Then just highlight what you don't want to show up, and make it the 'invisible' character style.
<br /><img src="display3" alt="Image" />
</p>

<p>
<br />Tada! This doesn't break the cross-references, so you won't get in trouble when you do an update. Type anything else you need.
<br /><img src="display2" alt="Image" />
</p>

]]></summary>
    <published>2011-08-15T19:54:00+00:00</published>
    <updated>2011-08-15T19:54:00+00:00</updated>
    <link rel="alternate" type="text/html" href="http://www.ipv6forthemasses.com/blogpost5"/>
    <id>http://www.ipv6forthemasses.com/blogpost5</id>
  </entry>
</feed>

