After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 29506 - \input'able LaTeX2e export (with implementation suggestion)
\input'able LaTeX2e export (with implementation suggestion)
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: Main System
unspecified
Other other
: Low enhancement
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2000-10-26 16:25 UTC by hanwen
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description hanwen 2001-01-27 17:33:13 UTC
Package: gnumeric
Version: 0.57
Severity: wishlist

I would like to have LaTeX2e export in gnumeric that is easy to
include in normal latex files.  I include an TeX-based implementation
suggestion.

Suggestion: have gnumeric use the following template for exporting
LaTeX2e.

	% TeXbook ex 7.7
	\def\ifundefined#1{\expandafter\ifx\csname#1\endcsname\relax}
	\ifundefined{gnumericSheetHeader}
		\documentclass[11pt]{article}
		\usepackage{umlaut}
		\usepackage{color}
		\oddsidemargin -0.54cm
		\textwidth 17cm
		\parskip 1em
		\def\gnumericEndSpreadsheet{\end{document}}
		\def\gnumericSheetHeader#1{#1}
		\def\gnumericBeginSpreadSheet{\begin{document}}
	\else
		\def\gnumericEndSpreadsheet{}
		\def\gnumericBeginSpreadSheet{}        
	\fi

	\gnumericBeginSpreadSheet

	\gnumericSheetHeader{Sheet1}
	% the sheet itself
	\begin{tabular}{|l|}\hline
		 \textsf{1}
	\\\hline
	\end{tabular}

	\gnumericSheetHeader{Sheet2}

	% the sheet itself
	\begin{tabular}{|l|}\hline
		 \textsf{1}\\\hline
	\end{tabular}

	\gnumericEndSpreadsheet

You can run this through LaTeX directly, but if you define
\gnumericSheetHeader, you can also include it in a report, eg.  

	\documentclass{article}

	\begin{document}
	\def\gnumericSheetHeader#1{\textbf{#1}}

	\section*{Financial results}

	\input Book1

	\end{document}


-- 

Han-Wen Nienhuys   |   hanwen@cs.uu.nl    | http://www.cs.uu.nl/~hanwen/




------- Bug moved to this database by debbugs-export@bugzilla.gnome.org 2001-01-27 12:33 -------
This bug was previously known as bug 29506 at http://bugs.gnome.org/
http://bugs.gnome.org/show_bug.cgi?id=29506
Originally filed under the Gnumeric product and general component.

The original reporter (hanwen@cs.uu.nl) of this bug does not have an account here.
Reassigning to the exporter, debbugs-export@bugzilla.gnome.org.
Reassigning to the default owner of the component, jgoldberg@home.com.

Comment 1 Jody Goldberg 2001-02-01 20:45:07 UTC
Seems like a good idea, Hopefully the latex plugin maintainer can 
evaluate it.
Comment 2 Jody Goldberg 2001-10-29 07:40:54 UTC
Fixed in CVS.