> 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 still very much interested.
Did you ever get a reply? 2 4144 "Ezequiel, Justin" <j.********@spi tech.com> wrote in messagenews:ma******* *************** *************** **@python.org.. . 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 still very much interested. Did you ever get a reply?
Hi Justin,
Yes, I did, from the pyparsing forum on Sourceforge. Paul's responses are
excellent and his help for my simple needs really got me started. http://pyparsing.sourceforge.net/
For now I'm working on a tag translator to convert from one LaTeX tagset to
another, which is a pretty simple task compared to writing a full parser
like pyLaTeX http://pylatex.sourceforge.net/
--Tim
"Tim Arnold" <ti****@sas.com > writes: For now I'm working on a tag translator to convert from one LaTeX tagset to another, which is a pretty simple task compared to writing a full parser like pyLaTeX http://pylatex.sourceforge.net/
You might check out the LyX project. They use python for their
scripting, and have tools to convert LaTeX to LyX's TeX-like
format. Then again, they may not have anything you can use.
<mike
--
Mike Meyer <mw*@mired.or g> http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lukas Holcik |
last post by:
Hi everyone!
How can I simply search text for regexps (lets say <a
href="(.*?)">(.*?)</a>) and save all URLs(1) and link contents(2) in a
dictionary { name : URL}? In a single pass if it could.
Or how can I replace the html &entities; in a string
"blablabla&blablabal&balbalbal" with the chars they mean using
re.sub? I found out they are stored in an dict . I though about this functionality:
|
by: Tim Arnold |
last post by:
Anyone parsing simple LaTeX constructs with pyparsing?
I'm playing around with it (and looking at John Hunter's matplotlib stuff),
but I thought I'd ask here if anyone had other TeX/LaTeX examples.
thanks,
--Tim Arnold
|
by: the.theorist |
last post by:
Hey, I'm trying my hand and pyparsing a log file (named l.log):
FIRSTLINE
PROPERTY1 DATA1
PROPERTY2 DATA2
PROPERTYS LIST
ID1 data1
ID2 data2
|
by: Bytter |
last post by:
Hi,
I'm trying to construct a parser, but I'm stuck with some basic
stuff... For example, I want to match the following:
letter = "A"..."Z" | "a"..."z"
literal = letter+
include_bool := "+" | "-"
term = literal
|
by: 7stud |
last post by:
To the developer:
1) I went to the pyparsing wiki to download the pyparsing module and
try it
2) At the wiki, there was no index entry in the table of contents for
Downloads. After searching around a bit, I finally discovered a tiny
link buried in some text at the top of the home page.
3) Link goes to sourceforge. At sourceforge, there was a nice, green
'download' button that stood out from the page.
4) I clicked on the download...
| |
by: Steve |
last post by:
Hi All (especially Paul McGuire!)
Could you lend a hand in the grammar and paring of the output from the
function win32pdhutil.ShowAllProcesses()?
This is the code that I have so far (it is very clumsy at the
moment) :
import string
|
by: Just Another Victim of the Ambient Morality |
last post by:
Is pyparsing really a recursive descent parser? I ask this because
there are grammars it can't parse that my recursive descent parser would
parse, should I have written one. For instance:
from pyparsing import *
grammar = OneOrMore(Word(alphas)) + Literal('end')
grammar.parseString('First Second Third end')
|
by: hubritic |
last post by:
I am trying to parse data that looks like this:
IDENTIFIER TIMESTAMP T C RESOURCE_NAME DESCRIPTION
2BFA76F6 1208230607 T S SYSPROC SYSTEM
SHUTDOWN BY USER
A6D1BD62 1215230807 I
H Firmware Event
My problem is that sometimes there is a RESOURCE_NAME and sometimes
not, so I wind up with "Firmware" as my RESOURCE_NAME and "Event" as
|
by: Paul McGuire |
last post by:
I've just uploaded to SourceForge and PyPI the latest update to
pyparsing, version 1.5.1. It has been a couple of months since
1.5.0 was released, and a number of bug-fixes and enhancements
have accumulated in SVN, so time for a release!
Here's what's new in Pyparsing 1.5.1:
- Added __dir__() methods to ParseBaseException and ParseResults,
to support new dir() behavior in Py2.6 and Py3.0. If dir() is
called on a ParseResults object,...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |