Wednesday, 9 September 2015

Word: Remove non-heading styles from the Navigation pane

My long Word document, which is edited by lots of different people, often comes back to me with weird corruptions.

This post deals with how to fix one such corruption: Any paragraph with the Caption style appears in the Navigation pane.

The most obvious fix for this is to check the outline level of the Caption style. For me, that was actually fine, and thus not the problem. However it's worth checking first.

After that, I simply re-applied the style to every current Caption instance. This document has many tables and figures, so this could get tedious. Instead of doing them manually, I did them all at once.

Check the outline level of the offending style

  1. Display the Styles list using CTRL-SHIFT-ALT-S.
  2. Right-click on the problem style, then select Modify.
  3. Click Format > Paragraph.
  4. In the Indents and Spacing tab, find the Outline level box.
  5. If this box already shows Body Text, click Cancel and skip to the next procedure.
    If it shows anything else, change it to Body Text and click OK to save your change, then check to see whether the problem has gone away.

Re-apply the offending style to every instance

To fix the problem you'll need to do two things: display all styles, and then reapply the problem style.

1. Display all styles


When you delete all instances of a style, that style might disappear from the Styles list. You then won't be able to apply it to anything. The document still contains the style, but you have set Word to display only the styles that are currently in use.

To show styles that are in the document but not currently in use, make this change:
  1. At the bottom of the Styles pane, click Options.
  2. In the Select styles to show list, select In current document, then click OK.
The style will not disappear from the Styles list when you do the next steps.

2. Repair the style instances


If the style has the correct outline level, it might be that each instance of the style has somehow acquired the wrong outline level. To repair this, you can re-apply the style to every instance.
  1. Display the Styles list using CTRL-SHIFT-ALT-S.
  2. Right-click on the problem style, then select Select all ... instance(s).
    This actually lists the number of instances. In my case it was 162 - not something I want to attack one-by-one!
  3. In the Styles list, click on a style that has its Outline Level set to Body Text. A good candidate is the Body Text style itself.
    This applies the new style to all of the paragraphs that had the problem style. They should all disappear from the Navigation pane.
    Because of your good work in the previous steps, the name of the problem style does not disappear from the Styles list.
    Be very careful to not click anything else - you need all of those paragraphs to stay selected!
  4. In the Styles list, click on the problem style again.
    This reapplies the style to your selected paragraphs. It should mean that the correct outline level is also applied, and the incorrect paragraphs no longer appear in the Navigation pane.

Tuesday, 8 September 2015

Use Snipping Tool to capture menus

Here is the authoritative source: http://windows.microsoft.com/en-au/windows/use-snipping-tool-capture-screen-shots#1TC=windows-7

Here's the text from that page:

To capture a snip of a menu

If you want to capture a snip of a menu, such as the Start menu, follow these steps:
  1. Open Snipping Tool by clicking the Start button Picture of the Start button. In the search box, type Snipping Tool, and then, in the list of results, click Snipping Tool.
  2. After you open Snipping Tool, press Esc, and then open the menu that you want to capture.
  3. Press Ctrl+PrtScn.
  4. Click the arrow next to the New button, select Free-form SnipRectangular SnipWindow Snip, or Full-screen Snipfrom the list, and then select the area of your screen that you want to capture.

Thursday, 3 September 2015

Command to convert movie to animated GIF, using FFMPEG

This command makes an output GIF that is 1000 px wide, 6 seconds long, with 10 frames per second:

ffmpeg -i source.wmv -vf scale=1000:-1 -t 6 -r 10 output.gif

Here are some more FFMPEG commands: http://www.labnol.org/internet/useful-ffmpeg-commands/28490/

Wednesday, 2 September 2015

How to convert a PowerPoint animation to an animated GIF

These instructions use GIMP, and its animation plugin GAP. Before you start these steps, sort out GIMP with GAP.

A. Save the PowerPoint animation as a video

  1. Open the PowerPoint pack.
  2. Delete all slides except the one with the animation.
  3. Remove headers and footers:
    1. On the VIEW tab, click Slide Master.
    2. Delete the heading text box, and any other text boxes.
    3. Select the Hide Background Graphics box.
    4. Click Close Master View.
  4. Change the slide size to match the animation size:
    1. On the DESIGN tab, click Slide Size > Custom Slide Size.
    2. Reduce the height or width then click OK.
    3. Repeat these steps until the animation fills the slide.
  5. Save this new one-slide PPT as WMV.

B. Convert WMV to GIF, using GIMP with GAP

Source: https://www.youtube.com/watch?v=u5_3MGP2Lj4
  1. Open GIMP. Don't try to open the file.
  2. Click Video > Split Video into Frames > Extract Videorange.
  3. Click Cancel at the random message about creating a videoindex file.
  4. Do these things in the Extract Videorange dialog:
    1. Browse for the WMV file, using the ... button.
    2. Click the Video Range button.
    3. On the far right, move the slider to the far right of the row of boxes. This makes the first list box display the number frames in the video.
    4. Ensure that this number appears in these boxes:
      • The third list box on the right (unnamed).
      • The To Frame list box on the left.
    5. Change Audiotrack to 0.
    6. In the Mode box, select Create only one multilayer image.
    7. Click OK.
  5. Click Image > Scale Image, then change the image size.
  6. Save the video as a GIF:
    1. Click File > Export As.
    2. Enter a new filename, and type .gif as the file extension.
    3. Click Export.
  7. In the Export Image as GIF dialog, make these changes:
    1. Deselect GIF comment.
    2. Select As animation.
    3. Leave Loop forever selected.
  8. Click Export.