[Pkg-lyx-devel] Bug#345300: lyx: Absent graphics support in linuxdoc

Anton Ivanov arivanov at sigsegv.cx
Fri Dec 30 09:19:58 UTC 2005


Package: lyx
Version: 1.3.4-local-4
Severity: wishlist
Tags: patch


Linuxdoc export does not support graphics. Here is the minimal support
to do this. It does not do captions, labels or any niceties. It does 
graphics correctly though. 
Example - http://www.sigsegv.cx/hp-thin-client.html
Please include and forward upstream. Thanks in advance.

A.

*** lyx-1.3.4/src/insets/insetgraphics.C	2003-09-17 14:46:03.000000000 +0100
--- lyx-1.3.4-local/src/insets/insetgraphics.C	2005-12-29 09:56:48.000000000 +0000
***************
*** 786,794 ****
  }
  
  
! int InsetGraphics::linuxdoc(Buffer const *, ostream &) const
  {
! 	// No graphics in LinuxDoc output. Should check how/what to add.
  	return 0;
  }
  
--- 786,794 ----
  }
  
  
! int InsetGraphics::linuxdoc(Buffer const *, ostream & os) const
  {
! 	os << "<figure><img src=\"" << params().filename << "\"></figure>";
  	return 0;
  }
  


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.14-1-k7-desktop
Locale: LANG=en_GB, LC_CTYPE=en_GB (charmap=ISO-8859-1)

Versions of packages lyx depends on:
ii  debconf                    1.4.30.13     Debian configuration management sy
ii  groff                      1.18.1.1-7    GNU troff text-formatting system
ii  imagemagick                6:6.0.6.2-2.4 Image manipulation programs
ii  libtiff-tools              3.7.2-3       TIFF manipulation and conversion t
ii  lyx-common                 1.3.4-local-4 High Level Word Processor - common
ii  lyx-qt                     1.3.4-local-4 High Level Word Processor - Qt fro
ii  mime-support               3.28-1        MIME files 'mime.types' & 'mailcap
ii  preview-latex-style        0.9.1-1       LaTeX style files for editor embed
ii  tetex-bin                  2.0.2-30      The teTeX binary files
ii  tetex-extra                2.0.2c-8      Additional library files of teTeX

-- debconf information excluded




More information about the Pkg-lyx-devel mailing list