kerTeX for Porteus/Slackware

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

kerTeX for Porteus/Slackware

Post#1 by Tonio » 05 Mar 2012, 01:52

Dear folks,

I have stumbled across a new \TeX{} distro called KerTeX.

http://www.kergis.com/en/kertex.html

I tried to install straight to porteus and failed. I added ponce's flex and bison modules and still failed. I also have tried to build it in Slackware-current and failed as well. I have tried contacted several folks like Robby W. and vonbiber to see if they could help me build a Slackbuild for it so I can make a slackware/slax/porteus package for our latex friends, but have not gotten feedback. Anybody that can help find MATHLIB and LEXLIB for Slackware I would appreciate it.
TexLive is big for a portable linux distro like porteus and teTeX is too old and unmaintained. I have asked same question in slax forum to see if anyone out there is willing to help me create a slackbuild for native Slackware and create a module for porteus users. Thanks for any help/advice/comments and observations.
I am trying to build it on Porteus v1.1 x86_64 and have used flex and
bison modules

http://ponce.cc/porteus/x86_64/modules/ ... 6_64-2.xzm

http://ponce.cc/porteus/x86_64/modules/ ... 6_64-2.xzm

Devel modules posted at ponce's repository:
http://ponce.cc/porteus/x86_64/modules/development/

I first erred building as root :(, then I get MATHLIB missing :(
did not see this

Code: Select all

``
When files have to be installed, I will have to switch under root.
Once, for kerTeX install. Once, for the installation of dumps and
compiled fonts.

Don't run me as root now! (R.I.S.K. and the kerTeX package framework
will refuse.)

''

rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/C_posix
rkconfig:  Checking MAKE: found (make)
rkconfig:  Checking SHELL: found (/bin/sh)
rkconfig:  Checking CC: found (gcc)
rkconfig:  Checking AR: found (ar)
rkconfig:  Checking LEX: found (/usr/bin/flex)
rkconfig:  Checking YACC: found (/usr/bin/yacc)
rkconfig:  Checking CLIB: not found!
rkconfig:  Checking MATHLIB: not found!
rkconfig:  Checking LEXLIB: not found!
rkconfig:  There were 3 libes not found! Stop!
rkconfig:
rkconfig:  CLIB is missing:
rkconfig:
CLIB
       The standard ISO C/POSIX compliant library `libc'

rkconfig:
rkconfig:  MATHLIB is missing:
rkconfig:
MATHLIB
       The standard ISO C/POSIX compliant math library `libm'

rkconfig:
rkconfig:  LEXLIB is missing:
rkconfig:
LEXLIB
       The library provided by the LEX program, `libl' or `libfl' if `flex'
       is installed and the symlink libl.a has not been made to libfl.a

rkconfig:
I don't know which packages provide these needed files. I have a
slackware current machine, but I need to build a package aka like a
slackbuild, this way I can make a ready made package and convert it to
xzm(porteus' package management)

http://slackbuilds.org/

These are tex related slackbuilds:

http://slackbuilds.org/result/?search=tex&sv=13.37

most big one of course is texlive:

http://slackbuilds.org/repository/13.37/office/texlive/

I had this package built one time(Texlive 2010) but have not built it
for new 2011 version. This package is big and thus I consider a
better deal is to make a KerTeX.slackbuild to build kerTeX and make a
package for it. I contacted a person who likes to TeX/LaTEX, but he
has not responded in advising me how to build/make a kerTeX package
for Slackware/porteus.

errors below:

Code: Select all

guest@porteus:~/Downloads$ ls
get_mk_install.sh*
guest@porteus:~/Downloads$ ./get_mk_install.sh

This script is for a Unix like OS.

Be sure to run me in a dir where there is enough place for the
sources unpacked (40 Mb will do; I will _not_ remove the bundle).

During the build, don't be afraid of some compiler warnings: these
are purely cosmetic ones, because the translation of Pascal in C
don't put extra braces when indenting if/else; or because D.E. Knuth
and Silvio Levy have written the CWEB programs so that they can compile
even on pre-ANSI C compilers (old prototypes).

Don't worry: if something is really wrong, the build fails...

I will build in SAVE_SPACE mode, requiring the minimal amount of
place.

When files have to be installed, I will have to switch under root.
Once, for kerTeX install. Once, for the installation of dumps and
compiled fonts.

Don't run me as root now! (R.I.S.K. and the kerTeX package framework
will refuse.)

Which version of the install doc do you want (en|fr)? [en] en
--2012-02-26 16:42:42--  http://downloads.kergis.com/README
Resolving downloads.kergis.com (downloads.kergis.com)... 213.186.33.4
Connecting to downloads.kergis.com
(downloads.kergis.com)|213.186.33.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 31497 (31K) [text/plain]
Saving to: `README'

100%[======================================>] 31,497      75.6K/s   in 0.4s

2012-02-26 16:42:43 (75.6 KB/s) - `README' saved [31497/31497]

--2012-02-26 16:42:43--  http://downloads.kergis.com/kertex_bundle.tar
Resolving downloads.kergis.com (downloads.kergis.com)... 213.186.33.4
Connecting to downloads.kergis.com
(downloads.kergis.com)|213.186.33.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10137600 (9.7M) [application/x-tar]
Saving to: `kertex_bundle.tar'

100%[======================================>] 10,137,600   451K/s   in 24s

2012-02-26 16:43:08 (415 KB/s) - `kertex_bundle.tar' saved [10137600/10137600]

rkconfig:  config pathname
/home/guest/Downloads/kertex_M/conf/KERTEX_M entered in cache
rkconfig:  config pathname
/home/guest/Downloads/risk_comp//sys/posix/lib/rkcomp entered in cache
rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/rkcomp
rkconfig:  config pathname
/home/guest/Downloads/risk_comp//sys/posix/lib/T_linux entered in
cache
rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/T_linux
rkconfig:  config pathname
/home/guest/Downloads/risk_comp//sys/posix/lib/M_linux entered in
cache
rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/M_linux
rkconfig:  config pathname
/home/guest/Downloads/risk_comp//sys/posix/lib/C_gcc entered in cache
rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/C_gcc
rkconfig:  config pathname
/home/guest/Downloads/risk_comp//sys/posix/lib/C_posix entered in
cache
rkconfig:  Sourcing /home/guest/Downloads/risk_comp//sys/posix/lib/C_posix
rkconfig:  Checking MAKE: found (make)
rkconfig:  Checking SHELL: found (/bin/sh)
rkconfig:  Checking CC: found (gcc)
rkconfig:  Checking AR: found (ar)
rkconfig:  Checking LEX: found (/usr/bin/flex)
rkconfig:  Checking YACC: found (/usr/bin/yacc)
rkconfig:  Checking CLIB: not found!
rkconfig:  Checking MATHLIB: not found!
rkconfig:  Checking LEXLIB: not found!
rkconfig:  There were 3 libes not found! Stop!
rkconfig:
rkconfig:  CLIB is missing:
rkconfig:
CLIB
       The standard ISO C/POSIX compliant library `libc'

rkconfig:
rkconfig:  MATHLIB is missing:
rkconfig:
MATHLIB
       The standard ISO C/POSIX compliant math library `libm'

rkconfig:
rkconfig:  LEXLIB is missing:
rkconfig:
LEXLIB
       The library provided by the LEX program, `libl' or `libfl' if `flex'
       is installed and the symlink libl.a has not been made to libfl.a

rkconfig:
make: *** No targets specified and no makefile found.  Stop.
guest@porteus:~/Downloads$

Code: Select all

olivares@tricore:~/Downloads$ ./get_mk_install.sh

This script is for a Unix like OS.

Be sure to run me in a dir where there is enough place for the
sources unpacked (40 Mb will do; I will _not_ remove the bundle).

During the build, don't be afraid of some compiler warnings: these
are purely cosmetic ones, because the translation of Pascal in C
don't put extra braces when indenting if/else; or because D.E. Knuth
and Silvio Levy have written the CWEB programs so that they can compile
even on pre-ANSI C compilers (old prototypes).

Don't worry: if something is really wrong, the build fails...

I will build in SAVE_SPACE mode, requiring the minimal amount of
place.

When files have to be installed, I will have to switch under root.
Once, for kerTeX install. Once, for the installation of dumps and
compiled fonts.

Don't run me as root now! (R.I.S.K. and the kerTeX package framework
will refuse.)

