Questions tagged [html]

HTML (HyperText Markup Language) is the principal markup language used for structuring web pages and formatting content. The most recent revision to the HTML specification is HTML5.

Filter by
Sorted by
Tagged with
0 votes
0 answers
65 views

Latex rendition on HTML export

In Latex pdf export (C-c C-e l o) $m$ renders correctly as italics m but in HTML export (C-c C-e h o) it renders as Roman m. Reverse slash Latex formulas like $\mathbb{N}$ render fine in both Latex ...
zeynel's user avatar
  • 371
0 votes
0 answers
34 views

Dom traversal return nil even though the test condition seems to be true

The purpose of the traversal this time is to be able to visit each node, if there is a specific attribute inside that node, it should return true, add that node to the list and proceed on the next ...
alexander's user avatar
  • 133
0 votes
0 answers
13 views

Is there a way to suggest label names in org-mode html export?

In the org-mode example below, I would like to be able to specify the label name to be used by the latex export back-end. Is there such a way? I have a reason : To be able to mix org-style references [...
Venuti Andrea's user avatar
1 vote
1 answer
39 views

`org-html-export-to-html` not adding color for the code blocks

I have an org file with the following code block: #+begin_src emacs-lisp (+ 1 2) #+end_src And when I export it using M-x org-html-export-to-html, the code blocks in the generated file have no color. ...
trxgnyp1's user avatar
  • 123
-1 votes
2 answers
145 views

Web scraping traversal using dom.el, pcase error: Unknown pattern

I would like to traverse the dom tree, extract the text and build a list after visiting each node. Implementing the recursion with the help of text-tag function returned an unknown pattern error. The ...
alexander's user avatar
  • 133
0 votes
1 answer
56 views

Text extraction after dom traversal returns empty

I would like to extract the text from each visited node but while traversing and build a list. I only get an empty result. Here is the following attempt using dom.el (defun extract-text-from-dom (dom-...
alexander's user avatar
  • 133
1 vote
0 answers
45 views

Disable syntax highlighting after single quote in HTML mode

I manually edit an HTML file which contains plain text and HTML tags. How can I prevent emacs' html-mode to treat single-quotes ' (i.e. apostrophes) as string separator? For example in <pre>This ...
djonif's user avatar
  • 11
0 votes
1 answer
86 views

Why is my code indented differently in Emacs than in a Web browser?

Emacs displays the code snippet as shown below. <header> <nav> <ul> <li>About</li> <li>Code review</li> <li&...
gilaro's user avatar
  • 111
0 votes
0 answers
8 views

don't show images in html or local links in pdf-latex

I want to transfer folders with documents with Syncthing to the Android tablet, the documentation is made in orgmode and I export to PDF or HTML. But they don't resolve local addresses in the tablet; ...
Levo's user avatar
  • 47
0 votes
0 answers
57 views

How to make LaTeX in org-msg e-mails look nice?

I just want to send nice-looking e-mails like this This e-mail is achieved by using Apple Mail, LaTeXiT and a bit of hand-waving. However, in org-msg mode I can by default with dvipng/imagemagick ...
9IPOCJIABbI4's user avatar
0 votes
0 answers
21 views

How do I add an option to quote blocks to preserve newlines?

Some blocks such as begin_verse or begin_example preserve newlines. But the begin_quote block does not and we need two new lines to create a new line in the exported HTML. What's the best way to have ...
HappyFace's user avatar
  • 830
2 votes
1 answer
78 views

How to make `electric-pair-mode` always generate matching delimiters &parens in html/sgml/mhtml modes?

When I type a single {, it will auto insert right } But when I type a { again, it won't auto insert right } How can I set up electric-pair-mode so that it always generates matching delimiters and ...
jilen's user avatar
  • 121
0 votes
0 answers
32 views

File names with spaces in Org link DESCRIPTIONs are not properly exported to html

Emacs 29.1 (on Windows); Org 9.6.6 manages to export file descriptions as clickable buttons only when the path to the file has no space(s) in it. Links like these #+caption: File name with spaces #+...
Dieter.Wilhelm's user avatar
0 votes
0 answers
129 views

How can I embed SVG images when exporting to HTML from Org?

Briefly If I org-latex-export-to-pdf an org file with SVG diagrams, I get a single self-contained file that can be conveniently sent as draft. If I instead org-html-export-to-html (avoiding all the ...
Sam7919's user avatar
  • 369
1 vote
0 answers
23 views

shr/filling: don't split inline latex in html

my package mastodon.el uses shr-render-region to render posts, which fills text at shr-width. if the post contains inline latex, shr's filling will split up the latex so that it will not be possible ...
martian's user avatar
  • 548
0 votes
0 answers
14 views

Does there exist an equivalent of md-block for direct inclusion of org-mode file in a webpage?

The md-block library can directly render a markdown file in a browser: How to Render Markdown on a Web Page With md-block I'm already aware of the HTML export functionality in org-mode. This question ...
StackExchanger's user avatar
0 votes
1 answer
24 views

possible bug: shr-render-buffer is not preserving URLs

Running shr-render-buffer renders the HTML accurately using appropriate faces for different element types and underlines links but clicking on any of the links produces the message: No link under ...
StackExchanger's user avatar
1 vote
0 answers
91 views

Is there a way to export a selected color scheme into css for org-mode?

I know that you can set the org-html-htmlize-output-type variable to 'css in order to make org-mode use a set of CSS classes for coloring output. However, all of the colors need to be defined by the ...
sajmon's user avatar
  • 56
0 votes
1 answer
31 views

Why does the org html export use <b> and <i> but not <u>?

The org html export uses <b> tags for *bold* text, and <i> tags for /italic/ text, but doesn't use <u> tags for _underlined_ text. Instead it inserts a <span class="...
red_trumpet's user avatar
0 votes
2 answers
62 views

How do I export code font-lock from Org to HTML?

With the following .emacs (on bleeding-edge GNU Emacs 30.0.50 and Org mode 9.6.1 in 2023) ;; Org -> LaTeX (require 'ox-latex) (add-to-list 'org-latex-packages-alist '("" "minted"...
Sam7919's user avatar
  • 369
3 votes
1 answer
167 views

How do I force SVG figures to appear inline on a white background?

For nearly three weeks now EmacsForMacOSX natively supports viewing SVG figures inline (hurray!). As expected, and unlike raster images, SVG figures typically have no background. It is sufficient to ...
Sam7919's user avatar
  • 369
2 votes
1 answer
176 views

Exporting org-mode to Markdown does not render the title?

I have the following in org-mode: #+TITLE: My title #+SUBTITLE: My ...
Tfovid's user avatar
  • 121
0 votes
2 answers
121 views

How to show comments on an HTML exported from Org-Mode?

I'm working on updating the social status of a company. The original document has been made with Org-Mode and exported to PDF. In order to keep track of the modifications I'm putting the old parts ...
crocefisso's user avatar
  • 1,274
0 votes
1 answer
74 views

Pandoc correctly generates LaTeX but no HTML5 output from an Org-mode file [closed]

I cannot get an HTML5 output from my Org-mode file, while PDF/LaTeX output is fine. This is a fragment of my Org-mode file: #+LaTeX_HEADER: \author{Name Surname} #+HTML_DOCTYPE: html5 All I can get ...
Pietro's user avatar
  • 109
0 votes
0 answers
37 views

HTML export of Babel source block only results?

I'm reading this, but I'm not seeing how to export just the results of a Babel source block. Every other combination seems possible but just results, i.e., suppress the code, show the results. My ...
147pm's user avatar
  • 2,959
1 vote
1 answer
80 views

`org-publish` export utf-8 symbols instead of html entities

Can we make org-publish export quotes "" as literal uni-code symbols instead of html entities such as &ldquo; and &rdquo;?
Sati's user avatar
  • 775
1 vote
0 answers
81 views

How to add a custom class to the figure element that wraps the image, in org-mode HTML export, when exporting as base64?

I use some code to export org-mode images embedded as base64, courtesy of I believe originally John Kitchin - from this post here. However, I should say, I do not yet fully understand all of it! It ...
F. Certainly.'s user avatar
1 vote
0 answers
29 views

Add the ID property of headings as the `name` attribute in the HTML export

E.g., suppose I have this heading: * some heading :PROPERTIES: :ID: 6d4e4087-4b74-4c74-8195-19b4ccd3e8fe :END: I like the exported HTML element to have the attribute name="ID-6d4e4087-4b74-...
HappyFace's user avatar
  • 830
1 vote
1 answer
214 views

In orgmode, how to add html attributes to a link inside a header?

I can add attributes to links like this: #+attr_html: :rel external :target _blank [[http://www.wikipedia.com][reliable source]] Now, I have a link in a header: * DONE Why people talk [[http://www....
onlycparra's user avatar
0 votes
1 answer
35 views

Source block html export show block on hover

I am working on a document that has multiple questions and answers to that question in a source block. Simplified example is as follows: Q1. (a+b)^2 #+begin_center a^2 + 2ab + b^2 #+end_center ...
jimmu's user avatar
  • 395
3 votes
1 answer
310 views

How to export an org file into browser bookmarks?

I would like to manage my bookmarks with org-mode and be able to export them so they could be used within a browser (Firefox, Chromium, Brave, etc.). Here is an example of an org file storing some ...
crocefisso's user avatar
  • 1,274
0 votes
1 answer
82 views

How can I preview image in html file?

Is there a package to preview an image inserted in the html tag <img src="path-to-image"/> when hovering the tag with the mouse ?
Michel Lecomte's user avatar
1 vote
1 answer
33 views

Emacs makes my files not exist in Parcel

new Emacs user (on Windows) here! So far Emacs looks really cool! I'm developing website using Parcel and every time I save my main .html file with Emacs it breaks my development server. HTML file I ...
PSCHC's user avatar
  • 13
0 votes
1 answer
96 views

Emacs HTML Preamble in setup file

I have a project with a few org files that are exported as HTML to create a website. All org files that correspond to web pages have #+SETUPFILE: my-setup.org declared in it. And the my-setup.org file ...
Thomas's user avatar
  • 105
0 votes
1 answer
50 views

How can I specify arbitrary headline numbering in org mode?

Suppose I have the following org file (example.org): * Alpha ** Aleph * Beta * Gamma When I export it to HTML I get: 1. Alpha 1.1. Aleph 2. Beta 3. Gamma Which is quite useful in most cases. Now ...
crocefisso's user avatar
  • 1,274
0 votes
1 answer
53 views

HTML Export and "org block"

Using EmacsMac 28.1 (OSX) (started as emacs -q), I'm trying to export a simple org document that contains an org source block: #+begin_src org *Hello* /world/ #+end_src When I export this to a buffer ...
Nicolas Rougier's user avatar
0 votes
1 answer
51 views

Error using space in html postamble when exporting org file

I am using html export feature for org files and I want to change the value of html-postamble (see doc). Here is the index.org file: #+title: Home Welcome #+options: html-postamble:"TESTSPACE&...
pietrodito's user avatar
0 votes
1 answer
64 views

Org HTML exporter: do not use section numbers in links?

When linking to a heading containing <<foo>> using the syntax [[foo]], M-x org-html-export-to-html generates a link using section number as the link text: <a href="#org6bfafed"...
Sridhar Ratnakumar's user avatar
0 votes
0 answers
83 views

Multiple matrices side-by-side in org-mode (export to LaTeX and HTML)

How do I display multiple matrices side-by-side in an org-mode document so that they are exported nicely to LaTeX and HTML documents? Currently, I'm using the following but the result is not what I ...
vpk's user avatar
  • 115
0 votes
1 answer
36 views

Quoting HTML tags for padding

I've got this working fine @@html:<font color = "#4715b3">@@ $0$ is a natural number. @@html:</font>@@ and this too @@html:<b>@@bold text@@html:</b>@@ but this, my ...
147pm's user avatar
  • 2,959
1 vote
0 answers
159 views

Output side-by-side ediff to html

Vim has a command :tohtml which is particularly useful when sharing side-by-side diffs to non-programmers - they can open the resulting html file to see the results of a vimdiff. In emacs I use ediff ...
hubris's user avatar
  • 11
0 votes
1 answer
72 views

avoid unwanted newlines after running shr-render-region

i have a small amounts of text in html that i want to process. currently they are rendered with shr-render-region so that all html is out of the way, then copied and processed. this works fine except ...
martian's user avatar
  • 548
1 vote
0 answers
107 views

Exporting Org mode file containing LaTeX code to HTML without MathJax

I have recently started using Org mode and Emacs. I am trying to export Org mode code to HTML and my Org mode has LaTeX code in it. To render the LaTeX code in the browser, one needs internet ...
Prasanna Venkatesan's user avatar
3 votes
0 answers
31 views

How to edit escaped HTML?

Is there a way to edit escaped HTML as literal HTML within a HTML document? E.g instead of seeing/editing this in my emacs buffer: <div> <code> &lt;p&gt;some &lt;em&...
Cigarette Smoking Man's user avatar
1 vote
1 answer
462 views

How to put a caption on an html-export'ed image?

I want to export two images side-by-side, and this works: #+begin_export html <img style="width:45%" src="test-images/a-3.jpg" /> <img style="width:45%" src=&...
Alex Shroyer's user avatar
2 votes
1 answer
179 views

How to use org-ref-export-to-html in org-publish-project?

I am trying to use org-ref-export-to-html from org-ref Version 3 as the :publishing-function of org-publish-project-alist. Based on org-html-publish-to-html which I used to use with this function ...
hatmatrix's user avatar
  • 1,076
0 votes
1 answer
37 views

HTML publish latex block images

I am trying to export a latex tikzpicture, like the following to html: #+begin_src latex :exports results :results raw file :file ex.png :output-dir ../img/ \begin{tikzpicture} \draw node[circle,...
dcguim's user avatar
  • 3
0 votes
1 answer
141 views

org-mode caption html export cramped

If you start a blank org buffer and put in #+CAPTION: This is the caption for the next table (or link) | ... | ... | |-----+-----| then html-export it, it comes out all cramped and vertical. Table 1: ...
147pm's user avatar
  • 2,959
0 votes
1 answer
152 views

Abstract block for HTML export?

I see the abstract block #+begin_abstract Hello, here's my article's abstract... #+end_abstract and it exports nicely into LaTeX with a nice title heading "Abstract" above it, i.e., LaTeX ...
147pm's user avatar
  • 2,959
0 votes
0 answers
35 views

html-mode: add font-lock support for multiple tags

In html-mode, how may a user add font-lock support when using multiple tags, such as: <u>Hello <i>foo/bar/baz</i> World</u> In the above-example, the text between the italics ...
lawlist's user avatar
  • 19.1k

1
2 3 4 5