* Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]
@ 2021-03-04 15:38 Qqwy/Wiebe-Marten
2021-03-05 2:45 ` Timothy
2021-03-05 12:01 ` Juan Manuel Macías
0 siblings, 2 replies; 4+ messages in thread
From: Qqwy/Wiebe-Marten @ 2021-03-04 15:38 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1.1: Type: text/plain, Size: 8842 bytes --]
Dear org-mode community,
With `org-list-allow-alphabetical` on, it is possible to use syntax like
`a.`, `b.`, `c.` to create lists.
However, the LaTeX that is exported will still create normal `enumerize`
lists that do /not/ show up as alphabetical but rather still use `1.`,
`2.`, `3.` for numbering.
I think this current behaviour is at the very least surprising, and
possibly unintended.
Thank you for your time and consideration!
~Marten / Qqwy
Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version
3.24.22, cairo version 1.17.3)
of 2020-08-28
Package: Org mode version 9.3.6 (9.3.6-71-g7684b5-elpaplus @
/home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)
current state:
==============
(setq
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-latex-listings 'minted
org-capture-prepare-finalize-hook '(org-roam-capture--install-finalize)
org-roam-dailies-calendar-hook '(org-roam-dailies-calendar-mark-entries)
org-fc-index-function 'org-fc-awk-index
org-link-shell-confirm-function 'yes-or-no-p
org-babel-after-execute-hook '(spacemacs/ob-fix-inline-images)
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-roam-title-to-slug-function 'org-roam--title-to-slug
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-html-format-inlinetask-function
'org-html-format-inlinetask-default-function
org-roam-mode-hook '(org-roam-bibtex-mode)
org-odt-format-headline-function 'org-odt-format-headline-default-function
org-latex-pdf-process '("latexmk -shell-escape -bibtex -pdf %f")
org-imenu-depth 8
org-download-annotate-function 'org-download-annotate-default
org-roam-bibtex-mode t
org-agenda-files
'("/run/media/qqwy/Serendipity/Programming/RUG/ShortProgrammingProject/repo/report/report.org")
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-modules '(org-roam-protocol ol-w3m ol-bbdb ol-bibtex ol-docview
ol-gnus ol-info ol-irc ol-mhe
ol-rmail ol-eww)
org-roam-buffer-prepare-hook '(org-roam-buffer--insert-title
org-roam-buffer--insert-backlinks
org-roam-buffer--insert-ref-links)
org-mode-hook '(org-fragtog-mode
(lambda nil (define-key org-mode-map (kbd "<f5>") 'org-export-as-pdf))
spacemacs/load-yasnippet toc-org-enable org-download-enable
org-bullets-mode
spacemacs//org-babel-do-load-languages spacemacs/add-org-surrounds
evil-org-mode
spacemacs/delay-emoji-cheat-sheet-hook
#[0 "\301\211\x10\207" [imenu-create-index-function org-imenu-get-tree] 2]
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-show-all append local] 5]
#[0 "\300\301\302\303\304$\207"
[add-hook change-major-mode-hook org-babel-show-result-all append local] 5]
org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load
spacemacs//init-company-org-mode company-mode)
org-roam-mode t
org-odt-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-archive-hook '(org-attach-archive-delete-maybe)
org-agenda-restore-windows-after-quit t
org-confirm-elisp-link-function 'yes-or-no-p
org-startup-with-inline-images t
org-roam-title-change-hook '(org-roam--update-file-name-on-title-change
org-roam--update-links-on-title-change)
org-download-file-format-function 'org-download-file-format-default
org-roam-capture-function 'org-capture
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-bibtex-headline-format-function #[257 "\300\x01\236A\207" [:title] 3
"\n\n(fn ENTRY)"]
org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
org-babel-pre-tangle-hook '(save-buffer)
org-tab-first-hook '(org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-babel-load-languages '((emacs-lisp . t) (shell . t) (C . t) (haskell
. t))
org-log-done t
org-ascii-format-drawer-function #[771 "\x01\207" [] 4 "\n\n(fn NAME
CONTENTS WIDTH)"]
org-src-lang-modes '(("arduino" . arduino) ("redis" . redis) ("php" .
php) ("C" . c)
("C++" . c++) ("asymptote" . asy) ("bash" . sh) ("beamer" . latex)
("calc" . fundamental) ("cpp" . c++) ("ditaa" . artist)
("dot" . fundamental) ("elisp" . emacs-lisp) ("ocaml" . tuareg)
("screen" . shell-script) ("shell" . sh) ("sqlite" . sql))
org-occur-hook '(org-first-headline-recenter)
org-protocol-protocol-alist '(("org-roam-file" :protocol "roam-file"
:function
org-roam-protocol-open-file)
("org-roam-ref" :protocol "roam-ref" :function
org-roam-protocol-open-ref)
)
org-cycle-hook '(org-cycle-hide-archived-subtrees
org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-speed-command-hook '(org-speed-command-activate
org-babel-speed-command-activate)
org-clock-persist-file "/home/qqwy/.emacs.d/.cache/org-clock-save.el"
org-odt-format-inlinetask-function
'org-odt-format-inlinetask-default-function
org-babel-tangle-lang-exts '(("haskell" . "hs") ("D" . "d") ("C++" .
"cpp") ("emacs-lisp" . "el")
("elisp" . "el"))
org-format-latex-options '(:foreground default :background default
:scale 1.3 :html-foreground
"Black" :html-background "Transparent" :html-scale 1.0 :matchers
("begin" "$1" "$" "$$" "\\(" "\\["))
org-publish-timestamp-directory
"/home/qqwy/.emacs.d/.cache/.org-timestamps/"
org-export-async-init-file
"/home/qqwy/.emacs.d/layers/+emacs/org/local/org-async-init.el"
org-id-locations-file "/home/qqwy/.emacs.d/.cache/.org-id-locations"
org-confirm-shell-link-function 'yes-or-no-p
org-link-parameters '(("mairix" :follow org-mairix-open :store
org-mairix-store-gnus-link)
("attachment" :follow org-attach-open-link :export org-attach-export-link
:complete org-attach-complete-link)
("eww" :follow eww :store org-eww-store-link)
("rmail" :follow org-rmail-open :store org-rmail-store-link)
("mhe" :follow org-mhe-open :store org-mhe-store-link)
("irc" :follow org-irc-visit :store org-irc-store-link :export
org-irc-export)
("info" :follow org-info-open :export org-info-export :store
org-info-store-link)
("gnus" :follow org-gnus-open :store org-gnus-store-link)
("docview" :follow org-docview-open :export org-docview-export :store
org-docview-store-link)
("bibtex" :follow org-bibtex-open :store org-bibtex-store-link)
("bbdb" :follow org-bbdb-open :export org-bbdb-export :complete
org-bbdb-complete-link :store org-bbdb-store-link)
("w3m" :store org-w3m-store-link)
("roam" :follow org-roam-link-follow-link)
("id" :follow org-id-open :face org-roam--id-link-face)
("orgit-rev" :store orgit-rev-store :follow orgit-rev-open :export
orgit-rev-export :complete orgit-rev-complete-link)
("orgit-log" :store orgit-log-store :follow orgit-log-open :export
orgit-log-export :complete orgit-log-complete-link)
("orgit" :store orgit-status-store :follow orgit-status-open :export
orgit-status-export :complete orgit-status-complete-link)
("file+sys") ("file+emacs") ("shell" :follow org-link--open-shell)
("news" :follow
#[257 "\301\300\302\x03Q!\207" ["news" browse-url ":"] 5 "\n\n(fn URL)"])
("mailto" :follow
#[257 "\301\300\302\x03Q!\207" ["mailto" browse-url ":"] 5 "\n\n(fn URL)"])
("https" :follow
#[257 "\301\300\302\x03Q!\207" ["https" browse-url ":"] 5 "\n\n(fn URL)"])
("http" :follow
#[257 "\301\300\302\x03Q!\207" ["http" browse-url ":"] 5 "\n\n(fn URL)"])
("ftp" :follow
#[257 "\301\300\302\x03Q!\207" ["ftp" browse-url ":"] 5 "\n\n(fn URL)"])
("help" :follow org-link--open-help)
("file" :complete org-link-complete-file :face org-roam--file-link-face)
("elisp" :follow org-link--open-elisp) ("doi" :follow org-link--open-doi))
org-latex-format-headline-function
'org-latex-format-headline-default-function
org-present-mode-hook '(spacemacs//org-present-start)
org-link-translation-function 'toc-org-unhrefify
org-link-elisp-confirm-function 'yes-or-no-p
org-latex-format-inlinetask-function
'org-latex-format-inlinetask-default-function
org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
org-fc-directories '("~/Documents/NoteTaking/OrgRoam")
org-latex-packages-alist '(("" "minted") ("" "graphicx" t) (""
"longtable" nil) ("" "float" nil))
org-image-actual-width nil
org-roam-directory "~/Documents/NoteTaking/OrgRoam"
org-present-mode-quit-hook '(spacemacs//org-present-end)
org-html-format-headline-function
'org-html-format-headline-default-function
org-mairix-display-hook 'org-mairix-gnus-display-results
org-download-link-format-function
'org-download-link-format-function-default
org-ref-notes-function 'orb-notes-fn
org-export-latex-after-initial-vars-hook '(my-auto-tex-parameters
my-auto-tex-cmd)
org-mairix-gnus-select-display-group-function
'org-mairix-gnus-select-display-group-function-gg
org-download-abbreviate-filename-function 'file-relative-name
org-default-notes-file "notes.org"
org-list-allow-alphabetical t
)
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]
2021-03-04 15:38 Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)] Qqwy/Wiebe-Marten
@ 2021-03-05 2:45 ` Timothy
2021-03-05 3:06 ` Josiah Schwab
2021-03-05 12:01 ` Juan Manuel Macías
1 sibling, 1 reply; 4+ messages in thread
From: Timothy @ 2021-03-05 2:45 UTC (permalink / raw)
To: Qqwy/Wiebe-Marten; +Cc: emacs-orgmode
Qqwy/Wiebe-Marten <qqwy@gmx.com> writes:
> With `org-list-allow-alphabetical` on, it is possible to use syntax like
>
> `a.`, `b.`, `c.` to create lists.
>
> However, the LaTeX that is exported will still create normal `enumerize`
> lists that do /not/ show up as alphabetical but rather still use `1.`,
> `2.`, `3.` for numbering.
>
> I think this current behaviour is at the very least surprising, and
> possibly unintended.
To fix this I think we will probably require:
\renewcommand{\theenumi}{\alph{enumi}}
Which will need i's added to match the depth (e.g. \thenumii).
I expect this can be done within the enum env.
--
Timothy
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)]
2021-03-04 15:38 Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)] Qqwy/Wiebe-Marten
2021-03-05 2:45 ` Timothy
@ 2021-03-05 12:01 ` Juan Manuel Macías
1 sibling, 0 replies; 4+ messages in thread
From: Juan Manuel Macías @ 2021-03-05 12:01 UTC (permalink / raw)
To: Qqwy/Wiebe-Marten; +Cc: orgmode
Hi,
Qqwy/Wiebe-Marten <qqwy@gmx.com> writes:
> However, the LaTeX that is exported will still create normal `enumerize`
> lists that do /not/ show up as alphabetical but rather still use `1.`,
> `2.`, `3.` for numbering.
>
> I think this current behaviour is at the very least surprising, and
> possibly unintended.
I use the enumitem package
(http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf) for
lists in LaTeX. For an alphabetical list, for example:
#+begin_src org
,#+LaTeX_Header: \usepackage{enumitem}
,#+ATTR_LaTeX: :options [label=\alph*.,widest=a]
a. Lorem
b. ipsum
c. dolor
#+end_src
And to export to LaTeX and HTML, you can define a macro like this:
#+begin_src org
,#+MACRO: alphalist (eval (if (org-export-derived-backend-p org-export-current-backend 'latex) "#+ATTR_LaTeX: :options [label=\\alph*.,widest=a]" "#+ATTR_HTML: :type a"))
{{{alphalist}}}
a. Lorem
b. ipsum
c. dolor'
#+end_src
Best regards,
Juan Manuel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-03-05 12:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-03-04 15:38 Bug: alphabetical lists will not show up as such in LaTeX export [9.3.6 (9.3.6-71-g7684b5-elpaplus @ /home/qqwy/.emacs.d/elpa/org-plus-contrib-20200518/)] Qqwy/Wiebe-Marten
2021-03-05 2:45 ` Timothy
2021-03-05 3:06 ` Josiah Schwab
2021-03-05 12:01 ` Juan Manuel Macías
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).