Answer: 105,000 characters is between 15000 words and 26250 words with spaces included in the character count. If spaces are not included in the character count, then 105,000 characters is between 17500 words and 35000 words.
According to research by Miller, Newman, and Friedman, "the average length of a function word was 3.13 letters; for a content word the average was 6.47 letters." To get the estimates above, we assumed that words in sentences range from 4-7 letters.We also assumed that sentences have 15-20 words and paragraphs typically have 100-200 words and 5-6 sentences.
105.000 Fonts of word
To quickly find out how many words are any in any number of characters, see the table below. You can also use our character counter tool to quickly find out how many characters and words your text has. This table can be used as a quick reference to understand how many words a certain number of characters will make:
105,000 words is 210 pages single-spaced or 420 pages double-spaced. Typical documents that are 105,000 words or more include full-length novels. It will take approximately 350 minutes to read 105,000 words.
105,000 words double-spaced is 420 pages. Teachers may ask you to write an essay using double spacing so that it's easier to read and easier to add comments/feedback to. A standard double-spaced page contains 250 words.
105,000 words handwritten and single-spaced produces 420 pages. Handwriting is about twice as large as words typed in 12 point Arial or Times New Roman font which makes single-spaced handwritten pages equivalent to double-spaced pages.
Of the standard fonts used in essays and other documents, Verdana will create the most pages. On average, Verdana will create 1.1 pages for every 1 page written using Arial and 0.9 pages for every page written with Times New Roman or Calibri in Microsoft Word or Google Docs. These are just estimates . If you're looking to write the fewest number of words for your school assignment to meet a page count, we recommend using Verdana (if allowed) or Arial. A good rule of thumb is to use Arial font unless your teacher provides different guidelines for font or spacing.
How many words should be on a page in a book on Amazon? According to a survey of over 900 authors, there is an average of 233 words per page in a book on Amazon for nonfiction or 280 for fiction novels. Font size and other factors impact this number.
So I sent out a survey to authors on the Kindlepreneur email list and got 900+ responses, all with the single goal of figuring out the average number of words per page according to Amazon. (I really appreciate you guys)!
")[0],f=e.each;p.style.cssText="background-color:rgba(1,1,1,.5)",c.rgba=p.style.backgroundColor.indexOf("rgba")>-1,f(u,function(e,t)t.cache="_"+e,t.props.alpha=idx:3,type:"percent",def:1),l.fn=e.extend(l.prototype,parse:function(n,o,r,h)if(n===t)return this._rgba=[null,null,null,null],this;(n.jquery,is:function(e)var i=l(e),s=!0,n=this;return f(u,function(e,a)a.to&&a.to(n._rgba)),s,_space:function()var e=[],t=this;return f(u,function(i,s)t[s.cache]&&e.push(i)),e.pop(),transition:function(e,t),blend:function(t)if(1===this._rgba[3])return this;var i=this._rgba.slice(),s=i.pop(),n=l(t)._rgba;return l(e.map(i,function(e,t)return(1-s)*n[t]+s*e)),toRgbaString:function()var t="rgba(",i=e.map(this._rgba,function(e,t)return null==e?t>2?1:0:e);return 1===i[3]&&(i.pop(),t="rgb("),t+i.join()+")",toHslaString:function()var t="hsla(",i=e.map(this.hsla(),function(e,t)return null==e&&(e=t>2?1:0),t&&3>t&&(e=Math.round(100*e)+"%"),e);return 1===i[3]&&(i.pop(),t="hsl("),t+i.join()+")",toHexString:function(t)var i=this._rgba.slice(),s=i.pop();return t&&i.push((255*s)),"#"+e.map(i,function(e)).join(""),toString:function()return 0===this._rgba[3]?"transparent":this.toRgbaString()),l.fn.parse.prototype=l.fn,u.hsla.to=function(e),u.hsla.from=function(e),f(u,function(s,n)var a=n.props,o=n.cache,h=n.to,u=n.from;l.fn[s]=function(s),f(a,function(t,i)(l.fn[t]=function(n)var a,o=e.type(n),h="alpha"===t?this._hsla?"hsla":"rgba":s,l=this[h](),u=l[i.idx];return"undefined"===o?u:("function"===o&&(n=n.call(this,u),o=e.type(n)),null==n&&i.empty?this:("string"===o&&(a=r.exec(n),a&&(n=u+parseFloat(a[2])*("+"===a[1]?1:-1))),l[i.idx]=n,this[h](l)))))),l.hook=function(t)var i=t.split(" ");f(i,function(t,i)e.cssHooks[i]=set:function(t,n)var a,o,r="";if("transparent"!==n&&("string"!==e.type(n),e.fx.step[i]=function(t)),l.hook(o),e.cssHooks.borderColor=expand:function(e)var t=;return f(["Top","Right","Bottom","Left"],function(i,s)t["border"+s+"Color"]=e),t,a=e.Color.names=aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}(p),function()(),function()function t(t,i,s,n)i.complete,tfunction i(t)e.extend(e.effects,version:"1.11.4",save:function(e,t)for(var i=0;t.length>i;i++)null!==t[i]&&e.data(c+t[i],e[0].style[t[i]]),restore:function(e,t)var i,s;for(s=0;t.length>s;s++)null!==t[s]&&(i=e.data(c+t[s]),void 0===i&&(i=""),e.css(t[s],i)),setMode:function(e,t)return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t,getBaseline:function(e,t)var i,s;switch(e[0])case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.heightswitch(e[1])case"left":s=0;break;case"center":s=.5;break;case"right":s=1;break;default:s=e[1]/t.widthreturnx:s,y:i,createWrapper:function(t)e.contains(t[0],a))&&e(a).focus(),s=t.parent(),"static"===t.css("position")?(s.css(position:"relative"),t.css(position:"relative")):(e.extend(i,position:t.css("position"),zIndex:t.css("z-index")),e.each(["top","left","bottom","right"],function(e,s)i[s]=t.css(s),isNaN(parseInt(i[s],10))&&(i[s]="auto")),t.css(position:"relative",top:0,left:0,right:"auto",bottom:"auto")),t.css(n),s.css(i).show(),removeWrapper:function(t)e.contains(t[0],i))&&e(i).focus()),t,setTransition:function(t,i,s,n)),e.fn.extend(effect:function(),show:function(e)return function(s)if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="show",this.effect.call(this,n)(e.fn.show),hide:function(e)return function(s)if(i(s))return e.apply(this,arguments);var n=t.apply(this,arguments);return n.mode="hide",this.effect.call(this,n)(e.fn.hide),toggle:function(e)return function(s)(e.fn.toggle),cssUnit:function(t)var i=this.css(t),s=[];return e.each(["em","px","%","pt"],function(e,t)i.indexOf(t)>0&&(s=[parseFloat(i),t])),s)(),function()var t=;e.each(["Quad","Cubic","Quart","Quint","Expo"],function(e,i)t[i]=function(t)return Math.pow(t,e+2)),e.extend(t,Sine:function(e)return 1-Math.cos(e*Math.PI/2),Circ:function(e)return 1-Math.sqrt(1-e*e),Elastic:function(e),Back:function(e)return e*e*(3*e-2),Bounce:function(e)for(var t,i=4;((t=Math.pow(2,--i))-1)/11>e;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)),e.each(t,function(t,i)e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e)return 1-i(1-e),e.easing["easeInOut"+t]=function(e)return.5>e?i(2*e)/2:1-i(-2*e+2)/2)(),e.effects,e.effects.effect.blind=function(t,i),e.effects.effect.bounce=function(t,i)(c=o["top"===v?"outerHeight":"outerWidth"]()/3),u&&(a=opacity:1,a[v]=0,o.css("opacity",0).css(v,y?2*-c:2*c).animate(a,m,g)),l&&(c/=Math.pow(2,p-1)),a=,a[v]=0,s=0;p>s;s++)n=,n[v]=(y?"-=":"+=")+c,o.animate(n,m,g).animate(a,m,g),c=l?2*c:c/2;l&&(n=opacity:0,n[v]=(y?"-=":"+=")+c,o.animate(n,m,g)),o.queue(function()l&&o.hide(),e.effects.restore(o,r),e.effects.removeWrapper(o),i()),_>1&&b.splice.apply(b,[1,0].concat(b.splice(_,f+1))),o.dequeue(),e.effects.effect.clip=function(t,i),e.effects.effect.drop=function(t,i)"left"===h?"pos":"neg",d=opacity:r?1:0;e.effects.save(n,a),n.show(),e.effects.createWrapper(n),s=t.distance,e.effects.effect.explode=function(t,i)500,t.easing,s),e.effects.effect.fade=function(t,i)var s=e(this),n=e.effects.setMode(s,t.mode,e.effects.effect.fold=function(t,i)"hide"),h="show"===r,l="hide"===r,u=t.size,e.effects.effect.highlight=function(t,i),e.effects.effect.size=function(t,i),e.effects.effect.scale=function(t,i)["middle","center"],n.restore=!0),n.from=t.from,e.effects.effect.puff=function(t,i)150,r=o/100,h=height:s.height(),width:s.width(),outerHeight:s.outerHeight(),outerWidth:s.outerWidth();e.extend(t,effect:"scale",queue:!1,fade:!0,mode:n,complete:i,percent:a?o:100,from:a?h:height:h.height*r,width:h.width*r,outerHeight:h.outerHeight*r,outerWidth:h.outerWidth*r),s.effect(t),e.effects.effect.pulsate=function(t,i)!n.is(":visible"))&&(n.css("opacity",0).show(),d=1),s=1;l>s;s++)n.animate(opacity:d,u,t.easing),d=1-d;n.animate(opacity:d,u,t.easing),n.queue(function()r&&n.hide(),i()),p>1&&c.splice.apply(c,[1,0].concat(c.splice(p,l+1))),n.dequeue(),e.effects.effect.shake=function(t,i)"left"===r,f=,m=,g=,v=n.queue(),y=v.length;for(e.effects.save(n,a),n.show(),e.effects.createWrapper(n),f[c]=(p?"-=":"+=")+h,m[c]=(p?"+=":"-=")+2*h,g[c]=(p?"-=":"+=")+2*h,n.animate(f,d,t.easing),s=1;l>s;s++)n.animate(m,d,t.easing).animate(g,d,t.easing);n.animate(m,d,t.easing).animate(f,d/2,t.easing).queue(function()"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()),y>1&&v.splice.apply(v,[1,0].concat(v.splice(y,u+1))),n.dequeue(),e.effects.effect.slide=function(t,i)n["top"===l?"outerHeight":"outerWidth"](!0),e.effects.createWrapper(n).css(overflow:"hidden"),r&&n.css(l,u?isNaN(s)?"-"+s:-s:s),d[l]=(r?u?"+=":"-=":u?"-=":"+=")+s,n.animate(d,queue:!1,duration:t.duration,easing:t.easing,complete:function()"hide"===o&&n.hide(),e.effects.restore(n,a),e.effects.removeWrapper(n),i()),e.effects.effect.transfer=function(t,i)var s=e(this),n=e(t.to),a="fixed"===n.css("position"),o=e("body"),r=a?o.scrollTop():0,h=a?o.scrollLeft():0,l=n.offset(),u=top:l.top-r,left:l.left-h,height:n.innerHeight(),width:n.innerWidth(),d=s.offset(),c=e("").appendTo(document.body).addClass(t.className).css(top:d.top-r,left:d.left-h,height:s.innerHeight(),width:s.innerWidth(),position:a?"fixed":"absolute").animate(u,t.duration,t.easing,function()c.remove(),i())});.tocify width: 20%;max-height: 90%;overflow: auto;margin-left: 2%;position: fixed;border: 1px solid #ccc;webkit-border-radius: 6px;moz-border-radius: 6px;border-radius: 6px;.tocify ul, .tocify li list-style: none;margin: 0;padding: 0;border: none;line-height: 30px;.tocify-header text-indent: 10px;.tocify-subheader text-indent: 20px;display: none;.tocify-subheader li font-size: 12px;.tocify-subheader .tocify-subheader text-indent: 30px;.tocify-subheader .tocify-subheader .tocify-subheader text-indent: 40px;.tocify .tocify-item > a, .tocify .nav-list .nav-header margin: 0px;.tocify .tocify-item a, .tocify .list-group-item padding: 5px;.tocify .nav-pills > li float: none;/* jquery Tocify - v1.9.1 - 2013-10-22 * * Copyright (c) 2013 Greg Franko; Licensed MIT */// Immediately-Invoked Function Expression (IIFE) [Ben Alman Blog Post]( -invoked-function-expression/) that calls another IIFE that contains all of the plugin logic. I used this pattern so that anyone viewing this code would not have to scroll to the bottom of the page to view the local parameters that were passed to the main IIFE.(function(tocify) // ECMAScript 5 Strict Mode: [John Resig Blog Post]( -5-strict-mode-json-and-more/) "use strict"; // Calls the second IIFE and locally passes in the global jQuery, window, and document objects tocify(window.jQuery, window, document); // Locally passes in `jQuery`, the `window` object, the `document` object, and an `undefined` variable. The `jQuery`, `window` and `document` objects are passed in locally, to improve performance, since javascript first searches for a variable match within the local variables set before searching the global variables set. All of the global variables are also passed in locally to be minifier friendly. `undefined` can be passed in locally, because it is not a reserved word in JavaScript. (function($, window, document, undefined) // ECMAScript 5 Strict Mode: [John Resig Blog Post]( -5-strict-mode-json-and-more/) "use strict"; var tocClassName = "tocify", tocClass = "." + tocClassName, tocFocusClassName = "tocify-focus", tocHoverClassName = "tocify-hover", hideTocClassName = "tocify-hide", hideTocClass = "." + hideTocClassName, headerClassName = "tocify-header", headerClass = "." + headerClassName, subheaderClassName = "tocify-subheader", subheaderClass = "." + subheaderClassName, itemClassName = "tocify-item", itemClass = "." + itemClassName, extendPageClassName = "tocify-extend-page", extendPageClass = "." + extendPageClassName; // Calling the jQueryUI Widget Factory Method $.widget("toc.tocify", //Plugin version version: "1.9.1", // These options will be used as defaults options: // **context**: Accepts String: Any jQuery selector // The container element that holds all of the elements used to generate the table of contents context: "body", // **ignoreSelector**: Accepts String: Any jQuery selector // A selector to any element that would be matched by selectors that you wish to be ignored ignoreSelector: null, // **selectors**: Accepts an Array of Strings: Any jQuery selectors // The element's used to generate the table of contents. The order is very important since it will determine the table of content's nesting structure selectors: "h1, h2, h3", // **showAndHide**: Accepts a boolean: true or false // Used to determine if elements should be shown and hidden showAndHide: true, // **showEffect**: Accepts String: "none", "fadeIn", "show", or "slideDown" // Used to display any of the table of contents nested items showEffect: "slideDown", // **showEffectSpeed**: Accepts Number (milliseconds) or String: "slow", "medium", or "fast" // The time duration of the show animation showEffectSpeed: "medium", // **hideEffect**: Accepts String: "none", "fadeOut", "hide", or "slideUp" // Used to hide any of the table of contents nested items hideEffect: "slideUp", // **hideEffectSpeed**: Accepts Number (milliseconds) or String: "slow", "medium", or "fast" // The time duration of the hide animation hideEffectSpeed: "medium", // **smoothScroll**: Accepts a boolean: true or false // Determines if a jQuery animation should be used to scroll to specific table of contents items on the page smoothScroll: true, // **smoothScrollSpeed**: Accepts Number (milliseconds) or String: "slow", "medium", or "fast" // The time duration of the smoothScroll animation smoothScrollSpeed: "medium", // **scrollTo**: Accepts Number (pixels) // The amount of space between the top of page and the selected table of contents item after the page has been scrolled scrollTo: 0, // **showAndHideOnScroll**: Accepts a boolean: true or false // Determines if table of contents nested items should be shown and hidden while scrolling showAndHideOnScroll: true, // **highlightOnScroll**: Accepts a boolean: true or false // Determines if table of contents nested items should be highlighted (set to a different color) while scrolling highlightOnScroll: true, // **highlightOffset**: Accepts a number // The offset distance in pixels to trigger the next active table of contents item highlightOffset: 40, // **theme**: Accepts a string: "bootstrap", "jqueryui", or "none" // Determines if Twitter Bootstrap, jQueryUI, or Tocify classes should be added to the table of contents theme: "bootstrap", // **extendPage**: Accepts a boolean: true or false // If a user scrolls to the bottom of the page and the page is not tall enough to scroll to the last table of contents item, then the page height is increased extendPage: true, // **extendPageOffset**: Accepts a number: pixels // How close to the bottom of the page a user must scroll before the page is extended extendPageOffset: 100, // **history**: Accepts a boolean: true or false // Adds a hash to the page url to maintain history history: true, // **scrollHistory**: Accepts a boolean: true or false // Adds a hash to the page url, to maintain history, when scrolling to a TOC item scrollHistory: false, // **hashGenerator**: How the hash value (the anchor segment of the URL, following the // # character) will be generated. // // "compact" (default) - #CompressesEverythingTogether // "pretty" - #looks-like-a-nice-url-and-is-easily-readable // function(text, element) - Your own hash generation function that accepts the text as an // argument, and returns the hash value. hashGenerator: "compact", // **highlightDefault**: Accepts a boolean: true or false // Set's the first TOC item as active if no other TOC item is active. highlightDefault: true , // _Create // ------- // Constructs the plugin. Only called once. _create: function() var self = this; self.extendPageScroll = true; // Internal array that keeps track of all TOC items (Helps to recognize if there are duplicate TOC item strings) self.items = []; // Generates the HTML for the dynamic table of contents self._generateToc(); // Adds CSS classes to the newly generated table of contents HTML self._addCSSClasses(); self.webkit = (function() for (var prop in window) if (prop) if (prop.toLowerCase().indexOf("webkit") !== -1) return true; return false; ()); // Adds jQuery event handlers to the newly generated table of contents self._setEventHandlers(); // Binding to the Window load event to make sure the correct scrollTop is calculated $(window).load(function() // Sets the active TOC item self._setActiveElement(true); // Once all animations on the page are complete, this callback function will be called $("html, body").promise().done(function() setTimeout(function() self.extendPageScroll = false; , 0); ); ); , // _generateToc // ------------ // Generates the HTML for the dynamic table of contents _generateToc: function() // _Local variables_ // Stores the plugin context in the self variable var self = this, // All of the HTML tags found within the context provided (i.e. body) that match the top level jQuery selector above firstElem, // Instantiated variable that will store the top level newly created unordered list DOM element ul, ignoreSelector = self.options.ignoreSelector; // Determine the element to start the toc with // get all the top level selectors firstElem = []; var selectors = this.options.selectors.replace(/ /g, "").split(","); // find the first set that have at least one non-ignored element for(var i = 0; i 0) break; if (!firstElem.length) self.element.addClass(hideTocClassName); return; self.element.addClass(tocClassName); // Loops through each top level selector firstElem.each(function(index) //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) return; // Creates an unordered list HTML element and adds a dynamic ID and standard class name ul = $("", "id": headerClassName + index, "class": headerClassName ). // Appends a top level list item HTML element to the previously created HTML header append(self._nestElements($(this), index)); // Add the created unordered list element to the HTML element calling the plugin self.element.append(ul); // Finds all of the HTML tags between the header and subheader elements $(this).nextUntil(this.nodeName.toLowerCase()).each(function() // If there are no nested subheader elemements if ($(this).find(self.options.selectors).length === 0) // Loops through all of the subheader elements $(this).filter(self.options.selectors).each(function() //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) return; self._appendSubheaders.call(this, self, ul); ); // If there are nested subheader elements else // Loops through all of the subheader elements $(this).find(self.options.selectors).each(function() //If the element matches the ignoreSelector then we skip it if ($(this).is(ignoreSelector)) return; self._appendSubheaders.call(this, self, ul); ); ); ); , _setActiveElement: function(pageload) var self = this, hash = window.location.hash.substring(1), elem = self.element.find('li[data-unique="' + hash + '"]'); if (hash.length) // Removes highlighting from all of the list item's self.element.find("." + self.focusClass).removeClass(self.focusClass); // Highlights the current list item that was clicked elem.addClass(self.focusClass); // Triggers the click event on the currently focused TOC item elem.click(); else // Removes highlighting from all of the list item's self.element.find("." + self.focusClass).removeClass(self.focusClass); if (!hash.length && pageload && self.options.highlightDefault) // Highlights the first TOC item if no other items are highlighted self.element.find(itemClass).first().addClass(self.focusClass); return self; , // _nestElements // ------------- // Helps create the table of contents list by appending nested list items _nestElements: function(self, index) var arr, item, hashValue; arr = $.grep(this.items, function(item) return item === self.text(); ); // If there is already a duplicate TOC item if (arr.length) // Adds the current TOC item text and index (for slight randomization) to the internal array this.items.push(self.text() + index); // If there not a duplicate TOC item else // Adds the current TOC item text to the internal array this.items.push(self.text()); hashValue = this._generateHashValue(arr, self, index); // Appends a list item HTML element to the last unordered list HTML element found within the HTML element calling the plugin item = $("", // Sets a common class name to the list item "class": itemClassName, "data-unique": hashValue ); if (this.options.theme !== "bootstrap3") item.append($("", "text": self.text() )); else item.text(self.text()); // Adds an HTML anchor tag before the currently traversed HTML element self.before($("", // Sets a name attribute on the anchor tag to the text of the currently traversed HTML element (also making sure that all whitespace is replaced with an underscore) "name": hashValue, "data-unique": hashValue )); return item; , // _generateHashValue // ------------------ // Generates the hash value that will be used to refer to each item. _generateHashValue: function(arr, self, index) var hashValue = "", hashGeneratorOption = this.options.hashGenerator; if (hashGeneratorOption === "pretty") // prettify the text hashValue = self.text().toLowerCase().replace(/\s/g, "-"); // fix double hyphens while (hashValue.indexOf("--") > -1) hashValue = hashValue.replace(/--/g, "-"); // fix colon-space instances while (hashValue.indexOf(":-") > -1) hashValue = hashValue.replace(/:-/g, "-"); else if (typeof hashGeneratorOption === "function") // call the function hashValue = hashGeneratorOption(self.text(), self); else // compact - the default hashValue = self.text().replace(/\s/g, ""); // add the index if we need to if (arr.length) hashValue += "" + index; // return the value return hashValue; , // _appendElements // --------------- // Helps create the table of contents list by appending subheader elements _appendSubheaders: function(self, ul) // The current element index var index = $(this).index(self.options.selectors), // Finds the previous header DOM element previousHeader = $(self.options.selectors).eq(index - 1), currentTagName = +$(this).prop("tagName").charAt(1), previousTagName = +previousHeader.prop("tagName").charAt(1), lastSubheader; // If the current header DOM element is smaller than the previous header DOM element or the first subheader if (currentTagName a'; var $selector = $(selector, context); if($selector.data('toggle') === "tab") $selector.tab('show'); // walk up the ancestors of this element, show any hidden tabs $selector.parents('.section.tabset').each(function(i, elm) var link = $('a[href="#' + $(elm).attr('id') + '"]'); if(link.data('toggle') === "tab") link.tab("show"); ); ; // Set the correct tab when the page loads showStuffFromHash(context); // Set the correct tab when a user uses their back/forward button $(window).on('hashchange', function() showStuffFromHash(context); ); // Change the URL when tabs are clicked $('a', context).on('click', function(e) history.pushState(null, null, this.href); showStuffFromHash(context); ); return this; ;(jQuery));window.buildTabsets = function(tocID) // build a tabset from a section div with the .tabset class function buildTabset(tabset) // check for fade and pills options var fade = tabset.hasClass("tabset-fade"); var pills = tabset.hasClass("tabset-pills"); var navClass = pills ? "nav-pills" : "nav-tabs"; // determine the heading level of the tabset and tabs var match = tabset.attr('class').match(/level(\d) /); if (match === null) return; var tabsetLevel = Number(match[1]); var tabLevel = tabsetLevel + 1; // find all subheadings immediately below var tabs = tabset.find("div.section.level" + tabLevel); if (!tabs.length) return; // create tablist and tab-content elements var tabList = $(''); $(tabs[0]).before(tabList); var tabContent = $(''); $(tabs[0]).before(tabContent); // build the tabset var activeTab = 0; tabs.each(function(i) // get the tab div var tab = $(tabs[i]); // get the id then sanitize it for use with bootstrap tabs var id = tab.attr('id'); // see if this is marked as the active tab if (tab.hasClass('active')) activeTab = i; // remove any table of contents entries associated with // this ID (since we'll be removing the heading element) $("div#" + tocID + " li a[href='#" + id + "']").parent().remove(); // sanitize the id for use with bootstrap tabs id = id.replace(/[.\/?&!#]/g, '').replace(/\s/g, '_'); tab.attr('id', id); // get the heading element within it, grab it's text, then remove it var heading = tab.find('h' + tabLevel + ':first'); var headingText = heading.html(); heading.remove(); // build and append the tab list item var a = $('' + headingText + ''); a.attr('href', '#' + id); a.attr('aria-controls', id); var li = $(''); li.append(a); tabList.append(li); // set it's attributes tab.attr('role', 'tabpanel'); tab.addClass('tab-pane'); tab.addClass('tabbed-pane'); if (fade) tab.addClass('fade'); // move it into the tab content div tab.detach().appendTo(tabContent); ); // set active tab $(tabList.children('li')[activeTab]).addClass('active'); var active = $(tabContent.children('div.section')[activeTab]); active.addClass('active'); if (fade) active.addClass('in'); if (tabset.hasClass("tabset-sticky")) tabset.rmarkdownStickyTabs(); // convert section divs with the .tabset class to tabsets var tabsets = $("div.section.tabset"); tabsets.each(function(i) buildTabset($(tabsets[i])); );;.hljs-literal color: #990073;.hljs-number color: #099;.hljs-comment color: #998;font-style: italic;.hljs-keyword color: #900;font-weight: bold;.hljs-string color: #d14;.tabwid tableborder-collapse:collapse;line-height:1;margin-left:auto;margin-right:auto;border-width: 0;display: table;margin-top: 5px;margin-bottom: 5px;.tabwid thpadding:0;.tabwid td line-height: 1em;padding: 0;.tabwid thead background-color: transparent;.tabwid tfoot background-color: transparent;.tabwid table tr background-color: transparent;.tabwid img background-color: transparent;padding: 0;border: 0;border-radius: 0;margin: 0;if (window.jQuery) $(document).ready(function() $(".tabwid > .table").removeClass("table"); );codewhite-space: pre; pre:not([class]) background-color: white; if (window.hljs) hljs.configure(languages: []); hljs.initHighlightingOnLoad(); if (document.readyState && document.readyState === "complete") window.setTimeout(function() hljs.initHighlighting(); , 0); h1 font-size: 34px;h1.title font-size: 38px;h2 font-size: 30px;h3 font-size: 24px;h4 font-size: 18px;h5 font-size: 16px;h6 font-size: 12px;.table th:not([align]) text-align: left;.main-container max-width: 940px; margin-left: auto; margin-right: auto;code color: inherit; background-color: rgba(0, 0, 0, 0.04);img max-width:100%; height: auto;.tabbed-pane padding-top: 12px;.html-widget margin-bottom: 20px;button.code-folding-btn:focus outline: none;summary display: list-item;.tabset-dropdown > .nav-tabs display: inline-table; max-height: 500px; min-height: 44px; overflow-y: auto; background: white; border: 1px solid #ddd; border-radius: 4px;.tabset-dropdown > .nav-tabs > li.active:before content: ""; font-family: 'Glyphicons Halflings'; display: inline-block; padding: 10px; border-right: 1px solid #ddd;.tabset-dropdown > .nav-tabs.nav-tabs-open > li.active:before content: ""; border: none;.tabset-dropdown > .nav-tabs.nav-tabs-open:before content: ""; font-family: 'Glyphicons Halflings'; display: inline-block; padding: 10px; border-right: 1px solid #ddd;.tabset-dropdown > .nav-tabs > li.active display: block;.tabset-dropdown > .nav-tabs > li > a,.tabset-dropdown > .nav-tabs > li > a:focus,.tabset-dropdown > .nav-tabs > li > a:hover border: none; display: inline-block; border-radius: 4px;.tabset-dropdown > .nav-tabs.nav-tabs-open > li display: block; float: none;.tabset-dropdown > .nav-tabs > li display: none;$(document).ready(function () window.buildTabsets("TOC"););$(document).ready(function () $('.tabset-dropdown > .nav-tabs > li').click(function () $(this).parent().toggleClass('nav-tabs-open') ););$(document).ready(function () // move toc-ignore selectors from section div to header $('div.section.toc-ignore') .removeClass('toc-ignore') .children('h1,h2,h3,h4,h5').addClass('toc-ignore'); // establish options var options = selectors: "h1,h2,h3,h4,h5", theme: "bootstrap3", context: '.toc-content', hashGenerator: function (text) return text.replace(/[.\\/?&!#]/g, '').replace(/\s/g, '_').toLowerCase(); , ignoreSelector: ".toc-ignore", scrollTo: 0 ; options.showAndHide = false; options.smoothScroll = false; // tocify var toc = $("#TOC").tocify(options).data("toc-tocify"););#TOC margin: 25px 0px 20px 0px;@media (max-width: 768px) #TOC position: relative; width: 100%;.toc-content padding-left: 30px; padding-right: 40px;div.main-container max-width: 1200px;div.tocify width: 20%; max-width: 260px; max-height: 85%;@media (min-width: 768px) and (max-width: 991px) div.tocify width: 25%; @media (max-width: 767px) div.tocify width: 100%; max-width: none; .tocify ul, .tocify li line-height: 20px;.tocify-subheader .tocify-item font-size: 0.90em; padding-left: 25px; text-indent: 0;.tocify .list-group-item border-radius: 0px;.tocify-subheader display: inline;.tocify-subheader .tocify-item font-size: 0.95em;Alternative to kable function when knitting to MS wordNoteFor those who want to shadow this process, you may need two packages, tidyverse and flextable. This memo has been created under R version 3.5.1 (2018-07-02). 2ff7e9595c
Comments