Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enumeration format not customizable in PDF export via LaTeX #6059

Open
3 tasks done
flo-st opened this issue May 24, 2024 · 0 comments
Open
3 tasks done

Enumeration format not customizable in PDF export via LaTeX #6059

flo-st opened this issue May 24, 2024 · 0 comments

Comments

@flo-st
Copy link

flo-st commented May 24, 2024

  • Searched existing issues to avoid creating duplicates.

  • Confirmed that it can be reproduced in built-in themes without customized css.

    If it only exists in 3rd party themes or css, you can still report it, but please attach the theme target or the css file. We may not "fix" it, if it is caused by 3rd party themes or css styles that we cannot support.

  • Searched http://support.typora.io/


Describe the bug
When exporting to PDF via LaTeX, the enumerates are hardcoded with \def\labelenumi{\arabic{enumi}.} or \def\labelenumii{\arabic{enumii}.}, preventing users from overwriting them using \renewcommand in YAML header-includes without manually editing the exported LaTeX file.

To Reproduce
Steps to reproduce the behavior:

  1. Open a Markdown file containing enumerated lists.
  2. Add the following lines to the YAML header-includes section of the Markdown file:
header-includes: |
  \renewcommand{\labelenumi}{(\alph{enumi})}
  \renewcommand{\labelenumii}{(\roman{enumii})}
  1. Export the file to PDF via LaTeX.
  2. Observe that the enumeration format remains unchanged in the exported PDF, disregarding the modifications specified in the YAML header-includes.

Expected behavior
Users should be able to customize the enumeration format using \renewcommand in the Markdown file, and the modifications should be reflected in the exported PDF.

Screenshots / Screencasts
N/A

Sample Markdown File
Please attach or send us hi@typora.io the sample md file that may reproduce this.

Desktop (please complete the following information):

  • OS: Windows 10 64bit

Typora Version
1.8.10

Additional context
This issue affects users who rely on LaTeX for PDF export and need to customize the enumeration format. Currently, users have to manually edit the exported LaTeX file to make the desired modifications, which is inconvenient and defeats the purpose of using Markdown for seamless document creation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant