| Server IP : 121.121.20.254 / Your IP : 216.73.216.202 Web Server : Microsoft-IIS/10.0 System : Windows NT WEB-SERVER 10.0 build 20348 (Windows Server 2022) AMD64 User : IUSR ( 0) PHP Version : 8.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/Program Files/LibreOffice/help/en-US/text/shared/01/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<base href="../../../../">
<noscript><meta http-equiv="refresh" content="0; URL=../../../../en-US/noscript.html"></noscript>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Optimal Column Width</title>
<link rel="shortcut icon" href="media/navigation/favicon.ico">
<link type="text/css" href="normalize.css" rel="Stylesheet">
<link type="text/css" href="prism.css" rel="Stylesheet">
<link type="text/css" href="default.css" rel="Stylesheet">
<script type="text/javascript" src="polyfills.js"></script><script type="text/javascript" src="languages.js"></script><script type="text/javascript" src="en-US/langnames.js"></script><script type="text/javascript" src="flexsearch.debug.js"></script><script type="text/javascript" src="prism.js"></script><script type="text/javascript" src="help2.js" defer></script><script type="text/javascript" src="a11y-toggle.js" defer></script><script type="text/javascript" src="paginathing.js" defer></script><script type="text/javascript" src="en-US/bookmarks.js" defer></script><script type="text/javascript" src="en-US/contents.js" defer></script><script type="text/javascript" src="help.js" defer></script><meta name="viewport" content="width=device-width,initial-scale=1">
</head>
<body>
<header id="TopLeftHeader"><a class="symbol" href="en-US/text/shared/05/new_help.html"><div></div></a><a class="logo" href="en-US/text/shared/05/new_help.html"><p dir="auto">LibreOffice 24.2 Help</p></a><div class="dropdowns"><div class="modules">
<button type="button" data-a11y-toggle="modules-nav" id="modules" aria-haspopup="true" aria-expanded="false" aria-controls="modules-nav">Module</button><nav id="modules-nav" hidden=""></nav>
</div></div></header><aside class="leftside"><input id="accordion-1" name="accordion-menu" type="checkbox"><label for="accordion-1" dir="auto">Contents</label><div id="Contents" class="contents-treeview"></div></aside><div id="SearchFrame"><div id="Bookmarks">
<input id="search-bar" type="search" class="search" placeholder="Search in bookmarks for all modules" dir="auto"><div class="nav-container" tabindex="0"><nav class="index" dir="auto"></nav></div>
</div></div>
<div id="DisplayArea" itemprop="softwareHelp" itemscope="true" itemtype="http://schema.org/SoftwareApplication">
<a name="bm_id8687648"></a>
<a name="bm_id3155628"></a>
<meta itemprop="keywords" content="spreadsheets, optimal column widths">
<meta itemprop="keywords" content="columns, optimal widths">
<meta itemprop="keywords" content="optimal column widths">
<meta itemprop="keywords" content="optimal column widths,text table">
<meta itemprop="keywords" content="text table,optimal column widths">
<a name="bm_id2742569"></a>
<a name="bm_id2742569"></a>
<a name="bm_id3153254"></a>
<a name="optimal_column_width"></a>
<h1 id="hd_id3149500" dir="auto">
<a name="optimal_column_width_h1"></a>Optimal Column Width</h1>
<span id="swlnappltextshared01SetOptimalColumnWidthxhp_1" class="switch">
<span hidden="true" id="WRITERtextshared01SetOptimalColumnWidthxhp_1" class="WRITER">
<p id="par_id3149050" class="paragraph" dir="auto"><a name="column_width_text"></a><span class="avis">Adjust column widths among columns with selected cells, according to the paragraph length in each selected cell. Widen the table, up to page width, if necessary.</span></p>
</span>
<span hidden="true" id="CALCtextshared01SetOptimalColumnWidthxhp_1" class="CALC"></span>
<span hidden="true" id="defaulttextshared01SetOptimalColumnWidthxhp_1">
<p id="par_id811655764710135" class="paragraph" dir="auto"><span class="avis">Adjust column width for selected columns to fit the column’s content, without changing the width of the table or the unselected columns.</span>
</p>
</span>
</span>
<a name="howtoget"></a><div class="howtoget">
<div><p class="howtogetheader" dir="auto"><a name="wie"></a>To access this command...</p></div>
<div class="howtogetbody">
<div class="embedded">
<a name="optimal_column_width"></a>
<div class="embedded">
<a name="from_menu_bar"></a><h4 id="par_id441684934473786" dir="auto">From the menu bar:</h4>
</div>
<span id="swlnappltextshared0000040500xml_9" class="switch">
<span hidden="true" id="WRITERtextshared0000040500xml_9" class="WRITER">
<p id="par_id3154752" class="paragraph" dir="auto">Choose <span class="menuitem">Table - Size - Optimal Column Width</span>.</p>
</span>
<span hidden="true" id="CALCtextshared0000040500xml_9" class="CALC">
<p id="par_id3145252" class="paragraph" dir="auto">Choose <span class="emph">Format - Columns - Optimal Width</span>.</p>
</span>
<span hidden="true" id="defaulttextshared0000040500xml_9">
<p id="par_id471655731343905" class="paragraph" dir="auto">Choose <span class="menuitem">Format - Table - Optimal Column Width</span>.</p>
</span>
</span>
<div class="embedded">
<a name="from_context"></a><h4 id="par_id441684932173786" dir="auto">From the context menu:</h4>
</div>
<span id="swlnappltextshared0000040500xml_10" class="switch">
<span hidden="true" id="WRITERtextshared0000040500xml_10" class="WRITER">
<p id="par_id701655738103242" class="paragraph" dir="auto">Choose <span class="menuitem">Size - Optimal Column Width</span>.</p>
</span>
<span hidden="true" id="CALCtextshared0000040500xml_10" class="CALC">
<p id="par_id701693944048858" class="paragraph" dir="auto">Select column, choose <span class="menuitem">Optimal Width</span>.</p>
<p id="par_id3146971" class="paragraph" dir="auto">Double-click right column separator in column headers.</p>
</span>
</span>
<div class="embedded">
<a name="from_tabUI"></a><h4 id="par_id711684934483926" dir="auto">From the tabbed interface:</h4>
</div>
<span id="swlnappltextshared0000040500xml_11" class="switch">
<span hidden="true" id="WRITERtextshared0000040500xml_11" class="WRITER">
<p id="par_id811693933748238" class="paragraph" dir="auto">Choose <span class="menuitem">Table - Optimize Size - Optimal Column Width</span>.</p>
<p id="par_id21693933751244" class="paragraph" dir="auto">On the <span class="menuitem">Table</span> menu of the <span class="menuitem">Table</span> tab, choose <span class="menuitem">Optimal Column Width</span>.</p>
</span>
<span hidden="true" id="CALCtextshared0000040500xml_11" class="CALC">
<p id="par_id181693944353293" class="paragraph" dir="auto">Choose <span class="menuitem">Layout - Column - Optimal Width</span>.</p>
<p id="par_id161693944357133" class="paragraph" dir="auto">Choose <span class="menuitem">Home - Column - Optimal Width</span>.</p>
</span>
</span>
<div class="embedded">
<a name="from_toolbars"></a><h4 id="par_id101684936253402" dir="auto">From toolbars:</h4>
</div>
<a name="syoptimal_column_width"></a>
<div class="icontable">
<div class="iconcell">
<p id="par_id3157881" class="paragraphintable" dir="auto"><img src="media/icon-themes/cmd/lc_setoptimalcolumnwidth.svg" class="iconimage" alt="Icon Optimal Column Width" style="width:38px;height:38px" itemprop="icon" itemscope="true" itemtype="http://schema.org/ImageObject"></p>
</div>
<div class="iconcell">
<p id="par_id3150524" class="paragraphintable" dir="auto">Optimal Column Width</p>
</div>
</div>
<span id="swlnappltextshared0000040500xml_12" class="switch">
<span hidden="true" id="WRITERtextshared0000040500xml_12" class="WRITER">
<div class="embedded">
<a name="from_sidebar"></a><h4 id="hd_id931686399557948" dir="auto">From the sidebar:</h4>
</div>
<p id="par_id191693933756189" class="paragraph" dir="auto">Choose <span class="menuitem">Properties - Table - Optimal Column Width</span>.</p>
</span>
</span>
</div>
</div>
</div>
<br>
<span id="swlnappltextshared01SetOptimalColumnWidthxhp_2" class="switch">
<span hidden="true" id="WRITERtextshared01SetOptimalColumnWidthxhp_2" class="WRITER">
<p id="par_id611656069528584" class="paragraph" dir="auto"><span class="menuitem">Optimal Column Width</span> attempts to give a column width for the selected cells so that the longest paragraph in each cell can, as a minimum, <span class="emph">fit</span> exactly on a single line, though it is possible and common for columns to be wider than an exact fit.</p>
<p id="par_id601656102623025" class="paragraph" dir="auto">The final distribution of column widths depends on several factors, such as the paragraph length of selected cells, the initial width of the columns with selected cells, and whether the table can be widened. Space is also included for any horizontal cell padding, paragraph padding, and paragraph indents. The width of the table is never reduced, and unselected columns are not changed.</p>
<p id="par_id651656105163827" class="paragraph" dir="auto">The following list indicates how column widths are distributed for the selected cells. If the first step succeeds in distributing column widths for the selected cells so that all paragraphs in the cell are on a single line, then the process stops, otherwise the second step is attempted, if possible. The third step describes how column widths are distributed when it is not possible to fit all the selected cells after the second step.</p>
<ol itemprop="HowTo" itemscope="true" itemtype="http://schema.org/HowToSection" dir="auto">
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto">
<p id="par_id221656101892491" class="listitem" dir="auto">Distribute column widths proportionally according to the longest paragraph in each cell, but remaining within the total column width for cell selection.</p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto">
<p id="par_id641656101994507" class="listitem" dir="auto">If some cells cannot fit exactly in the total width of the selection, and the table can be expanded (up to the page width), then expand the table width until all cells are fit exactly.</p>
</li>
<li itemprop="itemListElement" itemscope="true" itemtype="http://schema.org/HowToStep" dir="auto">
<p id="par_id511656102101362" class="listitem" dir="auto">If the table width is at the page margin, and more than one selected cell does not fit exactly, then give as much width as possible to the first cell that cannot be fit exactly, and an equal (smaller) column width to the other cells that cannot be fit.</p>
</li>
</ol>
<p id="par_id471656104869532" class="paragraph" dir="auto">Step 1 is often sufficient for tables whose cells are primarily short paragraphs, while Step 3 is usually needed if many columns or rows are selected and/or selected cells have longer paragraphs.</p>
</span>
<span hidden="true" id="CALCtextshared01SetOptimalColumnWidthxhp_2" class="CALC">
<a name="bm_id3153192"></a>
<h2 id="hd_id3150767" dir="auto">Add</h2>
<p id="par_id3150449" class="paragraph" dir="auto"><span class="avis">Defines additional spacing between the longest entry in a column and the vertical column borders.</span></p>
<a name="bm_id3155855"></a>
<h2 id="hd_id3145785" dir="auto">Default value</h2>
<p id="par_id3146120" class="paragraph" dir="auto"><span class="avis">Defines the optimal column width in order to display the entire contents of the column.</span> The additional spacing for the optimal column width is preset to 2 mm.</p>
</span>
<span hidden="true" id="defaulttextshared01SetOptimalColumnWidthxhp_2">
<p id="par_id601656069480524" class="paragraph" dir="auto"><span class="menuitem">Optimal Column Width</span> attempts to give a column width for the selected columns so that the longest paragraph in each column can, as a minimum, <span class="emph">fit</span> exactly on a single line, though it is possible and common for columns to be wider than an exact fit.</p>
<p id="par_id721655819449619" class="paragraph" dir="auto">The final distribution of column widths depends on several factors, such as the paragraph length and initial width of the selected columns. Space is also included for any horizontal cell padding, paragraph padding, and paragraph indents. The width of the table is never reduced, and unselected columns are not changed.</p>
<p id="par_id581656107648277" class="paragraph" dir="auto">The option distributes column widths proportionally according to the longest paragraph in each column, but remaining within the total column width for the selected columns. When selected columns cannot be fit exactly, then the first column that cannot be fit exactly gets as much width as possible, while any additional columns that cannot be fit exactly get a smaller column width, which is equal for each of these additional columns.</p>
</span>
</span>
<a name="relatedtopics"></a><div class="relatedtopics">
<p class="related" itemprop="mentions" dir="auto"><a name="related"></a><span class="emph">Related Topics</span>
</p>
<div class="relatedbody" itemprop="mentions">
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/shared/02/04210000.html">Optimize Size</a></p></div>
<span id="swlnappltextshared01SetOptimalColumnWidthxhp_3" class="switch">
<span hidden="true" id="WRITERtextshared01SetOptimalColumnWidthxhp_3" class="WRITER">
<p id="par_id681693927087020" class="paragraph" dir="auto"><a target="_top" href="en-US/text/swriter/01/TableAutoFitMenu.html">Size</a></p>
<div class="embedded"><p class="embedded" dir="auto"><a target="_top" href="en-US/text/swriter/guide/table_sizing.html">Resizing Rows and Columns in a Text Table</a></p></div>
</span>
</span>
</div>
</div>
</div>
<div id="DonationFrame"></div>
<footer><div id="DEBUG" class="debug">
<h3 class="bug">Help content debug info:</h3>
<p dir="auto">This page is: <a href="https://opengrok.libreoffice.org/xref/help/source/text/shared/01/SetOptimalColumnWidth.xhp" target="_blank">/text/shared/01/SetOptimalColumnWidth.xhp</a></p>
<p dir="auto">Title is: Optimal Column Width</p>
<p id="bm_module" dir="auto"></p>
<p id="bm_system" dir="auto"></p>
<p id="bm_HID" dir="auto"></p>
</div></footer>
</body>
</html>