<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!-- This manual is for GNU Texinfo (version 6.7, 23 September 2019),
a documentation system that can produce both online information and a
printed manual from a single source using semantic markup.
Copyright (C) 1988, 1990, 1991, 1992, 1993, 1995, 1996, 1997,
1998, 1999, 2001, 2001, 2003, 2004, 2005, 2006, 2007, 2008, 2009,
2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019 Free Software
Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with no
Invariant Sections, with no Front-Cover Texts, and with no Back-Cover
Texts. A copy of the license is included in the section entitled
"GNU Free Documentation License". -->
<!-- Created by GNU Texinfo 6.7, http://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>@w (GNU Texinfo 6.7)</title>
<meta name="description" content="@w (GNU Texinfo 6.7)">
<meta name="keywords" content="@w (GNU Texinfo 6.7)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="texi2any">
<link href="index.html" rel="start" title="Top">
<link href="Command-and-Variable-Index.html" rel="index" title="Command and Variable Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Breaks.html" rel="up" title="Breaks">
<link href="_0040tie.html" rel="next" title="@tie">
<link href="_0040allowcodebreaks.html" rel="prev" title="@allowcodebreaks">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.indentedblock {margin-right: 0em}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
kbd {font-style: oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
span.nolinebreak {white-space: nowrap}
span.roman {font-family: initial; font-weight: normal}
span.sansserif {font-family: sans-serif; font-weight: normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en">
<span id="g_t_0040w"></span><div class="header">
<p>
Next: <a href="_0040tie.html" accesskey="n" rel="next"><code>@tie</code></a>, Previous: <a href="_0040allowcodebreaks.html" accesskey="p" rel="prev"><code>@allowcodebreaks</code></a>, Up: <a href="Breaks.html" accesskey="u" rel="up">Breaks</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Command-and-Variable-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<span id="g_t_0040w_007btext_007d_003a-Prevent-Line-Breaks"></span><h3 class="section">13.5 <code>@w</code>{<var>text</var>}: Prevent Line Breaks</h3>
<span id="w"></span><span id="index-w"></span>
<span id="index-Line-breaks_002c-preventing"></span>
<p><code>@w{<var>text</var>}</code> outputs <var>text</var>, while prohibiting line
breaks within <var>text</var>.
</p>
<span id="index-Non_002dbreakable-space_002c-fixed"></span>
<span id="index-Unbreakable-space_002c-fixed"></span>
<p>Thus, you can use <code>@w</code> to produce a non-breakable space, fixed at
the width of a normal interword space:
</p>
<div class="example">
<pre class="example">@w{ } @w{ } @w{ } indentation.
</pre></div>
<p>produces:
</p>
<div class="display">
<pre class="display"> <!-- /@w --> <!-- /@w --> <!-- /@w --> indentation.
</pre></div>
<p>The space from <code>@w{ <!-- /@w -->}</code>, as well as being non-breakable,
also will not stretch or shrink. Sometimes that is what you want, for
instance if you’re doing manual indenting. However, usually you want
a normal interword space that does stretch and shrink (in the printed
output); for that, see the <code>@tie</code> command in the next section.
</p>
<span id="index-Hyphenation_002c-preventing"></span>
<p>You can also use the <code>@w</code> command to prevent TeX from
automatically hyphenating a long name or phrase that happens to fall
near the end of a line. <code>makeinfo</code> does not ever hyphenate
words.
</p>
<span id="index-Keyword-expansion_002c-preventing"></span>
<span id="index-Version-control-keywords_002c-preventing-expansion-of"></span>
<span id="index-_0024Id-expansion_002c-preventing"></span>
<p>You can also use <code>@w</code> to avoid unwanted keyword expansion in
source control systems. For example, to literally write <tt>$<!-- /@w -->Id$</tt>
in your document, use <code>@w{$}Id$</code>. This trick isn’t effective
in Info or plain text output, though.
</p>
</body>
</html>