InsertLinebreaks

InsertLinebreaks["string"]

string に改行文字を挿入し,すべての行が78文字以内の文字列にする.

InsertLinebreaks["string",n]

どの行も n 文字以内になるように改行文字を挿入する.

詳細

  • InsertLinebreaksは,空白類文字を改行文字で置換することで作用する.
  • 非空白類文字の単一広がりが n 個の文字より長い場合,その広がり内で n 文字ごとに改行が挿入される.

例題

  (1)

どの行も30字を超えないように,改行を挿入する:

30文字を超える単語は分割される:

Wolfram Research (2015), InsertLinebreaks, Wolfram言語関数, https://reference.wolfram.com/language/ref/InsertLinebreaks.html.

テキスト

Wolfram Research (2015), InsertLinebreaks, Wolfram言語関数, https://reference.wolfram.com/language/ref/InsertLinebreaks.html.

CMS

Wolfram Language. 2015. "InsertLinebreaks." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/InsertLinebreaks.html.

APA

Wolfram Language. (2015). InsertLinebreaks. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/InsertLinebreaks.html

BibTeX

@misc{reference.wolfram_2024_insertlinebreaks, author="Wolfram Research", title="{InsertLinebreaks}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/InsertLinebreaks.html}", note=[Accessed: 23-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_insertlinebreaks, organization={Wolfram Research}, title={InsertLinebreaks}, year={2015}, url={https://reference.wolfram.com/language/ref/InsertLinebreaks.html}, note=[Accessed: 23-November-2024 ]}