Questions related to the use of Mathematica for creating or manipulating HTML documents.

learn more… | top users | synonyms

4
votes
0answers
28 views

Is there a way to use iframes in a notebook?

For me, mathematica online is totally unusable, but the EmbeddedServices would be great to use. I wish that these functions worked in Mathematica, is there any hack anyone can think of to get these ...
3
votes
3answers
63 views

Generate an html fragment hyperlink which opens a new tab

Generating a hyperlink (for later use with a cloud deployment) yields, ...
1
vote
2answers
85 views

Void elements / self closing tags export to HTML

There are some built in rules in exporting that automatically create Void elements / self closing tags for some tags: ...
5
votes
1answer
74 views

Custom rules for expressions in export to HTML(Fragment)

ExportString[Grid[{{a, b}}], "HTMLFragment"] ...
1
vote
0answers
66 views

Two-step web data submission

I am trying to automate the process of downloading data from my univ. webpage. I need to submit the form in the URL below. http://202.88.252.21/CuPbhavan/res_newregentry.php?id=4789 An inspection ...
1
vote
0answers
53 views

Exporting Tooltip data to HTML [closed]

It would be very useful if one could export interactive Tooltip graphics to an HTML file like: ...
10
votes
3answers
129 views

Unwanted extra spaces at HTML tag boundaries when using ImportString

What causes the following unexpected behavior? ...
0
votes
0answers
58 views

How to prevent space trimming when importing HTML with ImportString?

I am importing a HTML-formatted string with ImportString[string, "HTML"] to properly parse all HTML-escaped characters like ...
4
votes
0answers
69 views

Incompatibility between CDF document and reveal.js

I am making some reveal.js-based slides with a CDF document embedded. The minimal example include the files: ...
0
votes
0answers
34 views

Access interactive web forms [duplicate]

I would like to communicate with interactive web forms, e.g., get the same HTML response as if I had clicked a "select" button and then clicked a "submit" button on a web page. This is for automated ...
0
votes
0answers
63 views

Getting Boston Marathon Data [duplicate]

I am trying to use Mathematica to analyze the data given by the Boston Marathon concerning running time, etc. The website http://registration.baa.org/2015/cf/Public/iframe_ResultsSearch.cfm gives a ...
7
votes
2answers
110 views

Why doesn't Import work with XOWA offline Wikipedia database?

I'm having trouble with importing HTML from XOWA offline wikipedia database. I set up a local server for datamining, but I can't access it with Mathematica. I can request a HTML page with ...
2
votes
0answers
54 views

Importing HTML loses the Nested tags relation

...
1
vote
0answers
40 views

Problem of importing some special characters in HTML

content of the html file is as follows: <p> 被尊称为&ldquo;高贵的&rdquo; </p> method1: ...
7
votes
0answers
149 views

Incorporating photos into a Mathematica-made web page

I use Mathematica to make my web page. I make various .nb files, usually with photos, and then use an Export command to convert the .nb file to an .html file with ...
4
votes
1answer
100 views

How can I import html fragments as formatted cells?

I see that there is limited support for "HTMLFragment" in Export, but I figured with all the work that went into porting Mathematica into the Wolfram Cloud there should be a way to Import ...
0
votes
0answers
40 views

how to export to html using multiple css

I have to convert many notebooks to HTML so I'm trying to create all possible rules so to minimize the manual correction. The html pages need to have multiple css links, something like the following ...
3
votes
1answer
79 views

How to set ExportOptions for custom HTML exports

I need to customize some HTML tags when exporting a Mathematica notebook to HTML. I have to use the File ► Save As… FrontEnd token and not ...
0
votes
0answers
42 views

Possible bug of Exporting as HTMLFragment at Linux

This is the result of Mathematica 10.0.2 of Linux Version. There are two style inside one tag, and this fragment cannot be Imported as XML by Mathematica. This is the result of Mathematica 10.1 of ...
1
vote
1answer
44 views

How can I give each section a unique <a> tag when I Export as XHTML?

Exporting a notebook as XHTML allows me to override the default HTML tags that are written for section-header-like cells. For example, a notebook cell whose type is "Section", containing text "The ...
2
votes
0answers
76 views

Retrieving a Portion of Webpage Code using URLFetch

The URLFetch command is very useful for pulling the entire html source of a given webpage, however, if one wanted to speed up the process, by only requesting a ...
29
votes
2answers
788 views

Extract information from HTML using CSS selectors?

TL;DR Is there any way that we can parse HTML using CSS selectors in Mathematica, the way it is done in for example jQuery? Extracting information from websites, i.e. web-scraping, in Mathematica can ...
4
votes
1answer
99 views

ExportString and HTML: where are saved images?

I want to use ExportString to generate HTML expression. Here is an easy example: ExportString[x^3, "HTML", "FullDocument" -> False] gives ...
3
votes
1answer
320 views

Integrating Mathematica in Blackboard

I teach Economics at University. I often use Mathematica to generate interactive diagrams with demand and supply curves. We also use Blackboard (blackboard.com) to manage our subjects, including ...
9
votes
1answer
115 views

Is equation numbering in exported HTML considered deprecated for built in stylesheets?

