Active Topics

 



Notices


Reply
Thread Tools
Posts: 65 | Thanked: 113 times | Joined on Mar 2011 @ Austria
#1
Getting TeX Live (LaTeX) on the maemo platform (again)
TeX Live is a free software distribution for the TeX typesetting system

SOLVED - SUCCESS REPORT IS IN POST #3 - GO TO POST #3 (HERE) to read, how I successfully setup "TeX (LaTeX) on maemo" Fremantle CSSU Thumb2 N900!

_____________________________________________
TeX Example: "A Weekly Timetable" #4

_____________________________________________





ORIGINAL REQUEST POSTING FOLLOWS BELOW, for reference only:

This is a request for help. Who can do handle such an endeavor or point to the right way to solve the installation of an older version?


There was a previous thread having setup TeX Live 2009 on N900. The original poster is no longer with the N900 community.

Trying to install it this TeX Live Maemo 2009 version, produced this error:

PANIC: unprotected error in call to Lua API (zlib library version does not match - header: 1.2.3, library: 1.2.7)
Apparently a known issue [see for example this post] - it requires to recompile texlive with the current zlib version.

More code output follows in regards to the error message when trying to install texlive (2009):
Code:
  
~$  LANG=en dpkg --configure -a
Setting up texlive-base (2009-7maemo6) ...
Running mktexlsr. This may take some time... done.
Building format(s) --all --cnffile /etc/texmf/fmt.d/10texlive-base.cnf.
	This may take some time... 
fmtutil-sys failed. Output has been stored in
/tmp/fmtutil.XXturSVC
Please include this file if you report a bug.

