latex

Inkscape “PDF + Latex” export

自古美人都是妖i 提交于 2020-12-01 10:50:18
问题 I'm using inkscape to produce vector figures, save them in SVG format to export them later as "PDF + Latex" much in the vein of TUG inkscape+pdflatex guide. Trying to produce a simple figure, however, turns out to be extremely frustating. The first figure http://i.stack.imgur.com/jIo3z.png is an example of the figure I would like to export in the form of "PDF + Latex" (shown here in PNG format). If I export this to a PDF figure without latex macros the PDF produced looks exactly the same,

LaTeX: stack three lines in math mode

你离开我真会死。 提交于 2020-11-27 19:33:45
问题 Hey, I'm writing a formula with three indexes i,j,k. At the end of the line I'd like to put this: i=1,...,a j=1,...,b k=1,...,n But I'd like it in smaller font and stacked above each other. Can someone tell me a command which can accomplish this? \mbox can't do math mode, I think. 回答1: Try the \substack command: z_i = a_j + b_k \qquad \substack{ i=1,\dots,a \\ j=1,\dots,b \\ k=1,\dots,n} 来源: https://stackoverflow.com/questions/5009782/latex-stack-three-lines-in-math-mode

LaTeX: stack three lines in math mode

别来无恙 提交于 2020-11-27 19:33:15
问题 Hey, I'm writing a formula with three indexes i,j,k. At the end of the line I'd like to put this: i=1,...,a j=1,...,b k=1,...,n But I'd like it in smaller font and stacked above each other. Can someone tell me a command which can accomplish this? \mbox can't do math mode, I think. 回答1: Try the \substack command: z_i = a_j + b_k \qquad \substack{ i=1,\dots,a \\ j=1,\dots,b \\ k=1,\dots,n} 来源: https://stackoverflow.com/questions/5009782/latex-stack-three-lines-in-math-mode

采用sphinx编写技术文档

人盡茶涼 提交于 2020-11-26 04:26:55
参考网络上sphinx相关文档及相应例子,准备采用sphinx来编写技术文档,生成html,结合xelatex生成latex、pdf,现在碰到的问题是需运行两次才生成文档目录,比较郁闷。 列出主要参考: 跟我学企业敏捷开发-认识Markdown与TeX排版 http://www.latexstudio.net/software-development-camp-with-markdown-and-tex-typesetting/ 例子采用了markdown,但后来我采用了rst,主要应用了以上例子提供的软件 来源: oschina 链接: https://my.oschina.net/u/916854/blog/208403

How to use a LaTeX package with R/exams?

无人久伴 提交于 2020-11-25 03:35:25
问题 I am using exams2moodle() to create exam quizzes. I would like to use some math symbols which require the LaTeX package amssymb . How should I proceed? 回答1: TL;DR: amssymb LaTeX symbols are supported by MathJax which is the default renderer in a standard Moodle installation. So these symbols should work out of the box when using exams2moodle(..., converter = "pandoc-mathjax") which is the default sinc R/exams 2.3.3 (released in July 2019). Details: As already pointed out by the answer of

How to use a LaTeX package with R/exams?

こ雲淡風輕ζ 提交于 2020-11-25 03:31:52
问题 I am using exams2moodle() to create exam quizzes. I would like to use some math symbols which require the LaTeX package amssymb . How should I proceed? 回答1: TL;DR: amssymb LaTeX symbols are supported by MathJax which is the default renderer in a standard Moodle installation. So these symbols should work out of the box when using exams2moodle(..., converter = "pandoc-mathjax") which is the default sinc R/exams 2.3.3 (released in July 2019). Details: As already pointed out by the answer of

HTML table表格转换为Markdown table表格

拈花ヽ惹草 提交于 2020-11-24 05:20:58
举个栗子,当我想要把 这个页面的第一个表格 转换成Markdown Table时,怎么做更快,效率更高? 只需简单三步,请看示例: 第一步:复制包含HTML table标签的代码 复制table代码(HTML table to Markdown table) 第二步:打开 https://tableconvert.com/ ,点击import菜单 导入HTML表格(HTML table to Markdown table) 第三步:选择HTML选项卡并粘贴内容到文本框,点击import data 导入成功(HTML table to Markdown table) 导入成功后,工具自动转换成Markdown格式的表格,除了可以实现HTML表格转Markdown表格外,工具还支持常用的格式转换。 提示:当HTML table中的tr包含复杂的p、span、div等标签也是可以通过这个工具提取表格内容。 我总结了一下,通过Import按钮导入数据,我们可以实现下面这些格式的转换,很实用。 将Markdown表格转换为CSV / TSV 将Markdown表格转换为JSON 将Markdown表格转换为XML 将Markdown表格转换为YAML 将Markdown表格转换为SQL 将Markdown表格转换为HTML 将Markdown表格转换为Excel

工欲善其事必先利其器

杀马特。学长 韩版系。学妹 提交于 2020-11-23 23:48:03
目录 1. Mac 2. Chrome 3. Website 4. app 5. 值得关注的人 1. Mac 【Notion】 笔记本/GTD/资料收集,Twitter上推荐的比较多,可以去b站的Happy_Xiao看看notion的用法,在用它之前我是印象笔记的深度用户,初次接触到notion,它的设计理念是“Everything is a block”,在没有看别人的用法之前没有感觉和普通的笔记本有什么区别,看了b站上Happy_Xiao的用法后完全打开新大门,大家可以去看看试试。它的block理念有多好呢,印象笔记今年已经在copy notion的功能了。之前的block数量还有限制,现在已经不要钱了。 【Mathpix Snipping Tool】 用于写公众号的时候截取数学公式。这个是为了偷懒,复杂公式用LaTeX比较繁琐,用它截取公式图片,自动识别公式变成LaTeX,我写文章涉及数学公式的时候会用它。 【番茄土豆】 番茄钟,一般用于任务计时,可以支持你打标签,会统计你的时间。它设计初衷是记录你完成任务用的时间,但我一般不用它记录时间,会影响我的状态。我一般拿它“做那些不想做的事情”,如果有什么事情我不想做但又不得不做,一般我会调一个很小的番茄钟,哄哄自己,“做完这个番茄钟就不做它了”,但一般一个番茄钟完就进入状态了。 【 Time Out】 一天中用电脑的时间比较多

LaTeX备忘——使用listings宏包显示google test终端内容

六月ゝ 毕业季﹏ 提交于 2020-11-19 20:28:25
目前我使用的源代码显示宏包有minted与listings,前者功能更强大,但需要python方面的支持。最近需要在latex文档中插入Google Test的终端显示内容,minted虽然可以自定义语言,但需要使用python,我目前还未学习,故暂时只能使用listings宏包来实现。 操作系统:Ubuntu 20.04 编辑工具:TeXstudio 2.12.22 编译方式:LuaLaTeX 完整源代码如下: % 开源中国,陆巍的博客 \documentclass[oneside]{article}% % 注意宏包顺序,有可能会报错 \usepackage{ctex}% 中文支持 \usepackage{geometry}% 用于页面设置 \usepackage[dvipsnames, svgnames, x11names]{xcolor} % 颜色支持 \usepackage{graphics}% 图形支持 \usepackage[ colorlinks=true, linkcolor=Navy, urlcolor=Navy, citecolor=Navy, anchorcolor=Navy ]{hyperref} \usepackage{enumerate}% 枚举支持 \usepackage{tcolorbox}% 支持更好的文本框 \tcbuselibrary