Text Formatting ⇒ Space after the dot (LaTeX new user)
Space after the dot (LaTeX new user)
Suppose an author name is to be typset as "G.H. Wills" (no space between . and H)
How to write the name in the BiBTeX database?
{Wills, G.H.} produces "G. Wills"
{Wills, {G.H.}} same
{Wills, G. H.} Produces "G. H. Wills" (with a space.
In other words, how to force TeX so that NOT to add any space after the dot?
Thanks
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Space after the dot (LaTeX new user)
Code: Select all
author={Wills, {G.}{H.}}
Best regards and welcome to the board
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Space after the dot (LaTeX new user)
But it still does not work
{G.}{H.} (without space) becomes G.
{G.} {H.} with space it becomes G. H. (with space)
I guess the problem is that when BiBTeX converts the .bib file to a .bbl file or whatever for thebibliography environment, all those braces are removed and the citation is formated. It seems that any continuous string of characters (including the dot) are treated as one word and get abbreviated. There must be a way to tell BibTeX or LaTeX or TeX (I am newcommer, so really don't know which is doing what) to just leave author names as is and not change them in any way.
Thanks again for the help
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: Space after the dot (LaTeX new user)
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Space after the dot (LaTeX new user)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Space after the dot (LaTeX new user)
I don think so. It's all about how TeX reads the characters from an input file. If there is no space (character category 10) in the input, there will be no space in the output.frabjous wrote:Pardon my ignorance if indeed it is, but aren't these sorts of things fixed by the .bst/bibliography style file? Couldn't using a different or modified .bst file help here?
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Space after the dot (LaTeX new user)
AUTHOR NAMES:
(*) Full, surname last (John Frederick Smith)
(f) Full, surname first (Smith, John Frederick)
(i) Initials + surname (J. F. Smith)
(r) Surname + initials (Smith, J. F.)
(s) Surname + dotless initials (Smith J F)
(w) Surname + comma + spaceless initials (Smith, J.F.)
(x) Surname + pure initials (Smith JF)
(y) Surname + comma + pure initials (Smith, JF)
(z) Surname + spaceless initials (Smith J.F.)
(a) Only first name reversed, initials (AGU style: Smith, J. F., H. K. Jones)
(b) First name reversed, with full names (Smith, John Fred, Harry Kab Jones)
Select:
Choosing (w) and using
author = {Wills, G. H.}
in the .bib file then produced "Wills, G.H." in the bibliography, with no space. (It does put the surname first, and makebst doesn't give a choice to format it like this with the initials first, at least not with merlin.mbs, but I imagine this can still be done by editing the .bst directly, or with a different .mbs.)
So I cannot see how using a different or modified .bst file wouldn't help here. What .bst file are you using, yasso? Are you free to make your own?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Space after the dot (LaTeX new user)
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Space after the dot (LaTeX new user)
I was given a custom .bst file which seems to do all bibliography format as expected, except for that space between author's initials.
As a newcommer to LaTeX, I don't know how to produce those .bst files or how to edit them, but I am sure there must be a simple way to modify the .bst file.
Currently, the only trick I can do is: after producing the .bbl file, I open it in notepad and replace all ".~" with just "."
In the .bbl file, the text looks "Wills, G.~H." so it is just a matter of getting rid of the extra "~" hard space.
Problem is that every time I run BiBTeX, a new .bbl is generated and the ~ is back.
Unless there is a way to correct the .bst file itself, I guess I just have to leave it as is and then edit the .bbl file only in the final typesetting of the article.
Thanks again
Re: Space after the dot (LaTeX new user)
You might want to post it here so it can be examined.
However, to me, this really doesn't sound like this should be your problem.
If your publisher (or journal editor or whoever) has provided you with a .bst file, and they are also the ones who are insisting upon no space between initials, you should simply tell them that it's their .bst file that inserts the space, and that they should fix it themselves.
Of course, if the rule and .bst file are from different sources, matters are different.