Title: A follow up on the issue of Figure caption · Issue #359 · python-openxml/python-docx · GitHub
Open Graph Title: A follow up on the issue of Figure caption · Issue #359 · python-openxml/python-docx
X Title: A follow up on the issue of Figure caption · Issue #359 · python-openxml/python-docx
Description: Thanks to the latest developments presented in #137 it is now possible to insert an automatic figure or table caption using the following code. def Figure(paragraph): run = run = paragraph.add_run() r = run._r fldChar = OxmlElement('w:fl...
Open Graph Description: Thanks to the latest developments presented in #137 it is now possible to insert an automatic figure or table caption using the following code. def Figure(paragraph): run = run = paragraph.add_run(...
X Description: Thanks to the latest developments presented in #137 it is now possible to insert an automatic figure or table caption using the following code. def Figure(paragraph): run = run = paragraph.add_run(...
Opengraph URL: https://github.com/python-openxml/python-docx/issues/359
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"A follow up on the issue of Figure caption","articleBody":"Thanks to the latest developments presented in #137 it is now possible to insert an automatic figure or table caption using the following code.\r\n\r\ndef Figure(paragraph):\r\n run = run = paragraph.add_run()\r\n r = run._r\r\n fldChar = OxmlElement('w:fldChar')\r\n fldChar.set(qn('w:fldCharType'), 'begin')\r\n r.append(fldChar)\r\n instrText = OxmlElement('w:instrText')\r\n instrText.text = ' SEQ Figure \\* ARABIC'\r\n r.append(instrText)\r\n fldChar = OxmlElement('w:fldChar')\r\n fldChar.set(qn('w:fldCharType'), 'end')\r\n r.append(fldChar)\r\n\r\n\r\ndef Table(paragraph):\r\n run = run = paragraph.add_run()\r\n r = run._r\r\n fldChar = OxmlElement('w:fldChar')\r\n fldChar.set(qn('w:fldCharType'), 'begin')\r\n r.append(fldChar)\r\n instrText = OxmlElement('w:instrText')\r\n instrText.text = ' SEQ Table \\* ARABIC'\r\n r.append(instrText)\r\n fldChar = OxmlElement('w:fldChar')\r\n fldChar.set(qn('w:fldCharType'), 'end')\r\n r.append(fldChar)\r\n\r\n-----------in the main document-------\r\n\r\nparagraph = document.add_paragraph('Figure ', style='Caption')\r\nFigure (paragraph)\r\n\r\n--- while the figure or table number might not appear immediately they will show up after an update\r\nmoreover the code can be viewed using the \"toggle field view\"\r\n\r\nThanks to everybody","author":{"url":"https://github.com/DBGVA","@type":"Person","name":"DBGVA"},"datePublished":"2017-02-02T20:20:24.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":24},"url":"https://github.com/359/python-docx/issues/359"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4a84fde3-7712-0938-606d-f5d073f81c0c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C630:297EC:6C6457:9840D6:6970AE91 |
| html-safe-nonce | 9b6b6e83d15c247af3d289360bf93b400bddf14b366d23661d79f4662d66a0a6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjMwOjI5N0VDOjZDNjQ1Nzo5ODQwRDY6Njk3MEFFOTEiLCJ2aXNpdG9yX2lkIjoiNDgxMjMwMjc5NTgzNjI3MjI3MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b3fffa4e6eebab90aee8a0be28f42809c38b2abf4255e3b677a1b7571a5ef92d |
| hovercard-subject-tag | issue:204984778 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-openxml/python-docx/359/issue_layout |
| twitter:image | https://opengraph.githubassets.com/216a134cbfd36b269ddbbb02ec65d519a2c00c99d310013fcd542f7eb52d7da6/python-openxml/python-docx/issues/359 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/216a134cbfd36b269ddbbb02ec65d519a2c00c99d310013fcd542f7eb52d7da6/python-openxml/python-docx/issues/359 |
| og:image:alt | Thanks to the latest developments presented in #137 it is now possible to insert an automatic figure or table caption using the following code. def Figure(paragraph): run = run = paragraph.add_run(... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DBGVA |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5246860f280a060af866c1c633f74a6720ad2dd5d576534e4c5e462496b693ae |
| turbo-cache-control | no-preview |
| go-import | github.com/python-openxml/python-docx git https://github.com/python-openxml/python-docx.git |
| octolytics-dimension-user_id | 3403760 |
| octolytics-dimension-user_login | python-openxml |
| octolytics-dimension-repository_id | 13592924 |
| octolytics-dimension-repository_nwo | python-openxml/python-docx |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 13592924 |
| octolytics-dimension-repository_network_root_nwo | python-openxml/python-docx |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7d29ab0ba8deb7bbecf06b664759d4e847623783 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width