Thursday, July 2, 2009

Word blockquote tip

When is a quote more than just a quote? When it's a blockquote.  And when is a quote a blockquote?  The Blue Book § 5.1 and ALWD § 47.5 agree the magic number is 50 words or more.  ALWD and The Elements of Legal Style § 4.9 both also direct use of a blockquote if the quote is 4 lines or longer of typed text; but that rule appears to be less universally accepted -- and is irrelevant for my tip today, so I've chosen to ignore it.

in Word there is a dead-simple way to measure if you've come up upon the 50-word-threshold.  Highlight your quote (without citation) and look in the bottom left corner of the window.


Bam, the length of the selection is displayed.  My quote here is 80 words so I'm applying my blockquote autostyle to it.

Monday, June 29, 2009

Convert Legal description to Longitude & Latitude

earthpoint.us has a great tool that came in handy for me just last week.  If you're looking for the physical location of a property you can enter the township, range and section and convert that information to longitude and latitude (or vice versa).  Very helpful in rural condemnation cases.

edit: this tool from the University of Montana appears to do the same thing.

Wednesday, June 24, 2009

Show Links to Appendices on SDCL website with Greasemonkey Userscript

I came up with a quick and dirty method of linking to the appendices on the SDCL website.  Previously the only way (that I'd found) to get to them online was via a text search.  I've created a userscript that adds links to the appendices of SDCL 15-6. 

You must be using Firefox and have Greasemonkey installed.  See the homepage here or install the script here.

I'd be happy to make more for any other specific chapters anyone suggests.  Drop us an email at techoflaw@gmail.com with your request.

Tuesday, June 23, 2009

Easy Outlook Date Calculations

No more counting! No more counting! No more counting!

If you happened to be walking by my office door a few minutes ago you may have heard this cheer, followed by my clumsily tripping over a bankers box full of papers.  OK, I didn't actually do a cheer (I did trip over the box though), but I was excited enough that I felt like doing one.

I just discovered a drop-dead simple way of setting future reminders in Outlook (ex, 30 days 'discovery responses due'). 

  1. Create a new appointment in your Outlook Calendar like you would anything else;
  2. Give it a subject;
  3.  For the "Start Time" use a plain text description of what you want to do.  It recognizes all sorts of text strings here's a few that I've tested and work for sure in Outlook 2003
    • "30 days after today" 
    • "45 days after tomorrow" 
    • "3 days before June 25th"  (a/k/a The "if-you-haven't-bought-an-anniversary-present-yet-drive -immediately-to-a-jewelry-store-you-idiot" reminder)
    • "two weeks after today"
    •  unfortunately it doesn't seem to recognize "weekdays" or "business days" for the sub-11 day time periods.
  4. Hit "Tab" and then save the appointment.
This is going to be an extremely helpful little trick to help you stay on top of future due dates

Friday, May 15, 2009

Add Dynamic Exhibit Stamps in Acrobat using a free stamp set

Add Dynamic Exhibit Stamps in Acrobat using a free stamp set

Thursday, May 7, 2009

Platypus for easier Statute Navigation

Mike and I have mentioned the power of Greasemonkey here before.  It can really be an amazing tool in customizing your web browsing, but also making your life as a lawyer easier.  Today I was browsing through the Rules of Civil Appellate Procedure chapter of the code (fun, right?) at around the Length of Briefs section (66) of the nearly 100 sections therein - and in light of the fact that I knew I'd find myself on this very page again several times over the next few months or so - I knew there had to be an easier way to find what I'm looking for.

Of course when you're dealing with a specific, commonly used webpage a bookmark is always an option.  However Ctrl+D was not what I was after today.  Enter Platypus.  Frankly, I don't remember if I've mentioned Platypus before or not, but if I had I would have told you it is a robust add-on for firefox that creates on-the-fly greasemonkey extensions which customize the way any given page appears and tailors them to your specific needs.

I knew that for my issue I was going to be coming back to this page over and over again and that I would want to easily find specific sections for reference.  Using Platypus I was able to highlight sections that I knew I would want to reference later as well as highlight and bold the really important ones.  For example, References in Briefs to Parties, congratulations, you are important to me and you are hereby hilighted.  However, Mr. Printing and Binding Specifications for Briefs, you are very important to me (owing to my experience in having a brief kicked back because one paragraph, one paragraph, was improperly aligned) and you are therefore now highlighted and bold.

Here's a side-by-side before and after of the page:


As you can see, the links on the left run together and unless you know the specific section number off the top of your head, you're going to be reading titles.  On the right however, your eye quickly jumps to the sections that you have designated.

Platypus is simple to use.  Once you've installed the extension you simply right click on any page that you want to customize and select Platypus! from the context menu.

You will initially notice that areas of the page are turned red when you run your mouse over them.  These are areas that are editable on the page.  If there is one weakness to Platypus it's that you are at the mercy of the code and layout used by the designer as far as areas that are editable.  The SD Statute Chapters are a good example.  It would be much more desireable to highlight the entire title of the individual section along with its link, but because of the way the HTML of the page is rendered that's not an easy option in this instance.  To edit the style of an area mouse over an editable area and right click again.  Now you're looking at the Platypus context menu.

There are several options and they can all be valuable depending on what you want to do on a page.  In this instance we want to edit the style of the page so click Set Style.  A new menu will pop up with several options.  To highlight find the Background Color and select yellow (or your choice), if your done click Accept, to preview click Apply.  If you want to make the text of an area bold that's under the Font Weight option.

Once you've made and accepted your changes it is very important that you Save your changes.  Before navigating away from the page your editing click Save and Exit Platypus on the Platypus Context Menu.  A greasemonkey script will (should) then install and your changes are saved.

Sunday, April 12, 2009

MOTD: Auto-update the date

I've talked before about making Word templates out of commonly used documents. I've also talked about date fields and SaveDate fields. Some documents might use language like "Executed this 15th day of March, 2009." There isn't a good way to have the day read "2nd", "3rd", "4th" ect. Now most people might think this isn't a big deal, its easily changed manually. But the whole point of my template is to cut down on ugly typos when I forget to update something. So, I created a macro.

In my template, I inserted a date field by going to Word's Insert tab and clicking Quick Parts and then selecting Date from the Field names list (you can use SaveDate if you want - see this post for more about the SaveDate field). The Date field displays the current date. The Date formats box is used to control how the date is displayed. The box uses a code system; "d" stands for day, "M" stands for month, "y" stands for year, "h" stands for hour, "m" stands for minute, and "s" stands for second. Note that you capitalize M for month because lower case m stands for minute. The formating is a little difficult to explain so examples are the only way to go. If you want the date to be formatted like "3/15/09", type M/d/yy. For "3/15/2009," type M/d/yyyy. For "Sunday, March 15, 2009," type dddd, MMMM dd, yyyy. Most of the common formats are in the list so you don't generally need to figure the formatting out. However, I want to do something out of the ordinary. I want the document to read something like "Executed on the 1st," so clear out the Date formats box and just place a "d" there.


Right after the Date box we just inserted, insert a MacroField by selecting MacroField from the Field names list. In the Display text box put something like "st" (because this box will say "st", "nd", or "rd"). In the Macro name box just leave the default there (AcceptAllChangesInDoc) because we will add our own Macro next. Your document looks something like this:

Click on the "st" and type Shift + F9. This will expand the MacroField to display its code. Replace AcceptAllChangesInDoc with DateSuperScript - the name of the macro we will make next.


I want the month and the year at the end so I insert a second Date field using the code MMMM, yyyy.



The finished product looks like this:

Now type Alt + F11 to open up the Visual Basic editor. Then select the Project template for your document in the project window (it will have the name of your Word document). Expand the project. Expand the Microsoft Word Objects tab and select the ThisDocument icon and then paste this code in the document:

Sub AutoSuperScript()
Dim oStory As Range
Dim oField As Field
For Each oStory In ActiveDocument.StoryRanges
For Each oField In oStory.Fields

If InStr(1, oField.Code.Text, " MACROBUTTON DateSuperscript") Then
oField.Code.Text = " MACROBUTTON DateSuperscript " + GetDateSuperscript
End If
oField.Update
Next oField
Next oStory
End Sub

Private Sub Document_New()
AutoSuperScript
End Sub

Private Function GetDateSuperscript()
'1-> st
'2->nd
'3->rd
'0, >3 ->th
strDt = Str(Day(Now))
strEnd = Right(strDt, 1)
If strEnd = 1 Then
GetDateSuperscript = "st"
ElseIf strEnd = 2 Then
GetDateSuperscript = "nd"
ElseIf strEnd = 3 Then
GetDateSuperscript = "rd"
Else
GetDateSuperscript = "th"
End If
End Function


Now every time you create a new document from your template the date will be updated. If you really want to get wild, add the AutoSuperScript function to the UpdateAll function I talked about in this post. That way, the superscript will get updated every save.