2

I have

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\newcommand\french[1]{\!\!
  \fontfamily{jkplkvos}\selectfont
  #1
  \fontfamily{\familydefault}\selectfont \!\!}

\begin{document}

\qquad The closest Modern French equivalent to the Middle French word
``\french{par}'' is ``par''.

\end{document}

How do I prevent the line break between \french{par} and ''?

  • 1
    Welcome to TeX.SE. Try adding a % after the #1 in the definition of \french. Not sure why you have the \!\!, but to get things to look nice you and keep the \!\! using #1~% seems to work. – Peter Grill May 31 '16 at 05:44
  • I have the \!\! because otherwise there is a big space between the quotes and what they enclose. – Joshua Meyers May 31 '16 at 05:49
  • Ah, getting rid of the \!\! and adding % after every line in the definition of \french fixed it. Thanks! – Joshua Meyers May 31 '16 at 05:51
  • In the case: eliminate all four of the \!, and use \newcommand\french[1]{%, \fontfamily{jkplkvos}\selectfont%, #1% and \fontfamily{\familydefault}\selectfont}. – Peter Grill May 31 '16 at 05:52

1 Answers1

2

Eliminating the \! and adding % to eliminate the spurious spaces yields:

enter image description here

References:

Code:

\documentclass{article}
\usepackage{amsmath}
\usepackage{amssymb}

\newcommand\french[1]{% \fontfamily{jkplkvos}\selectfont #1% \fontfamily{\familydefault}\selectfont}

\begin{document}

\qquad The closest Modern French equivalent to the Middle French word \french{par}'' ispar''.

\end{document}

Peter Grill
  • 223,288