This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
|
dokuwiki_img2fig [2021/06/07 00:44] admin |
dokuwiki_img2fig [2021/06/07 11:43] admin [DokuWiki: Create figure from img] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== DokuWiki: Create figure from img ===== | + | ====== DokuWiki: Create figure from img ====== |
| - | This Javascript code enables | + | This Javascript code enables |
| - | Add the following code to your "userscript.js". | + | The standard syntax for images is used such as |
| + | '' | ||
| + | |||
| + | ===== Code ===== | ||
| + | |||
| + | Add the following code to your '' | ||
| <code javascript img2fig.js> | <code javascript img2fig.js> | ||
| Line 37: | Line 42: | ||
| </ | </ | ||
| - | Add whatever **figure** styles to your CSS file. A suggestion is: | + | Add whatever **figure** styles to your CSS file (probably '' |
| <code css styles.css> | <code css styles.css> | ||
| Line 118: | Line 123: | ||
| - | ==== Mechanism ==== | + | ===== Mechanism |
| - | Origninal: | + | The origninal is like this: |
| <code html> | <code html> | ||
| Line 130: | Line 135: | ||
| </ | </ | ||
| - | is changed to: | + | This is changed to: |
| <code html> | <code html> | ||
| Line 142: | Line 147: | ||
| </p> | </p> | ||
| </ | </ | ||
| - | |||
| - | |||