Pages for Mac lets you easily import a Word document into Pages from your Mac or a PC. And now anyone can collaborate on a document in real time. Now, more features are supported, including commenting, conditional formatting, and bubble charts. And each update adds greater compatibility. Page Formatting In Word 2016 Perhaps one of the most important things you can learn in Microsoft Word is how to format your page with elements such as margins and page breaks. Formatting your pages makes them look more attractive and makes them easier to read.
Version: 2008 Operating System: Mac OS X 10.5 (Leopard) Hello, I am trying to copy content from a website and paste it into word, and retain italicized words so I don't have to format the document by hand. How can I do this? I've searched online and I keep finding info saying that a clipboard icon should pop up when you paste into Word, and then you can click on 'keep source formatting,' but the icon is not popping up!? I went into Word preferences and the 'paste options' preference is clicked on. The Paste Options button appears as a Clipboard icon just below the end of the pasted content. However, it only appears even if enabled in prefs if there are options to choose from in the first place. My guess is that your browser is putting only 'Unformatted Text' on the Clipboard.
Alternatively you can use the Edit Paste Special command to select from what's available on the Clipboard. If there are options that dialog may offer more than what's included in the Paste Options button menu. As Michel mentioned, what gets put to the Clipboard when you Cut/Copy is determined by the program you're using at the time. The receiving program determines from what's there what it is capable of pasting. BTW: Not to provoke my friend Michel, but the 'Include formatted text.'
Pref he mentioned has no bearing on your question. It determines whether formatting of text is copied as well as the text itself when you cut/copy.from. a Word document.
HTH :) Bob Jones MVP Office:Mac.
I have to write some documents that will include source code examples. Some of the examples will be written from the IDE, and others would be written in place.
My examples are primarily in Java. As someone who is used to LaTeX, doing this in Word is extremely painful. However, I am bound to Word for this. The only options I have seen are:. Write or copy into the document, then use a fixed type font, arrange formatting and hope that Word didn't uppercase stuff for you.
Needless to say, this looks like crap. Copy and paste screenshots of source code from the IDE.
At least I keep colors. However, if I change my font size, I'm screwed. I'm also screwed across page boundaries. And let's admit it, Word is not great at managing multiple images on a document. Write HTML (not really an option here) Is there some better (and ideally portable) way to do this?
Is there at least some sort of verbatim style similar to the LaTeX environment? Is there at least some pretty printer that I could copy-and-paste as RTF? I absolutely hate and despise working for free for Microsoft, given how after all those billions of dollars they STILL do not to have proper guides about stuff like this with screenshots on their damn website. Anyways, here is a quick guide in Word 2010, using Notepad for syntax coloring, and a TextBox which can be captioned:. Choose Insert / Text Box / Simple Text Box.
A default text box is inserted. Switch to NPP, choose the language for syntax coloring of your code, go to Plugins / NPPExport / Copy RTF to clipboard. Switch back to word, and paste into the text box - it may be too small. So you may have to change its size.
Having selected the text box, right-click on it, then choose Insert Caption. In the Caption menu, if you don't have one already, click New Label, and set the new label to 'Code', click OK. Then in the Caption dialog, switch the label to Code, and hit OK. Finally, type your caption in the newly created caption box. You need to define a style in your Word document and use that for source code. I usually have a style called 'Code' which has a monospaced font in a small point size, fixed size tabs, single line spacing, no before/after paragraph spacing, etc.
You only need to define this style once and then reuse it. You paste in your source code and apply the 'Code' style to it. Note that some editors (e.g. Xcode on the Mac) add RTF as well as text to the clipboard when copying/pasting between applications - Word recognises RTF and helpfully retains the formatting, syntax colouring, etc. Source code in Xcode: Copied and pasted to Word: (Note: it's a good idea to disable spell-checking in your 'Code' style in Word.). I recently came across this post and found some useful hints. However, I ended up using an entirely different approach which suited my needs.
I am sharing the approach and my reasoning of why I chose this approach. The post is longer than I would have liked, but I believe screenshots are always helpful. Hopefully, the answer would be useful to someone. My requirements were the following:. Add code snippets to a word document, with syntax highlighting for easier visibility and differentiation of code and other text. Code snippet shall be inline with other text. Code snippet shall break across pages smoothly without any extra effort.
Code snippet shall have a nice border. Code snippet shall have spell-check disabled.
My Approach is as listed below:. Use external tool to achieve syntax highlighting requirement 1 above. One could use notepad plus plus as described above. However, I use the tool present here -. This gives me the option to use line number, as well as very nice syntax highlighting. Steps to achieve syntax highlighting are listed below:. Open the website provided above in chrome and Copy the code snippet in the text area.
I will be using a sample XML to demonstrate this (XML sample from here - ). Select the language from drop down menu. Click 'Show Highlighted' button.
It will open a new tab, with syntax-highlighted code snippet, in this case the XML sample we chose. See image below for example. To Turn off the line numbers, inspect the page in chrome. Then, under styles, deselect the 'margin' property in '.dp-highlighter ol', as shown in the image below. If you want to keep the line numbers, go to next step.
Select the syntax-highlighted code and click copy. Now your code is ready to be pasted into Microsoft word.
Thanks to this blog for providing this information -. To achieve requirements 2, 3 and 4 above, use table in Microsoft word, to insert the code snippet. Steps are listed below:. Insert a table with single column. Paste the copied text from step 1. In the table column.
I have kept the line numbers to show how well this works with Microsoft word. Apply border, as you like. I have used size 1pt. Resulting Microsoft word snippet will appear as shown in screenshot below. Note how nicely it breaks across the page - NO extra effort needed to manage this, which you would face if inserting 'OpenDocument Text' object or if using 'Simple TextBox'. To achieve requirement 5, follow the steps below:. Select the entire table or the text.
Go to Review tab. Under Language, choose 'Proofing Language'. A new pop-up will be presented. Select 'Do not check spelling or grammar'. Then, click OK. Resulting text has spell-check disabled.
Final result is shown in the image below and meets all the requirements. Please provide if you have any feedback or improvements or run into any issues with the approach. I think this is the best solution. One more tip: if you don't want the spell-check but your not writing in English, insert the code as an Open Document Text object. Go to INSERT - OBJECT - and choose OpenDocument Text. Insert the code into the opened document and then save and close.
The code is displayed as above but the spelling is ignored entirely. The only drawback may be that the number doesnt work correctly, if you want to include it into the caption for the listing. Havent checked that.
– Sep 21 '16 at 14:03. Hi @ParameshKorrakuti, If by the border you mean the 'light grey colored background behind the numbers' shown on the syntax highlighter website, then I have not been successful at achieving that. Once you paste it in word, it loses the grey background. That is because, the website is using html and css to achieve the background color (see the.dp-highlighter section in css). In microsoft word, one line can possibly have only one background color scheme. Hope that answers your question.
If this does not then, please provide a screenshot of what you are referring to and ill check. – Jan 14 at 6:17. In Word, it is possible to paste code that uses color to differentiate comments from code using 'Paste Keep Source Formatting.' However, if you use the pasted code to create a new style, Word automatically strips the color coded text and changes them to be black (or whatever the auto default color is). Since applying a style is the best way to ensure compliance with document format requirements, Word is not very useful for documenting software programs. Unfortunately, I don't recall Open Office being any better.
The best work-around is to use the default simple text box. I have tried all your methods, but they didn't work for me, in fact I have created an easier method using MS Word Tables. Pros:. More beautiful. Easier to manage & more consistent.
Are less prone to problems. No need for external plugins or MS Word micro coding. Easier to handle by simple users ( such as myself). Cons: It will not maintain code colouring although someone could improve my trick. Steps:. Insert a 3x3 table, in my case I always make the total width of the table equals the free page's width ( 3 rows minimum to test the tables style). Use invisible borders (' No Borders' option), and activate ' View Gridlines' option.
It should have this aspect. Be ware that those lines are for you to see the table's grid, and the will not be printed. Make the adjustments to cells' spacing and columns' width to get the aspect you like.
( You will have to get in ' Table Properties' for fine tuning). Create a ' Paragraph Style' with the name of ' Code' just for your code snippets ( check to get the idea, you don't have to follow all of it). Create another ' Paragraph Style' with the name of ' Codenumberline' that will be based upon the previous created style. In the newly created ' Codenumberline' add the numbering style that you like (this will automate line numbering). Apply ' Codenumberline' to the first column, and ' Code' to the 3 column.
Add a fill in the middle column. Save that table style and enjoy!