tex

maxima tex output to show brackets for sin and cos

久未见 提交于 2021-01-24 09:01:05
问题 I use maxima's tex output and would like to change the way it outputs sin(x). It currently does: tex(sin(x)); $$\sin x$$ But I would like to have brackets around the x, but not always; for instance, if i use this: sin(x/2) already has \left( and \right) tex(sin(x/2)); \begin{equation} \sin \left({{x}\over{2}}\right) \end{equation} is this possible, maybe with the texput function? 回答1: Well, if you are not adverse to putting in a little Lisp code: (%i1) :lisp (setf (get '%sin 'tex) nil) (%i1)

Make an unbreakable block in TeX [closed]

自古美人都是妖i 提交于 2020-12-29 08:52:14
问题 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 10 years ago . Improve this question I want to do something like the following in TeX: \begin{nobreak} Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page. \end

Make an unbreakable block in TeX [closed]

不羁岁月 提交于 2020-12-29 08:51:59
问题 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 10 years ago . Improve this question I want to do something like the following in TeX: \begin{nobreak} Text here will not split over pages, it will remain as one continuous chunk. If there isn't enough room for it on the current page a pagebreak will happen before it and the whole chunk will start on the next page. \end

using katex, '&' alignment symbol displays as 'amp;'

孤街醉人 提交于 2020-07-09 03:33:32
问题 I am using katex to render math. https://github.com/Khan/KaTeX Generally, to get this to work I link to the files katex.min.js and katex.min.css from a cdn, which is one of the ways the directions suggest. I wrap what needs to be rendered in tags and give all the same class. For example: <span class='math'>\begin{bmatrix}a & b \\c & d\end{bmatrix}</span> And inside a script tag I apply the following: var math = document.getElementsByClassName('math'); for (var i = 0; i < math.length; i++) {

Doxygen cannot parsing the structure documentation in the source file

一笑奈何 提交于 2020-06-29 04:08:33
问题 Doxygen cannot parsing a structure documentation inside .c file(and cannot create a corresponding .tex file) but parsing correctly from a separate .h file Assumptions: Does the structures inside .c file where generally the functions are documented are not visible to doxygen parser? Workflow: doxygen run >parsing from files>create a pdf The final generated file is missing the structure documentation inside .c file but all other structures inside a separate .h files are documented and find

Tex: wrapfig package problem aligning text

*爱你&永不变心* 提交于 2020-06-17 03:56:26
问题 Using the wrapfig package with a table inside a section, the table's first row is not aligned with the text that wraps it. This problem is not present when working outside of a section. \documentclass{article} \usepackage{wrapfig} \usepackage{lipsum} \begin{document} \section{Section} \begin{wraptable}{l}{0pt} \begin{tabular}{cccc} A & B & C & D \\ E & F & G & H\\ \end{tabular} \label{Mytable}\caption{This is my table.} \end{wraptable} \textbf{This bit of text should be aligned with the table

In Bookdown, `\textcolor` is not recognized when I attempt to compile an epub book using Pandoc

北城余情 提交于 2020-05-01 03:37:58
问题 In bookdown, it appears that \textcolor in latex is not recognized when I try to compile using bookdown::render_book('bookdown::epub_book') even though I have added \usepackage{xcolor} into the preamble.tex file. Is there a reason for this? 回答1: Let's have a look at the way the document is processed. I will leave out processing by the knitr and R Markdown packages and focus on pandoc, which is the final step when converting from Markdown to any other format. Pandoc first parses the document

In Bookdown, `\textcolor` is not recognized when I attempt to compile an epub book using Pandoc

萝らか妹 提交于 2020-05-01 03:37:12
问题 In bookdown, it appears that \textcolor in latex is not recognized when I try to compile using bookdown::render_book('bookdown::epub_book') even though I have added \usepackage{xcolor} into the preamble.tex file. Is there a reason for this? 回答1: Let's have a look at the way the document is processed. I will leave out processing by the knitr and R Markdown packages and focus on pandoc, which is the final step when converting from Markdown to any other format. Pandoc first parses the document