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
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
  • 31
0 votes
0 answers
23 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
16 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
  • 771
2 votes
1 answer
45 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
25 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
76 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
  • 317
1 vote
0 answers
20 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 ...
user27075's user avatar
  • 488
0 votes
0 answers
11 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
22 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
53 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
  • 36
0 votes
1 answer
26 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
50 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
  • 317
2 votes
1 answer
91 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
  • 317
2 votes
1 answer
105 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
101 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,185
0 votes
1 answer
58 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
  • 103
0 votes
0 answers
28 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,917
1 vote
1 answer
68 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
57 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
21 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
  • 771
1 vote
1 answer
110 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
29 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
248 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,185
0 votes
1 answer
79 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
30 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
62 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
47 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,185
0 votes
1 answer
34 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
40 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
49 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
56 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
  • 105
0 votes
1 answer
35 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,917
1 vote
0 answers
118 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
67 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 ...
user27075's user avatar
  • 488
1 vote
0 answers
85 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
27 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
343 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
145 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,046
0 votes
1 answer
35 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
132 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,917
0 votes
1 answer
121 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,917
0 votes
0 answers
31 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
  • 18.9k
2 votes
1 answer
85 views

html-mode: publish to browser and jump to cursor location

In html-mode, how can a user publish an html page to browser (browse-url-of-buffer), and also jump to the approximate location in the webpage as the cursor in the corresponding Emacs buffer.
lawlist's user avatar
  • 18.9k
0 votes
1 answer
49 views

Key-binding shortcut for Tufte html export

I've perused a few of the org-mode html-export key-binding shortcuts, i.e., ways to just have one key do, e.g., the entire long-winded C-c C-e h o. Unfortunately, there doesn't seem to be one fell ...
147pm's user avatar
  • 2,917
0 votes
1 answer
154 views

Org publish html preamble navigation bar does not work

I tried to change html preamble by adding a new item to the nav bar, but publish is not updating the navigation bar. I found this question, but I didn't know how to add a "force flag" to org-...
zeynel's user avatar
  • 181
1 vote
0 answers
58 views

How to setup the structure of org mode with a known html file?

I want to create an Org file, then export to HTML such that the final site looks something like this: https://html5up.net/dimension. If you go to their index.html file, their structure in HTML looks ...
mle0312's user avatar
  • 295
0 votes
1 answer
208 views

Make org-html export not escape special characters

I'm writing an exporter for Remarkup: https://github.com/renatgalimov/org-phabricator. It's similar to Markdown and based on org-md which itself is a modification of ox-html. Whenever I export, some ...
Renat's user avatar
  • 115
3 votes
1 answer
422 views

Add CSS class or id tag to individual src blocks

I want to style some HTML source block exports differently than others. Say I want the "Hi" block to have a green background and "Bye" to be red: #+COMMENT: -*- org-html-htmlize-...
Lorem Ipsum's user avatar
  • 4,347
1 vote
1 answer
338 views

(Org) TikZ for exporting both LaTeX and HTML/MathJax

I'm exporting an Org Mode project both to LaTeX and to HTML (with MatJax). Now I need to add a TikZ picture which can be exported nativelly on LaTeX and must be rendered in svg for HTML. Writing the ...
DPD-'s user avatar
  • 251
0 votes
1 answer
122 views

How to use yasnippets from js- and css- modes in html-mode?

I have latest YASnippet package installed on GNU Emacs 27.2 via MELPA. Snippets work, for example in *.js files, let expands to snippet after hitting TAB. However, when I edit HTML file (in html-mode),...
Vlad Havriuk's user avatar

1
2 3 4 5