
The line break can also be used to add multiple lines to a string variable.

For a Windows machine, we should use the escape character for line breaks. The or the \r escape character in Mac is used to add a new line to the console in C. To change the output format use -dvi or -ps. Add a New Line to a String With the Escape Character in C. Generates the file main.pdf with all cross-references working. For instance, if your document is saved as main.tex. There's also a command that can automatically do the job for all the references to work.

\scriptstyle: apply the style used for subscripts or superscripts. \displaystyle: apply the style used for mathematics typeset on lines by themselves. On Overleaf cross references work immediately, but for cross references to work properly in your local L aT eX distribution you must compile your document twice. TeX engines provide several commands which can be used to override the default style in which a piece of math is typeset: \textstyle: apply the style used for mathematics typeset in paragraphs. This command can be used with all other numbered elements mentioned in this article.Ĭompiling documents with cross references The command \pageref will insert the page where the element whose label is used appears.
