charlesweir / wordimagesandtables Goto Github PK
View Code? Open in Web Editor NEWMicrosoft Word Plug-in to support Desktop Publishing: easy updating and positioning of figures and tables.
License: GNU General Public License v3.0
Microsoft Word Plug-in to support Desktop Publishing: easy updating and positioning of figures and tables.
License: GNU General Public License v3.0
In Insert Table it's a pain to have to delete the table each time, and impossible really to use it as is. Replace the table in the template with text: [Insert or paste table here]
Since only Mendeley/Zotero are likely to have the appropriate Bibliography field, we can restyle this as style Bibliography without affecting users of different systems.
On Word for Mac Version 16.45:
When Replace Picture is used on an image with a border, the replaced image has no border.
Some of the descriptions (e.g. of Insert Figure) in the readme need updating to match new functionality.
(and Mac installer, come to that).
Perhaps if control key pressed during any command, display version dialog?
Can we detect the last update date of the template? Probably - we can get its full name (path?) using AnchoredFrame.ThisTemplate.FullName.
Easiest would be to have 'Select this and use Replace Picture" as instructions in the image itself.
But then the new image will be scaled the same as the template image.
So when replacing the template image (only), we don't want Replace Picture to preserve all the properties - just the width, scaling everything else accordingly. How to mark the template image as different?
Given a two-column layout, where there are images at the top of both left and right hand columns, sometimes Word misplaces the right hand image to be nearer the centre of the page. This messes up the layout. That can be fixed manually by moving the image back with the mouse; but the resulting misuse of space can also cause the layout of following pages to be wrong.
This appears to be a bug in MS Word. A possible workaround might be to use absolute positioning when the error occurs (how to detect it?).
TBD Test example.
The autotext image is too big for the frame, and there is an extra CR below the caption.
Need to add social media sharing tools and requests for stars.
Most magazines and Latex-based multi-column documents align the lines of text in each column.
The Word templates I've found so far don't do this. The reasons are:
In New Image and New Table, rather than force the user to change the frame size, have the insertion code fit it to the column width (and perhaps adjust the image and set the frame to auto adjust its height too). Add a note in the caption, perhaps, to manually expand the frame width if it is to cross columns.
Needs a friendly explanation of the layout algorithm. Need also to warn that Word for Mac is less stable and can crash with big documents.
Get "This key is already associated with an element of this collection (Error 457)". E.g. on ChangeImageTest.docx, which currently has two Figure 2 entries.
Workaround - refresh before doing relayout?
in README.md
In Sub ButtonPressed in module FiguresAndTables, if the subroutine is exited any way but the end, the UndoRecord object remains active.
Some setups have permissions that don't allow installation. (perhaps not to that directory; perhaps not at all).
Add - change template to instructions.
Insert Picture and Insert Table repeatably get an error (4605). This happens after the frame is inserted, before the reference to the caption is created.
(from debugger) It happens in AnchoredFrame.InsertCrossReferenceBesideAnchor(autotextName As String), but not at a repeatable location.
Hypothesis: It's the use of cut and paste functionality; Virtual Desktop has a weird cut popup which must affect timing and cause sections of the document to remain locked. We've seen this problem before, but then it was always the same line that failed.
Try: Replacing cut and paste with Range.formattedText = ... https://social.technet.microsoft.com/Forums/office/en-US/151112df-e4fc-447d-a13d-a4198eddf805/how-do-i-move-text-in-word-2010-in-a-macro-without-copying-and-pasting?forum=word
It would be good to make this plug-in publicly available through the Microsoft program.
Word plug-ins written in JavaScript can be submitted to Microsoft through
AppSource, and made publicly available. The deployment model is not explicit in the documentation, but I assume Microsoft host such add-ins on Azure.
Could this be done with WordImagesAndTables?
... is as above. It's incorrect in the README file.
Mostly in 'insert table', I have an existing table to copy in. If not, it's still easier to use 'create new table' rather than modify the one in the template.
So remove the sample table, and replace with tips what to do: ensure frame is big enough before inserting table; just insert table here… Table width normally 100%. Style for table cell, table headings, etc.
it's easy to get frames omitted by Relayout Document, but very hard to track down which ones have been omitted.
Suggest the 'do you want to continue' dialog list the omitted frames.
Bug in Word formatting. If top of right hand column, centred in column, sometimes Word positions it more centred in page. Use Right relative to Margin or absolute positioning?
Probabably in function SetToFloatAt.
N.B. Waiting for suitable test document.
The Replace Picture function can work for any image, not just those in frames. Currently it requires a frame.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.