From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: Org equivalent to \chapter* Date: Wed, 06 Aug 2014 03:11:01 +0200 Message-ID: <87lhr2v2vu.fsf@gmail.com> References: <53E172B1.5020101@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEplC-0000mP-8G for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 21:11:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEpl4-0003os-K6 for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 21:11:22 -0400 Received: from plane.gmane.org ([80.91.229.3]:35097) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEpl4-0003nA-AC for emacs-orgmode@gnu.org; Tue, 05 Aug 2014 21:11:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XEpl2-00031j-4b for emacs-orgmode@gnu.org; Wed, 06 Aug 2014 03:11:12 +0200 Received: from g231105103.adsl.alicedsl.de ([92.231.105.103]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 03:11:12 +0200 Received: from tjolitz by g231105103.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 06 Aug 2014 03:11:12 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Alan L Tyree writes: > I'm sure this has been asked before, but I can't seem to find it. Is > there an org markup that produces a starred latex heading? > > In a book, for example, I want the Preface to be at chapter level, but > not included in the numbering. Same for HTML export, of course. ,----[ C-h v org-latex-classes RET ] | org-latex-classes is a variable defined in `ox-latex.el'. | Its value is shown below. | | Documentation: | Alist of LaTeX classes and associated header and structure. | If #+LATEX_CLASS is set in the buffer, use its value and the | associated information. Here is the structure of each cell: | | (class-name | header-string | (numbered-section . unnumbered-section) | ...) | | The header string | ----------------- | | The HEADER-STRING is the header that will be inserted into the | LaTeX file. It should contain the \documentclass macro, and | anything else that is needed for this setup. To this header, the | following commands will be added: | | - Calls to \usepackage for all packages mentioned in the | variables `org-latex-default-packages-alist' and | `org-latex-packages-alist'. Thus, your header definitions | should avoid to also request these packages. | | - Lines specified via "#+LATEX_HEADER:" and | "#+LATEX_HEADER_EXTRA:" keywords. | | If you need more control about the sequence in which the header | is built up, or if you want to exclude one of these building | blocks for a particular class, you can use the following | macro-like placeholders. | | [DEFAULT-PACKAGES] \usepackage statements for default packages | [NO-DEFAULT-PACKAGES] do not include any of the default packages | [PACKAGES] \usepackage statements for packages | [NO-PACKAGES] do not include the packages | [EXTRA] the stuff from #+LATEX_HEADER(_EXTRA) | [NO-EXTRA] do not include #+LATEX_HEADER(_EXTRA) stuff | | So a header like | | \documentclass{article} | [NO-DEFAULT-PACKAGES] | [EXTRA] | \providecommand{\alert}[1]{\textbf{#1}} | [PACKAGES] | | will omit the default packages, and will include the | #+LATEX_HEADER and #+LATEX_HEADER_EXTRA lines, then have a call | to \providecommand, and then place \usepackage commands based | on the content of `org-latex-packages-alist'. | | If your header, `org-latex-default-packages-alist' or | `org-latex-packages-alist' inserts "\usepackage[AUTO]{inputenc}", | AUTO will automatically be replaced with a coding system derived | from `buffer-file-coding-system'. See also the variable | `org-latex-inputenc-alist' for a way to influence this mechanism. | | Likewise, if your header contains "\usepackage[AUTO]{babel}", | AUTO will be replaced with the language related to the language | code specified by `org-export-default-language', which see. Note | that constructions such as "\usepackage[french,AUTO,english]{babel}" | are permitted. | | The sectioning structure | ------------------------ | | The sectioning structure of the class is given by the elements | following the header string. For each sectioning level, a number | of strings is specified. A %s formatter is mandatory in each | section string and will be replaced by the title of the section. | | Instead of a cons cell (numbered . unnumbered), you can also | provide a list of 2 or 4 elements, | | (numbered-open numbered-close) | | or | | (numbered-open numbered-close unnumbered-open unnumbered-close) | | providing opening and closing strings for a LaTeX environment | that should represent the document section. The opening clause | should have a %s to represent the section title. | | Instead of a list of sectioning commands, you can also specify | a function name. That function will be called with two | parameters, the (reduced) level of the headline, and a predicate | non-nil when the headline should be numbered. It must return | a format string in which the section title will be added. | | You can customize this variable. | | Value: (("koma-book" "\\documentclass{scrbook}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) | ("koma-article" "\\documentclass{scrartcl}" | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) | ("article" "\\documentclass[11pt]{article}" | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) | ("report" "\\documentclass[11pt]{report}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) | ("book" "\\documentclass[11pt]{book}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) | | Original value was | (("article" "\\documentclass[11pt]{article}" | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}") | ("\\paragraph{%s}" . "\\paragraph*{%s}") | ("\\subparagraph{%s}" . "\\subparagraph*{%s}")) | ("report" "\\documentclass[11pt]{report}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) | ("book" "\\documentclass[11pt]{book}" | ("\\part{%s}" . "\\part*{%s}") | ("\\chapter{%s}" . "\\chapter*{%s}") | ("\\section{%s}" . "\\section*{%s}") | ("\\subsection{%s}" . "\\subsection*{%s}") | ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))) | | [back] `---- -- cheers, Thorsten