TeX Live and MacTeXPlain TeX, AmS-TeX, and self made formats in TeXLive

Information and discussion about TeX Live distribution for all platforms (Windows, Linux, Mac OS X) and the related MacTeX: installing, updating, configuring
Post Reply
Ruslan_Sharipov
Posts: 2
Joined: Sun Jan 09, 2011 9:59 pm

Plain TeX, AmS-TeX, and self made formats in TeXLive

Post by Ruslan_Sharipov »

I am running TeXLive-2009-10 in Ubuntu 10.10 for x86. I need to use plain TeX and AmSTex formats along with LaTeX. Also I have my own formats ShrPlain and ShrAmsTex designed for using cyrillic fonts and hyphenation with Plain and AmS. They are succesfully used with MikTeX on Windows for many years. Now I need to mount them into TeXlive. Please, help me do it with your instructions. Also I would be grateful if you instruct me how to produce a Debian package for submitting it into repositories.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Plain TeX, AmS-TeX, and self made formats in TeXLive

Post by frabjous »

"I am running TeXLive-2009-10

Are you using TeXlive 2009 or 2010? How did you install them?

Either way, I'm sure you probably already have plain TeX, LaTeX and the AMS (La)TeX packages all ready to use.

As for your custom stuff, your description is too vague. What do you mean "format"? Are these document classes, style files, or what? What kinds of files are they

Most likely, if you made a custom TeX Directory Structure for use with MikTeX, you can just copy it over to ~/texmf/ on Ubuntu and run (from the terminal):

Code: Select all

texhash $HOME/texmf
(and perhaps "sudo texhash" as well...) and you'll be all set
User avatar
T3.
Posts: 208
Joined: Fri Mar 14, 2008 12:58 pm

Plain TeX, AmS-TeX, and self made formats in TeXLive

Post by T3. »

You should ask for help on the TeX Live mailing list.
Ruslan_Sharipov
Posts: 2
Joined: Sun Jan 09, 2011 9:59 pm

Plain TeX, AmS-TeX, and self made formats in TeXLive

Post by Ruslan_Sharipov »

frabjous wrote:Are you using TeXlive 2009 or 2010?
Synaptic reports 2009-10, see screen shot attached
screen.jpg
screen.jpg (44.01 KiB) Viewed 6634 times
I installed it throuch Synaptic from http://mirror.yandex.ru/ubuntu

I have latex ready to use through Texmaker. I need plain Tex and AmsTex, not AmS subpackages within latex. Probably I have them, but don't know how to run and configure.


As for your custom stuff, your description is too vague. What do you mean "format"?

These are source files:
shramsppt.sty and shramstex.tex for AmSTeX
shrdefs.tex and shrplain.tex for Plain.tex

You can download them in Mik.zip through my site http://freetextbooks.narod.ru/rsharipov ... ussian.htm

They should be compiled by INITEX for to produce *.fmt files. I know how to do it in MikTex, but don't know in TexLive.
frabjous wrote:Most likely, if you made a custom TeX Directory Structure for use with MikTeX, you can just copy it over to ~/texmf/ on Ubuntu and run (from the terminal).
Thank you. I will try.
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Plain TeX, AmS-TeX, and self made formats in TeXLive

Post by frabjous »

Synaptic reports 2009-10, see screen shot attached
That's TeXlive 2009. The "10" there refers to the number of the package build, not the version of TeXlive used. TeXlive 2010 is not available through the Ubuntu package management system.
I have latex ready to use through Texmaker. I need plain Tex and AmsTex, not AmS subpackages within latex. Probably I have them, but don't know how to run and configure.
amstex is included in the Ubuntu package texlive-math-extra. You should be able to run it from the commandline just as "amstex <filename>". If you are asking about how to set up Texmaker to use it, then I'd ask about that in the texmaker forum. (It would probably be easier doing it with texmakerx fork, which is more customizable; with regular texmaker, you'll probably just need to change the name of the command under Options > Configure Texmaker > Commands.)
These are source files:
shramsppt.sty and shramstex.tex for AmSTeX
shrdefs.tex and shrplain.tex for Plain.tex
I think the following should work. Create a subfolder of your $HOME or ~ folder called texmf, and subdirectory of that called tex, and a subdirectory of that called either amstex or generic, as required. You can do this from the terminal in one step:

Code: Select all

mkdir -p ~/texmf/tex/plain
mkdir -p ~/texmf/tex/amstex
Copy those files into those directory in the appropriate places.

You'll need run:

Code: Select all

texhash ~/texmf
(You may also need to run "sudo texhash"; not sure.)

Then the files should be available to the system.
They should be compiled by INITEX for to produce *.fmt files. I know how to do it in MikTex, but don't know in TexLive.
I think initex is the same as running tex with the -ini option, so "tex -ini" is the same as "initex". I don't really have experience with this, but I think you should be able to do it. I don't think this practice is at all commonplace anymore. But see "man tex" (from terminal), "texdoc initex" (for an explanation of "what's happened to initex"), and the TeXlive documentation if necessary.
Post Reply