Which version of the install doc do you want (en|fr)? [en] en
ftp: http://downloads.kergis.com/README: Unknown server error
ftp>
ftp>
ftp>
ftp>
ftp> x
?Invalid command
ftp> exit
ftp: http://downloads.kergis.com/kertex_bundle.tar: Unknown server error
ftp> quit
Getting the bundle failed...
olivares@tricore:~/Downloads$ ls
autologin* autologin.c get_mk_install.sh*
olivares@tricore:~/Downloads$ cp get_mk_install.sh get_mk_install.sh.old
olivares@tricore:~/Downloads$ mcedit get_mk_install.sh

olivares@tricore:~/Downloads$ sed -i 's|ftp|wget|g' get_mk_install.sh
olivares@tricore:~/Downloads$ ./get_mk_install.sh

This script is for a Unix like OS.

Be sure to run me in a dir where there is enough place for the
sources unpacked (40 Mb will do; I will _not_ remove the bundle).

During the build, don't be afraid of some compiler warnings: these
are purely cosmetic ones, because the translation of Pascal in C
don't put extra braces when indenting if/else; or because D.E. Knuth
and Silvio Levy have written the CWEB programs so that they can compile
even on pre-ANSI C compilers (old prototypes).

Don't worry: if something is really wrong, the build fails...

I will build in SAVE_SPACE mode, requiring the minimal amount of
place.

When files have to be installed, I will have to switch under root.
Once, for kerTeX install. Once, for the installation of dumps and
compiled fonts.

Don't run me as root now! (R.I.S.K. and the kerTeX package framework
will refuse.)

Which version of the install doc do you want (en|fr)? [en] en
--2012-03-04 16:27:05-- http://downloads.kergis.com/README
Resolving downloads.kergis.com (downloads.kergis.com)... 213.186.33.4
Connecting to downloads.kergis.com
(downloads.kergis.com)|213.186.33.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 32165 (31K) [text/plain]
Saving to: `README'

100%[======================================>] 32,165 75.1K/s in 0.4s

2012-03-04 16:27:06 (75.1 KB/s) - `README' saved [32165/32165]

