bugGNU TeXmacs - Bugs: bug #10796, math commands cant be exported to...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #10796: math commands cant be exported to latex within math environments

Submitted by:  Magnus Ekdahl <maguno>
Submitted on:  Mon 25 Oct 2004 03:40:13 PM UTC  
 
Category: ConversionPriority: 5 - Normal
Item Group: ErrorStatus: Fixed
Privacy: PublicAssigned to: Joris van der Hoeven <vdhoeven>
Originator Name: Open/Closed: Closed
Release: 1.0.4Release: None
Fixed Release: NoneFixed Release: 1.0.5.12
Keywords: 

Thu 09 Dec 2004 07:33:03 PM UTC, comment #1:

Lets start this comment by clearly defining the problem:

What I want to do is to define commonly used mathematical terms as \newcommands. This is needed since different disciplines are using different notation. And one needs to have a flexible document that ensures that you can switch between notatinal styles fast.

In my case its machine learning/statistics that use slightly different notation.

The problem is that I don't want to define 2 of everything or have to wrap every in math mode when suitable. Its IMHO more userfriendly to simply define lambda and then make it usable everywhere.

Here is a start for fixing the problem. It simply strips the math mode from commands defined in a math mode environment.

As it stands it is not particularilly useful since it makes the latex code as if I just had defined all \newcommands without the math envionment.

But assuming one can also produce the code that tags all \newcommands as math and then adds math envirenment around them when they are used this will actually be usefull.

Magnus Ekdahl <maguno>
Mon 25 Oct 2004 03:40:13 PM UTC, original submission:

Its common that you need to define constants in your texmacs document. The only way of doing this I know of is by \assign and \value. For example I define X as a stocastic variable, and can use <value|sv> everytime I need it.

Unfortunatly many of my constants are mathematical constants, inducing a recursive math-mode when invoced within a mathematical expression. (Although they work perfectly when I use them outside of math mode).

Texmacs as such have no objections against recursive math mode, but exporting the document to latex induces a lot of errors.

If it would be possible to make the latex exporter generate a separate \new command for every environment my texmacs constants are used it would help me a lot.

A short example generating this type of errors it attached

Magnus Ekdahl <maguno>

 

Attached Files
file #2194:  halffix.diff added by maguno (623B - text/x-patch - Something that makes userfriendly texmacs code semi sane latex code)
file #1928:  bug1.tm added by maguno (307B - text/texmacs - Cannot be exported to latex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 6 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Wed 02 Nov 2005 05:37:18 PM UTCvdhoevenStatusNone=>Fixed
  Assigned toNone=>vdhoeven
  Open/ClosedOpen=>Closed
  Fixed Release=>1.0.5.12
Thu 09 Dec 2004 07:33:03 PM UTCmagunoAttached File-=>Added halffix.diff, #1962
Mon 25 Oct 2004 03:40:13 PM UTCmagunoAttached File-=>Added bug1.tm, #1801

Back to the top


Powered by Savane 3.1-cleanup1