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
2
votes
1answer
534 views

Where is mhtml mode defined? And why am I getting it by default when I open HTML files?

Under some very special conditions (namely, performing one particular edit in one particular HTML file), my Emacs session will freeze completely, and starts consuming ~100% of the CPU. The only ...
0
votes
1answer
51 views

Tell Emacs to use always the same browser

In my experience xhtml-mode's browse-url-of-buffer command uses different browsers depending, I guess, on the different desktop environments (or on their absence sometimes). My question, how can I ...
2
votes
1answer
328 views

how can I control table column widths when exporting to html?

I would like to specify the width of each column in tables that are exported from an org mode file to html. In terms of html I can think of two possible solutions, (i) add class attributes to each ...
1
vote
0answers
438 views

How to configure org-html-export-as-html to export drawer to html?

So, right now, I am trying to build my website with Nikola static site generator. There is a nice orgmode plugin for it where I can write my content in orgmode and Nikola can then render it to html (...
4
votes
2answers
542 views

Emacs picking the wrong browser

I'm working under org-mode. When I click on a [http://example.com] link, it opens a tab in Firefox as expected. The .emacs config is: '(browse-url-browser-function (quote browse-url-firefox)) ...
0
votes
2answers
862 views

yaml frontmatter in org mode

When exporting and org file in emacs to either html or md for a jekyll-based web page, the yaml front matter gets twisted. As suggested here, I have attempted enclosing it in an html block in the ...
4
votes
0answers
805 views

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair ...
3
votes
0answers
180 views

Is AsciiMath Possible in Org-mode?

I have been using Org-mode for largely everything including for maths text. Although I have gotten pretty good at writing LaTeX snippets, I have a lot of trouble reading it. I much prefer the syntax ...
0
votes
1answer
355 views

Code block evaluated when exporting, not when publishing

I have this basic org publishing project to test that code blocks evaluation is triggered by publishing in html (org-html-publish-to-html). While exporting through org-mode export dispatcher does ...
2
votes
0answers
105 views

How to export org subtree as nested <ul>/<ol> HTML list?

I have a section of an org-file where there are only headings with no content within them, each line is a (sub)heading. * heading 1 * heading 2 ** heading 2.1 ** heading 2.2 *** heading 2.2.1 * ...
3
votes
0answers
37 views

syncing html with w3m

How can I split Emacs to two buffers, one for html and the other for w3m so that when I save the html it refreshes the w3m buffer. Also, when I press E in the w3m buffer it takes me to the ...
0
votes
2answers
112 views

can I quickly clean up html files with emacs (prelude)

How do you clean up an html file? For example, this file has one too many empty line between the div tags. I would like cleanup to leave only one blank line there. <html> <body> &...
3
votes
0answers
53 views

Synchronised scrolling of HTML file and eww buffer

I am editing a HTML file. I have done C-x 3. Now, in the other split window, I want to open a browser, such as eww. And as I move in the HTML file, I want the browser window to show the ...
1
vote
1answer
204 views

org-mode inline html while exporting using ox-pandoc

I am not able to use inline html through macro in org-mode when exporting through ox-pandoc. For example if I use @@html:<span class="small">@@Small Text@@html:</span>@@ and export the ...
0
votes
2answers
174 views

Orgmode export html with fontawesome characters

I have an org document in which I inserted fontawesome characters (with the package fontawesome). When exporting to html, the characters are exported as is instead of being exported in html ...
1
vote
1answer
493 views

solution for html “intellisense” style completion for emacs like Atom or Brackets have

I've started taking an html course and I'm trying to figure out how to add functionality to emacs that exists in programs like atom or brackets. I've seen a few modes web-mode.el and nxhtml mentioned ...
1
vote
1answer
252 views

Syntax highlighting inside HTML5 <script> tags

I was curious if there was a way to get highlighting/indentation for any JavaScript that's inside of HTML5 tags? I don't frequently use JavaScript but for a class I'm in we're working with it. I ...
1
vote
1answer
129 views

HTML-mode insert tag without attribute(s) [duplicate]

In HTML-mode C-c C-o is bound to sgml-tag which inserts a tag of choice and one or more attributes. My question is this: How can I insert a tag with sgml-tag and skip insertion of an attribute. For ...
2
votes
1answer
50 views

Random href ids in Org 9 exported HTML?

Something seems to have changed in the way HTML is exported from org mode between the 8 and 9 versions.One example, in the Table of Contents, I get entries with anchors like this: a href="#orgfaf035e"...
5
votes
1answer
662 views

orgmode - html export image and code top alignment

This pgfplot gallery is excellent. I try to use org mode to generate similar html but the image and code block not align. #+HTML_HEAD: <style type="text/css"> #+HTML_HEAD: .example {background-...
3
votes
1answer
247 views

How to export readable HTML links in Org mode?

When exporting an Org file to HTML all internal links of the form [[link]] are given section indicators of the form X.Y.Z. This makes sentences in which words have been linked unreadable. Input * ...
0
votes
1answer
110 views

Is it possible to auto select the mode depending on where the file is?

One can use auto-mode-alist to define modes based on the regex and the filename. However I want to use different modes for files depending on which folder they are in. So, for example, in a django ...
3
votes
1answer
582 views

gnus to send html-formatted emails

I'm trying to send an html-formatted email via gnus. I found this: https://groups.google.com/forum/#!topic/gnu.emacs.help/nZBJxHHYdko which suggests: 1. M-x mml-insert-part enter 2. Content type: ...
7
votes
1answer
2k views

How to include rendered HTML in org mode?

It looks like this question was asked in this thread, but was not resolved. I hope it doesn't sound redundant, but it seems there must be a way to accomplish this in org mode. In my example, I am ...
6
votes
2answers
3k views

HTML mode that closes tags

Regular HTML mode doesn't close tags. Or, if it does, I haven't found out how. Transitioning out of Sublime Text, I am searching for an HTML markup mode that will close tags intelligently. The HTML ...
3
votes
0answers
77 views

eww filter rules

emacs-w3m has very useful function: w3m-filter. Namely, one can change html before rendering it. Does eww have something similar? For example on some site i want to change: <span class="tag">...
4
votes
0answers
323 views

how to expand org-mode macros in HTML blocks in export to HTML?

I'd like to use org-mode macro replacement to expand macros inside HTML blocks in org-mode export to HTML. I'd like this... #+MACRO: event-url bar #+HTML_HEAD: <meta property="og:url" content="...
3
votes
2answers
2k views

HTML editing with preview [duplicate]

Editing html is good but I really would like to have a way of fast previewing the changes that I made. Is there e.g. a script to open Chromium or refresh a site for that?
5
votes
1answer
900 views

siunitx, MathJax, org-mode and html export

I use org-mode to write documents that are both exported into PDF via latex and HTML. I use the package siunitx to typeset numbers with si-units. It is a bit tedious to do but I got used to it (...
1
vote
1answer
392 views

Web-mode uses 1 space indent instead of 2

I have this config in my init.el: (setq-default indent-tabs-mode nil) (add-to-list 'auto-mode-alist '("\\.html?\\'" . web-mode)) (defun my-web-mode-hook () "Hooks for Web mode." (setq web-mode-...
1
vote
1answer
165 views

Exporting tables to html with fixed header when scrolling

I have a rather tall table (200-300 lines) being exported to html. It would be nice to have the header visible at all times when scrolling to the lower entries. So far no googling has turned up a ...
2
votes
0answers
81 views

How can we use a specific command from LaTeX package while exporting to html?

I can add LaTeX equation in my org file using for instance. \begin{equation} x^2 + y^2 = z^2 \end{equation} In this case when I export to html everything works fine. However, when I try to use a ...
1
vote
1answer
604 views

Find and replace matching html tags

I want to transform some of the opening and closing tags in an html document to other tags. That is I would like to transform <div class='foo'> This is some text. </div> to something ...
4
votes
3answers
620 views

Emacs org mode export paragraph in block to HTML, The content does not wrap

it became to one long straight bar, instead of showing as a block of the paragraph. I use #+begin_example. if I use quote it looks ok but I want to have the block looks.
1
vote
1answer
461 views

args-out-of-range error with ac-html

I tried using ac-html recently since I'm an auto-complete user and I'd like to have HTML completion in html-mode and web-mode buffers. However, it has been acting somewhat strangely and throws an ...
2
votes
2answers
297 views

Changing HTML Table Formatting When Exporting from R

I am generating several tables in R and then exporting them to HTML(5). For instance: #+BEGIN_SRC R :session *R-org* :results output raw :exports results df <- data.frame(x=0.110, y=0.132) ...
7
votes
1answer
3k views

Markdown preview in Emacs using pandoc

Platform: Windows 7, Emacs 24.2, Pandoc 1.17.2 Scenario: I am writing a markdown file in Emacs. I need to use pandoc to render the output, because it supports citations (using pandoc-citeproc). ...
8
votes
3answers
2k views

Embed Image as Base64 on HTML export from Orgmode

The goal is to make a self-contained html file when exporting from orgmode so that the images are intrinsic to the file and a single html file will can be distributed (I am trying to do this for a ...
4
votes
2answers
2k views

Center image in GitHub's README.org

I want to center an image in my project's GitHub README.org file, but everything I've tried so far hasn't worked: #+ATTR_HTML style="center" [[/path/to/img.png]] #+ATTR_HTML align="center" [[/path/...
1
vote
1answer
687 views

Emmet-mode: Wrapping individual lines in HTML tags

I'm new to Emacs, new to Emmet, and new to Stack Overflow. I'm trying to wrap a list of text in individual html tags. Home About Something is supposed to become <ul> <li>Home</...
1
vote
1answer
118 views

Why does my latex src code block ignore exports header arguments

GNU Emacs 25.1.50.2 Org-mode version 8.3.5 At some point in the past I could put down a block like this #+begin_src latex :exports results :results {latex|html} \begin{equation} a = 1 + b \end{...
1
vote
1answer
200 views

`markdown-mode` only renders some, not all, LaTeX strings

I'm using markdown-mode. I followed these instructions to render LaTeX math strings: http://jblevins.org/projects/markdown-mode/ I am rendering to HTML with markdown-export and markdown-live-preview-...
1
vote
1answer
190 views

How do I replace html <p> tag contents from one html file to another html file

I am having difficulty with bibliography citations in HTML export. I am able to generate two html files with citations, one from the standard html export from an org file, and another from exporting ...
1
vote
0answers
299 views

Delete opening and closing tag in web-mode

Is there a way to delete opening and closing html tags in web-mode? I have tried using sgml-delete-tag from within web-mode but can't get it to work properly (I get an error message sgml-lexical-...
1
vote
0answers
71 views

Open HTML email in browser but preventing loading of images and scripts

Email mail clients such as mu4e are not perfectly suited to view HTML emails. I usually try to view it in Emacs (using Emacs' own HTML redinging enging shr) but revert to opening the email in a ...
2
votes
2answers
817 views

How to org-export this tag into HTML?

how to export dir="rtl" into HTML file from an org buffer? TL;DR: I want to export this simple org-buffer written in Arabic into HTML. The direction should be from right to left. I have this setting ...
1
vote
2answers
821 views

Embbed html/javascript in org-mode html export

Is it possible to embed an html file within an html exported from org-mode? I don't mean to "quote" the source of the file (which is possible with #+INCLUDE: "someFile.html" src html). My use case ...
7
votes
1answer
563 views

How to get org-mode fully support Arabic language for export?

My intention is to write Arabic document using org-mode. Please consider the following MWE, given that my configuration in init.el has below code to enable writing of Arabic script from right to left (...
2
votes
1answer
490 views

Org-Mode: Exclude specific code line from html export

I'm writing a Lilypond typesetting tutorial in Org to be published on a web page. I would like to exclude the line with set-default-paper-size from html export, cause it doesn't belong to the tutorial ...
2
votes
0answers
175 views

How can I use an absolute path to my CSS with impatient-mode?

I installed impatient-mode through MELPA, and I'm having some trouble with the CSS functionality. If I create a directory called temp with an HTML file and a CSS file inside: temp ├── index.html └── ...