LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-03-2008, 09:00 AM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
LaTeX to HTML - all on one page


I've marked up an organization's constitution and by-laws in LaTeX. It looks absolutely beautiful through pdflatex - Articles, Subsections, enumerated lists, etc.

Is there any program that will translate this into HTML that looks pretty much like the PDF? I tried latex2html, but that seems to make one page for every level of the document. Is there any way to force it all onto one page, i.e. looking just like the PDF?

Code:
\documentclass[11pt]{report}

\usepackage{fullpage}
\usepackage{array}
\usepackage{enumerate}

\renewcommand{\labelenumi}{(\arabic{enumi})}
\renewcommand{\labelenumii}{\alph{enumii}}
\renewcommand{\labelenumiii}{\roman{enumiii}}
\newcommand{\heading}[1]{{\subsubsection*{\hfill#1\hfill\phantom{tab}}}}
\newcommand{\PreserveBackslash}[1]{\let\ttemp=\\#1\let\\=\ttemp}
\let\PBS=\PreserveBackslash
\newcommand{\lefttblcol}{\PreserveBackslash\raggedright\hspace{0pt}}
\newcommand{\righttblcol}{\PBS\raggedleft\hspace{0pt}}
\newcommand{\centretblcol}{\PBS\centering\hspace{0pt}}
\newcolumntype{P}[1]{>{\lefttblcol}p{#1}}

\makeatletter
\renewcommand{\chapter}{\@startsection{chapter}{1}{0mm}{\baselineskip}{0.5\baselineskip}{\centering\sc\large}}
\renewcommand{\section}{\@startsection{subsection}{2}{0mm}{-\baselineskip}{0.5\baselineskip}{\normalfont\large\bf}}

\title{My Title}

\date{Last Revised December 2nd, 2008.}

\setcounter{tocdepth}{1}
 
Old 12-03-2008, 09:12 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 64
Pass the -split option to latex2html.
Code:
$ latex2html -split 0
Man pages are a wealth of information.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex to html abd_bela Debian 0 04-23-2007 02:09 PM
how to not display the page number in latex naihe2010 General 1 10-31-2006 04:32 AM
decreasing the page margin in a latex letter dvm General 3 04-25-2005 06:29 PM
Images in latex front page ObedientMonk Linux - Software 2 05-02-2004 09:24 AM
Images in latex front page ObedientMonk Linux - Software 0 04-30-2004 05:31 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration