Hot answers tagged

2

Looks like #+HTML: <section> does the trick. It adds the <section> without wrapping it in <p> tags.


2

web-mode-language-at-pos function is what are your looking for. Although it is not documented. Single function to get language at pos that will work across different modes might look like this: (defun my/language-at-pos (pos) "Message language at POS." (interactive "d") (let ((lang (cond ;; web-mode ((eq major-mode 'web-...


2

As described in the org manual, alongside the explanation of #+BEGIN_EXPORT html @@html:the quick <b>brown</b> fox@@


2

This is not really a problem with either org or LaTeX. You have set H:3 which makes fourth-level headlines into list items of some sort. You have chosen num:t which says that the sections should be numbered. In that case, the LaTeX exporter chooses the enumerate environment for "deep" sections. So far, so good. But that makes the whole section (headline ...


1

You can find out what C-c C-v does by pressing F1 k C-c C-v in a html-mode buffer: C-c C-v runs the command browse-url-of-buffer (found in html-mode-map), which is an interactive autoloaded compiled Lisp function in ‘browse-url.el’. That command can be bound in the appropriate web-mode keymap, aptly named web-mode-map: (with-eval-after-load 'web-...


1

A useful option is to put #+SETUPFILE: mysetup.org at the top of each .org file and then place your common heading commands such as #+HTML_HEAD: <link rel="stylesheet" type="text/css" href="mystyle.css" /> in the file mysetup.org. Note that mysetup.org can contain further #+SETUPFILE: lines, reading in other files.


1

You can customize the Drag and Drop behavior using the variable dnd-protocol-alist. The ultimate fallback is inserting the link as text, so this is what you want: (setq dnd-protocol-alist nil) The following is the default value, you can also remove http only (("^file:///" . dnd-open-local-file) ("^file://" . dnd-open-file) ("^file:" . dnd-open-local-...


1

In your style.css add .title {text-align: center;} to center the document title in the exported html file. Classes used when exporting are documented in the org manual: CSS-Support. Or inspect the generated html file to see what element and class are used. For the document title this will be the following: <h1 class="title">Hello World</h1> ...


1

The function sgml-html-meta-auto-coding-function selects the coding system on the basis of the meta tag. It only checks the meta tag if the document begins with <!doctype html> or with <html>. (Case is not relevant since case-fold-search is let-bound to t.) That function is a member of auto-coding-functions by default. So the coding system is ...


1

Emacs 26.1 uses mhtml-mode for HTML files by default, the new mode supports JavaScript and CSS within HTML. Here is the NEWS from C-u C-h n 26.1: *** A new submode of 'html-mode', 'mhtml-mode', is now the default mode for *.html files. This mode handles indentation, fontification, and commenting for embedded JavaScript and CSS. You can use the text ...


1

You need to set the appropriate export option, which is timestamp. It's described at Export Settings, but I always find that section ridiculously confusing, so here are some examples: Either globally using a variable: (setq org-export-with-timestamps nil) or globally using a keyword: #+options: timestamp:nil * headline one two three or on an individual ...


1

The solution to my alternative issue (I used pandoc, more below) may apply to your's as well. I was looking for a CGI-based approach to render org files in the browser, thus implicitly publishing them on the fly. This would allow me to work with the org files without having to actively publish them. In the past, I took a lot of notes using ReStructured ...


1

For racket-mode I wanted to have GitHub host a Reference.md file that recapitulated the doc strings for user commands, vars, and faces. That way, people could browse online without installing. What I came up with to do so is racket-make-doc.el. How it works: I specify the commands, vars, and faces in a defconst for each. Iterate over each, using (...


1

You can use @@html:...@@, for example: @@html:<i class="fa fa-plus"></i>@@ ref: Quoting HTML tags


Only top voted, non community-wiki answers of a minimum length are eligible