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

Quotation marks in plex-mono #514

Closed
TheJoffrey opened this issue Mar 15, 2023 · 9 comments
Closed

Quotation marks in plex-mono #514

TheJoffrey opened this issue Mar 15, 2023 · 9 comments

Comments

@TheJoffrey
Copy link

Hello, quotation marks using Plex Mono are the following:

They should be:

"

Very annoying when using for code. Thank you!

@BoldMonday
Copy link
Collaborator

The standard single and double quotes in IBM Plex Mono are straight forms.
Not sure what is the culprit in your case, but it is not the font.

image

@TheJoffrey
Copy link
Author

TheJoffrey commented Mar 17, 2023

The issue doesn't occur when importing the font locally or using other fonts. Please try this code, I think you will understand:

\documentclass{article}
\usepackage{plex-mono}

\begin{document}
\begin{verbatim}
	"My citation"
\end{verbatim}
	
\end{document}

You can compare it to the Google Font here.

@akulisch
Copy link

@TheJoffrey In all TeX variations " will be replaced with per default. https://en.wikibooks.org/wiki/LaTeX/Text_Formatting#Quote-marks

You will need to find a solution to instead produce the straight quotes, which depends on whether you are using LaTeX, XeLaTex, or LuaTeX, and on which packages you are using. This question is best placed in a TeX-centric forum like, e.g., https://tex.stackexchange.com/, since it has nothing to do with the font you are using, and thus is not a Plex problem.

@TheJoffrey
Copy link
Author

TheJoffrey commented Mar 17, 2023 via email

@BoldMonday
Copy link
Collaborator

BoldMonday commented Mar 18, 2023

@TheJoffrey What plex-mono package are you referring you? And what is fontspec?
Are you using the Plex Mono fonts from this repository?

As @akulisch already noted: your problem might be somewhere downstream.

Please explain as elaborately as possible your use case, the environment you’re using (OS, applications, etc.) and how you are accessing the fonts in question. Thanks!

As I said it only happens using the plex-mono package, and not when importing font using fontspec. So it does look like a Plex package issue.

@TheJoffrey
Copy link
Author

TheJoffrey commented Mar 18, 2023 via email

@BoldMonday
Copy link
Collaborator

@TheJoffrey This is still not specific enough to understand the issue I’m afraid. We are font developers, not package managers or LateX users.
Please describe step by step – and as elaborate as possible – how to replicate the problem you’re describing.

@BoldMonday
Copy link
Collaborator

A search for \usepackage{plex-mono} led me to the following repository:
https://ctan.org/tex-archive/fonts/plex (Note that this is not an IBM affiliated repository.)

The README of that repository contains the following:

This is the README for the plex package, version 2022-09-23.

[...]

The nomap option to plex-mono will suppress the tex-text
mapping of TeX "smart quotes" and other ligatures into
unicode glyphs for xeLaTeX and luaLaTeX.

[...]

There is the answer to this issue.

@TheJoffrey
Copy link
Author

TheJoffrey commented Mar 20, 2023 via email

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

3 participants