User talk:HG~mediawikiwiki

Ole: It seems that patches are reported as issues and committed: http://code.google.com/p/wiki2latex/issues/list?can=1&q=&colspec=ID+Type+Status+Priority+Milestone+Owner+Summary&cells=tiles -

Hi Hans-Georg,

first, thank you for providing Wiki2LaTeX! My company, Kvaleberg (http://www.kvaleberg.com), has used it for some time to generate nice PDFs from our internal wiki, and we're quite happy with it.

But we'd like to like to enhance the tool somewhat, to make it produce _perfect_ PDF presentations from our documentation. So we have some suggestions regarding support for tables, &lt;pre&gt;, &lt;code&gt;, images, etc.

Do you have an email address we can mail patches to, or do you want the input through some other channel?

Best regards, Ole Dahle Senior Software Engineer, Kvaleberg AS

Hello, here is GeorgesKhaznadar 13:59, 30 August 2009 (UTC) I just downloaded w2l-0.10rc.zip today. Here is a patch to fix a bug about LaTeX export for pages which have an image. This fix works for me (TM): --- w2lParser.php	2009-06-16 21:11:43.000000000 +0200 +++ /var/lib/mediawiki/extensions/w2l/w2lParser.php	2009-08-30 15:38:52.000000000 +0200 @@ -884,10 +884,10 @@ 		// category-links, image-links, Page-links... Whatever $matches[1] = trim($matches[1]); -		$link_tmp = explode("|", $matches[1], 2); +		$link_tmp = explode("|", $matches[1]); $link_int = $link_tmp[0]; -		$link_text = ( isset($link_tmp[1]) ) ? $link_tmp[1] : $link_tmp[0]; +		$link_text = $link_tmp[count($link_tmp)-1]; $title = Title::newFromText($link_int); @@ -919,7 +919,7 @@ 				return $link; break; case NS_IMAGE: -				$parts = explode("|", $link); +				$parts = explode("|", $matches[1]); $imagename = array_shift($parts); $case_imagename = $imagename; // still need to remove the Namespace: @@ -2256,3 +2256,4 @@ }

Thank you for your extension!