latex

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,

Tools for converting LaTeX equations to Content MathML or OpenMath?

本秂侑毒 提交于 2019-12-04 11:33:11
问题 Do you know any open source tools or libraries (preferably Java, but that's not a strict requirement) in the GNU/Linux world that convert mathematical equations in LaTeX syntax to Content MathML or OpenMath? I need to convert tons of equations in batch mode, so I'm not looking for interactive apps. EDIT My focus is on the equations' semantics, so I cannot use Presentation MathML (unless there's a converter from Presentation MathML to Content MathML). Thanks in advance! 回答1: This might be what

How to automatically use git diff --word-diff option for *.tex files but not others?

做~自己de王妃 提交于 2019-12-04 11:21:53
Is there a way to use --word-diff for LaTeX files (*.tex) and keep the standard line difference for other file types? What I want to achieve is to use git diff command and let git show the word difference on *.tex files automatically without a need to write git diff --word-diff each time. At the same time I want git to show the standard line difference for other file types. Is that possible? See the Generating diff text section of the gitattributes documentation . However, to automatically get word diffs just for *.tex files, you must put this together with additional information there and in

Executing Curl with PHP

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-04 11:21:25
I'm trying to use Docverter to convert LaTeX/markdown files to PDF but am having trouble using PHP to do CURL to access Docverter via their API . I'm know I'm not a total idiot b/c i can get this to work adapting the shell script in this Docverter example and running from command line (Mac OSX). Using PHP's exec() : $url=$_SERVER["DOCUMENT_ROOT"]; $file='/markdown.md'; $output= $url.'/markdown_to_pdf.pdf'; $command="curl --form from=markdown \ --form to=pdf \ --form input_files[]=@".$url.$file." \ http://c.docverter.com/convert > ".$output; exec("$command"); This gives no error messages but

gnuplot - pdf terminal - setting unicode character (solar mass symbol/odot)

杀马特。学长 韩版系。学妹 提交于 2019-12-04 11:18:45
问题 I'm trying to set the LaTeX \odot symbol in the gnuplot (4.6.0) pdf terminal. What is the exact syntax for this? The gnuplot FAQ gives some clues, but should I type {/Symbol \2299} , or {/utf8 \2299} , or some other variation on \ , / , # etc.? Or should I do set encoding utf8 ? Pasting the symbol in directly does not seem to work. Should I use pdf or pdfcairo for the terminal? The latter affects my plots in intolerable ways. 回答1: It is pretty simple. First you need to select a terminal that

Making the draft document option in LaTeX have extra text appear in LaTeX

强颜欢笑 提交于 2019-12-04 11:12:54
Is there a way to get some text to appear only when the [draft] option is active. For example, when the draft option is active, I want some text to appear between my title and abstract: "draft: do not cite without permission" or some such. Usually this is done with \usepackage{ifdraft} \ifdraft{stern warning}{} Where to put the \ifdraft depends on how you've created the layout of your title page. 来源: https://stackoverflow.com/questions/2487252/making-the-draft-document-option-in-latex-have-extra-text-appear-in-latex

emacs AUCTeX macros fontification

你。 提交于 2019-12-04 11:12:05
I recently started using the excellent package xargs that provides \newcommandx . It shares a syntax similar to the default \newcommand . I would like font-lock to reflect this. I did (custom-set-variables '(font-latex-user-keyword-classes (quote (("cx" ("newcommandx" "*|{\\[[{") (:family "font-lock-type-face") command))))) But this fontifies just the command name itself, not its body ( \newcommand fontifies the body with 'font-lock-function-name-face , which in my case is bold). I want \newcommandx to fontify its body with 'font-lock-function-name-face . To summarize the question: how to make

Display Math Formula in javaFX

久未见 提交于 2019-12-04 10:53:19
I want to know how to display math formula in a label for exemple in JavaFX. Like this picture : I want the .jar of a library and a small example in JavaFX. I already found some libraries but they are only for Swing/AWT. I tried some of them, but they don't work for me. Displaying fancy equations with Java David Gilbert Since JLaTeXMath is using the Graphics2D API for rendering, you can use FXGraphics2D to draw the output to a JavaFX Canvas . For sample code, please refer to my answer to another similar question https://stackoverflow.com/a/25037747/2592874 Just a copy from my answer to https:/

How to left align a whole table in markdown (pandoc)?

≡放荡痞女 提交于 2019-12-04 10:52:31
问题 How do you left align an entire table in Markdown/Pandoc? I know about different ways of specifying tables and how alignment of columns are done, but I cannot find a way to shift the table from center aligned to left aligned (have even tryed embedding <div style="float: left>..</div> which didn't work). Do I have to switch to LaTeX to do this? I will export to pdf later on, if that makes a difference. 回答1: I now found a solution to this problem at tex.stackexchange.com. Apparently pandoc

Rmarkdown to LaTeX

风格不统一 提交于 2019-12-04 10:47:32
问题 I made a presentation in RStudio with RMarkdown/Knitr - it compiles without problems to a pdf (via LaTeX Beamer). But I cannot get the LaTeX file. Is there any way to export also the LaTeX file which should be produced in the conversion? 回答1: In RStudio: Click the gear - options button next to knit. Click output options. Click advanced. Click Keep tex source file . . . to answer the 1st comment, here is some sample LaTeX \begin{Shaded} \begin{Highlighting}[] \NormalTok{DF <-}\KeywordTok{read