We help IT Professionals succeed at work.

LaTeX question

dryzone
dryzone asked
on
I have been writing a lot of documents in LaTeX, in fact, all my documents are LaTeX even my faxes.
I was totally bowled out when somebody at Darmstadt Technische Hochschulle sent me a ".dtx" file which supposedly can be compiled to produce dvi output or such.
I could not find much documentation on .dtx /TeX format.

The question is therefore: Show me how to compile a file XYZ.dtx for viewable output.  
Comment
Watch Question

Peter KwanAnalyst Programmer

Commented:
.dtx are documented LaTeX source files. You can use latex <your .dtx file> to compile to dvi.

Author

Commented:
Nope that was obviously the first thing I tried and doesnt work it just purges out a lot of crap.
I will try again and come back to you with the exact error message.

Author

Commented:
The .dtx file and the stylesheets are available for my site at
http://www.accudry.org/visitors
username and password      
"visitor"

I dont know, cannot compile it although the psotscript proofs are available as proof.
Peter KwanAnalyst Programmer

Commented:
Hello,

I cannot access your site. It returns 404 (File not found error).

Author

Commented:
Accessed it right now.

I could log in.
Use the link in the comment above  and visitor as both username and password.
You will nbe prompted twice.

Author

Commented:
Accessed it right now.

