473,327 Members | 1,997 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Big latex subscript using python.sty and manual.cls

Dear list,

I am writing a manual for my python extension using Python (2.4) latex
classes. Everything seems to be fine except that the subscripts are as
big as normal text ( see page 55 of
http://bp6.stat.rice.edu:8080/simuPOP_doc/userGuide.pdf ). I doubt that
the following piece of code in python.sty is causing the problem but can
not fix it. (I get errors when commenting out this block of code.) Does
anyone know what is happening here?

Note that the subscripts are OK if I use other classes like report.cls.

Many thanks in advance.

Bo

%%%%% in python.sty %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This gets the underscores closer to the right width; the only change
% from standard LaTeX is the width specified.

\DeclareTextCommandDefault{\textunderscore}{%
\leavevmode \kern.06em\vbox{\hrule\@width.55em}}

% Underscore hack (only act like subscript operator if in math mode)
%
% The following is due to Mark Wooding (the old version didn't work with
% Latex 2e.

\DeclareRobustCommand\hackscore{%
\ifmmode_\else\textunderscore\fi%
}
\begingroup
\catcode`\_\active
\def\next{%
\AtBeginDocument{\catcode`\_\active\def_{\hackscor e{}}}%
}
\expandafter\endgroup\next
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Jul 18 '05 #1
0 1563

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: David Eppstein | last post by:
Does anyone have an implemented Python codec for converting between unicode and LaTeX markup? E.g. I'd like 'ï' to be converted to '{\"\i}' and vice versa. Preferably including at least the Latin...
7
by: John Hunter | last post by:
Are there any tools that can be used to process python code and generate LaTeX/TeX output with syntax highlighted code? John Hunter
3
by: Brian Elmegaard | last post by:
Hi group I hope this is not a faq... I try to understand how to use the new way of specifying a files encoding, but no matter what I do I get strange characters in the output. I have a...
0
by: simon | last post by:
Hi, We have a requirement for latex math (eg. $\sum_i x_i$) in our documentation, and i'm looking at patching epydoc to handle this. We have been using the python doc system (also used by...
4
by: schwehr | last post by:
Hi All, Does anyone have a good template that I might use for writing a python paper in latex/bibtex? I've got the paper mostly done, but am having issues with the references. I am definitely...
8
by: fortuneteller | last post by:
Hello, I'm quite new to python and Scipy. Anyway I want to use it to plot graphs. Does anybody know if there is the possibility to use Latex in SciPy's plotting functions like gplt? Thanks...
2
by: Ezequiel, Justin | last post by:
> Anyone parsing simple LaTeX constructs with pyparsing? Greetings Tim, Have always wanted a way to parse LaTeX myself. Unfortunately, I have been moved to a different project. However, I am...
0
by: Ramdas | last post by:
Any HTML to Latex module available in Python which I can use to convert HTML text to Latex Ramdas
2
by: =?ISO-8859-1?Q?Michael_Str=F6der?= | last post by:
HI! I had a look on how Doc/ is organized with Python 2.6. There are files with suffix .rst. Hmm... I'm maintaing existing docs for python-ldap which I might have to convert to the new...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.