--2012-03-04 16:27:06-- http://downloads.kergis.com/kertex_bundle.tar
Resolving downloads.kergis.com (downloads.kergis.com)... 213.186.33.4
Connecting to downloads.kergis.com
(downloads.kergis.com)|213.186.33.4|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 10147840 (9.7M) [application/x-tar]
Saving to: `kertex_bundle.tar'

100%[======================================>] 10,147,840 404K/s in 25s

2012-03-04 16:27:33 (399 KB/s) - `kertex_bundle.tar' saved [10147840/10147840]

rkconfig: config pathname
/home/olivares/Downloads/kertex_M/conf/KERTEX_M entered in cache
rkconfig: config pathname
/home/olivares/Downloads/risk_comp//sys/posix/lib/rkcomp entered in
cache
rkconfig: Sourcing /home/olivares/Downloads/risk_comp//sys/posix/lib/rkcomp
rkconfig: config pathname
/home/olivares/Downloads/risk_comp//sys/posix/lib/T_linux entered in
cache
rkconfig: Sourcing /home/olivares/Downloads/risk_comp//sys/posix/lib/T_linux
rkconfig: config pathname
/home/olivares/Downloads/risk_comp//sys/posix/lib/M_linux entered in
cache
rkconfig: Sourcing /home/olivares/Downloads/risk_comp//sys/posix/lib/M_linux
rkconfig: config pathname
/home/olivares/Downloads/risk_comp//sys/posix/lib/C_gcc entered in
cache
rkconfig: Sourcing /home/olivares/Downloads/risk_comp//sys/posix/lib/C_gcc
rkconfig: config pathname
/home/olivares/Downloads/risk_comp//sys/posix/lib/C_posix entered in
cache
rkconfig: Sourcing /home/olivares/Downloads/risk_comp//sys/posix/lib/C_posix

rkconfig: Checking MAKE: found (make)
rkconfig: Checking SHELL: found (/bin/sh)
rkconfig: Checking CC: found (gcc)
rkconfig: Checking AR: found (ar)
rkconfig: Checking LEX: found (/usr/bin/flex)
rkconfig: Checking YACC: found (/usr/bin/yacc)
rkconfig: Checking CLIB: not found!
rkconfig: Checking MATHLIB: not found!
rkconfig: Checking LEXLIB: not found!
rkconfig: There were 3 libes not found! Stop!
rkconfig:
rkconfig: CLIB is missing:
rkconfig:
CLIB
The standard ISO C/POSIX compliant library `libc'

rkconfig:
rkconfig: MATHLIB is missing:
rkconfig:
MATHLIB
The standard ISO C/POSIX compliant math library `libm'

rkconfig:
rkconfig: LEXLIB is missing:
rkconfig:
LEXLIB
The library provided by the LEX program, `libl' or `libfl' if `flex'
is installed and the symlink libl.a has not been made to libfl.a

rkconfig:
make: *** No targets specified and no makefile found. Stop.
olivares@tricore:~/Downloads$ uname -r
3.2.7
olivares@tricore:~/Downloads$ uname -a
Linux tricore 3.2.7 #2 SMP Fri Feb 24 17:41:25 CST 2012 x86_64 AMD
Phenom(tm) 8250e Triple-Core Processor AuthenticAMD GNU/Linux

The author of KerTeX is helping me build it for slackware. After success hopefully, I will see how I can build a package. Will ask for help in case it is needed. Thanks.

@Hamza
I did not know for sure what to use since I wrote comments inside of the code/quote.
Last edited by Tonio on 05 Mar 2012, 15:33, edited 1 time in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: kerTeX for Porteus/Slackware

Post#2 by Hamza » 05 Mar 2012, 13:12

Please use CODE tag instead of QUOTE one. It's for this use.
NjVFQzY2Rg==

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#3 by Tonio » 06 Mar 2012, 01:18

@Folks interested in KerTeX. I got it installed on Slackware 3.2.7 kernel amd64. However, I still need to get latex and other packages working. The author of KerTeX helped me with the MATHLIB, and other errors above. The KerTeX package installs to /usr/local/bin/KerTeX/ and the executables reside in their. The Slackbuild requirement would be to install the packages into /usr/bin, and looking into the task, it will be a big one. Nonetheless, I will try my best to ask for help. In my humble opinion, this teX/LaTeX distro should replace teTeX in slackware, since many folks say that TeXLive is too big :( but this will take a while to build. I believe a porteus based mathematical livecd would be something great to compete with the puppy Sage CD and KNOPPIX math :) Several packages like gnuplot, maxima, and others would be great to build and try to meet the criterion of not too big :) If you have any comments or observations, please let me know and I will see how we can get a slackbuild going :)

EDIT:
There is a url which may help us create a Slackware package see
Alien's SlackBuild Toolkit:

I have created such a script using AlienBob's web based tool, but need to test it and refine it so that I know that it will work for sure to build Slackware Package. But for now, That's all Folks!

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#4 by Tonio » 14 Mar 2012, 14:42

Dear folks,