I could log in.
Use the link in the comment above  and visitor as both username and password.
You will nbe prompted twice.
Commented:
Hi,
  I think you need to install the docstrib module in order to extract the dtx files (http://www.tex.ac.uk/cgi-bin/texfaq2html?question=37).

K.

Author

Commented:
Ok downloaded it. Just another side-issue.
TeX and LaTeX is very rickity where it reads files.
If you e.g. dump new sty files in
/usr/share/texmf/tex/latex/base/
LaTeX and TeX refuses to see this style file if yoyu include /usepackage and other sty inputs in your LaTeX preamble, even if you set the permissions to 777 on that file it does not find it.
How can I force LaTeX and TeX to at least read it's own directories and stylefiles.

Since I need to move the stylefiles and dtx to directories for permanent use, where must they go as the abovementioned problem prevents LaTeX and TeX to read them. Surely I dont want to copy all stylefiles and dtx to my working directory all the time.

Author

Commented:
Ok downloaded it. Just another side-issue.
TeX and LaTeX is very rickity where it reads files.
If you e.g. dump new sty files in
/usr/share/texmf/tex/latex/base/
LaTeX and TeX refuses to see this style file if yoyu include /usepackage and other sty inputs in your LaTeX preamble, even if you set the permissions to 777 on that file it does not find it.
How can I force LaTeX and TeX to at least read it's own directories and stylefiles.

Since I need to move the stylefiles and dtx to directories for permanent use, where must they go as the abovementioned problem prevents LaTeX and TeX to read them. Surely I dont want to copy all stylefiles and dtx to my working directory all the time.

Author

Commented:
Ok downloaded it. Just another side-issue.
TeX and LaTeX is very rickity where it reads files.
If you e.g. dump new sty files in
/usr/share/texmf/tex/latex/base/
LaTeX and TeX refuses to see this style file if yoyu include /usepackage and other sty inputs in your LaTeX preamble, even if you set the permissions to 777 on that file it does not find it.
How can I force LaTeX and TeX to at least read it's own directories and stylefiles.

Since I need to move the stylefiles and dtx to directories for permanent use, where must they go as the abovementioned problem prevents LaTeX and TeX to read them. Surely I dont want to copy all stylefiles and dtx to my working directory all the time.
Question(s) below appears to have been abandoned. Your options are:
 
1. Accept a Comment As Answer (use the button next to the Expert's name).
2. Close the question if the information was not useful to you. You must tell the participants why you wish to do this, and allow for Expert response.
3. Ask Community Support to help split points between participating experts, or just comment here with details and we'll respond with the process.
4. Delete the question. Again, please comment to advise the other participants why you wish to do this.

For special handling needs, please post a zero point question in the link below and include the question QID/link(s) that it regards.
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt
 
Please click the Help Desk link on the left for Member Guidelines, Member Agreement and the Question/Answer process.  Click you Member Profile to view your question history and keep them all current with updates as the collaboration effort continues, in the event new items have been created since this listing was pulled.

http://www.experts-exchange.com/jsp/cmtyHelpDesk.jsp

To view your open questions, please click the following link(s) and keep them all current with updates.
http://www.experts-exchange.com/questions/Q.20239047.html
http://www.experts-exchange.com/questions/Q.20243305.html
http://www.experts-exchange.com/questions/Q.20253381.html
http://www.experts-exchange.com/questions/Q.20256799.html
http://www.experts-exchange.com/questions/Q.20262965.html




PLEASE DO NOT AWARD THE POINTS TO ME.  
 
------------>  EXPERTS:  Please leave any comments regarding this question here on closing recommendations if this item remains inactive another three days.
 
Thank you everyone.
 
Moondancer
Moderator @ Experts Exchange


P.S.  For any year 2000 questions, special attention is needed to ensure the first correct response is awarded, since they are not in the comment date order, but rather in Member ID order.

Author

Commented:
I did not get any answer about why LaTeX refuses to read stylefiles put in it's path.
I cannot allocatwe the pointsd until this is not sorted out
Sounds fair, indeed.  Recomend you give this a few more days and if nothing transpires, request a refund so you can ask it again to draw current attention.  If you choose that route, just post a zero point Q in the Community Support topic area with that request and the link to this thread.

Hopefully, you'll get what you need quickly.

Thanks for responding.

Moondancer - EE Moderator

Commented:
dryzone, are you saying that you get this problem with normal .tex files or just .dtx ones?  I think you might need to run texhash?  Look at this page for some ideas
http://www.ctan.org/installationadvice/



Moondancer, I don't think you're right on this one - seems that kyrmit gave an answer that allows dryzone to do what they want.  dryzone introduced the issue of path reading as a "side-issue".  I think the original Q was answered.  But please don't flame me for suggesting so  :-)

Author

Commented:
Well that used to be a side issue, since at the core of the problem seems to lie the fact that LaTeX refuses to read any .sty  when dropped into any of the  LaTeX style directories.
In fact I am convinced that .dtx will not survive under such trouble...so unfortunately LaTeX refusing to read it's own styles (curiously new ones only and yes permissions is set even to 777).
So I am abandoning .dtx altogether as it clearly does not work and prefer to rather focus on LaTeX and the sty problem.

Commented:
I suspect the sty problem is dealt with in the site I linked to above - did you read the section that starts

"4. If needed, update your filename database. If you try to use your new package and get a `... not found' error then probably you forgot this step."

If that isn't it, could you tell us exactly what the problem is, because adding new styles works fine on my machine (without chmodding my machine to openness :-)

PS: Your original question contained the text "The question is therefore: Show me how to compile a file XYZ.dtx for viewable output."  It is _my opinion_ that kyrmit answered this for you, but as I say, what do I have to do with it?

Author

Commented:
If you read my response That DID NOT work!
and I ABOLISHED dtx and will never use it as it is not giving LaTeX the good name it deserves.

But since you insist I will give the points to kyrmit.
the problem with this is however that Kyrmit gave good advice but it DID NOT WORK. If Expert's exchange want to derive funds off this advice at a later stage or write a book or FAQ or something....this section will be useless as I now agreed to an answer which was infact incorrect and many people will be mislead.
What Moondancer would like is that we are honest with whether it would help or not.
But so be it as I will continue with LaTeX and never use dtx so to me it is irrelevant whether the result is actually usable.  

Author

Commented:
Left with no option but to accept a wrong/ineffective answer.
See previous correspondence.

Commented:
I'm not a moderator - I thought I made it clear that I was only expressing an opinion, while also trying to deal with your problem.  I do not think that kyrmit's answer was wrong or ineffective - you found out what a dtx file was and what you had to do to it to produce a workable sty file.  _Using_ those sty files is IMHO a different matter.  Sorry that I've gone on about this, but it is usually the system here to ask one question, grade it and then ask another.  I thought you were not doing this, so I piped up.

So, to the problem you're having, did you read the advice on the site?  Did that fix the problem, or is there something else you're having problems with?  Let's be friendly here, apologies for any ruffled feathers   :-)

http://www.ctan.org/ctan/install.html
The goal here is to respond to questions asked as quickly as possible and to help Asker achieve the desired goal.  In addition, the information added here has indeed added quality information to this question.  I am sending this link to another Moderator for a second opinion.

Moondancer - EE Moderator

Author

Commented:
Moral issues should not stand in the way of having an outcome which will be of the benefit of the person
1) asking the question.
2) Making sure that other users can use our effort and use these pages.

