LaTeX forum ⇒ 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
Ruslan_Sharipov
Posts: 2
Joined: Sun Jan 09, 2011 9:59 pm

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

Postby Ruslan_Sharipov » Sun Jan 09, 2011 10:20 pm

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.

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

Postby frabjous » Sun Jan 09, 2011 11:48 pm

"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):

  1. 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

Postby T3. » Mon Jan 10, 2011 1:36 am

You should ask for help on the TeX Live mailing list.

Ruslan_Sharipov
Posts: 2
Joined: Sun Jan 09, 2011 9:59 pm

Postby Ruslan_Sharipov » Wed Jan 12, 2011 7:27 am

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 3810 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/MikTeX/Russian.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

Postby frabjous » Wed Jan 12, 2011 8:03 am

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:

  1. mkdir -p ~/texmf/tex/plain
  2. mkdir -p ~/texmf/tex/amstex


Copy those files into those directory in the appropriate places.

You'll need run:

  1. 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.


Return to “TeX Live and MacTeX”

Who is online

Users browsing this forum: No registered users and 1 guest