I have not replied with good results yet :(, but we are working on it. A stumbling block has appeared:

http://porteus.org/forum/viewtopic.php?f=48&t=1124

Vonbiber has created a slaxbuild for KerTEX, but on slax forum. You may check it out in the meantime.

Regards,

Antonio

EDIT:
One needs flex, bison, ed, lftp from any repository which hosts slackware packages and/or build from source. I have achieved success with i486 version of porteus and built a package, using the tools referenced, and a kerted.Slackbuild available at

http://pastebin.com/QH9iVbd2
=======================================
EDIT:
Newer SlackBuild here:
http://pastebin.com/Csvt7krC
Q: What does this do over previous SlackBuild?
A: Adds kertex.sh to /etc/profile.d/ so that
tex, latex, dvips and other executables are found &
man paths are found

BTW,
there is a minor mistake/error. One file in
/usr/share/kertex/dvips/dvips.cnf, needs to change:

p +latxfont.map

to

p +latex.map

This will be fixed and hopefully a new build arises or
just a repacking with the corrected mistake.
EDIT: Quick fix
or a sed command run as root:

Code: Select all

 sed -i 's|+latxfont.map|+latex.map|g' /usr/share/kertex/dvips/dvips.cnf
check to see dvips.cnf has the change? why is this important? fonts will not be generated if they are missing :(

ALSO,
which tex/latex IDE, editor would be preferred by
Porteus users, kile, texmaker or texstudio?
I have built these for x86_64 Slackware, but not
yet tested on Porteus, any thoughts, ideas,
observations?
There is a readily available package for texmaker
it is a precompiled binary, might want to give it a
try.
NOTE:
No pdflatex, pdftex, for kertex. User advised to use
gs instead and use ps2pdf in case of wanted pdf
output. Also no dvi viewer. Dvi requires many
fonts, is it a good idea to make dvi viewer?
or just use dvips?
Thanks!
=======================================

There one would find what is needed, slack-desc, doinst.sh to build a package locally. Use this package and install it either with installpkg, or make a module(I prefer this way), then run

Code: Select all

/usr/bin/kertex/adm/pkg_core build
it does its work in the background. Come back to it, and run

Code: Select all

/usr/bin/kertex/adm/pkg_core install 
and it should build tex and other binaries successfully. You may check /tmp/ directory for a file kertex.tar.gz. You will be prompted for root password several times to install packages, build fonts, etc. Then you may download the rest of the packages from kertex website. Then the user (at their discretion want to add latex, graphics, cyrillic, babel, and amstex) from the kertex website. We would get all these packages, you can wget * them one at a time, or download them to your working directory.

http://downloads.kergis.com/pkg_amstex.sh
http://downloads.kergis.com/pkg_latex.sh
http://downloads.kergis.com/pkg_graphics@latex.sh
http://downloads.kergis.com/pkg_babel@latex.sh
http://downloads.kergis.com/pkg_cyrillic@latex.sh
http://downloads.kergis.com/pkg_cracs@latex.sh

These expand greatly the tex system as the plain one without these is just plain TeX{}. With a working sed like in i486 version or the fix by brokenman(see sed thread), the above commands should be executable

Code: Select all

$ chmod +x pkg_* 
, and run

Code: Select all

$./pkg_* install
as guest user. As root the scripts will fail. Ensuring that all modules are present, fireup all the commands and install all of them, when this is done(finished), the scripts amstex.tar.gz, kertex.tar.gz, latex.tar.gz, cracs.tar.gz, etc. will be present in /tmp/ directory. To make a package(kertex-*.tgz) with all these packages, you may make a new directory within /tmp/ name it pkg, ie,

Code: Select all

$mkdir -p /tmp/pkg 
Then copy(cp) or move(mv) all the tar.gz files there to this package and build the package with everything available as

Code: Select all

$ ls /tmp/pkg
kertex.tar.gz
latex.tar.gz
graphics@latex.tar.gz
..
make sure that kertex.SlackBuild is executable,

Code: Select all

chmod +x kertex.SlackBuild
and run (where kertex.SlackBuild is):

Code: Select all

 $ KERTEX_PKG_DIR=/tmp/pkg ./kertex.SlackBuild
and it will build a new kertex module [ kertex-0.9999.3.0-i486-1_ast.tgz or with x86_64-1] which can be converted to an xzm module for porteus :

Code: Select all

guest@porteus:/tmp$ tgz2xzm kertex-0.9999.3.0-i486-1_ast.tgz
kertex-0.9999.3.0-i486-1_ast.xzm
Verifying package kertex-0.9999.3.0-i486-1_ast.tgz.
Installing package kertex-0.9999.3.0-i486-1_ast.tgz:
PACKAGE DESCRIPTION:
Executing install script for kertex-0.9999.3.0-i486-1_ast.tgz.

==================================================================

                       You're done!
               Thank you for using KerTeX

You must now, as an _unprivileged_ user build the fonts and compile
the dump.

Just run:

       which_kertex

to see where stuff is installed. And then run:

       $KERTEX_BINDIR/adm/pkg_core install

Note that the man pages are put in kerTeX realm. So you will have to
add the paths (man.config(5)). This is so in order for you to test
different TeX distribution without one stepping on the others toes.

The path is displayed by which_kertex(1).

You should probably also edit dvips config to be found here:

$KERTEX_LIBDIR/dvips/dvips.cnf

to match the resolution and memory of your printer device, and to use
or not T1 version of Donald E. Knuth's Computer Modern Fonts.

==================================================================

Package kertex-0.9999.3.0-i486-1_ast.tgz installed.

Parallel mksquashfs: Using 3 processors
Creating 4.0 filesystem on /tmp/kertex-0.9999.3.0-i486-1_ast.xzm,
block size 262144.

Exportable Squashfs 4.0 filesystem, xz compressed, data block size 262144
       compressed data, compressed metadata, compressed fragments, compressed xattrs
       duplicates are removed
Filesystem size 27840.46 Kbytes (27.19 Mbytes)
       40.08% of uncompressed filesystem size (69460.30 Kbytes)
Inode table size 18156 bytes (17.73 Kbytes)
       23.47% of uncompressed inode table size (77344 bytes)
Directory table size 17920 bytes (17.50 Kbytes)
       38.73% of uncompressed directory table size (46274 bytes)
Number of duplicate files found 24
Number of inodes 2394
Number of files 2324
Number of fragments 144
Number of symbolic links  0
Number of device nodes 0
Number of fifo nodes 0
Number of socket nodes 0
Number of directories 70
Number of ids (unique uids + gids) 3
Number of uids 2
       root (0)
       guest (1000)
Number of gids 3
       root (0)
       wheel (10)
       guest (1000)

root@porteus:/tmp# activate kertex-0.9999.3.0-i486-1_ast.xzm
Updating shared library links:  /sbin/ldconfig
root@porteus:/tmp# which_kertex

KERTEX_VERSION=0.9999.3.0
KERTEX_HOST=linux-i686-3.1.8-porteus
KERTEX_SHELL=/bin/sh
KERTEX_BINDIR=/usr/bin/kertex
KERTEX_LIBDIR=/usr/share/kertex
KERTEX_MANDIR=/usr/share/kertex/man
KERTEX_USER0=root
KERTEX_GROUP0=wheel

root@porteus:/tmp# ls /usr/bin/kertex/
adm/        dvips       gftodvi     lib/        testarithm  vptovf
afm2tfm     dvitype     gftopk      mf          tex         weave
amstex      eamstex     gftype      mft         tftopl
bibtex      einitex     inimf       mpost       vftovp
ctangle     elatex      inimp       pltotf      virmf
cweave      etex        initex      pooltype    virmp
cwmerge     evirtex     latex       tangle      virtex
Missing is a file called kertex.sh that should reside in /etc/profile.d/ directory with PATH, so that users don't have to mess with these, like

Code: Select all

#!/bin/sh

echo '#!/bin/sh ' >> /etc/profile.d/kertex.sh
echo " " >> /etc/profile.d/kertex.sh
echo "PATH=\$PATH:/usr/bin/kertex" >> /etc/profile.d/kertex.sh
echo "MANPATH=\$MANPATH:/usr/share/kertex/man" >> /etc/profile.d/kertex.sh
echo
chmod +x /etc/profile.d/kertex.sh
I added this to slackbuild in between some sections and it appears to do the job :) but have to confirm with KerTeX author to see if is correct before I screw up :(

Need a little bit of time and patience for the 64 bit version, but this should work mostly. If it does not please let me know, and I'll see how I can help/and/or refer you to KerTeX's author who has been very helpful and I will confess that I have been a pest, a nuisance in trying to get this working. Hope that users that like Tex/Latex can make use of KerTeX in porteus.

Now I am not expert in using mediafire, or other services, if the interest is there, the Slackbuild can be used by the developers or a power user so the modules can be shared or I can send it to some place where they can host them :) This was one of my goals for a long time( to be helpful and to make modules that can be used by people for good causes ), since I could not make my very own livecd with linux-live scripts or other methods except the Fedora livecd creator, but that is another story :(

Best Regards to everyone. Thanks to all the folks that have made a difference to get kertex going on porteus and in slax :) On Slackware it is a done deal! Now how long will it take for more users to take notice? Vonbiber has posted in Linux Questions

http://www.linuxquestions.org/questions ... em-933854/

NOTES:
kertex package does not have xdvi(dvi viewer), pdftex, pdflatex, dvips with (-P pdf) but only

Code: Select all

$ dvips -t letter filename.dvi > filename.ps
works. Then to view within porteus, ghostscript module and ghostscript fonts module is recommended, or otherwise an online converter, but at users discretion. It(KerTeX) is a small system that can be expanded. Hope porteus, slax and Slackware users like it.

Questions, Comments, Concerns, please write and let me know.

Posted after 1 day 16 hours 13 minutes 2 seconds:
@all folks I have built packages for porteus. Please check them out:

kertex-0.9999.3.0-x86_64-1_ast.xzm (64 bit porteus)
http://www.mediafire.com/?bsugt9t9ql38pxh

kertex-0.9999.3.0-i486-1_ast.xzm (32 bit porteus)
http://www.mediafire.com/?1twe3bt1t4kjzfi

These are momentary links as I am not registered to mediafire. To complement these modules, it is recommended to get ghostscript modules from slackware repositories or build them from source. This way files can be viewed too! Reports, comments and observations are appreciated. :)

