Math & ScienceEquations do not show up

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
s0126471
Posts: 6
Joined: Thu Sep 08, 2011 3:01 am

Equations do not show up

Post by s0126471 »

Hi,

I have used MikTex (2.5) + Texniccenter combo on my old laptop, and with the purchase of a new laptop I have installed MikTex 2.9 + Texniccenter on it. However, when I try to compile the .tex files (which compiled fine under MikTex 2.5), the equations are missing bits and pieces under MikTex 2.9.

I'm using \usepackage{txfonts}, which should still not be obsolete, and so I am stumped as to why this problem exists (the copy of the .tex file still compiles - with all the equations intact - under miktex 2.5).

Any ideas?

s0126471

Recommended reading 2024:

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

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

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

Equations do not show up

Post by localghost »

Check the log file for any irregularities like warnings or error messages. Provide a minimal example that reproduces this undesired behaviour clearly and attach the log file by upload to the forum server.


Best regards and welcome to the board
Thorsten
s0126471
Posts: 6
Joined: Thu Sep 08, 2011 3:01 am

Re: Equations do not show up

Post by s0126471 »

Hi,

Thanks for the quick response. I have attached the a minimal example .tex (although using \usepackage{txfonts}, as well as its output in .ps format.

There is a need for me to use txfonts (and not amsmath) for some of the gaudy mathematical formulae that I am using in my original .tex file, therefore just switching packages is not an option.

s0126471
Attachments
example.ps
Output using the txfonts package
(10.88 KiB) Downloaded 211 times
example.tex
(1.48 KiB) Downloaded 213 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Equations do not show up

Post by localghost »

With the log file the most important piece of information is still missing.
s0126471
Posts: 6
Joined: Thu Sep 08, 2011 3:01 am

Re: Equations do not show up

Post by s0126471 »

How do you get a .log file? When texniccenter builds/compiles, no .log file is outputted (as it compiles without any errors).
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: Equations do not show up

Post by localghost »

The log file is located in the same directory as your source file. Since you have PDF output, there should be a log file for this compilation.
s0126471
Posts: 6
Joined: Thu Sep 08, 2011 3:01 am

Re: Equations do not show up

Post by s0126471 »

Hi,

Its not PDF, its PS (postscript). Heres the list of files I get after a compile:

example.aux
example.bbl
example.blg
example.dvi
example.txt
example.ps
example.tex

I cant seem to figure out how to get the .log file.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Equations do not show up

Post by localghost »

s0126471 wrote:[…] Its not PDF, its PS (postscript). […]
Some files are generated independently of the build process. But really astonishing is that there is a *.txt file in your list. This is very unusual. Are you sure that this is really a file with this suffix? As far as i know files with the suffix *.log are concatenated with the Wind0ws editor and get the same icon as *.txt files. Please make sure which suffix this file really has. Nevertheless I suggest that you exactly attach this file to your next post.
s0126471
Posts: 6
Joined: Thu Sep 08, 2011 3:01 am

Re: Equations do not show up

Post by s0126471 »

A-ha, thanks localghost. Windies have masked the icon as that of a Text Document, hence I naively assumed this to be in .txt format.

Nevertheless, I attach the log file to this post.
Attachments
example.log
(9.66 KiB) Downloaded 191 times
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Equations do not show up

Post by localghost »

Although your example works fine for me, turn on the right font encoding for Postscript Type 1 fonts.

Code: Select all

\usepackage[T1]{fontenc}
Nevertheless you should use the amsmath package. It just enhances math typesetting, thus makes life easier. But it's better to load amsmath before txfonts.
Post Reply