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
1 answer
19 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&...
user avatar
0 votes
1 answer
23 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"...
user avatar
0 votes
0 answers
25 views

Writing elements of directory to file

I am trying to set up my own system for a personal wiki using my org-mode files. I currently have my notes organized into directories for different classes/topics that are all contained in a single ...
user avatar
  • 1
0 votes
0 answers
36 views

Org-mode theorem with automatic numbering, label, and caption (export to HTML and LaTeX)

This question is related to a previous SE post: Org export theorem with caption and number in HTML, and a doc page org-special-blocks.el. Another SE post covers this issue, but the solution also doesn'...
user avatar
  • 103
0 votes
0 answers
28 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 ...
user avatar
  • 103
0 votes
1 answer
24 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 ...
user avatar
  • 2,717
1 vote
0 answers
38 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 ...
user avatar
  • 11
0 votes
0 answers
34 views

Relative link for publishing in org-mode

I'm developing a site using org-mode and ox-publish for publishing. I intend to have sub-folders within my site that separate pages from one another. The issue that I'm facing is that any link such as ...
user avatar
0 votes
1 answer
39 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 ...
user avatar
  • 348
1 vote
0 answers
31 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 ...
user avatar
3 votes
0 answers
24 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&...
user avatar
0 votes
1 answer
55 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=&...
user avatar
1 vote
0 answers
41 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 ...
user avatar
  • 1,004
0 votes
1 answer
28 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,...
user avatar
  • 3
0 votes
1 answer
41 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: ...
user avatar
  • 2,717
0 votes
1 answer
55 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 ...
user avatar
  • 2,717
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 ...
user avatar
  • 17.7k
2 votes
1 answer
72 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.
user avatar
  • 17.7k
0 votes
1 answer
40 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 ...
user avatar
  • 2,717
0 votes
1 answer
44 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-...
user avatar
  • 101
1 vote
0 answers
36 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 ...
user avatar
  • 285
0 votes
1 answer
67 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 ...
user avatar
  • 115
2 votes
1 answer
71 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-...
user avatar
  • 3,885
1 vote
1 answer
121 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 ...
user avatar
  • 141
0 votes
1 answer
42 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),...
user avatar
4 votes
1 answer
89 views

How to use Org KEYWORD values within exported body?

How can I get the author's name, the date, or other #+KEYWORD: value variables to appear within the exported body? This is my org-mode file: #+TITLE: Some Title #+AUTHOR: Foo Bar #+DATE: 2021-08-21 * ...
user avatar
0 votes
1 answer
31 views

Change org-html-home/up-format locally within an org file

Looking for a way to change the org-html-home/up-format within my org file. I've learned that you can change the variable within emacs via: (setq org-html-home/up-format "<a href=\"%s\&...
user avatar
  • 331
0 votes
0 answers
42 views

Export Org-Mode tree just as is to PDF/HTML

Say if I have a org-mode document with org-indent-mode enabled. The document will look like the following in the Emacs buffer. Is it possible to export this to a PDF or HTML that looks exactly the ...
user avatar
0 votes
2 answers
79 views

How to convert org-mode section to html

There exists (org-html-export-as-html nil nil t t) which converts an entire org-mode buffer to another buffer, but is there a way to convert a string in org-mode format to a string in html? I'm ...
user avatar
1 vote
2 answers
258 views

How can I use the physics package in mathjax for org-mode HTML export?

I’m trying to use org-mode to export something as an HTML document, with MathJax equations. I know that MathJax supports the physics package, so it seems like it should be possible to tell emacs to ...
user avatar
0 votes
1 answer
107 views

How do I specify how tags in headers are exported to HTML in org-mode?

I would like tags in headers (specifically) to export to html as links to a file of the same name, something like: * My first post is about dogs :DOGS: where :DOGS: then exports as <span class=&...
user avatar
  • 339
1 vote
1 answer
60 views

PSGML conflicts with built-in `sgml-mode`

I’ve installed psgml 1.4.0-9 and psgml-html-mode for DTD-aware editing of HTML.* But the built-in sgml-mode/html-mode seems to be causing some problems: some tags are highlighted in font-lock-function-...
user avatar
  • 133
0 votes
2 answers
104 views

Using org-mode babel, how do I quickly export some html soure block to a separate file?