NOTE:
This modules are built using the SlackBuild provided on top of this thread and converted with tgz2xzm for use with porteus. If there are any errors they are mine and hopefully someone can let me know. If one tries to use the /usr/bin/kertex/adm/pkg_build funcionality, lftp, ed, bison & flex are needed, otherwise it might not work as advertised, except to install plain tex in case the executable is missing.
Also, if someone can mirror these or house these modules, it will also be greatly appreciated since users can have a portable tex system for porteus without big modules like texlive.

Thanks,

Antonio
Last edited by Tonio on 17 Mar 2012, 02:25, edited 2 times in total.

User avatar
brokenman
Site Admin
Site Admin
Posts: 5652
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: kerTeX for Porteus/Slackware

Post#5 by brokenman » 15 Mar 2012, 01:23

Appreciate your persistence and determination in getting this thing to work. If it wasn't for people like you (the i aint gonna quit till i get this type) this would probably never have come about. Good job!
How do i become super user?
Wear your underpants on the outside and put on a cape.

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#6 by Tonio » 18 Mar 2012, 18:22

brokenman wrote:Appreciate your persistence and determination in getting this thing to work. If it wasn't for people like you (the i aint gonna quit till i get this type) this would probably never have come about. Good job!
Thank you very much sir! And I also appreciate the fix that you provided to get it going for x86_64 porteus :)
With the kertex* module, + ghostscript + ghostscript fonts, one can have a small texing environment available for porteus. It was a goal I've had for years :) Just took long to achieve :( I've been unsuccessfull many times before and thankfully to all people who have helped, we have succeeded :) If there are no ghostscript modules and users need/want them, I can forward build scripts so these modules become more readily available. Now, the focus might shift to getting gnuplot, maxima, geogebra or other math related software and a TeX Editor[like kile, texmaker, tex studio, etc], but that is looking to get into 2nd base :) Maybe these utilites already exist in porteus repositories and users' don't need or require them?

