google-code-export / wiki2latex

Automatically exported from code.google.com/p/wiki2latex
0 stars 1 forks source link

Internal links in PDF (no hyperlink) and support of <gallery> tag #70

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

Hi, we are using w2l version Aegaeon on MediaWiki 1.16 to produce a printable 
and PDF version of our documentation of Czech National Forest Inventory. 
Extension is really great but we have to issues:

1) We want to produce PDF documents which have internal links (to 
chapters,headings, pictures)  like in LaTeX (using \label and \ref, \pageref) 
which are real internal and don't produce links to our MediaWiki (with \href). 
I found way to make labels for each chapter, headings or pictures (small 
changes in w2lParser.php) but I can't find solution for make a link  in LaTeX 
code by parser in PHP code. And I need this solution for parsing to .tex and 
also pdf files. Is it possible to make for that in /contrib folder which won't 
be change during future upgrade of w2l version??????

Short example for picture:
a) I need this in PDF  "pict. XX, page YY"
b) from MediaWiki code "[[Media:file.name.png|Caption]]" which is possible to 
see in web browser like "Caption"
c) and in LaTeX code I guess is "pict. \ref{file.name.png}, page 
\pageref{file.name.png}
d) I don't want to display Caption in final PDF, only number of image inside 
document and page where really is

2) Is it possible to support of <gallery> tag?????? Because w2l don't know this 
tag and do nothing with it. Only write whole tag in PDF document. This image 
gallery is pretty solution for display sets of images in MW and  I want to use 
this tool more in future.

Thanks a lot, Zbynek

Original issue reported on code.google.com by zbynac...@gmail.com on 11 Nov 2011 at 12:24

GoogleCodeExporter commented 9 years ago
Hi,

I will look into it. I can say with much confidence that supporting galleries 
seems possible (just have to find a LaTeX-way to render them). Concerning the 
internal links: It is possible to use the existing label, pageref, chapterref 
tags. They might not be completely what you're looking for but it is a start.

I'd be very interested in your changes to w2lParser.php. That seems to be a 
good point to start. To create internal links in your pdf you could use a 
special parser tag, which could savely be your own or published as a contrib 
file.

Concerning the galleries I will see to come up with a solution in the near 
future, but then it could take a while longer :(

I hope this could be of some help. Feel free to comment and report bugs as you 
find them.

Original comment by hansgeorg.kluge@gmail.com on 18 Nov 2011 at 7:54

GoogleCodeExporter commented 9 years ago
I started to implement gallery support. You can find gallery.php in the conrtib 
directory. I'm not sure if it works, but it should be a good starting point.

Original comment by hansgeorg.kluge@gmail.com on 18 Nov 2011 at 9:42

GoogleCodeExporter commented 9 years ago
Hi,

thank you for you advise. Concerning the galleries - I guess the support of 
this tag should be in next version of w2l, am I right????? When it will be 
(probably)??????

About internal links - are you interested in my changes in w2lParser.php???? 
Because I'm not real programmer and this changes are quite simple, but function 
- especially for my demands. I made them by method of "experiment and error" 
because I'm beginner in PHP code and in debugging. So, I'm almost helpless in 
connect of w2lParser and MediaWiki code (and also their parameters and 
variables.....). You wrote my changes might be good start, but I freeze over in 
this point....... I'll be thankful for any help of you or w2l users.

Thanks a lot, Zbynek

Original comment by zbynac...@gmail.com on 21 Nov 2011 at 12:32