I want an MS TOC entry which is different from the text it points to - like an Epigram - I want the word 'Epigram' not the actual Epigram - ms-word

I want an entry in my TOC (that was created with Headings 1, 2 & 3) that is not the same as the text it points to. So I want to have the word 'Epigram' in the TOC but I want some text like; 'For Joey and Suzy, thanks for all the help' to appear on the page as the 'target' for the 'Epigram' entry in the TOC.
Hope that is clear ! Thanks for any help, much appreciated.
Have only tried googling this but difficult to describe in a 'searchy' way.

Related

How to add sources to Microsoft Word?

I don't know if this s the right place for this, but I've been really struggling to get this done in word 2013, here's a photo of what I mean:
Screenshot of a Word document
See how the [5] and the [6] are? I want to be able to do something like that. I've tried many things but nothing worked. And I don't really know how to google this...
Maybe it would've been better preserved in Super User, but here the solution:
The list on your screenshot are end notes with square brackets:
Insert end notes:
Go the the References tab in Word and do Insert End Note.
By default the end notes should be numbers, if they aren't click on the small symbol in right bottom of the tab.
To get square brackets now, you have to do a Seach and Replace operation:
Press Ctrl+H.
Search for ^e and replace it with [^&] (see on screenshot, it's German but should be no problem).
Hint: For foot nodes you can apply the same procedure, but instead of ^eyou have to take ^f.
What you can also see, is a table of figures. How to create a table of figures:
You have to make Captions:
Go the the References tab in Word and do Insert Caption.
In the menue "Caption" which pops up you can select the label and further options.
You have to create a Table of Figures:
In the same word tab there is the button "Insert Table of Figures".
In this menue you can choose the layout and further options.
Version: This guide works for any version of Microsoft Word, however the menues (how to find them) can differ in older versions (2003 and older).
The Search&Replace Operation works for every version.

Cross-reference list is empty in Word 2010

I have been given a Word file (.docx) that has about 35 figures and tables. When I try to add a cross-reference I get an empty list like this:
I made sure that:
1) The figures and tables are actually captions. If I delete anyone of them, the rest get updated as expected.
2) Other cross-references already in the file works. They get updated correctly like in (1)
3) The document doesn't have any 'track changes'. This is apparently a problem for some people, so I did an 'accept all changes'. Doesn't seem to help unfortunately.
4) I tried copy all and paste into a new file.
5) I tried selecting all and F9.
I'm perplexed why this is happening. Anyone can help me find the root cause?
I know that it is probably late, but maybe it will help somebody else.
Select caption below table/picture
Right click and select Toggle field codes - the caption show the code in format like SEQ xxx xxx
Go to Insert -> Reference -> Caption and click on New Label button
Insert the text following after SEQ from point 2. E.g. Fig.
Save the new label.
Go to Insert -> Reference -> Cross Reference - select the inserted value from point 4 in the Reference type dropdown list. Now you should see all the values.
The answer is based on the following link.
In Word 2013, instead of Insert>Reference>Caption, right click on a figure or table and select insert caption. A dialogue box including the option New Label will appear.
In my case, I think this issue arose because of changes in language. The tables are all captioned with the French Tableau, but in insert references, it had Table and a blank list.

Include detail in table of figures that is not in the caption

I've got completely stuck on something that should be trivial: I am working with MS Word 2003, and am putting together a table of figures. I need to have more detail in the table of figures than I have in the caption. For example, in the caption I have:
Fig 1: John and Jenny in London
and in the table of figures I need to the source and accessed date:
Fig 1: John and Jenny in London, available at www.johnandjenny.com, accessed 03/09/2013
I have tried using hidden text in the caption, but the hidden text is not included in the table of figures. The only other thing I can think of is to include all of the detail in the caption, but make the bit that I don't want to show white. This is not ideal, because sometimes the additional detail is several lines long, and this will create a dead space in the caption.
Does anyone have a better way to do this?
Thanks
Sorry - didn't find your question on SU, so posting my answer here ...
Mark your complete caption and press Alt+Shift+X to create an index entry {XE ...} where in the subentry you add your "hidden" text. Then - instead of a table of figures - create an index and add the \r switch to get index entry and subentry on one line.
example:

Macro, automatically adding one to a value

I have a problem with macro in notepad++
Just needs to have value automatically changed to +1 (from current value)
So the values should be like this 1000, 1001, 1002, 1003 and so on for the coming values between the MEDIA_ID tags..
<MEDIA>
<MEDIA_ID>1000</MEDIA_ID>
</MEDIA>
<MEDIA>
<MEDIA_ID>1001</MEDIA_ID>
</MEDIA>
I have no idea how do this..
Could anyone help?
Thanks
1) Generate the list of numbers from 1000 to the number you want using excel and copy this into notepad++.
2) Go to the start of the file.
3) Start the macro recorder.
4) type <MEDIA>(down arrow)(HOME button)<MEDIA_ID>(END button)</MEDIA>(down arrow)(HOME button)</MEDIA>(down arrow)(HOME button)
5) repeat this macro as many times as needed.
If you can align the tags vertically then you might be able to use the Column Editor to do the numbering. Say you format the XML like this:
<MEDIA><MEDIA_ID></MEDIA_ID></MEDIA>
<MEDIA><MEDIA_ID></MEDIA_ID></MEDIA>
....
<MEDIA><MEDIA_ID></MEDIA_ID></MEDIA>
Now, place your cursor betweeen the start and end tags of MEDIA_ID. Choose Column Editor... from the Edit menu (ALT+C keyboard shortcut). Change the radio button to Number to Insert with a starting value of 1001 incrementing by 1 (Decimal). Confirm using the OK button. You should end up with this:
<MEDIA><MEDIA_ID>1001</MEDIA_ID></MEDIA>
<MEDIA><MEDIA_ID>1002</MEDIA_ID></MEDIA>
....
<MEDIA><MEDIA_ID>1199</MEDIA_ID></MEDIA>
Sadly, it seems that this operations cannot be used in a macro. But maybe it helps.

Length of current selection in Eclipse

Do you know any easy way to find out what is the length of the current selection in Eclipse?
i.e. I select a line fragment and would like to know how many characters are there?
Usually, I count them manually, but that's stupid. When being desperate, I move to the start, check the column number, move to the end, check the column number, subtract, think a minute if I should add 1 or not... and my selection is lost.
On Windows, Notepad++ is a good solution. Open a new tab, copy and paste in there and the length of the document listed at the bottom of the window is the number of characters you have.
Easy way? Copy the text and paste it to a counting script, like this site:
http://charcount.com/
(Warning: the site's background may hurt your eyes.)
Eclipse does support a Selection object, if you're into its API:
http://www.eclipse.org/articles/Article-WorkbenchSelections/article.html#example