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
1answer
19 views

Keybinding shortcut for Tufte html export

I've perused a few of the org-mode html-export keybinding 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 ...
0
votes
1answer
17 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-...
0
votes
0answers
30 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 ...
0
votes
1answer
42 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 ...
2
votes
1answer
43 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-...
0
votes
1answer
53 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 ...
0
votes
1answer
17 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),...
4
votes
1answer
84 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 * ...
0
votes
1answer
24 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\&...
0
votes
0answers
37 views

siunitx, org-mode html export with correct equation numbering display

Using org-mode 9.4.6 and emacs 26.3 I am trying to export a org-mode subtree which contains LaTeX code into html. Without any additional configuration, equations and their numbering are displayed ...
0
votes
0answers
26 views

Change math (MathJax) font size in org-reveal

I'm trying to change the size of math text in org-reveal, but I'm running into a weird problem. I'm doing it via CSS, with the following option: #+reveal_html: <style> .MathJax {font-size: 0.7em;...
0
votes
0answers
29 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 ...
0
votes
2answers
44 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 ...
1
vote
2answers
135 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 ...
0
votes
1answer
74 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=&...
1
vote
1answer
48 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-...
0
votes
2answers
41 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 ...
0
votes
0answers
62 views

Org-mode convert web link to PDF

I am trying to write two functions to do these: Function 1: When the point is on a link (in an Org file), generate a PDF from that link (I am thinkng of using wkhtmltopdf. Side question: does ...
3
votes
1answer
198 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 ...
0
votes
1answer
49 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-...
3
votes
2answers
76 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-...
3
votes
0answers
124 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&...
0
votes
1answer
15 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-...
0
votes
0answers
106 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 ...
1
vote
2answers
106 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 ...
0
votes
0answers
74 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 ...
0
votes
0answers
18 views

CSS to export org to printable(A4papers) HTML with headers

I export org buffers to A4paper size pdf with header and footer customized as my letterhead using xelatex. It requires latex to be installed on each machine. Is it possible to achieve the same using ...
0
votes
1answer
82 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&...
0
votes
0answers
24 views

Writing an rfc sort of with emacs -nw

I'm trying to write a document like this with emacs -nw It will be exported via ftp to a website so a client can see the research/report with their browser. Essentially ability to center a heading ...
0
votes
0answers
48 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/...
2
votes
1answer
83 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 ...
0
votes
1answer
68 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 ...
1
vote
2answers
218 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 ...
1
vote
1answer
134 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 | ...
0
votes
0answers
130 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?
0
votes
1answer
65 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 ...
0
votes
2answers
239 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 ...
3
votes
1answer
372 views

Properly exporting latex to HTML from org-mode using dvisvgm / dvipng

I need to export my org notes containing latex to HTML format. Example document : #+latex_class: article #+latex_header: \usepackage{chemfig} #+latex_header: \usepackage[version=3]{mhchem} #+...
0
votes
1answer
172 views

Export resume.org to both pdf and html

I've been maintaining my resume in orgmode for some time now, with export to pdf. I just decided it would be nice to also export to html which has uncovered a problem. I'm using headings to list my ...
0
votes
0answers
38 views

How to have a tag replace its parent in web-mode? (Equivalent to paredit-raise-sexp in paredit)

I'm having a hard time searching for the answer to this, probably I'm using the wrong terminology. How do I have a child element replace its parent element (the parent element deleted completely and ...
0
votes
1answer
613 views

Launch emacs in eww mode, display local .html file at startup

I'm new to Emacs and I'm going about customizing my install on Mac OS Catalina. I have a twist on a common request. I had the idea to customize the emacs startup screen, but I see those options are ...
1
vote
1answer
62 views

Org mode HTML export presets

When I export something with org mode to html, with it comes a load of presets such as id, labels, classes, preambles and post ambles. For example: <div id="outline-container-org16cf335" class="...
0
votes
1answer
43 views

Make eqref work in HTML export

I'm trying to use org-ref to reference to equation numbers. It works with PDF export but never works in HTML export. In the web page it only shows a clickable (???) link with no destination. I tried ...
0
votes
2answers
246 views

Emacs acting strangely with indentation

So I've recently come back to working with emacs again I mostly write JavaScript in particular React these days and I'm noticing some strange behaviour when trying to indent my code. it seems the ...
3
votes
0answers
582 views

org mode, html export of LaTeX equations with tikz support

In my org-mode file I have some LaTeX equations using tikz and tikz-cd packages: #+TITLE: Mixing tikz and equations * An example \begin{equation*} \begin{tikzcd} A\arrow[yshift=.7ex,r,"f"] \arrow[...
1
vote
0answers
196 views

org-file with embedded latex and pseudo code converting to html via MathJax

I would like to use org-mode files with embedded latex code. Some of the latex content is based on packages like \usepackge{algorithm, algorithmic} to generate pseudo-code. These org-files should ...
2
votes
1answer
240 views

How to render html in web-mode?

I'm using web-mode within emacs to edit an html file, in html-mode I can use C-c C-v to render html, it opens the file straight to Firefox. How I do that with web-mode? Thanks a lot, P.S : Using ...
1
vote
1answer
608 views

HTML export with Org mode : all CSS specifications in one external file

I am using org mode to write my personnal website. I use the workflow described in the documentation (cf. https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html) and I therefore have a ...
1
vote
1answer
282 views

Exporting LaTeX commands to HTML/MathJax

I am writing a document that is specifying a language with associated grammar and semantics. For this I have written the specification in Latex, using a method very similar to the one presented here. ...
1
vote
0answers
36 views

Wrong numbering of sections - html export - org-mode - RTL languages

This small example: #+LANGUAGE: ar #+HTML: <style> html,h1,h2,h3,h4,h5,h6,body { direction: rtl} </style> * 1 ** - 1. 1 ** - 1. 2 ! ** - 1. 3 ! * 2 ** - 2. 1 ! ** - 2. 2 ** ...