Posted after 3 days 16 hours 35 minutes 8 seconds:
@all who have followed the thread. I have several points besides the ones I have made. It seems that few people are interested in a texing/latex environment? :(

For a dvi viewer, it is inconvenient to make one/include one. I tried to compile and install xdvi, and/or xdvik, but when these are executed, they require fonts and not all fonts are available, kpathsea is needed for these and for kdvi and they are more a part of tetex and/or texlive. KerTeX has dvips and with -G parameter will generate the fonts or substitute ones for these and make a pdf after with ps2pdf(a ghostscript module is required), okular, epdfviewer will view the pdf without problems.

For a tex editor, kile, texmaker, and tex studio(formerly texmakerx) exist, but the dependencies are something to take a look at and if the interest is not there?, why worry about it :o

It is a small portable texing/latex environment. For bigger projects, with many style files required, it will be cumbersome task to build with KerTeX, it will not be impossible, but it will take some work to do. :) Hope some folks have some input whether positive, negative, any with regards to the new texing/latexing environment now available for porteus? :unknown:
I am happy to undertand some more things about kertex, so any questions users will have I will try my best to answer them.

For graphics inclusion for tex files,
Place a line in your tex file

Code: Select all

\input epsf
then in your document a line like

Code: Select all

\epsfbox{fig.eps}
would include your eps figure (fig.eps) into your tex file. To convert the dvi file you may use dvips with the -G option to generate the ps(postscript) file and then can convert to pdf..
I did not know that one can include figures into tex files, and have used TeX/LaTeX since about late 90's. I found this out in
http://infohost.nmt.edu/~tcc/help/dtp/tex/epsfbox.html

To use LaTeX, including a line with

Code: Select all

\usepackage[dvips]{graphics}
will suffice. There are other enhancements, not available in KerTeX that expert LaTeXers/TeXNicians would use, but these may be added at a later time. :)

Just an FYI added to this thread in case it may help folks out there :wall:

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: kerTeX for Porteus/Slackware

Post#7 by Rava » 23 Mar 2012, 00:20

Tonio wrote:For a tex editor, kile, texmaker, and tex studio(formerly texmakerx) exist, but the dependencies are something to take a look at and if the interest is not there?, why worry about it :o
I once worked with a Similar-To - WYSIWYG editor for LaTex and this was the only time I really liked how a self written printout looked like. Just simple text with plain old Times font...

All Word-Like clones are light years apart from that. But me forgot what it'sd name was...

So, yes, me would like to have some more help with using TeX like an "Similar-To - WYSIWYG editor" ... Please.

So, all the rest can be installed already and runs fine?
Do you have some beta version module for others to check / look into uploaded somewhere already?
Cheers!
Yours Rava

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#8 by Tonio » 23 Mar 2012, 00:54

Rava wrote:
Tonio wrote:For a tex editor, kile, texmaker, and tex studio(formerly texmakerx) exist, but the dependencies are something to take a look at and if the interest is not there?, why worry about it :o
I once worked with a Similar-To - WYSIWYG editor for LaTex and this was the only time I really liked how a self written printout looked like. Just simple text with plain old Times font...

