Mailing List Archive

Support open source code!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tlug: Transitioning to Linux (was: Many Faces on Linux)



On Sep 30,  1:16pm, "Stephen J. Turnbull" wrote:
} Subject: Re: tlug: Transitioning to Linux (was: Many Faces on Linux)
>> 
>> I don't _think_ Jim Breen was talking about SGML, but I am.  

You're durn tooting I wasn't. What I use is a crude groff/troff/nroff
style markup to cut the key-strokes and fol-de-rol.

For example to put in a picture I have:

	#pic frog

In the HTML file this becomes: <P ALIGN=CENTER><IMG SRC="frog.gif"></P>

In the LaTeX file it becomes:

	\vspace{1cm}\centerline{\epsfbox{frog.ps}}

Similarly, to have an ordered list labelled a, b, c.. I have:

	#olst a
	#li whatever
	#olet

In HTML this becomes:

	<OL type="a">
	<LI>whatever
	</OL>

And in LaTeX:

	% At the front of the file
	...
	\newcounter{olst1}
	...

	\begin{list}{\alph{olst1}.}{\usecounter{olst1}\setlength{\rightmargin}{0mm}}
	\item whatever
	\end{list}

And so on.

In the unlikely event of anyone else actually wanting to use this, you
are welcome to the source and a brief doc file. It's in C.

Jim

-- 
Jim Breen        School of Computer Science & Software Engineering
Email: j.breen@example.com                Monash University
http://www.csse.monash.edu.au/~jwb/     Clayton VIC 3168 Australia
P: +61 3 9905 3298 F: 9905 3574 $B%8%`!&%V%j!<%s(J@$B%b%J%7%eBg3X(J
---------------------------------------------------------------
Next Meeting: 10 October, 12:30 Tokyo Station Yaesu central gate
Featuring the IMASY Eng. Team on "IPv6 - The Next Generation IP"
Next Nomikai: 20 November, 19:30  Tengu TokyoEkiMae 03-3275-3691
---------------------------------------------------------------
Sponsor: PHT, makers of TurboLinux http://www.pht.co.jp


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links