Page 1 of 1
Latex/Kubuntu: Nassi–Shneiderman diagram
Posted: 09 Jan 2012, 18:03
by Spharx
This whole linux thing is driving me nuts ! For every single easy step I have to google hours to get a (rather frustrating) result

.
Now I am trying to make a Nassi–Shneiderman diagram with Gummi (laggy, buggy but close to real time pdf creation) and I don't get how or where I have to put in the xyling.sty package. I tried to put it into /usr/share/texmf/tex/latex/xyling/ and /usr/share/texmf-texlive/tex/latex/xyling/ but still the program throws out a error that the xyling pakacke is missing
Where do I have to put in the packages?? Why do I have 2 texmf folders ?
Posted: 09 Jan 2012, 18:09
by ripster
Shouldn't this be in the "Other Languages" subforum?
Posted: 09 Jan 2012, 18:30
by Minskleip
Have you tried ~/.texmf/tex/latex/xyling?
I think you can put it in your document root as well!
Posted: 09 Jan 2012, 19:08
by webwit
File permissions or security context?
Try
ls -l
and
ls --lcontext
in the directories where you found xyling.sty
Posted: 09 Jan 2012, 19:31
by Spharx
I have changed the package to nassi (nassflow) now and copied them to /usr/share/texmf/tex/latex/nassflow/ as root user.
ls -l shows this:
-rw-r--r-- 1 root root 5027 2012-01-09 19:03 nassi.sty
I found the problem I think: I should not jerk around as root. I need to install them either somewhere else or in a different way. I will try ~/.texmf/tex/latex/nassflow now and report back.
Posted: 09 Jan 2012, 19:45
by Lustique
Do you use the TeXLive offered by the Ubuntu guys?
Posted: 09 Jan 2012, 19:55
by Spharx
I copied the files into ~/.texmf/tex/latex/nassflow and defined TEXMF=~/.texmf/. Gummi still can't find the nassi.sty
The Variable evaporates after I close bash. How do I define it to be permanently ?
TeXLive is installed on my system but I don't really know if Gummi is using it. As "typsetter comand" is pdflatex selected.
Posted: 09 Jan 2012, 20:11
by Minskleip
You have to export it in ~/.bashrc or ~/.bach_profile or ~/.profile or something
It could be that you have to update some cache as well! Try putting the .sty in the same directory as your .tex files.
Actually, I suggest you scrap that 'buntu and try something that works, like Debian or OpenBSD. Did I tell you that I wrote my thesis on OpenBSD with Texlive? Never had a problem.
Posted: 09 Jan 2012, 20:21
by Lustique
Minskleip wrote:[...]Actually, I suggest you scrap that 'buntu and try something that works, like Debian or OpenBSD. Did I tell you that I wrote my thesis on OpenBSD with Texlive? Never had a problem.
Or just use the version from the TeX Live guys (TeX Live 2011). This way you do not have to work with a TeX system that's totally outdated.
Posted: 09 Jan 2012, 20:32
by Spharx
If I munch all files together everything works fine
Well at least now I can make this damn diagram. As it looks I will need a good book about latex because I cant do a thing here with intuition.
Why do you use TexLive ? Isn't Latex supposed to be easier than the old Tex ??
Witch editors do you use?
Posted: 09 Jan 2012, 20:34
by webwit
Not sure if ubuntu has SELinux, if it has and the permissions are right but security context is wrong, it still won't find it.
ls --lcontext
and
man chcon
Does gummi have access to the files with the security context you got?
It's one of the things I hate most about this class of linuxes. BSD for me!
You can check if it's the problem with:
setenforce 0
and try again
If you do that and have a chmod 777 on the file (and check the parent directory for permissions too) it should find it, or it's looking in the wrong place.
Posted: 09 Jan 2012, 20:42
by Minskleip
Spharx wrote:Why do you use TexLive ? Isn't Latex supposed to be easier than the old Tex ??
Witch editors do you use?
It's the most modern/uptodate/something Latex distribution. Latex is a macro package on top of Tex. There are others as well, like Context (or Contex?).
My editor is nvi

Posted: 09 Jan 2012, 20:46
by Lustique
Spharx wrote:[...]Why do you use TexLive ? Isn't Latex supposed to be easier than the old Tex ??
Witch editors do you use?
Yes, it probably is, but TeX Live is a (La)TeX distribution, so you do not have to use TeX (I never did, well, not directly, only LaTeX).
I switch between
Texmaker and Emacs with AucTeX, both are great, but Texmaker is way easier. I can most definitely recommend it.
Oh, and for LaTeX problems I can really recommend
http://tex.stackexchange.com/. You will probably get help really fast, sometimes even from the package authors themselves.

Posted: 09 Jan 2012, 20:48
by Lustique
Minskleip wrote:It's the most modern/uptodate/something Latex distribution. Latex is a macro package on top of Tex. There are others as well, like Context (or Contex?).[...]
... and LuaTeX, which is very promising, I think.

Posted: 09 Jan 2012, 21:45
by JBert
I seem to remember that I had to run texhash when I copied something to ~/texmf/tex/latex/<package name from sty file>/
Posted: 09 Jan 2012, 21:46
by Spharx
@webwit: The command ls --lcontext does not exist on my system.
Ansyways I have deleted all the mess before you posted
I will try other editors and maybe even freeBSD.
Thx guys for the help. Case closed for now
E:
@JBert that could be really the problem. I did read about it just some minutes ago. But I am to lazy for this now. Maybe I will try tomorrow.
Posted: 09 Jan 2012, 22:32
by Minskleip
Lustique wrote:Minskleip wrote:It's the most modern/uptodate/something Latex distribution. Latex is a macro package on top of Tex. There are others as well, like Context (or Contex?).[...]
... and LuaTeX, which is very promising, I think.

Tex implemented in Lua?
Posted: 09 Jan 2012, 23:00
by woody
Spharx wrote:@webwit: The command ls --lcontext does not exist on my system.
ls -l --context
or
ls -lZ
Posted: 09 Jan 2012, 23:08
by webwit
Or maybe even better, he doesn't have that crap!
Posted: 09 Jan 2012, 23:41
by Spharx
Redo it again:
- put in the package files as root in usr/share/texmf/tex/latex/nassflow/
- change the owner from root to my account
- chmod 777 on folder & files
install Texmaker -> viola it works
reinstall gummi -> also works
My conclusion: either texmaker, the owner change from root to a normal account or even a simple reboot did the job
This new OS will make me quiet some headaches in the next time
Also woodys commands work
Posted: 10 Jan 2012, 23:50
by Lustique
Minskleip wrote:Lustique wrote:Minskleip wrote:It's the most modern/uptodate/something Latex distribution. Latex is a macro package on top of Tex. There are others as well, like Context (or Contex?).[...]
... and LuaTeX, which is very promising, I think.

Tex implemented in Lua?
No, I think it's more like an advanced pdfTeX with a built-in Lua scripting engine. But I, more or less, only use it to be able to use OTF fonts.