tableofcontents

Jekyll automatic table of contents

扶醉桌前 提交于 2019-12-05 01:13:24
问题 I have built a website based on the Jekyll code for the website for Apache Buildr. The Buildr website automatically generates a table of contents for each page based on the headers in the textile format files. For example, you write a page using textile marking out the headings like so . . h2(#why). Why are we doing this? BLah blah balh etc .. h2(#something). Some other header BLah blah balh etc .. Then in the default HTML you have some code that pipes the content into something called toc

Remove specific subsection from TOC in LaTeX [duplicate]

五迷三道 提交于 2019-12-04 11:48:12
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: hide an entry from Toc in latex Appendix A Section 1 A.1 Subsection 1 A.2 Subsection 2 B Section 2 Is there a way to get rid of Subsection n, but still have the subsection numbered in the document (i.e. not using \subsection*)? I thought about limiting the TOC depth, but that does not seem to be possible for just the Appendix? 回答1: Here's one (sort of hackish but not too bad) way to work this: All wrapped up,

How to remove the Table of Contents from the Table of Contents in WKHTMLTOPDF?

大憨熊 提交于 2019-12-03 14:45:12
I am generating a pdf using WKHTMLTOPDF with the table of content option, but it is adding itself to the table of contents, showing that it is on page 2. Thoughts on removing this? You have full control over the TOC generation using XSL stylesheets for their generation. You can get the default stylesheet used by giving the argument --dump-default-toc-xsl to wkhtmltopdf. When you examine it, you are particularly interested in the <body><h1>...</h1> H1 element and the test xsl:if test="(@title!='')" For example, when I want to remove the TOC self-reference from itself, this is the relevant part

iTextSharp - Using PDFAction.GotoLocalPage in Merged PDF

余生颓废 提交于 2019-12-02 04:34:07
I have written some code that merges together multiple PDF's into a single PDF that I then display from the MemoryStream. This works great. What I need to do is add a table of contents to the end of the file with links to the start of each of the individual PDF's. I planned on doing this using the GotoLocalPage action which has an option for page numbers but it doesn't seem to work. If I change the action to the code below to one of the presset ones like PDFAction.FIRSTPAGE it works fine. Does this not work because I am using the PDFCopy object for the writer parameter of GotoLocalPage?

CSS styling a table of contents

老子叫甜甜 提交于 2019-12-01 20:10:33
问题 I'm trying to replicate the following table of contents: I've gotten pretty close with the following code: http://jsfiddle.net/33Kgn/2/ .list li { position:relative; overflow:hidden; width:330px; } .list li:after { font-family: Times New Roman; font-size: 120%; content:"................."; text-indent: -1px; display:block; letter-spacing:34px; position:absolute; left:0px; bottom:0px; z-index:-1; font-weight:bold; } .list li span { display:inline-block; background-color:#FFF; padding-right:5px

RMarkdown with knitr to HTML: How to hide bullets in TOC (table of contents)?

狂风中的少年 提交于 2019-12-01 19:55:25
How can I suppress the bullet points in front of the TOC items in the created HTML file? I want to see only the headline numbers... Example Test.Rmd file: --- title: "Untitled" author: "Author" date: "01/25/2015" output: html_document: number_sections: true toc: yes toc_depth: 3 --- *Content* # Headline 1 ## Sub headline 1.1 ## Sub headline 1.2 ### Sub sub headline 1.2.1 # Headline 2 The TOC of the resulting HTML document will look like this (with the unwanted bullet points - here indicated via the * char): Untitled Author 01/25/2015 * 1 Headline 1 * 1.1 Sub headline 1.1 * 1.2 Sub headline 1.2

CSS styling a table of contents

走远了吗. 提交于 2019-12-01 18:20:39
I'm trying to replicate the following table of contents: I've gotten pretty close with the following code: http://jsfiddle.net/33Kgn/2/ .list li { position:relative; overflow:hidden; width:330px; } .list li:after { font-family: Times New Roman; font-size: 120%; content:"................."; text-indent: -1px; display:block; letter-spacing:34px; position:absolute; left:0px; bottom:0px; z-index:-1; font-weight:bold; } .list li span { display:inline-block; background-color:#FFF; padding-right:5px; } .list li .number { float:right; font-weight:bold; padding-left:5px; } <div style="margin:25px 22px

Add table of contents to RTF document

删除回忆录丶 提交于 2019-12-01 04:27:31
问题 I am trying to generate a RTF document by hand and eventually will do it programtically. I plan to improve pyRTF so that it can generate "Table of contents", which I think it can't. I am not able to use RTF controls words (\tc, \tcf and \tcl.) to generate a TOC. http://msdn.microsoft.com/en-us/library/aa140283(office.10).aspx gives details about TOC but I couldn't find or make any example RTF which have a TOC. So is there a simple sample showing a RTF with TOC? 回答1: I am creating a Table with

hide an entry from Toc in latex

可紊 提交于 2019-11-30 11:37:18
问题 I would like to know how I can hide a section from the table of contents but without loosing the section number in the body of the document. For example, in this tex file I loose the number for hide , and all the sequences are damaged: \documentclass{article} \begin{document} \tableofcontents \section{uno} \section{dos} \section*{hide} \section{tres} \end{document} 回答1: I think you are looking for \section*{hide} \addtocounter{section}{1} or make it into a command: \newcommand{\toclesssection