bugGNU TeXmacs - Bugs: bug #40754, Missing conversion rules for new...

 
 

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

bug #40754: Missing conversion rules for new tags: ornament, marginal-note, etc.

Submitted by:  Joris van der Hoeven <vdhoeven>
Submitted on:  Fri 29 Nov 2013 11:01:09 PM UTC  
 
Category: ConversionPriority: 7 - High
Item Group: ErrorStatus: Works For Me
Privacy: PublicAssigned to: Francois Poulain <fpoulain>
Originator Name: Open/Closed: Closed
Release: Release: None
Fixed Release: NoneFixed Release: 
Keywords: 

(Jump to the original submission Jump to the original submission)

Sat 07 Jun 2014 04:30:12 PM UTC, comment #14:

HTML export of scheme sessions should export them as <pre> or something like that.

Using the syntax highlighter would be awesome, but probably too complicated since it currently is tightly bound to the typesetter (defining a grammar for the packrat parser and using it might also work but it's surely too much work)

Miguel de Benito <mdbenito>
Project Member
Tue 17 Dec 2013 09:37:43 AM UTC, comment #13:

HTML export of help-balloon is ok, thanks to Fabien Cazenave which gave me some html snippets and a11y advises. It remains a bit tricky and the bahavior is not garanteed on all browsers.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Thu 12 Dec 2013 11:59:27 AM UTC, comment #12:

LaTeX import / export of ornamented sessions is ok.
HTML export of ornaments is ok.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Tue 10 Dec 2013 02:43:21 PM UTC, comment #11:

LaTeX import / export of ornaments are ok. I start with ornamented sessions.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Thu 05 Dec 2013 01:15:01 PM UTC, comment #10:

LaTeX export of sessions are ok, without ornaments. I start with ornaments.

For html stuff, I have some ideas about how to deal with.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Wed 04 Dec 2013 03:17:29 PM UTC, comment #9:

Margin pars and balloons in Html: if this gets too complex, then please drop it for the moment. If you managed to get a tooltip working for balloons (even if it is limited to inline), then please use that (as well as for the margin pars, if this is too hard).

Please get basic support for ornaments working. That is really the most important thing, since we extensively use ornaments now.

Joris van der Hoeven <vdhoeven>
Project Administrator
Wed 04 Dec 2013 03:02:46 PM UTC, comment #8:

> I don't know how to (and I think nothing has been done to allows to) deeply customize enunciations (theorems). If I furnish stuff, it will be mostly incompatible with standard enunciation handling.


In fact, even in a non compatible way, I cope with big difficulties.

I will work on {im,ex}porting sessions with and without ornaments.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Wed 04 Dec 2013 02:57:47 PM UTC, comment #7:

> I don't know how to make it for bloc content.


It seems not really possible with css stuff. Webdesigners use JQuery for this purpose.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Tue 03 Dec 2013 02:16:31 PM UTC, comment #6:

Here is an example of margin note displayed via css properties. But again, it is limited to inline content. I don't know how to make it for bloc content.

(file #29772)

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Tue 03 Dec 2013 01:34:57 PM UTC, comment #5:

Here is an example of balloon displayed via css properties. But it is limited to inline content. I don't know how to make it for bloc content.

(file #29768)

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Tue 03 Dec 2013 10:06:29 AM UTC, comment #4:

> Margipar in Html: you might use a balloon, if you know how to do that in Html, and display a small marker for triggering the balloon.


I will check if it's possible with css. If not, it will be possible in JS.

> Maybe CSS allows you to implement real marginal notes, too.


I am not expert of html but I think that, to do so, we should have a body with a max width.

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Tue 03 Dec 2013 10:00:33 AM UTC, comment #3:

For ornament into LaTeX, here is a proof of concept (See joint files).
Actually, II know how to make fancy environments into LaTeX, but I don't know how to (and I think nothing has been done to allows to) deeply customize enunciations (theorems). If I furnish stuff, it will be mostly incompatible with standard enunciation handling.

(file #29765, file #29766)

Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Mon 02 Dec 2013 09:58:26 PM UTC, comment #2:

Ornaments: full support is not required, but we should support basic frames with a given color, a given border color, a given border width and padding. In particular, the frames that you see in computer algebra sessions should be exported nicely.

Margipar in Html: you might use a balloon, if you know how to do that in Html, and display a small marker for triggering the balloon. Maybe CSS allows you to implement real marginal notes, too.

Joris van der Hoeven <vdhoeven>
Project Administrator
Mon 02 Dec 2013 11:18:44 AM UTC, comment #1:

For LaTeX:

  • Marginpar are natively supported by TeX. This will be easy.
  • For baloons, I will check but I think I can do it using hyperref.
  • The most complicated is ornaments. I will have to create à framed environment, with color, padding, borders, corners and label options. This is possible. But it will be quite difficult to mix it with enunciations. I will have a look on it.

For HTML:

  • For baloons, I can do it <span> and title attribute (title specifies extra information about an element (displayed as a tool tip)).
  • For ornaments, I will use div with style properties.
  • Marginpar are meaningless in html.How do you think we should render it?
Francois Poulain <fpoulain>
Project MemberIn charge of this item.
Fri 29 Nov 2013 11:01:09 PM UTC, original submission:

A few new primitives have been added to TeXmacs: better ornaments for nicer presentations and CAS sessions, as well as marginal notes, balloons, and possibly more. These new primitives should be imported/exported correctly from/to LaTeX and Html.

Ornaments are in particular used in our new framed CAS sessions, which are extensively used in the Mathemagix documentation. Appropriate conversion of ornaments to both LaTeX and Html is therefore important, at least standard ornaments with specified background colors, padding and border.

Joris van der Hoeven <vdhoeven>
Project Administrator

 

Attached Files
file #29766:  test-ornament.pdf added by fpoulain (31kB - application/x-download)
file #29765:  test-ornament.tex added by fpoulain (3kB - application/x-tex)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mdbenito (Posted a comment)
  • -unavailable- added by vdhoeven (Submitted the item)
  •  

    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 8 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 07 Jul 2014 02:08:40 PM UTCfpoulainStatusIn Progress=>Works For Me
      Open/ClosedOpen=>Closed
    Tue 03 Dec 2013 02:16:31 PM UTCfpoulainAttached File-=>Added test-html-margin-notes.html, #29772
    Tue 03 Dec 2013 01:34:57 PM UTCfpoulainAttached File-=>Added test-html-balloon.html, #29768
    Tue 03 Dec 2013 10:00:33 AM UTCfpoulainAttached File-=>Added test-ornament.tex, #29765
      Attached File-=>Added test-ornament.pdf, #29766
    Mon 02 Dec 2013 11:18:44 AM UTCfpoulainStatusConfirmed=>In Progress
    Fri 29 Nov 2013 11:01:29 PM UTCvdhoevenPriority5 - Normal=>7 - High

    Back to the top


    Powered by Savane 3.1-cleanup