Latex math in html file not rendering in browser
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- matlab
研究方向
先重現提供的 MATLAB 指令碼及其透過 fig2plotly(gcf) 進行的匯出,然後在 Edge 中將產生的 HTML 與 MATLAB 圖形並排檢查。匯出的 HTML 能在 Edge 中正確呈現 LaTeX 註解即表示完成;此 issue 未指定任何 repository 檔案或要執行的測試。
由索引模型根據 Issue 內容生成。
描述
I have a problem with displaying LaTeX fonts in HTML files generated by MATLAB. I used the code from this link to create a simple plot with LaTeX annotations. The plot looks fine in MATLAB, but when I open the HTML file in Edge, the Latex fonts are not rendered correctly. How can I fix this issue?
The code
fib = zeros(1, 12);
for i = 1:12
fib(i) = (((1+sqrt(5))/2)^i - ((1-sqrt(5))/2)^i)/sqrt(5);
end
figure
plot(1:12, fib, 'k^-')
title('Fibonacci Numbers from 1-12')
xlabel('n')
ylabel('F_n')
eqtext = '$$F_n={1 \over \sqrt{5}}';
eqtext = [eqtext '\left[\left({1+\sqrt{5}\over 2}\right)^n -'];
eqtext = [eqtext '\left({1-\sqrt{5}\over 2}\right)^n\right]$$'];
text(0.5, 125, eqtext, 'Interpreter', 'Latex', 'FontSize', 12, 'Color', 'k')
fig2plotly(gcf);
MATLAB Figure
Figure opened in Edge
- 主要語言
- MATLAB
- 星號
- 413
- 分支
- 166
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
plotly/plotly_matlab 的其他 Issue
-
難度 1/5 1 小時以內 新手友好度 55/100
plotly/plotly_matlab#526 ·
-
難度 3/5 1-2 天 新手友好度 45/100
plotly/plotly_matlab#523 · 1 則留言 ·
-
難度 3/5 1-2 天 新手友好度 35/100
plotly/plotly_matlab#480 ·
-
難度 1/5 1 小時以內 新手友好度 35/100
plotly/plotly_matlab#479 · 1 則留言 · 3 個 reaction ·
-
難度 2/5 1-3 小時 新手友好度 25/100
plotly/plotly_matlab#474 ·
查看 plotly/plotly_matlab 的全部 Issue
相似的 Issue
-
Component: Continuous Integration Component: MATLAB Type: enhancement
難度 2/5 1-3 小時 新手友好度 72/100
-
難度 1/5 1 小時以內 新手友好度 94/100
VH-Lab/NDIcalc-vis-matlab#107 ·
-
bug unconfirmed
難度 1/5 1 小時以內 新手友好度 88/100
-
難度 2/5 1-3 小時 新手友好度 70/100
gnu-octave/statistics#498 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 78/100