{"id":82041,"date":"2009-01-18T00:51:13","date_gmt":"2009-01-18T00:51:13","guid":{"rendered":"https:\/\/www.webstaging.red-gate.com\/simple-talk\/?p=73219"},"modified":"2018-12-12T13:33:23","modified_gmt":"2018-12-12T13:33:23","slug":"a-few-word-tips-and-tricks-for-writers","status":"publish","type":"post","link":"https:\/\/www.red-gate.com\/simple-talk\/blogs\/a-few-word-tips-and-tricks-for-writers\/","title":{"rendered":"A few Word tips and tricks for writers"},"content":{"rendered":"<p><em>Edit: Added ideas from comments at the end of the blog<\/em><\/p>\n<p>Not exactly a SQL topic, but I am working on formatting a chapter from a book I am working on with a cowriter and I realized that there were a few things that I find myself doing over and over with Word that I wanted to share.&#160; All of the tips are useful for formatting SQL in your blog posts, at the very least.<\/p>\n<p><strong>1. Shift \u2013 F3<\/strong> \u2013 Applying this to a word\/highlighted text in your document will cycle through the different states of capitalization.&#160; For example, if you have:<\/p>\n<p>Fred is a crazy dude.<\/p>\n<p>Highlight it and press Shift-F3:<\/p>\n<p>THIS IS A COOL FEATURE<\/p>\n<p>Again:<\/p>\n<p>this is a cool feature<\/p>\n<p>And finally:<\/p>\n<p>This Is A Cool Feature<\/p>\n<p>If you are like me, you code everything originally in lowercase, but editors almost exclusively like the way caps look, so I find myself constantly setting keywords to caps using this feature.&#160; I learned this in a few sessions with Microsoft Learning where the person proctoring the session was using it on the screen.&#160; Saved me hours on the last book (you heard me, hours. I probably spent over 1000 hours writing and it might have been 2000. The book was 680 or so pages with lots of T-SQL.)<\/p>\n<p><strong>2. Get the application puretext from <\/strong><a title=\"http:\/\/www.stevemiller.net\/puretext\/\" href=\"http:\/\/www.stevemiller.net\/puretext\/\"><strong>http:\/\/www.stevemiller.net\/puretext\/<\/strong><\/a><strong>.<\/strong> This handy application will clear all formatting from text you have stored in your clipboard. Nearly every publisher has a style sheet that they require you use, and frankly if you have any Word skill at all you always use styles for titles and headings at the very least. The most annoying thing though is that the text you copy from SSMS has formatting in it, so when you paste it into your documents you have this formatting that you need to get rid of in lieu of the stuff that the publisher wants.&#160; With Puretext you simply use a slightly different paste key (like Windows-V) and you get the plain text you need.&#160; Same time estimate for this feature. Before I found this application I used to paste into Notepad, the copy it to the clipboard and then into Word.&#160; Very tedious.<\/p>\n<p><strong>3. Hotkeys on styles<\/strong> \u2013 As mentioned in 2, nearly every publisher has a style sheet that they require you use, and frankly if you have any Word skill at all you always use styles for titles and headings at the very least.&#160; Applying \u201cheading 1\u201d three or four times is no big deal, but applying code in text 1000 times in a 80 page chapter is not quite a much fun.<\/p>\n<p>So, if you open up word, and find the styles ribbon (this is Word 2007, you can do much the same stuff in earlier versions, but I won\u2019t demonstrate).&#160; Clicking the little arrow under the Change Styles&#160; button opens up the styles bar:<\/p>\n<p><a href=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_3B67232F.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"156\" alt=\"image\" src=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_thumb_61C9067A.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p>Now you can right click on any of the styles, choose modify to get the following:<\/p>\n<p><a href=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_6F2F1980.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"244\" alt=\"image\" src=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_thumb_0D2D2775.png\" width=\"239\" border=\"0\" \/><\/a> <\/p>\n<p>Click on Format and choose Shortcut Key:<\/p>\n<p><a href=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_533DE488.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-top-width: 0px;border-left-width: 0px;border-bottom-width: 0px;border-right-width: 0px\" height=\"222\" alt=\"image\" src=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_thumb_00FB8781.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p>Once you choose a key (for the Code [ST] style I chose Alt-C. Now I highlight the term I want to make look like code and press Alt-C.&#160; Saves tons of time.<\/p>\n<p>Note: A few commenters have noted that there is a way to make this work without PureText using Word functionality (I will demonstrate the Word 2007 methods.&#160; There are two ways:<\/p>\n<p>First, when you paste text into Word 2007, you get a little menu at the end of your paste:<\/p>\n<p><a href=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_4F3D01DF.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"32\" alt=\"image\" src=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_thumb_4AC68118.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<p>Click that and it will say:<\/p>\n<p>Keep Source Formatting   <br \/>Match Destination Formatting    <br \/>Keep Text Only    <br \/>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-    <br \/>Set Default Paste<\/p>\n<p>This would be a clumsy way to keep text many many times, but it is nice for the occasional use. More interesting is the Match Destination.&#160; A lot of times I use text formatting to strip away some text formatting so I can reformat it. <\/p>\n<p>The second is to set the default paste method.&#160; Opening up the Word Options menu from the Office Menu you see:<\/p>\n<p><a href=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_03712B26.png\"><img loading=\"lazy\" decoding=\"async\" title=\"image\" style=\"border-right: 0px;border-top: 0px;border-left: 0px;border-bottom: 0px\" height=\"200\" alt=\"image\" src=\"https:\/\/www.webstaging.red-gate.com\/simple-talk\/wp-content\/uploads\/2017\/12\/11161_image_thumb_68C48F0C.png\" width=\"244\" border=\"0\" \/><\/a> <\/p>\n<\/p>\n<p>You can set it to behave using any of the three methods mentioned by default for several scenarios, the most interesting \u201cPasting from other programs.\u201d If you didn\u2019t want to set up something like PureText, and you only used Word (I am using LiveWriter right now, and I like pasting text into here for code, but not from blogs and documents) then that would be a very viable plan too.<\/p>\n<p>What it just goes to show you is that all of the Office products are freaking massive. After writing 3000 pages or so using word through the years, I consider myself an above average user, but in reality, in comparison to what features are in there, I am a novice. These are just a few tricks I have learned, the first two from others (the second was from a newsgroup posting by the author, who\u2019s website you will find the tool), the third something I started doing on my own (didn\u2019t come up with the idea, just found it.)&#160; If you have other ideas, please share them here, on your blog, at conferences, etc.&#160; Writing is a chore to start with, but formatting is a nightmare if you don\u2019t know the tricks of the trade.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Edit: Added ideas from comments at the end of the blog Not exactly a SQL topic, but I am working on formatting a chapter from a book I am working on with a cowriter and I realized that there were a few things that I find myself doing over and over with Word that I&#8230;&hellip;<\/p>\n","protected":false},"author":56085,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[],"coauthors":[19684],"class_list":["post-82041","post","type-post","status-publish","format-standard","hentry","category-blogs"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82041","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/users\/56085"}],"replies":[{"embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/comments?post=82041"}],"version-history":[{"count":1,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82041\/revisions"}],"predecessor-version":[{"id":82359,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/posts\/82041\/revisions\/82359"}],"wp:attachment":[{"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/media?parent=82041"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/categories?post=82041"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/tags?post=82041"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.red-gate.com\/simple-talk\/wp-json\/wp\/v2\/coauthors?post=82041"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}