aboutsummaryrefslogtreecommitdiff
path: root/doc/bugs/teximg_fails_if_same_tex_is_used_on_multiple_pages.mdwn
blob: 700492345bcdec497f5ab474e14a3f898c4ec5b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
If the same teximg is put on multiple pages, the second one will fail:

Error: /home/joey/html//teximg/3eb2b61be1e909df9008a499863eec90.png independently created, not overwriting with version from pics

Ikiwiki doesn't support the concept of two different pages owning the same
file; only one page can own a file. I don't see a good way around that, 
w/o large changes to ikiwiki.

This could be fixed by making the teximg directory be a subdirectory
of the page containing the image. I seem to remember suggesting this to
winnie, and I forget why it wasn't done.. maybe because the same teximg
on multiple pages was expected to work, and as an optimisation for that case?
--[[Joey]]

----
At first the plugin doesn't use the writefile etc. functions of ikiwiki, but uses own ones (so the created img wasn't owned by any page).
Then this setup of course works. 

After switching to the ikiwiki functions it seems so that I doesn't test this again... sorry a error of mine. I'll work out a fix for this.
I think this will be a own dir for images for every page.

--[[PatrickWinnertz]]

[[!tag done]]