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

blank \url #4

Open
purlupar opened this issue Jul 21, 2023 · 3 comments
Open

blank \url #4

purlupar opened this issue Jul 21, 2023 · 3 comments

Comments

@purlupar
Copy link

What fonts do people use here and how do you specify them?

I have been being bothered by two issues for quite a while now:

  1. The text in \url{} is just not there. The specific parts of the font (for this "url" style) seem to be missing. What I see instead of my email address is .@- (a dot, an at sign, and a hyphen), which must be coming from my email containing these. Seems that all alphabetic characters are gone.
  2. Titles etc. are not bold until I add \setmainfont{XITS}. Is this expected behavior?

(PS: Thanks @andrasbarany for making this!)

@andrasbarany
Copy link
Owner

Are you compiling your document using XeLaTeX? Have you set any options?

I just tried with the files from the repository and things work fine on my end.

I don't specify the monospace typeface at all in the class file, you could try specifying one (using \setmonofont{...} ). Maybe that solves your URL issue.

As for the bolds, no, that's not expected. If you compile with xelatex, the XITS fonts should be used.

You can share your files with me and I can check locally if you want.

@purlupar
Copy link
Author

purlupar commented Jul 27, 2023

Thanks for your help!
I am using a workaround for my first issue (blank \url) now and use \texttt instead or \url, which seems to have the same effect optically.
I am using xelatex and biblatex/biber as by your suggestion in the readme. However I create my tex file via Emacs org-mode export. The created .tex file has as its header:

\documentclass[letter]{cascadilla-xelatex-biblatex}
\usepackage[utf8x]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{graphicx}
\usepackage{grffile}
\usepackage{expex, xytree, multicol, vwcol, hyperref, biblatex, csquotes}
\usepackage[linguistics]{forest}
\addbibresource{.../myfile.bib}
\setmainfont{XITS}
\makeatletter \let\@fnsymbol\@arabic \makeatother
\author{...}
\date{\today}
\title{...}

What Emacs then does with the .tex file is the following (where %b and %f stand in for the current file name):

("xelatex -interaction nonstopmode %f" 
"biber %b" 
"xelatex -interaction nonstopmode %f" 
"xelatex -interaction nonstopmode %f")

As for issue 2 in my original post I suppose it's an OS problem with the fallback font. However, the fallback font should be XITS anyway (which I do have, now), shouldn't it?

@andrasbarany
Copy link
Owner

If you take out inputenc and fontenc, do you get bold fonts? You don't need those for xelatex anyway and if I use your preamble without setmainfont, inputenc, and fontenc, I get the right result.

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

2 participants