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

Can't use underscore in \author{} #59

Closed
anjiro opened this issue Nov 11, 2015 · 12 comments
Closed

Can't use underscore in \author{} #59

anjiro opened this issue Nov 11, 2015 · 12 comments
Assignees
Labels

Comments

@anjiro
Copy link
Contributor

anjiro commented Nov 11, 2015

Example:

\author{%
  \alignauthor{Leave Authors Anonymous\\
    \affaddr{for Submission}\\
    \affaddr{City, Country}\\
    \email{hello\textunderscore friend@myinst.edu}}\\

Yields
screen shot 2015-11-11 at 3 13 05 pm

Same results with \_.

@ayman
Copy link
Member

ayman commented Nov 11, 2015

hmm...can you report back what this does:

\href{mailto:hello_friend@myinst.edu}{hello\_friend@myinst.edu}

will require the hyperref package.

@anjiro
Copy link
Contributor Author

anjiro commented Nov 13, 2015

Same thing:

dot

@ayman ayman added the bug label Nov 13, 2015
@ayman ayman self-assigned this Nov 13, 2015
@ayman
Copy link
Member

ayman commented Nov 13, 2015

Ok - will investigate...open to suggestions.

@anjiro
Copy link
Contributor Author

anjiro commented Nov 13, 2015

I think it might be a font thing. There are a lot of font things going on the .cls file that I don't understand.

@simonrob
Copy link
Contributor

I've run into this in the past too. As it only occurs in email addresses, I ended up just using the solution found here (http://tex.stackexchange.com/a/48633):

\texttt{\char`_}

Until all these little bugs are worked out, maybe there's a case for a "known issues" page for all these templates? (or the GitHub wiki pages).

@ayman
Copy link
Member

ayman commented Nov 24, 2015

That's (Wiki/Known Issues) a neat idea...i'll try to set it up soon. If @anjiro confirms you're solution we can close this issue.

@anjiro
Copy link
Contributor Author

anjiro commented Dec 8, 2015

Ok, I poked at this a little more. The issue is in line 439 of the .cls file, where we have

\newfont{\eaddfnt}{ptmr7t at 12pt}                    % 05-16-2006 atd

I think it's due to the use of a 7-bit font; changing the 7 to 8 makes an (escaped) underscore work properly. I don't know what (if any) implications there are to doing this. Changing all of the 7ts to 8t causes no issues with my modern install of MacTeX.

@simonrob
Copy link
Contributor

simonrob commented Dec 9, 2015

Nice find! No problems here either when changing all 7-bit fonts in that section to 8-bit.

As an aside, this also fixes a related issue where accented characters (e.g., àéîö etc) didn't work in author names. Probably well worth making this change.

@ayman
Copy link
Member

ayman commented Dec 10, 2015

Wow. Thanks everyone. So I dug back into the standard ACM template and found the 8-bit fonts were added in 2006.

% *********************************************
%  -- End of block A --
%
%
% -- Start of block B -- UPDATED FONT NAMES
% *********************************************
% Gerry Murray 11/30/2006
% *********************************************
\ifnum\ACM@basesize=9\relax
\newfont{\secfnt}{ptmb8t at 12pt}
\newfont{\secit}{ptmbi8t at 12pt}    %13 Jan 00 gkmt
...

So I think we should take this merge too.

@ayman
Copy link
Member

ayman commented Dec 10, 2015

@anjiro do you have a pull-request for me here?

@anjiro
Copy link
Contributor Author

anjiro commented Dec 10, 2015

No, because I'm not familiar enough with Metafont to know how changing from
7- to 8-bit fonts might affect things. I was hoping you knew!

On Thu, Dec 10, 2015 at 12:14 PM, ayman notifications@github.com wrote:

@anjiro https://github.com/anjiro do you have a pull-request for me
here?


Reply to this email directly or view it on GitHub
#59 (comment)
.

@ayman
Copy link
Member

ayman commented Dec 10, 2015

Nope...but here's the whole block from the ACM template:

\ifnum\ACM@basesize=9\relax
\newfont{\secfnt}{ptmb8t at 12pt}
\newfont{\secit}{ptmbi8t at 12pt}    %13 Jan 00 gkmt
\newfont{\subsecfnt}{ptmri8t at 11pt}
\newfont{\subsecit}{ptmbi8t at 11pt}  % 
\newfont{\ttlfnt}{phvb8t at 18pt}
\newfont{\ttlit}{phvbo8t at 18pt}    % GM 2/4/2000
\newfont{\subttlfnt}{phvr8t at 14pt}
\newfont{\subttlit}{phvro8t at 14pt} % GM 2/4/2000
\newfont{\subttlbf}{phvb8t at 14pt}  % 13 Jan 00 gkmt
\newfont{\aufnt}{phvr8t at 12pt}
\newfont{\auit}{phvro8t at 12pt}     % GM 2/4/2000
\newfont{\affaddr}{phvr8t at 10pt}
\newfont{\affaddrit}{phvro8t at 10pt} % GM 2/4/2000
\newfont{\eaddfnt}{phvr8t at 12pt}
\newfont{\ixpt}{ptmr8t at 9pt}
\newfont{\confname}{ptmri8t at 8pt}
\newfont{\crnotice}{ptmr8t at 8pt}
\newfont{\ninept}{ptmr8t at 9pt}
\fi
\ifnum\ACM@basesize=10\relax
\newfont{\secfnt}{ptmb8t at 13pt}
\newfont{\secit}{ptmbi8t at 13pt}    %13 Jan 00 gkmt
\newfont{\subsecfnt}{ptmri8t at 12pt}
\newfont{\subsecit}{ptmbi8t at 12pt}  % 
\newfont{\ttlfnt}{phvb8t at 20pt}
\newfont{\ttlit}{phvbo8t at 20pt}    % GM 2/4/2000
\newfont{\subttlfnt}{phvr8t at 15pt}
\newfont{\subttlit}{phvro8t at 15pt} % GM 2/4/2000
\newfont{\subttlbf}{phvb8t at 15pt}  % 13 Jan 00 gkmt
\newfont{\aufnt}{phvr8t at 12pt}
\newfont{\auit}{phvro8t at 12pt}     % GM 2/4/2000
\newfont{\affaddr}{phvr8t at 11pt}
\newfont{\affaddrit}{phvro8t at 11pt} % GM 2/4/2000
\newfont{\eaddfnt}{phvr8t at 12pt}
\newfont{\ixpt}{ptmr8t at 10pt}
\newfont{\confname}{ptmri8t at 9pt}
\newfont{\crnotice}{ptmr8t at 9pt}
\newfont{\ninept}{ptmr8t at 10pt}
\fi

So it might just be changing 7s to 8s.

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

No branches or pull requests

3 participants