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

Spaces in labels should convert to dashes #9387

Closed
ntjess opened this issue Jan 29, 2024 · 0 comments
Closed

Spaces in labels should convert to dashes #9387

ntjess opened this issue Jan 29, 2024 · 0 comments

Comments

@ntjess
Copy link

ntjess commented Jan 29, 2024

The following latex document contains valid labels:

\documentclass{article}
\begin{document}
\section{Test section}\label{my label}

In section \ref{my label}, ...

\end{document}

However, typst doesn't allow spaces in labels. Compiling the output results in:

error: unclosed label

A similar problem occurs with slashes (an occurrence for auto-generated biblatex entries):

\cite{10.1117/12.695309}

But since pandoc can't change the citekey, perhaps this should be a warning?

@jgm jgm transferred this issue from jgm/typst-hs Jan 29, 2024
jgm added a commit that referenced this issue Jan 29, 2024
@jgm jgm closed this as completed in 97eb927 Jan 29, 2024
jgm added a commit that referenced this issue Jan 29, 2024
and other special characters. In these cases, we produce an
explicit `label()` rather than using `<>` or `@`.

Cloess #9387.
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