The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM


Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to extract files one by one from a directory and let some processing happen saniya Shell Programming and Scripting 7 05-23-2008 03:58 AM
Processing on a list of files puneetla Shell Programming and Scripting 3 02-12-2008 05:48 AM
Two files processing moutaz1983 Shell Programming and Scripting 2 01-03-2008 09:32 AM
FTP and Files processing harish409 UNIX for Advanced & Expert Users 1 09-17-2007 06:12 AM
Processing files within a directory one by one skyineyes Shell Programming and Scripting 1 07-15-2007 10:44 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-15-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Stumble this Post!
Preparing LaTeX files using Sed/AWK for processing with latex2html

As the title states, my issue involves preparing LaTeX documents for processing with latex2html.

Within my LaTeX docs I have used a package which allows me to cleanly display source code listings. However the package is not supported by latex2html which, when processed, does not display the listing at all. An example of the command employed within a LaTeX doc is shown below:

Code:
\lstinputlisting[label=sc:rfdec,caption=RF Decipher]{source/rfdec.c}
I wish to substitute any occurances of the above lines into the following format:

Code:
\begin{verbatim}
\\ Filename: source/rfdec.c
\\ Coded by: ...
\\ Date:     ...
\\ Location: ...
#include <signal.h>
#include <time.h>

static void sig_rf(int)

int main(void)
{
  .
  .
  .
}
\end{verbatim}
\label{sc:rfdec}
Any suggestions?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-15-2005
vino's Avatar
Supporter (in vino veritas)
 

Join Date: Feb 2005
Location: Bangalore, India
Posts: 2,658
Stumble this Post!
Make use of the sed feature given in the links below.
5.5 Append, Insert, and Change
5.11 Reading and Writing Files
Reply With Quote
  #3 (permalink)  
Old 12-16-2005
Registered User
 

Join Date: Dec 2005
Posts: 2
Stumble this Post!
Nice one bud. Will look into them right away.
Reply With Quote
  #4 (permalink)  
Old 01-15-2008
Registered User
 

Join Date: Jan 2008
Posts: 1
Stumble this Post!
Quote:
Originally Posted by oski View Post
Nice one bud. Will look into them right away.
Did you find a solution to your problem? I am also looking for a way to use lst listings with latex2html so perhaps you can share your conversion script? Even when it would be incomplete, you could help me a lot.

Thanks a lot in advance,
Pieter
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:30 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0