All Word-Like clones are light years apart from that. But me forgot what it'sd name was...
It was probably LyX.
http://www.lyx.org/
A slackbuild for LyX exists, but the requirements are teTeX/TeXLive :(
http://slackbuilds.org/repository/13.37/office/lyx/
It is a WYSISYM (What you see is what you Mean) editor, you don't have to know latex commands, to be able to use it :)
But this one will require much work to get it going :(, Don't know if I can complete the task? :oops:
So, yes, me would like to have some more help with using TeX like an "Similar-To - WYSIWYG editor" ... Please.

So, all the rest can be installed already and runs fine?
Do you have some beta version module for others to check / look into uploaded somewhere already?
kertex-0.9999.3.0-x86_64-1_ast.xzm (64 bit porteus)
http://www.mediafire.com/?bsugt9t9ql38pxh

kertex-0.9999.3.0-i486-1_ast.xzm (32 bit porteus)
http://www.mediafire.com/?1twe3bt1t4kjzfi
I don't know if these will be deleted or not since I don't have a mediafire account :( I may need to get one to host these modules or is someone ready to host them?
There is a new version of KerTEX now and with an official Slackbuild
http://downloads.kergis.com/kertex/kertex.SlackBuild
from the author :) I will need to build newer packages? There are some fixes with the fonts and some changes in the internal packaging system.

However, there is a new version that fixes some things and I will have to get my hands dirty to get up to par on the new one :)
It (KerTeX) lacks many bells and whistles that come with TeXLive and some even with TeTEX. However for a simple tex and/or latex document it does a good job in my opinion. I tried to install xdvi and xdvik from source but it asks for thousands of fonts that don't come with KerTeX :(, However, with the dvips -G option, those fonts will be generated and the output to ps(Postscript) and then to (pdf) are working fine. I can document some examples and post here or a simple introduction/howto on using TeX and/or LaTeX if I can't come up with an LyX module based on KerTeX, it seems a big task and I am not sure that I can complete it, I can do it in slackware, but for Porteus and add the missing things, it(Porteus) may become very big :(, this is what I am up against as well. Thoughts or ideas, should I try to build a LyX module for Porteus using KerTeX? or a how to use it, or put a kile module to use it as the tex/latex editor? and process documents with a short tutorial?

Best Regards & Thank you Rava for your thoughts

Antonio

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: kerTeX for Porteus/Slackware

Post#9 by Rava » 23 Mar 2012, 04:03

Thanks for all the info...

Could it be explained in short what the difference is between Tex and kerTeX? I know that LyX and teTeX/TeXLive is kind of a slang to TeX that makes it no longer TeX compatible (which is sup optimal, in my book)...

But never heard of kerTeX. Does it have a WYSISYM editor as well?
Cheers!
Yours Rava

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#10 by Tonio » 24 Mar 2012, 20:14

Rava wrote:Thanks for all the info...

Could it be explained in short what the difference is between Tex and kerTeX? I know that LyX and teTeX/TeXLive is kind of a slang to TeX that makes it no longer TeX compatible (which is sup optimal, in my book)...

But never heard of kerTeX. Does it have a WYSISYM editor as well?
TeX is the engine to typeset beautiful documents with mathematics in them created by Donald E. Knuth out of Stanford University. KerTeX is a new TeX/LaTeX distribution aimed at portability and running on many OSes.

http://wiki.contextgarden.net/TeX_Distributions

TeTeX [was a](is a) TeX/LaTeX distribution created by Thomas Esser which was found on many Linux Distributions which provides a TeX engine and several enhancements like LaTeX, pdflatex, pdftex, etc. Its development was stopped in 2006, it still ships by default in Slackware and in FreeBSD because TeXLive distribution is (too big).

KerTeX was created by Thierry Laronde from original sources by Donald E. Knuth. See the page:
http://www.kergis.com/en/kertex.html
[TeX] This program is copyright (C) 1982 by D. E. Knuth; all rights are reserved. Copying of this file is authorized only if (1) you are D. E. Knuth, or if (2) you make absolutely no changes to your copy. (The WEB system provides for alterations via an auxiliary file; the master file should stay intact.) See Appendix H of the WEB manual for hints on how to install this program. And see Appendix A of the TRIP manual for details about how to validate it. TeX is a trademark of the American Mathematical Society.

[METAFONT] This program is copyright (C) 1984 by D. E. Knuth; all rights are reserved. Copying of this file is authorized only if (1) you are D. E. Knuth, or if (2) you make absolutely no changes to your copy. (The WEB system provides for alterations via an auxiliary file; the master file should stay intact.) In other words, METAFONT is under essentially the same ground rules as TeX. METAFONT is a trademark of Addison-Wesley Publishing Company.
I like KerTeX in that it is small and has the basics in it. But if the request is there to see if LyX works with KerTeX, I will give it a try and see how it goes. I will first have to update the modules to latest versions, and then see if it can me to work. I have a kile package (in Slackware x86_64) but I have to see if it will work with Porteus as a module?

Posted after 1 day 7 hours 41 minute 52 seconds:
Dear folks,

I have updated kertex to newest version on x86_64 bit porteus v1.2rc1. I have successfully built lyx on porteus, but there are some caveats, it(lyx) looks for kpathsea? and it is not present, also menu entry is not created, it has to be executed from command line :( . It will create ps files and dvi files, but these have to be converted to pdf, in order to view them since kertex does not have dvipdfm, pdftex or pdflatex. It has dvips and with it one can convert to postscript. I tried to build kile, but it was unsucessfull, the one I built on Slackware does not work because of missing stuff

Code: Select all

guest@porteus:/tmp$ kile 
kile: error while loading shared libraries: libnepomuk.so.4: cannot open shared object file: No such file or directory
New Kertex module for porteus 64 bit [fixed glitch renamed /etc/profile.d/kertex.sh to /etc/profile.d/add-kertex-path.sh to avoid confusion with kertex.sh which resides in /usr/share/kertex/pkg/ ], also added ams@latex, AMS Latex packages from new script in kerTeX main page:
http://downloads.kergis.com/kertex/ams@latex.sh

Kertex 64 bit module: kertex-0.9999.4.0-x86_64-1_ast.xzm click below
http://www.mediafire.com/?c42imiaxlcx5on6
Ghostscript 64 bit
http://www.mediafire.com/?2ys9d8o244d8eo0
Ghostscript fonts STD
http://www.mediafire.com/?dt8b7n805y66m56
LyX module [proof of concept not yet optimal :( ], built from Slackbuild, and converted with tgz2xzm.
http://www.mediafire.com/?wge1pm231cmnq1c

Will work on new i486 modules as soon as I can, and post here again.

EDIT:
Noticed a small glitch and I corrected this on i486, will need to repack x86_64 kertex module. There is a file called kertex.sh in /usr/share/kertex/pkg/, it is conflicting with the other one I created to setup paths automagically, I am renaming the one in /etc/profile.d/ to add-kertex-path.sh to avoid problems. New i486 module has been created :
EDIT2:
NEW* amslatex package has been added to kertex. also /etc/profile.d/add-kertex-path.sh instead of kertex.sh which is another file in kertex system.

kertex i486 module: kertex-0.9999.4.0-i486-1_ast.xzm
http://www.mediafire.com/?ao539aqnm4692pv

I appreciate comments, questions, concerns. Thanks to all who are interested in kertex :)

EDIT:

For an tex/latex editor, I have not succeeded yet with one on porteus except for LyX. Although I have found that a portable version of texmaker exists and can do the job. Several changes will need to be made in the execution of latex/tex remove the -interaction=nonstopmode since that is not available with kerTeX :( yet!
http://www.xm1math.net/texmaker/download.html
32 bit
http://www.xm1math.net/texmaker/texmaker_linux32.tar.gz
64 bit
http://www.xm1math.net/texmaker/texmaker_linux64.tar.gz
I have tested 64 bit version and it works as advertised. If it does not check out the download page.
Last edited by Tonio on 26 Mar 2012, 01:29, edited 9 times in total.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: kerTeX for Porteus/Slackware

Post#11 by Hamza » 24 Mar 2012, 20:45

That would be good to place your wonderful modules on Module Section of the relevant architecture. :)
NjVFQzY2Rg==

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#12 by Tonio » 24 Mar 2012, 21:23

Hamza wrote:That would be good to place your wonderful modules on Module Section of the relevant architecture. :)
@Hamza,
As soon as I am sure that the modules have a stamp of approval. I posted here in Development section as we were working on developing them. I apologize if it is not correct. Maybe better when kertex hits 1.0 status?
What do you think?

Regards,

Antonio

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: kerTeX for Porteus/Slackware

Post#13 by Hamza » 24 Mar 2012, 22:21

@Tonio,
It's up to you. :)
NjVFQzY2Rg==

User avatar
Rava
Contributor
Contributor
Posts: 1319
Joined: 11 Jan 2011, 02:46
Distribution: Porteus 3.1.0 x86-64 XFCe
Location: Germany

Re: kerTeX for Porteus/Slackware

Post#14 by Rava » 26 Mar 2012, 02:29

Thanks for the updates, Tonio ...

I will check it out as soon as I have some free time for that... and then give you the info in here. :)
Cheers!
Yours Rava

Tonio
Contributor
Contributor
Posts: 266
Joined: 28 Dec 2010, 16:37
Distribution: Slackware,porteus,FreeBSD,Slax
Location: 127.0.0.1

Re: kerTeX for Porteus/Slackware

Post#15 by Tonio » 31 Mar 2012, 17:45

@all,

a small glitch was found when using dvips -G (to generate the fonts) the process appear[ed](s) to hang because of some special case. The fix is to create a file KXPATH in /usr/share/kertex/fonts/mf, as following:

Code: Select all

echo ';ams;' >> /usr/share/kertex/fonts/mf/KXPATH
as root user, because as regular user|guest it will not work

Code: Select all

guest@porteus:~$ echo ';ams;' >> /usr/share/kertex/fonts/mf/KXPATH
bash: /usr/share/kertex/fonts/mf/KXPATH: Permission denied
guest@porteus:~$ su -
Password: 
root@porteus:~# echo ';ams;' >> /usr/share/kertex/fonts/mf/KXPATH
In case anyone is interested in checking this out, try first without adding this fix and try to latex a book. Do the following:

Code: Select all

wget http://www.math.usf.edu/~eclark/elem_num_th_book.tex
wget http://math.bard.edu/bloch/verbatim.sty
wget http://www.cs.nyu.edu/~khot/latex/fancybox.sty
wget http://www.econ.uiuc.edu/~facchini/cecilia/enumerate.sty
run

Code: Select all

$ latex elem_num_th_book.tex
$ latex elem_num_th_book.tex
$ dvips -G -t letter elem_num_th_book.dvi > elem_num_th_book.ps
The process will hang unless you use CTRL+C. If you apply the fix, it will work as it should.

Hang in there, I will try my best to keep up with updates & newer releases.

Have fun TeXing & LaTeXing :)

Posted after 3 days 18 hours 51 minute 11 seconds:
UPDATE:
A new minor release has taken place and two new scripts to add fonts to latex have been added:

http://downloads.kergis.com/kertex/lm@latex.sh
and
http://downloads.kergis.com/kertex/ec@latex.sh
Have been added, but I hope folks don't mind waiting for newer release to add these things and add these new packages :)
2012-03-30 : two more packages: Latin Modern and EC fonts.

Two supplementary packages (scripts provided by Mark van Atten), for the Latin Modern fonts and the EC fonts, mainly used with LaTeX.
Any thoughts/ideas/observations? Your input is greatly appreciated and valued!

Post Reply