I am taking notes on a course in org-mode. I am using HTML source-blocks to write down examples of html code. This serves me because I have text and code in one file and it will be easier to export it ...
user avatar
3 votes
1 answer
324 views

Is there some way to view the HTML part of an email in an external browser or as a PDF in notmuch?

I have just started using notmuch for email. I was wondering if there is some way I can view the HTML part of an email in an external browser or rendered to a pdf and viewed inside Emacs (like you can ...
user avatar
0 votes
1 answer
57 views

How can I remove whitespace in HTML?

I would like to be able to go from this: <label for="exampleInputEmail1" class="form-label">Phone number</label> <input type="text" class="form-...
user avatar
  • 101
3 votes
2 answers
107 views

Emacs script to indent files from the command line

I am trying to create an Emacs script that indents HTML files from the command line. This is what I have so far: #!/usr/bin/env -S emacs --script (require 'web-mode) (indent-region (point-min) (point-...
user avatar
3 votes
0 answers
137 views

The export of external links in org files to pdf and html files

I have a problem with the export of external links in org files to pdf and html files. Let's say I have the two org files in the same directory: file1.org = here is the label of file1: <<label&...
user avatar
  • 326
0 votes
1 answer
19 views

Disable quote replacement in sgml-mode

In sgml-mode, when I type quotes ", they are automatically replaced by &#34;. The culprit is the function sgml-name-self. Perhaps it is called automatically on characters in the variable sgml-...
user avatar
0 votes
0 answers
176 views

Make "#+BEGIN_EXPORT latex" also exported to html (orgmode)

I know that placing latex code in the main text body solve my issue: the latex code is taken into account both when exporting to latex and to html. However, I like to use Latex blocks because of the ...
user avatar
2 votes
2 answers
225 views

How to export an html file with a foldable & dynamic TOC from an org file?

When HTML pages are extended I find it quite useful to have a TOC (table of Content) available all along with your scrolling. A good example of an implementation of such a functionality is the Worg ...
user avatar
0 votes
0 answers
107 views

How to export org mode to html using Google Fonts & CSS?

I'm trying to change the headers and body fonts of HTML exported from org files. The idea is to have Bebas Neue for headers and Lato for body (both are available through Google fonts). first I ...
user avatar
0 votes
1 answer
162 views

Hook to run on completion of exporting org to html

I've defined a custom command with shell-interpreter to rsync files to my VPS... (defun rsync_html () (interactive) (with-shell-interpreter :path "~/org" :interpreter "bash&...
user avatar
  • 263
0 votes
0 answers
57 views

Why is Org mode converting spaces in links to HTML entities?

I store a link such as [[file:~/path/to/dir/some file.txt::# heading]], either manually or through org-capture. A few days later, Org has converted all spaces to the HTML entity %20: [[file:~/path/to/...
user avatar
  • 1,499
2 votes
1 answer
103 views

Open the manuals in the default web browser without accessing the internet

I am talking about this to be precise. Suppose there are an emacs installation and a web browser on an X session (desktop). I know you can open the manuals in emacs itself using M-x info, but is it ...
user avatar
  • 227
0 votes
1 answer
80 views

Expanding some elisp into HTML inside Org

I am creating an HTML file containing some notes exported from org mode. I would like to add all images from a folder into the HTML file generated i.e the images should display in the webpage when ...
user avatar
2 votes
2 answers
335 views

How to add picture before a title in HTML exported by OrgMode

I am writing an article in org mode to be exported to HTML for being published on the web. By looking at the documentation, I have not been able to find a way to insert an image before the title of ...
user avatar
1 vote
1 answer
210 views

Orgmode - Vertical header

is it possible to create a vertical header with org mode, too? Something like this (cyan colored fields): You can create a horizontal header like this: | Header | Header | Header | Header | ...
user avatar
0 votes
0 answers
262 views

Auto-format an html file

Is there a way to auto-format (in terms of things like indentation etc) the entire buffer or a region in an html file?
user avatar
  • 61
0 votes
1 answer
99 views

export custom element in html from org-mode

I'm trying to figure out the simplest possible way to export an html document from org-mode and have it include a working custom-element. I've tried the following, but it gives me an error message in ...
user avatar
  • 153
0 votes
2 answers
330 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
user avatar
  • 263