TLDR or simply stated: how do I export equation/section numbers to HTML? The built-in function doesn't seem to do it. Longer form of the question: So I've been tinkering around with the built in ...
10
votes
1answer
370 views

Wikipedia People only search

I am trying to search people from Wikipedia(For example .*John.* in REGEX). The following query is close, but it isn't generalized like ...
1
vote
0answers
93 views

Import LaTeX from Wikipedia to Mathematica [duplicate]

Here is one a problem I land on from time to time. Sometimes while researching, I want to pull a formula presented in a Wikipedia page and import it into Mathematica. I've heard that Wikipedia uses ...
4
votes
2answers
196 views

HTMLEncode a string for webMathematica

Is there a native Mathematica way to convert a string like "<select></select>" into ...
3
votes
1answer
154 views

Export notebook to HTML produces low resolution GIF

I have equations written in my notebooks as text (the cells set as Format -> Style -> Text). When exporting the notebook to HTML (File -> Save As.. -> HTML) with the GIF option (the default) an HTML ...
0
votes
1answer
147 views

How to parse a .css file generated by Mathematica? modify values, add some values

How can I parse a .css file generated by Mathematica, for example when exporting a notebook to HTML? What is te best way to modify or add new values to the CSS? I've written a simple function to add ...
2
votes
0answers
42 views

The value of PageWidth doesn't work for saving as HTML?

CellPrint@Cell["Test","Text",PageWidth->300,Background->Red] And I got this snippet of HTML code: ...
1
vote
0answers
86 views

How can I control the size of exported image in HTML code under certain magnification value?

I've inserted a picture in one cell, however, when I exported the cell as HTML, the size of my image in the html tag was doubled(the image file in HTMLFiles was the same as the original image). I ...
3
votes
1answer
124 views

Open an html saved notebook

I have found an html page clearly created using the Save as HTML option of Mathematica. Is ...
10
votes
1answer
494 views

Parse website data that requires interaction with a form (POST)

I want to analyse Chilean elections data available in the official website. What I have returns the data for president (numbers are strings, to be parsed later). ...
3
votes
1answer
719 views

CDF embedding in HTML

I created a working CDF file on my Mac, and I am trying to embed it into an html page, and although I followed all the steps suggested on the mathematica web embedding page, it is not working (I ...
7
votes
1answer
151 views

Problem with exporting nested Rows/Columns to HTML

I will show the problem on the following MWE: Export["test.html", Column[{ Row[{"test", "1"}] }], "HTML", "CSS" -> None] ...
2
votes
1answer
257 views

Change values in string under condition

how to change the width and height in the HTML code into some other values decided by ratio and a fixed width? The background is that you can adjust a image in ...
2
votes
0answers
27 views

How can I export a html source string as a html file? [duplicate]

A little question. Consider one html source string, Export["test.html", htmlsource] Then I get one html file with a whole image of the source. ...
4
votes
1answer
144 views

“Save as (html)” and still render Input cell code as text?

When I' m testing on this post' s method I found some problems. ...
1
vote
2answers
121 views

Why I cannot use the option “MathOutput”?

I'm on Windows 8.1 with Mathematica 9. ...
4
votes
1answer
195 views

Image Tooltip exported to HTML

Graphics@Tooltip[Hyperlink[{Purple, Rectangle[{0, 0}]}, "http://www.wolfram.com"], Graphics[Disk[]]] Is it possible to make image tooltip kept in the html?
7
votes
1answer
148 views

How to export to .html .nb file together with links «in» and «out»

If use «File > Save As > HTML» links «in» and «out» are lost How to save a document without loss of these lines/links? UPD: You can write in the css rules (...
2
votes
2answers
705 views

Combine multiple notebook files into a pdf/rtf/word/etc file?

It's the end of the semester and I have a prof who wants me to turn in a printout of the nb files ive worked on. I have 33 separate files, and I was wondering if there was any easy way I could combine ...
2
votes
1answer
291 views

Exporting HTML code to file.html

I've got a problem with re-saving html code. Lets create html file: ...
4
votes
1answer
551 views

Extracting text from nested HTML lists <ul> <li>

We wish to analyze the tree structure of HTML documents that consist of nested lists, ie, using the HTML tags <ul> and ...
3
votes
0answers
74 views

How to generate absolute Directories in HTML

...
11
votes
1answer
514 views

Dynamic visualization of Graph[] on a webpage

How can we embed a dynamic version of a Graph object on a web page, similar to the one showcased on the networkx home page? This sort of dynamic visualization can ...
3
votes
1answer
277 views

Color lost when saving Mathematica cell as HTML

Question 1(Color Lost Question[Solved by using Item]): When I evaluate the cell generated by ...
21
votes
2answers
2k views

How to translate interactive graphics from Mathematica to standard HTML+SVG?

I have a simple interactive plot in Mathematica, with controls for various parameters. The point of the plot is simply that users can explore how the plot changes as the parameters change by ...
1
vote
1answer
756 views

Importing formatted, highlighted text from : HTML vs RTF vs. XML

We would like the ability to import and analyze ASCII documents that have been manually segmented by highlighting and changing font colors of various sections, eg: The original line breaks, ...