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

 
 

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

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

Submitter:  Joris van der Hoeven <vdhoeven>
Submitted:  Fri 29 Nov 2013 11:01:09 PM UTC
   
 
Category:  Conversion Priority:  7 - High
Item Group:  Error Status:  Works For Me
Privacy:  Public Assigned to:  fpoulain
Originator Name:  Open/Closed:  Closed
Release:  None Release: 
Fixed Release:  None Fixed Release: 
Keywords: 

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>
Group 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>
Group Member
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>
Group Member
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>
Group Member
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>
Group Member
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>
Group 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>
Group Member
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>
Group Member
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>
Group Member
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>
Group Member
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>
Group Member
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>
Group Member
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>
Group 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>
Group Member
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>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 8 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-07-07 fpoulain StatusIn Progress Works For Me
        Open/ClosedOpen Closed
    2013-12-03 fpoulain Attached File- Added test-html-margin-notes.html, #29772
    2013-12-03 fpoulain Attached File- Added test-html-balloon.html, #29768
    2013-12-03 fpoulain Attached File- Added test-ornament.tex, #29765
        Attached File- Added test-ornament.pdf, #29766
    2013-12-02 fpoulain StatusConfirmed In Progress
    2013-11-29 vdhoeven Priority5 - Normal 7 - High

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code