MiKTeX and proTeXtSome typical problem using LaTeX

Information and discussion about MikTeX distribution for Windows and the related proTeXt: Installing, updating, configuring
Post Reply
Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Some typical problem using LaTeX

Post by Cylian »

Hi Guys,

I am a newbie to LaTeX, and I have some questions regarding LaTeX. Those are as follows:

  • 1. I want that the width of a table would as same as the text width of a document.
  • 2. How could I install a font manually, I've read the "fontinst.pdf", which comes with MikTeX 2.7, and I got succeed making "*.tfm", "*.vf" and "*.fd" files from "*.afm" files. But, my question is that where to put those files, as the manual gives a hint, but doesn't cleared it at all. And FYI that I want to install "Janson Text Roman".
  • 3. If there any package that could help me writing multilingual documents.


Please provide me some code/complete syntax, that could do my job done, as I am very little known with the language. I would be greatly obliged if somebody help.

Thanks in advance. :)

Regards,
Cylian


Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Some typical problem using LaTeX

Post by localghost »

Cylian wrote: 1. I want that the width of a table would as same as the text width of a document.
Use the tabularx package and refer to its documentation to learn about how tables are typeset in the desired way.
Cylian wrote: 2. How could I install a font manually, I've read the "fontinst.pdf", which comes with MikTeX 2.7, and I got succeed making "*.tfm", "*.vf" and "*.fd" files from "*.afm" files. But, my question is that where to put those files, as the manual gives a hint, but doesn't cleared it at all. And FYI that I want to install "Janson Text Roman".
Since I never have been in a comparable situation of creating and installing a font, I can only give small hints as links where you can see the directory structure of the corresponding files for a font [1]. Take a look into the subdirectories or the ZIP archives. Perhaps some Information about fonts names is also useful [2]. That's all I can offer for the moment.

[1] Index of ftp://tug.ctan.org/pub/tex-archive/fonts/psfonts/
[2] Filenames for TeX fonts
Cylian wrote: 3. If there any package that could help me writing multilingual documents.
This is definitely a job for babel. Refer to its documentation to learn more.


Best regards and welcome to the board
Thorsten¹
Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Re: Some typical problem using LaTeX

Post by Cylian »

Thanks a lot, Thorsten.

My first problem been solved, but it arises a new prob, I could not control the length of "\hline". If there any special command to control its length.

And regarding "Babel", I wanna say, I got exactly what I want, thanks again, Thorsten.

But, my font problem still is there as it before. Let me clear it once more, here it goes:
I want to install "JansonText-Roman"(pjnr8a) font for my LaTeX system, as my windows knows it very well. So, as per as documented in "intro98.pdf" located at "../MiKTeX 2.7/doc/fontinst/manual/", I created "*.tfm", "*.vf" and "*.fd" files from "*.afm" files reference to p. 7(intro98.pdf). And after creating those output font files I have to put those in some special folder are also referenced there at p. 8(intro98.pdf). But, here it the prob arises where to put those "*.fd" files as there is no such directory like ".../tex/latex/psfonts/"...

Can you help me to get out of the chaos...? Thanks in advance... :)
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Some typical problem using LaTeX

Post by localghost »

Cylian wrote:[...] My first problem been solved, but it arises a new prob, I could not control the length of "\hline". If there any special command to control its length. [...]
You could use the \cline command from standard LaTeX. Good looking tables are produced with booktabs. The documentation introduces the \cmidrule command and tells you how to get things work. At the moment I have no solution for the font problem, but I will go on with my research. Perhaps anybody else is able to help.
Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Re: Some typical problem using LaTeX

Post by Cylian »

Thanks Thorsten, for your suggestion. But, it is compatible "tabularx" package, as I am following your suggestion and using "tabularx" to maintain table width.

Anyway thanks again for giving your valuable time for me and to find out my prob. :)
piticu
Posts: 3
Joined: Sat Aug 02, 2008 1:30 am

Some typical problem using LaTeX

Post by piticu »

booktabs is compatible with tabularx.
The *.fd files should go in the same place as the *. sty files, inside the latex folder. For a general guideline about what/where to put files you may read the TeX Directory Structure document.
Cylian
Posts: 6
Joined: Tue Aug 26, 2008 11:33 am

Re: Some typical problem using LaTeX

Post by Cylian »

Thanks Piticu, for your suggestion and a valuable link.
But, in fact my font problem been solved. After reading the book "fontinstallationguide.pdf", which comes with MikTeX 2.7 (complete), I got the way to get my job done.

Actually, the thing I did wrong repeatedly is that, to create only "*.tfm", "*.vf" and "*.fd". And I never thought about "*.map" files or "*.sty" files, which are very much related to that specific font (Janson Text).

I think have to learn more. Anyway thank you all. :)
Post Reply