dpkg: error processing texlive-base (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 texlive-base
Additional links for compiling texlive:
maemo-pkg / texlive-bin git of 2009
(unsure if it is helpful though)


Attached: full error message, as reported above.
Attached Files
File Type: zip fmtutil.XXturSVC.zip (2.3 KB, 89 views)

Last edited by scy; 2014-09-03 at 11:58. Reason: Changed title and added references to postings 3 (for solution steps) and 4
 

The Following 6 Users Say Thank You to scy For This Useful Post:
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#2
I guess you have CSSU installed and there is another zlib version.
You can try to do this:

1. copy "zlib.so.1.2.3" to "/usr/lib" or where you like to copy it...
2. bind old above new
Code:
mount --bind /usr/lib/zlib.so.1.2.3 /usr/lib/zlib.so.1.2.7
3. reconfigure package
Code:
dpkg --configure texlive-base && dpkg --configure texlive-latex-base
4. unbind file
Code:
umount /usr/lib/zlib.so.1.2.7
But I guess when using latex you also need to bind the old zlib so it can read some configs. You can try and you will see
Attached Files
File Type: zip libz.so.1.2.3.zip (34.8 KB, 92 views)
 

The Following 4 Users Say Thank You to Halftux For This Useful Post:
Posts: 65 | Thanked: 113 times | Joined on Mar 2011 @ Austria
#3
Tex Live (LaTeX) on Maemo

Successfully installed TeX Live 2009 (see the thread TeX Live 2009 port to N900, with the additional help of Halftux who provided a zlib library for my CSSU-Thumbs2 Fremantle N900.

Usage commands
* pdflatex TeX_on_maemo.tex
* lp TeX_on_maemo.pdf # or view it with a pdf viewer


Prerequisite
* libz.so.1.2.3 (provided by "Halftux"), unpack
Code:
~$ cp libz.so.1.2.3 /usr/lib
~$ mount --bind /usr/lib/libz.so.1.2.3  /usr/lib/libz.so.1.2.7
~$ 
~$ apt-get install texlive
~$ apt-get install cups-client  # for printing only
-> reboot or unmount /usr/lib/libz.so.1.2.7

Note: I use CSSU thumb 2, for me it was required to successfully setup texlive 2009 (see above)

Setup cups for printing remotely
* in /etc/cups/client.conf # see thread "Printing with N900"
Code:
ServerName <your-local-cups-server>

Example Document
* TeX_on_maemo.tex

Code:
\documentclass{article}
\title{TeX on maemo}
\author{the talk.maemo.org community}
\date{August 2014}
\begin{document}
  \maketitle
 Hello m\ae mo World! 
\end{document}
 

The Following 7 Users Say Thank You to scy For This Useful Post:
Posts: 65 | Thanked: 113 times | Joined on Mar 2011 @ Austria
#4
Example of TeX on N900 maemo: "Weekly Timetable"

To simply create a weekly schedule, this template is useful. I found it at https://github.com/pklaus/timetable.


Timetable Tex sample code
timetabletemplate.tex
Code:
\documentclass[a4paper,10pt]{report}

% Definitions
\usepackage{lscape}
\usepackage[left=40mm,right=20mm,top=15mm,bottom=15mm]{geometry}
\usepackage{timetable}

\begin{document}
\thispagestyle{empty}
\begin{landscape}
\noindent\printheading{Timetable Schedule / ``see https://github.com/pklaus/timetable`` {\tiny (Version 2014-09-02)}}

% Define the layout of your time tables
\setslotsize{3.5cm}{0.22cm}
\setslotcount {5} {56}
\settopheight{3}
\settextframe{0.8mm}

% Retro
%\setframetype[t]{1}
%\seteventcornerradius{0pt}

% Print timestamps into event blocks
\setprinttimestamps{2}

% Define event types
\defineevent{type1}{0.0} {0.28}{1.0} {1.0}{1.0}{1.0}
\defineevent{type2}{1.0} {0.4} {0.2} {1.0}{1.0}{1.0}
\defineevent{type3} {0.8} {0.8} {0.2} {0.2}{0.2}{0.8}
\defineevent{type4}   {0.6} {0.8} {1.0} {1.0}{1.0}{1.0}
\defineevent{type5}       {0.21}{0.5} {0.16}{1.0}{1.0}{1.0}

% Start the time table
\begin{timetable}
  \hours{6}{15}{1}
%  \germandays{1}
  \englishdays{1}
  \event 1 {0800} {1200} {Morning Meeting}                  {maemo}        {N900 site}     {type1}
  \event 2 {1200} {1400} {Lunch}                  {The Tripple}        {Vienna}     {type2}
  \event 4 {1520} {1700} {Special Issues}                  {All}        {fremantle}     {type3}
  \event 5 {1320} {1400} {Event}                  {Person}        {Room}     {type4}
\end{timetable}
\end{landscape}
\end{document}

Code to convert tex document to pdf:
Code:
pdflatex timetabletemplate.tex
The result will be a PDF document (similar to the image below)

First, you need to install the timetable.sty to your tex path *:

Manual installation of TeX style file
Code:
mkdir /home/opt/maemo/usr/share/texmf-texlive/tex/latex/timetable
cp timetable.sty /home/opt/maemo/usr/share/texmf-texlive/tex/latex/timetable
ln -s /home/opt/maemo/usr/share/texmf-texlive/tex/latex/timetable  /usr/share/texmf-texlive/tex/latex/timetable
texhash                 #       to let the tex installation know where timetable.sty can be found.
*Note: You might be able to skip manual installation,
by simply putting the timetable.sty in the same directory
where your timetabletemplate.tex file resides.
Attached Images
 
 

The Following 4 Users Say Thank You to scy For This Useful Post:
Posts: 65 | Thanked: 113 times | Joined on Mar 2011 @ Austria
#5
Installation also works with above instructions when using CSSU-Testing, with this additional tweak:

Additionally I had to modify postinst instructions for three packages (commenting out optify instructions in texlive.postinst, texlive-latex-recommded.postinst and texlive-fonts-recommended.postinst).

Code:
cd /var/lib/dpkg/info
vi texlive-fonts-recommded.postinst 

go to the bottom with "G", on the last but one line it should say (note the hash sign # to comment out that line):

# optify "usr/share/doc/texlive-fonts-recommended"
I then did the same for the other 2 packages

P.S.: the error message received was "subprocess post-installation script returned error exit status 1" as it could not "mv" the docs out of /usr/share/doc/... as there are none.

Last edited by scy; 2014-10-15 at 16:32.
 

The Following 3 Users Say Thank You to scy For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 15:01.