Alyda ?

De domainnaam www.alyda.nl is actief sinds december 2004.

 
TeX
TeX, a free markup language.

TeX is a free markup language mostly used for writing books or scientific articals. They say once you used TeX you never want something else. In this chapter you will find a discription how to install TeX together with supporting programs and a tutorial.
As shell we use TeXnixCenter. TeXnixCenter contains an editor and command buttons which enables you to quickly create a DVI, postscript (PS) and/or PDF document.


Installation:

Download the following programs:
- Miktex (basic-MikTex)  http://www.miktex.org/
- TexnicCenter installer.  http://www.toolscenter.org/
- Gsview (gsv48w.exe) http://www.cs.wisc.edu/~ghost/gsview/
- Ghostscript (gs853w32.exe) http://www.cs.wisc.edu/~ghost/doc/AFPL/get853.htm
- Example

Install Miktex
Run basic-miktex-2.5.2545.exe -> accept the MikTeX copying conditions -> Install MikTeX for evryone using the computer -> use default installation folder -> Preferred paper: A4 and select “Ask me first” for installation of missing packages -> Start

Install TexnicCenter
Run TXCSetup_1Beta7_01.exe -> install TexnicCenter in the default folder -> select a typical installation -> name the shortcut folder “TexnicCenter” -> install

Install Gsview
Run gsv48w.exe -> click setup -> select English -> next -> next -> associate Postscript files with Gsview -> install into c:\program files\Ghostgum ->

Install Ghostscript
Run gs853w32.exe -> click setup -> install into c:\program files\gs, tag “Install Ghostscript Fonts”  -> install

Configuration 
Start TexnicCenter. The first time the Configuration Wizard will appear. Enter as full path the location that contains the latex and tex executables: c:\Program Files\MikTeX 2.5\miktex\bin -> path of the PDF-viewer c:\program files\adobe 7.0\acrobat\acrobat.exe-> do not enter a command line option preventing the viewer starting multiple instances -> do not enter a command line option that causes the viewer to display a paragraph belonging to a given source line. -> Finish the Configuration Wizard.

In TexnixCenter go to Build -> Define Output Profiles -> select "LaTeX => DVI" -> select the Viewer tab -> tag in the view project output section "Command line option" and enter as command: -1 "%bm.tex" "%bm.dvi"
In the Forward Search section tag "Command line option" and enter as command: -1 -s %l"%bc.tex" "%bm.dvi"
Enable spelling check when typing: Start TeXnicCenter goto Tools -> Options -> label Spelling -> tag “Check spellig while typing” -> Ok

Defining TeXnixCenter Output Profiles
I've created three profiles, LaTex => DVI, LaTeX => PS and LaTeX => PS => PDF. The "Settings.tco" file contains all three profiles. When downloaded start TeXnicCenter go to Build -> Define Output Profiles, click on the Import button and select the tco file. IMPORTANT: untag the "Remove directory specifications from paths" option. If you leave the tag all programs used by TeXCenter should be set in the PATH variable.
Or when you have time to spare you can enter each setting by hand by simpling following the guidelines below. In TexnixCenter go to Build -> Define Output Profiles and Add profiles.
Some examples (included in the Settings.tco file):

LaTeX => DVI

 Image
 Image
 Image
 

LaTeX => PS

 Image  Click to enlarge
 Image 
 Image 

 LaTeX => PS => PDF

Image  Click to enlarge
 Image 
 Image 
 Image 

Yap
- To enable inverse search (double click inside yap goes back to the right spot in the tex file): run Yap, goto View menu -> Options -> Inverse search -> Command line and enter: C:\Program Files\Texniccenter\texcntr.Exe /ddecmd "[goto('%f', '%l')]"
- View -> Options -> goto label “Display” -> change default render method to “Dvips”
- View -> Options -> goto label “Inverse DVI search” -> select the highlighted line “TeXnicCenter (auto-detected)” -> Ok

Example
Finally, everything is installed and now you want to see if it works. I've provided an example for you that contains a TeX file and EPS picture. Download the example and place it somewhere in a directory. Start TeXnixCenter go to File and select the TeX file. Select to required profile, i.e. LaTeX => PS => PDF, and press first Ctrl+F7. The example file uses refences. TeX needs a two pass compile in order to resolve all references. Next press Ctrl+Shift+F5 (build and view). Again TeX starts compiling but now it will also show the PDF version of your document, pictures included.

Errors

Image 

This is a common error and it indicates that the file which needs to be opened is not there. What to do?
- check if all paths are included in the profile settings for each program that is used. It is, for example, possible that your gswin32c.exe program is located in another directory.
- try to run each seperate profile option from within a DOS-command window. If the command fails you will see why.

In one occassion I've noticed that an user couldn't compile the TeX examples properly. Small lines would appear on the places where text should be visable. What helped was repairing MiKTex. The user needs to go to the Control Panel -> Add or Remove program -> select MiKTeX -> click on "Click here for support information" and click on Repair.
Note: no administrative rights needed.

Image

 
© 2020 www.alyda.nl
Joomla! is Free Software released under the GNU/GPL License.