latex

How to disable indentation of LaTeX list items? [closed]

房东的猫 提交于 2019-12-03 16:30:04
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . By default the "enumerate" environment is indented with respect to the current environment. How can I disable this indentation so that an enumerate environment of three items would produce the same output as the following piece of code? \documentclass{article} \begin{document} \paragraph{1.} \paragraph{2.}

How to make 'appendix' appear in toc in Latex?

倾然丶 夕夏残阳落幕 提交于 2019-12-03 16:22:31
问题 How to make word 'appendix' appear in the table of contents? Right now toc looks like this: 1 ...... 2 ...... . . A ..... B ..... I would like it to be: 1 ...... 2 ...... . . Appendix A ..... Appendix B ..... My latex source file structure is like this: \begin{document} \tableofcontents \include{...} \include{...} \appendix \include{...} \include{...} \end{document} 回答1: This is probably most easily achieved by using the appendix package, or the memoir class. If you don't want to use a

LaTeX renderer for .NET?

牧云@^-^@ 提交于 2019-12-03 16:14:22
问题 I'm curious as to whether a native .NET renderer for TeX/LaTeX exists. The closest match I have been able to find is a Java implementation, JMathTeX. I am tempted to port this to C#, but before I do so, I would simply like to check whether anyone is aware of a .NET implementation out there. My current thoughts are to use MiKTeX along with dvipng to compile the TeX source and render the generated DVI as a PNG, but I'm still worrying this may incur an unacceptable amount of overhead, not to

Version control system which keeps track of individual files

此生再无相见时 提交于 2019-12-03 16:09:46
Up to now I used git to manage my latex-files. However git manages all latex-files in a folder at once. What I want is a version control system which gives me a history for each file separately lets me checkout old versions of individual files without affecting the other ones lets me make branches for each individual file withoud affecting the other ones gives tags to versions of individual files Perhaps it is possible to do it with git, but I don't know how to do it. So is there any good, handy version control system for this purpose? Perhaps I should add that I use linux as os and emacs as

How can one number paragraphs in LaTeX?

喜欢而已 提交于 2019-12-03 16:08:36
问题 Given a bunch of paragraphs: Para. A ... Para. B ... Para. C ... How can one have LaTeX automatically number them, i.e. 1. Para. A. ... 2. Para. B. ... 3. Para. C. ... I've seen the following suggested: \newcounter{parnum} \newcommand{\N}{% \noindent\refstepcounter{parnum}% \makebox[\parindent][l]{\textbf{\arabic{parnum}.}}} % Use a generous paragraph indent so numbers can be fit inside the % indentation space. \setlength{\parindent}{2em} From here: comp.text.tex: Re: How do I number

LaTeX hyperref link goes to wrong page

强颜欢笑 提交于 2019-12-03 16:07:11
问题 I am trying to create a reference to a float that doesn't use a caption. If I include \label{foo} within the float and reference it using \pageref{foo}, the correct page number is displayed in my pdf document but the hyperlink created by the hyperref package links to a different page (the first page of the section). If I include a caption before the label in the float, the hyperref link goes to the correct page. Is there a way to get the hyperref link to work correctly without including a

converting a latex code to mathml or svg code in python

半世苍凉 提交于 2019-12-03 15:52:02
Is there any python code that allow take a latex code (for equations) and parse it to mathml or svg code ? A simple function that take as argument a string (the latex code) and output a string (the svg or mathml code) would be perfect. PS. I've found this http://svgkit.sourceforge.net/SVGLaTeX.html but it's a web based project and not sure how to use it. EDIT: or in any language (not obligatory python), or at least an exe file that can be simply executed by a command line to do that (without installing additional stuff). You can do this without installing anything: import urllib import urllib2

How to include LaTeX snippets directly in Doxygen comments?

天涯浪子 提交于 2019-12-03 15:18:00
I would like to be able to edit LaTeX parts of some Doxygen comments externally with some suitable editor. I would use that only for complex environments. To do that, I figured I can have LaTeX-only files and include them from Doxygen. I did create Doxygen aliases for \begin and \end to make the syntax compatible. (For example, I know how to set-up Emacs/AUCTex for working with LaTeX snippets that have no preamble and document structure.) Is there a way to include the contents of a .tex file inside a Doxygen comment? I look for something analogous to \htmlinclude , but for TeX files. Is there

Hmisc::latex not printing caption w/ tabular object

别说谁变了你拦得住时间么 提交于 2019-12-03 14:41:08
First I will tell you what I'm attempting to do big picture in case I'm going about it wrong. I have a nested table that I'd like to out put as a LaTeX table within RStudio using knitr. I am fine until I try to add a caption. I tried the example on page 9 in the tables vignette (LINK) . It works without the caption but when I add the caption it doesn't. It also works with a non tabular object. The funny thing is that latex.default works but causes an error in RStudio/knitr's Compile PDF and from what I read is called by latex anyway; plus the table isn't rounded appropriately anymore. I tried

Compile latex from python

北城以北 提交于 2019-12-03 14:34:55
I have made some python function for compiling passed string as pdf file using latex. The function works as expected and has been quite useful, therefore I look for ways to improve it. The code which I have: def generate_pdf(pdfname,table): """ Generates the pdf from string """ import subprocess import os f = open('cover.tex','w') tex = standalone_latex(table) f.write(tex) f.close() proc=subprocess.Popen(['pdflatex','cover.tex']) subprocess.Popen(['pdflatex',tex]) proc.communicate() os.unlink('cover.tex') os.unlink('cover.log') os.unlink('cover.aux') os.rename('cover.pdf',pdfname) The problem