Just think how irrate someone will become if they give up some of their points to obtain this information and find it is ineffective.
a) creating user dissatisfaction
b) creating a bad name for eexchange

Please note, that I parted with the points and did not withdraw the question. As requested I forwarded the points to the person as nominated by the latest participant.
I therefore view this matter as closed although the matter was not resolved

EExchange has been a great help to me but leave large holes regarding all these "morality issues".
I prefer to have accurate data generated other people can use as this is the feature EE presents as a service.
If no accuracy....why bother?
I can't find any particular fault with the existing resolution of this question, although I'd have preferred the points were refunded and the question closed. This will go into the archives as one of those "you'll find out a lot more about what you don't need, rather than what you do need" questions, and the C grade is appropriate for that. Moderators can't "unaccept" an answer, so this one will have to stay accepted.

This question, in my opinion, is archetypical of the essential "problem" with Experts Exchange: None of the Experts who responded to dryzone's question could see exactly what was going on with dryzone's specific set of circumstances. Similarly, dryzone can't be bashed for asking what, to him, seemed a very simple question, even though the question then led to another one.

That the question turned out to be more complicated, and that the resolution to dryzone's question was to avoid the inquired-about files, is totally beside the point.

As Experts, part of resolving questions here is taking the time to find out what, exactly, is happening; the old email joke about the service tech who discovered that a customer couldn't get email because the computer wasn't plugged in MUST be recognized as having a grain of truth. Askers who come here are looking for a quick solution (I know I am when I ask a question) -- so we have to be prepared for three things.

First, we have to be prepared to be a little psychic; we have to use our knowledge to figure out not only the solution, but to interpret the question.

Second, we have to be prepared for the fact that if a question isn't answered fairly quickly, it's likely that it will be abandoned. I don't think anyone who comes here uses EE as his/her sole source of information (there's always the advice to RTFM).

Third, we have to be patient with users (and them with us). Like it or not, in my not-so-humble opinion, being an Expert here isn't about the points -- it's about customer service.

One last thought, and this is more for dryzone, and then I'm hopefully off the soapbox for the rest of the day: Just because a Moderator leaves you a note asking you to resolve your questions, that doesn't mean you MUST close them. In this case, Moondancer would have left it to you to decide how to resolve; believe it or not, we try to be accommodating, because you're our customer as much as the Experts are. On the other hand, it's perfectly within the rules to reward someone who tries (and fails) to help; I can't count the number of times someone has gotten the answer "You can't" and gotten pissed, but sometimes, "You can't" is the only valid answer.

Just my thoughts,

Netminder
CS Moderator

Author

Commented:
To Netminder.
All in order. Since this will not be for other users use, allow me to sound off. I did not allocate the points because I felt I was under pressure to do so or got p'd off. Neither do I have any "bones to pick". I was put under moral questioning and it was clear that morality will be debated instead of  the issue at hand. I therefore allocated the points as requested to get out. Simple as that. The worst solusions I have seen at EE usualy went wrong when moral issues gets raised/entered. The questions usually just die there. We need to solve problems and forget about whodunnit according to a 3rd party.
From my side I honestly cannot help it that the original problem turned out to be the side issue as mentioned and think the politics regarding that are unfounded. I also do not believe that someone else can decide for me when my problem is solved.

Otherwise:
--------
I think you underestimate the power of EE and the need to keep these archives accurate.  
That is normal to underestimate  if you are the creator or involved yourself.
e.g. Ahoffmann (Hats off-- & to my knowledge your most professional expert) actually solved problems, neither RH Tech support could solve with their own distribution or  could another professional who I contracted do. His answers/help converted to real money for me. Things agents just could not solve.
Again I feel you underestimate the value and the need for accurate documentation at EE. You should consider to have cases published in book form or any form which can derive funds for you. It would not only (possibly) generate the income you deserve, but also tighten up to enable us to make sure problems are resolved. I dont think your TRUE customers will object. We just need to keep EE open and to get problems resolved.

Anyway, I am getting out.
Bye.