-
Notifications
You must be signed in to change notification settings - Fork 10
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
t-vim: Problem with hyphens (TeX ligatures present in teletype fonts) #26
Comments
This is most likely due to a font misconfiguration. Can you post a minimal example showing the bug. |
You seem to be right about font issues. In the following code if I comment out test.tex: % Choose US paper format
\setuppapersize[letter]
\definefontfamily [mainface] [rm] [Cambria]
\definefontfamily [mainface] [ss] [Calibri]
\definefontfamily [mainface] [tt] [Consolas]
\definefontfamily [mainface] [mm] [Asana Math]
\setupbodyfont[mainface]
\usemodule[vim]
\definevimtyping[C][
syntax=c,
numbering=yes]
\starttext
\typeCfile{main.c}
\stoptext main.c: /*----------------------------------------------------------------------------------
* File: main.c
* Function: foo
* Description: bar
*----------------------------------------------------------------------------------*/
void main()
{
int i = 0;
i--;
return 0;
} |
I cannot test this right now, but try by adding
|
|
When my code contains multiple hyphens in a row, they are replaced with longer dashes. For example, in C code instead of
i--
I havei–
. Some of my comments also look incorrectly:instead of
Is there a way to control this or is it a bug?
The text was updated successfully, but these errors were encountered: